:root{
    --primary-orange:#e97f08;
    --secondary-yellow:#ffaf00;
    --accent-red:#cb410b;
    --primary-black:#000000;
    --white:#ffffff;
    --gray-light:#f5f5f5;
    --gray-medium:#666666;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;}
body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
    line-height:1.6;color:var(--primary-black);background:var(--white);
}

/* Header */
header{
    position:fixed;top:0;left:0;width:100%;
    background:rgba(255,255,255,0.98);
    backdrop-filter:blur(10px);
    box-shadow:0 2px 20px rgba(0,0,0,0.08);
    z-index:1000;padding:0.8rem 0;
}
nav{
    max-width:1200px;margin:0 auto;padding:0 1.5rem;
    display:flex;justify-content:space-between;align-items:center;
}
.logo{display:flex;align-items:center;gap:0.7rem;}
.logo img{height:42px;width:auto;}
.logo-text{
    font-size:1.3rem;font-weight:700;
    background:linear-gradient(135deg,var(--primary-orange),var(--secondary-yellow));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.btn-back{
    padding:0.7rem 1.4rem;border-radius:999px;
    border:2px solid var(--primary-orange);
    background:transparent;color:var(--primary-orange);
    font-weight:600;font-size:0.9rem;
    cursor:pointer;text-decoration:none;
    transition:all 0.3s ease;
    display:inline-flex;align-items:center;gap:0.5rem;
}
.btn-back:hover{background:var(--primary-orange);color:var(--white);}
main{padding-top:88px;}

/* Hero */
.hero{
    background:linear-gradient(135deg,#000000 0%,#1a1a1a 100%);
    color:var(--white);padding:5rem 1.5rem 4rem;
    text-align:center;position:relative;overflow:hidden;
}
.hero::before{
    content:'';position:absolute;top:0;left:0;right:0;bottom:0;
    background:radial-gradient(circle at 50% 50%,rgba(233,127,8,0.15),transparent 70%);
    pointer-events:none;
}
.hero-content{max-width:900px;margin:0 auto;position:relative;z-index:1;}
.hero-badge{
    display:inline-block;padding:0.5rem 1.2rem;border-radius:999px;
    border:1px solid rgba(233,127,8,0.4);background:rgba(233,127,8,0.1);
    font-size:0.85rem;color:var(--secondary-yellow);margin-bottom:1.5rem;
    font-weight:600;letter-spacing:0.5px;
}
.hero h1{
    font-size:3.2rem;line-height:1.2;margin-bottom:1.2rem;font-weight:800;
}
.hero h1 span{
    background:linear-gradient(90deg,var(--primary-orange),var(--secondary-yellow));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.hero-subtitle{
    font-size:1.25rem;color:#d1d5db;max-width:700px;
    margin:0 auto 2.5rem;line-height:1.7;
}

/* Contenido */
section{padding:5rem 1.5rem;}
section:nth-child(even){background:var(--gray-light);}
.container{max-width:1200px;margin:0 auto;}

.section-eyebrow{
    font-size:0.85rem;text-transform:uppercase;letter-spacing:0.1em;
    color:var(--primary-orange);font-weight:700;margin-bottom:0.8rem;
    text-align:center;
}
.section-title{
    font-size:2.5rem;font-weight:800;margin-bottom:1.2rem;
    text-align:center;color:var(--primary-black);
}
.section-subtitle{
    font-size:1.1rem;color:var(--gray-medium);
    text-align:center;max-width:700px;margin:0 auto 3rem;
}

/* Historia */
.story-content{
    display:grid;grid-template-columns:1fr 1fr;
    gap:3rem;align-items:center;
}
.story-text h3{
    font-size:1.8rem;margin-bottom:1rem;font-weight:700;
}
.story-text p{
    font-size:1.05rem;color:var(--gray-medium);
    line-height:1.8;margin-bottom:1.2rem;
}
.story-image{
    border-radius:20px;overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.15);
}
.story-image img{
    width:100%;height:auto;display:block;
}

/* Misión y Visión */
.mission-vision-grid{
    display:grid;grid-template-columns:1fr 1fr;
    gap:2.5rem;margin-top:3rem;
}
.mv-card{
    background:white;border-radius:20px;padding:3rem;
    box-shadow:0 10px 40px rgba(0,0,0,0.08);
    position:relative;overflow:hidden;
    transition:transform 0.3s ease,box-shadow 0.3s ease;
}
.mv-card::before{
    content:'';position:absolute;top:0;left:0;right:0;
    height:6px;
    background:linear-gradient(90deg,var(--primary-orange),var(--secondary-yellow));
}
.mv-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 60px rgba(233,127,8,0.15);
}
.mv-icon{
    width:80px;height:80px;
    background:linear-gradient(135deg,rgba(233,127,8,0.1),rgba(255,175,0,0.1));
    border-radius:16px;
    display:flex;align-items:center;justify-content:center;
    font-size:2.5rem;margin-bottom:1.5rem;
}
.mv-card h3{
    font-size:1.8rem;margin-bottom:1rem;font-weight:700;
}
.mv-card p{
    font-size:1.05rem;color:var(--gray-medium);line-height:1.8;
}

/* Valores */
.values-grid{
    display:grid;grid-template-columns:repeat(3,1fr);
    gap:2rem;margin-top:3rem;
}
.value-card{
    background:white;border-radius:16px;padding:2.5rem 2rem;
    text-align:center;
    box-shadow:0 8px 30px rgba(0,0,0,0.06);
    transition:all 0.3s ease;
    border:2px solid transparent;
}
.value-card:hover{
    transform:translateY(-8px);
    border-color:var(--primary-orange);
    box-shadow:0 15px 45px rgba(233,127,8,0.12);
}
.value-icon{
    font-size:3rem;margin-bottom:1.2rem;display:block;
}
.value-card h4{
    font-size:1.3rem;margin-bottom:0.8rem;font-weight:700;
}
.value-card p{
    font-size:0.95rem;color:var(--gray-medium);line-height:1.6;
}

/* Stats */
.stats-section{
    background:linear-gradient(135deg,#000000 0%,#1a1a1a 100%);
    color:white;padding:4rem 1.5rem;
}
.stats-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    gap:2rem;max-width:1200px;margin:0 auto;
}
.stat-card{
    text-align:center;padding:2rem 1rem;
}
.stat-number{
    font-size:3.5rem;font-weight:800;
    background:linear-gradient(135deg,var(--primary-orange),var(--secondary-yellow));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
    display:block;margin-bottom:0.5rem;
}
.stat-label{
    font-size:1rem;color:#d1d5db;font-weight:500;
}

/* Timeline */
.timeline{
    max-width:900px;margin:3rem auto 0;position:relative;
}
.timeline::before{
    content:'';position:absolute;left:50%;top:0;bottom:0;
    width:3px;
    background:linear-gradient(180deg,var(--primary-orange),var(--secondary-yellow));
    transform:translateX(-50%);
}
.timeline-item{
    margin-bottom:3rem;position:relative;
    display:grid;grid-template-columns:1fr 1fr;gap:3rem;
}
.timeline-item:nth-child(odd) .timeline-content{
    text-align:right;
}
.timeline-item:nth-child(even){
    direction:rtl;
}
.timeline-item:nth-child(even) .timeline-content{
    direction:ltr;text-align:left;
}
.timeline-year{
    font-size:3rem;font-weight:800;
    background:linear-gradient(135deg,var(--primary-orange),var(--secondary-yellow));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
    margin-bottom:0.5rem;
}
.timeline-content h4{
    font-size:1.4rem;margin-bottom:0.5rem;font-weight:700;
}
.timeline-content p{
    font-size:1rem;color:var(--gray-medium);line-height:1.7;
}
.timeline-dot{
    position:absolute;left:50%;top:0;
    width:20px;height:20px;border-radius:50%;
    background:var(--primary-orange);
    transform:translateX(-50%);
    box-shadow:0 0 0 6px rgba(233,127,8,0.2);
}

/* Team (placeholder) */
.team-grid{
    display:grid;grid-template-columns:repeat(3,1fr);
    gap:2rem;margin-top:3rem;
}
.team-card{
    background:white;border-radius:16px;overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,0.08);
    transition:transform 0.3s ease;
}
.team-card:hover{
    transform:translateY(-8px);
}
.team-photo{
    width:100%;height:280px;
    background:linear-gradient(135deg,#e5e7eb,#d1d5db);
    display:flex;align-items:center;justify-content:center;
    font-size:4rem;
}
.team-info{
    padding:1.5rem;text-align:center;
}
.team-info h4{
    font-size:1.3rem;margin-bottom:0.3rem;font-weight:700;
}
.team-info .role{
    font-size:0.95rem;color:var(--primary-orange);
    font-weight:600;margin-bottom:0.5rem;
}
.team-info p{
    font-size:0.9rem;color:var(--gray-medium);
}

/* CTA */
.cta-section{
    background:linear-gradient(135deg,var(--primary-orange),var(--secondary-yellow));
    color:white;text-align:center;padding:5rem 1.5rem;
}
.cta-section h2{
    font-size:2.8rem;margin-bottom:1rem;font-weight:800;
}
.cta-section p{
    font-size:1.2rem;margin-bottom:2rem;
    max-width:700px;margin-left:auto;margin-right:auto;
}
.btn-cta-large{
    display:inline-flex;align-items:center;gap:0.8rem;
    padding:1.2rem 2.5rem;border-radius:50px;
    background:white;color:var(--primary-black);
    font-weight:700;font-size:1.05rem;
    text-decoration:none;transition:all 0.3s ease;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}
.btn-cta-large:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 40px rgba(0,0,0,0.3);
}

/* Footer */
footer{
    background:#000000;color:white;
    padding:2rem 1.5rem;text-align:center;
}
footer p{font-size:0.9rem;color:#9ca3af;}
footer a{
    color:var(--secondary-yellow);
    text-decoration:none;margin:0 0.5rem;
}
footer a:hover{color:var(--primary-orange);}

/* Responsive */
@media (max-width:1024px){
    .story-content{grid-template-columns:1fr;}
    .mission-vision-grid{grid-template-columns:1fr;}
    .values-grid{grid-template-columns:repeat(2,1fr);}
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .team-grid{grid-template-columns:repeat(2,1fr);}
    .timeline::before{left:20px;}
    .timeline-item{grid-template-columns:1fr;padding-left:50px;}
    .timeline-item:nth-child(even){direction:ltr;}
    .timeline-item:nth-child(odd) .timeline-content{text-align:left;}
    .timeline-dot{left:20px;}
}
@media (max-width:768px){
    .hero h1{font-size:2.2rem;}
    .hero-subtitle{font-size:1.05rem;}
    .section-title{font-size:2rem;}
    .values-grid{grid-template-columns:1fr;}
    .stats-grid{grid-template-columns:1fr;}
    .team-grid{grid-template-columns:1fr;}
    .mv-card{padding:2rem;}
}

/**
Menu
*/
/* ========== HEADER Y NAVEGACIÓN - VERSIÓN CORREGIDA ========== */

/* Header base */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(233, 127, 8, 0.2));
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Menú de navegación - DESKTOP */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-yellow));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown content - DESKTOP SOLAMENTE */
.dropdown-content {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    background: white;
    min-width: 320px;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(233, 127, 8, 0.1);
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(233, 127, 8, 0.05), rgba(255, 175, 0, 0.05));
    border-left-color: var(--primary-orange);
}

.service-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-item:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.2rem;
}

.service-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-weight: 400;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-medium);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.phone-number:hover {
    color: var(--primary-orange);
    background: rgba(233, 127, 8, 0.1);
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 1.2rem;
}

/* Botón CTA especial */
.btn-cta-special {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-yellow) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(233, 127, 8, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta-special:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 127, 8, 0.5);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-cta-special:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: var(--gray-light);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-yellow));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }

    /* Menú móvil */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-light);
        font-size: 1.05rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        transform: none;
    }

    /* Dropdown móvil */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        min-width: auto;
        border-radius: 12px;
        margin: 0.5rem 0 1rem 0;
        display: none;
        border: none;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-item {
        padding: 1rem;
        width: 100%;
        border-left: 3px solid transparent;
    }

    .dropdown-item:hover {
        background: rgba(233, 127, 8, 0.05);
        transform: none;
    }

    .dropdown-item:hover .service-icon {
        transform: scale(1.05);
    }

    .service-icon {
        font-size: 1.3rem;
        min-width: 35px;
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .phone-text {
        display: none;
    }

    .btn-cta-special span:not(.btn-icon):not(.btn-arrow) {
        display: none;
    }

    .btn-cta-special {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .logo img {
        height: 40px;
    }

    nav {
        padding: 0 1rem;
    }
}