:root {
    --primary-color: #F85A18;
    /* Vibrant Orange */
    --secondary-color: #111111;
    /* Deep Black */
    --accent-color: #FF8540;
    /* Lighter Orange for gradients/hovers */
    --background-light: #F9F9F9;
    --background-dark: #1A1A1A;
    --text-dark: #0F0F0F;
    --text-light: #FFFFFF;
    --text-gray: #666666;
    --font-main: 'Outfit', sans-serif;
    --spacing-section: 4rem;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(248, 90, 24, 0.2);
}

.btn-outline {
    border: 1px solid currentColor;
    background: transparent;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.nav-links img {
    display: none;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.mobile-link:hover {
    color: var(--primary-color);
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, rgba(248, 90, 24, 0.9) 0%, rgba(248, 90, 24, 0.4) 50%, rgba(248, 90, 24, 0) 100%), url('../assets/images/hero_bg.gif');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 0;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom-right-radius: 0;
}

.hero-content {
    display: block;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-image {
    display: none;
}

/* Services Section */
.services-section {
    padding: var(--spacing-section) 0;
    background-color: white;
    /* Changed from light grey to white based on image */
}

.section-header {
    margin-bottom: 4rem;
    border-left: 3px solid #333;
    /* Darker, thinner line */
    padding-left: 1.5rem;
}

.section-header span {
    display: block;
    font-weight: 300;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.section-header h2 {
    font-size: 2.5rem;
    color: black;
    letter-spacing: -0.03em;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    /* More rounded */
    border: 1px solid #E5E5E5;
    /* Subtle border */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-speed);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-info {
    flex: 1;
    padding-right: 2rem;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-icon {
    width: 200px;
    /* Larger to fit the illustration */
    height: 160px;
    background: transparent;
    /* Remove orange circle as images have it or are standalone */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Remove old SVG specific styles */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links,
    .header-cta {
        display: none;
        /* Hide default nav and button */
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-card {
        padding: 1.5rem;
        max-width: 100%;
        margin-right: 0;
    }

    .cta-card .btn {
        width: 100%;
        white-space: normal;
        /* Allow text to wrap if needed */
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.95rem;
        /* Slightly smaller to fit */
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .service-card {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    .service-icon {
        width: 90px !important;
        height: 90px !important;
        flex-shrink: 0;
    }

    .service-info {
        padding: 0 !important;
        min-width: 0;
        /* Allows flex item to shrink below content size */
    }

    .service-info h3 {
        font-size: 1.1rem !important;
        overflow-wrap: break-word;
    }

    .service-info p {
        font-size: 0.95rem !important;
    }

    .team-content {
        max-width: 100% !important;
        padding: 2rem !important;
    }

    .team-content h2 {
        font-size: 2rem !important;
    }

    .team-section {
        background-position: 45% center !important;
    }

    .hero-text {
        padding: 1rem 0;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
}

/* Services Detail Page Styles */
.service-detail-section {
    margin-bottom: 5rem;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

.service-detail-header {
    margin-bottom: 2.5rem;
}

.service-detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-detail-header .subtitle {
    display: block;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.service-detail-header hr {
    border: 0;
    height: 3px;
    background: #eee;
    width: 60px;
    margin-top: 1rem;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111;
}

.service-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Detailed Feature Section */
.feature-section {
    padding: var(--spacing-section) 0;
    background-color: #FFF6F0;
    /* Light orange tint */
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.feature-image img {
    border-radius: var(--border-radius);
}

/* Team Section */
/* Team Section */
.team-section {
    padding: var(--spacing-section) 0;
    /* Use the new full composition image */
    background: url('../assets/images/quienes_somos.jpg') no-repeat 30% center;
    background-size: cover;
    min-height: 700px;
    /* Ensure height for the image to show */
    display: flex;
    align-items: center;
}

.team-grid {
    display: block;
    /* Remove grid to allow text to flow naturally in container */
    width: 100%;
}

.team-content h2 {
    margin-bottom: 3rem;
    font-size: 3.5rem;
    /* Larger as requested */
    line-height: 1.1;
    max-width: 90%;
    color: #111;
}

.team-content {
    max-width: 50%;
    /* Limit text to the left side */
}

.team-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: #FF8540;
    /* Lighter orange from design */
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    /* Slightly larger pill */
    border-radius: 50px;
    font-size: 1rem;
    min-width: auto;
}

.step-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Hide the forensic image wrapper since it's now in the background */
.team-image-wrapper {
    display: none;
}

.team-image-bg {
    display: none;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: url('../assets/images/fondo_industria.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.cta-card {
    background: rgba(20, 20, 20, 0.95);
    /* Dark card */
    padding: 3.5rem;
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-right: auto;
    /* Push to the left */
    margin-left: 0;
    flex-shrink: 0;
}

.cta-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: white;
}

.cta-list {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #ccc;
    font-size: 1rem;
}

.cta-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Redesigned Footer */
.footer {
    background-color: white !important;
    /* Overwrite previous dark bg */
    color: var(--text-dark) !important;
    padding: 5rem 0;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-help-text {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.footer-phone {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.footer-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: white;
    /* Or light orange if desired, image looks white with orange icon, or orange circle */
    /* Checking image again: Icons seem to be orange solid circles with white icon inside OR just orange icon. 
     Small blur suggests orange circle. Use orange circle. */
    background: #FFF0E6;
    /* Very light orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Contact Page Styles */
.contact-hero {
    background-color: var(--secondary-color);
    padding: 8rem 0 4rem;
    color: white;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-section {
    padding: 6rem 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper {
    padding: 2rem;
    background: #fff;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(248, 90, 24, 0.1);
}

.contact-info-card {
    background: var(--secondary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #ccc;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/team_full_bg.png');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
    color: white;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(248, 90, 24, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* Image top on mobile */
    }
}

/* Philosophy Section (About Us) */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.philosophy-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.philosophy-image img {
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .philosophy-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .philosophy-text {
        display: contents;
    }

    .philosophy-text h2 {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .philosophy-image {
        order: 2;
        width: 100%;
        margin-bottom: 1rem;
    }

    .philosophy-text p {
        order: 3;
    }
}

/* Team & Training Section */
.team-training-section {
    padding: 5rem 0;
    background: #f9f9f9;
}

.training-header {
    text-align: center;
    margin-bottom: 4rem;
}

.training-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.training-header p {
    font-size: 1.1rem;
    color: #666;
}

.team-training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.training-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
}

.training-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.training-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.training-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .team-training-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .training-header h2 {
        font-size: 2rem;
    }
}

/* Reach Section */
.reach-section {
    padding: 5rem 0;
    background: white;
}

.reach-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reach-header h2 {
    font-size: 2.5rem;
}

.reach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.reach-block {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.reach-block img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.reach-content {
    padding: 2rem;
}

.reach-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.reach-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .reach-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reach-header h2 {
        font-size: 2rem;
    }
}