/* =========================================
   1. CONFIGURACIÓN Y VARIABLES (ADN CORPORATIVO EXACTO)
   ========================================= */
:root {
    /* --- COLORES EXACTOS DE TU PALETA (image_15d866.png) --- */
    
    /* El "Salmón" que mencionas es este Naranja Corporativo (C0 M72 Y100 K0) */
    --palm-primary: #EB6109; 
    
    /* Amarillo Corporativo (C0 M6 G228 B0) */
    --palm-accent: #FFE400;  
    
    /* Terracota Oscuro (Derivado del naranja para textos oscuros/títulos) */
    --palm-dark: #8A3800;    
    
    /* Fondo Crema muy suave (Para romper el blanco puro) */
    --palm-light: #FFF8F5;   
    
    /* --- NEUTROS --- */
    --white: #ffffff;
    --text-dark: #2D2D2D;    /* Gris casi negro para lectura */
    --text-muted: #666666;   /* Gris medio */
    --border-light: #EBEBEB; 

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Efectos */
    --shadow-premium: 0 15px 40px rgba(235, 97, 9, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
}

a { text-decoration: none; transition: var(--transition); }

/* --- TITULOS --- */
h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    font-weight: 700; 
    color: var(--palm-dark); /* Color oscuro para subtítulos */
}

/* --- H1 ESTILO "50/50" (Como tu imagen) --- */
h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.5rem; 
    text-transform: uppercase;
    color: var(--white); /* Color base BLANCO */
    line-height: 1.1;
    margin-bottom: 20px;
    /* Sombra sutil para que el blanco se lea sobre cualquier imagen */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}

/* CLASE MÁGICA PARA EL COLOR 50/50 */
/* Usa esto en tu HTML: <h1>Texto Blanco <span class="txt-resaltado">Texto Color</span></h1> */
h1 .txt-resaltado, 
.text-highlight {
    color: var(--palm-primary); /* Naranja/Salmón */
    display: inline-block; /* Evita cortes extraños */
}

/* =========================================
   2. HERO SECTIONS (IMÁGENES SIN FILTRO)
   ========================================= */
.hero-qs {
    position: relative;
    height: 70vh;
    min-height: 500px;
    /* Imagen pura, sin capas de color encima */
    background: url('../../assets/images/DJI_0513.JPG') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Clip-path para la forma curva inferior */
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-bottom: 50px;
    /* Aseguramos que no haya filtros CSS alterando los colores */
    filter: none !important; 
}

/* Capa oscura MUY sutil solo para que el texto blanco se lea */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.badge-hero {
    border: 2px solid var(--palm-primary);
    padding: 8px 25px;
    border-radius: 50px;
    background: var(--white);
    color: var(--palm-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================================
   3. ELEMENTOS DE CONTENIDO
   ========================================= */
/* Tarjeta Filosofía */
.filosofia-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 5;
    border-bottom: 6px solid var(--palm-accent); /* Borde Amarillo */
    box-shadow: var(--shadow-premium);
}
.quote-icon { font-size: 3.5rem; color: var(--palm-primary); opacity: 1; }
.text-filosofia { font-size: 1.25rem; line-height: 1.9; font-weight: 400; color: var(--text-dark); }

/* Visor 3D */
.model-3d-wrapper {
    width: 100%;
    height: 500px;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-premium);
}
.model-3d-wrapper iframe { width: 100%; height: 100%; border: none; }

/* =========================================
   4. TRAYECTORIA (TIMELINE)
   ========================================= */
.trajectory-section { background-color: var(--palm-light); padding: 80px 0; }

.timeline-infinite-container.map-style {
    position: relative;
    width: 100%; height: 550px; 
    display: flex; align-items: center;
    overflow-x: auto; cursor: grab;
    scrollbar-width: none;
}
.timeline-infinite-container.map-style::-webkit-scrollbar { display: none; }

.timeline-track {
    display: flex; align-items: center; gap: 120px;
    padding: 0 15vw;
    width: max-content; height: 100%;
    /* Línea punteada en Naranja suave */
    background-image: linear-gradient(90deg, #FAD4C0 50%, transparent 50%);
    background-position: center; background-size: 40px 2px; background-repeat: repeat-x;
}

.milestone-item {
    position: relative; width: 250px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: var(--transition);
}

.year-marker {
    width: 90px; height: 90px;
    background: var(--white);
    border: 5px solid var(--palm-primary); /* Borde Naranja */
    color: var(--text-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.4rem;
    box-shadow: var(--shadow-premium);
    z-index: 10;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.milestone-item:hover .year-marker {
    background: var(--palm-primary);
    color: var(--white);
    transform: scale(1.15);
    border-color: var(--palm-accent); /* Amarillo al hover */
}

/* Etiquetas Zig-Zag */
.milestone-item:nth-child(odd) .preview-label { position: absolute; bottom: 120px; }
.milestone-item:nth-child(even) .preview-label { position: absolute; top: 120px; }

.preview-label { width: 280px; text-align: center; }
.preview-label small { 
    color: #CF8A00; /* Amarillo oscuro para legibilidad */
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
}
.preview-label h6 { font-weight: 700; margin-top: 5px; font-size: 1.2rem; color: var(--palm-dark); }

/* Niebla Lateral */
.fade-overlay { position: absolute; top: 0; bottom: 0; width: 150px; z-index: 20; pointer-events: none; }
.fade-left { left: 0; background: linear-gradient(to right, var(--palm-light), transparent); }
.fade-right { right: 0; background: linear-gradient(to left, var(--palm-light), transparent); }

/* =========================================
   5. FOOTER (LIMPIO Y PROFESIONAL)
   ========================================= */
.footer-wave-container {
    position: relative;
    background-color: var(--white); 
    color: var(--text-muted); 
    font-family: var(--font-body);
    padding-top: 100px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
}

.custom-shape-divider-top {
    position: absolute;
    top: 0; left: 0; width: 100%; overflow: hidden; line-height: 0;
    transform: translateY(-99%); 
}
.custom-shape-divider-top svg {
    position: relative; display: block;
    width: calc(143% + 1.3px); height: 80px;
    transform: rotateY(180deg);
}
.custom-shape-divider-top .shape-fill { fill: var(--white); }

/* Logo Footer - SIN FILTROS */
.footer-logo {
    width: 65px;
    background: var(--white);
    border-radius: 50%;
    /* Aseguramos que la imagen se vea natural */
    filter: none !important; 
    border: none;
}

.brand-title { color: var(--text-dark); font-family: var(--font-heading); letter-spacing: 0.5px; }
.slogan-text { 
    font-size: 0.7rem; 
    color: var(--palm-primary); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-heading {
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--palm-accent); /* Línea Amarilla */
    display: inline-block;
    padding-bottom: 5px;
}

/* Certificaciones - IMÁGENES NATURALES */
.cert-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 5px;
    border-radius: 8px;
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.cert-card img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none !important; }
.cert-card:hover { transform: translateY(-5px); border-color: var(--palm-primary); }

/* Redes Sociales */
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--palm-primary); /* Naranja */
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
}
.social-links a:hover { 
    background: var(--white); 
    color: var(--palm-primary); 
    border-color: var(--palm-primary);
    transform: translateY(-3px);
}

/* Listas y Links */
.links-list { list-style: none; padding: 0; }
.links-list li { margin-bottom: 12px; }
.links-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
}
.links-list a:hover { 
    color: var(--palm-primary); 
    transform: translateX(5px);
    font-weight: 600;
}

/* Pills (Pestañas) */
.custom-pills .nav-link {
    color: var(--text-muted);
    background: var(--palm-light);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.custom-pills .nav-link:hover {
    background: var(--white);
    border-color: var(--palm-primary);
    color: var(--palm-primary);
}
.custom-pills .nav-link.active {
    background-color: var(--palm-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(235, 97, 9, 0.3);
}

/* Mapas */
.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--palm-accent);
    height: 200px;
}
.map-info i { color: var(--palm-primary); }

/* Footer Bottom */
.footer-bottom { 
    border-top: 1px solid var(--border-light); 
    padding: 25px 0;
    margin-top: 40px;
}
.footer-bottom p, .footer-bottom a { color: #999; font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--palm-primary); }

/* Animación Ola */
.custom-shape-divider-top svg path { animation: waveMove 6s ease-in-out infinite alternate; }

/* =========================================
   6. MODAL (Timeline)
   ========================================= */
.timeline-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(45, 45, 45, 0.9); 
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.timeline-modal-overlay.open { opacity: 1; visibility: visible; }

.timeline-modal-card {
    background: var(--white);
    width: 90%; max-width: 550px;
    padding: 50px;
    border-radius: 30px;
    position: relative;
    transform: translateY(30px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--palm-accent);
}
.timeline-modal-overlay.open .timeline-modal-card { transform: translateY(0); }