/* =========================================
   PALETA DE COLORES CORPORATIVA
========================================= */
:root {
    --bg: #ffffff;             
    --bg-alt: #f4f7f9;         
    --navy: #003355;           
    --orange: #ff5a00;         
    --light-blue: #4a76b8;     
    --text-dark: #0a2540;      
    --text-muted: #5a6b7c;     
    --line: #e2e8f0;           
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* SEO */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap;
}

/* =========================================
   NAVEGACIÓN (MENÚ CON SEPARADORES)
========================================= */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); box-shadow: 0 2px 15px rgba(0, 51, 85, 0.05);
}
.nav-logo { height: 60px; }
nav div:last-child { display: flex; align-items: center; }
nav a {
    color: var(--navy); font-weight: 600; text-decoration: none;
    padding: 0 20px; font-size: 0.95rem; position: relative; transition: color 0.3s;
}
nav a:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background-color: var(--line);
}
nav a:hover { color: var(--orange); }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 75vh; display: flex; align-items: center; position: relative;
    padding: 200px 8% 80px; background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.75)), url('../images/hero.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-logo { width: 520px; max-width: 90%; margin-bottom: 24px; filter: drop-shadow(0 8px 20px rgba(0, 51, 85, 0.08)); }
.hero-content { max-width: 900px; position: relative; z-index: 1; margin-top: 40px; text-align: center; margin: 0 auto; }
.hero p { max-width: 760px; margin: -50px auto 40px; font-size: 1.25rem; color: var(--text-muted); }
.eyebrow { color: var(--orange); letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; }

.btns { margin-top: 34px; }
.btn { display: inline-block; padding: 15px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: all 0.3s; margin-right: 15px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(255, 90, 0, 0.25); }
.btn-secondary { border: 2px solid var(--navy); color: var(--navy); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* =========================================
   SECCIONES GENERALES
========================================= */
section { padding: 100px 8%; }
.section-navy { background: var(--navy); }
.section-navy h2 { color: #fff; }
/* Ajuste específico para títulos sobre fondo oscuro */
.section-navy .section-title h2 {
    color: #ffffff;
}

.section-navy .section-title p {
    color: #a0aec0; /* Gris azulado suave para el subtítulo */
}

.section-navy .section-title::after {
    background: var(--orange); /* Mantiene la línea naranja característica */
}

.section-title { text-align: center; max-width: 850px; margin: 0 auto 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--navy); margin-bottom: 15px; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--orange); margin: 20px auto 0; border-radius: 2px; }

/* VALORES */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.value { padding: 30px; background: #fff; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--orange); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.value strong { display: block; color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }

/* =========================================
   MEJORA SECCIÓN VISIÓN
========================================= */
.vision-container { padding: 100px 8%; display: flex; justify-content: center; background: var(--bg); }
.vision-card { max-width: 1000px; width: 100%; background: var(--bg-alt); padding: 60px 50px; border-radius: 30px; position: relative; overflow: hidden; border: 1px solid var(--line); text-align: center; }
.vision-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--orange); }
.vision-eyebrow { display: block; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
.vision-text { font-size: 1.4rem; color: var(--text-muted); line-height: 1.6; max-width: 800px; margin: 0 auto; }
.vision-text strong { color: var(--navy); display: block; margin-top: 15px; font-weight: 600; }

/* UX EMPRESAS (CARDS) */
.empresas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1400px; margin: 0 auto; }
.card { background: #fff; border-radius: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; position: relative; }
.tag-country { position: absolute; top: 15px; right: 15px; background: var(--navy); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; z-index: 2; }
.logo-container { background: #f8fafc; padding: 50px 30px; display: flex; justify-content: center; align-items: center; height: 160px; border-bottom: 1px solid var(--line); }
.card-logo { max-height: 120px; max-width: 85%; object-fit: contain; filter: grayscale(100%); opacity: 0.8; transition: all 0.4s ease; }
.card-body { padding: 30px 25px 20px; flex-grow: 1; }
.card-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 15px; line-height: 1.3; }
.card-body p { font-size: 0.95rem; color: var(--text-muted); }
.card-footer { padding: 0 25px 30px; }
.card-link { font-size: 0.85rem; font-weight: 700; color: var(--orange); text-transform: uppercase; transition: 0.3s; }

.card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0, 51, 85, 0.15); border-color: var(--orange); }
.card:hover .card-logo { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.card:hover .card-link { color: var(--navy); padding-left: 5px; }
.card-featured { border-top: 4px solid var(--orange); }

/* ESTRUCTURA (TIMELINE) */
.structure { position: relative; max-width: 900px; margin: 0 auto; padding-left: 40px; }
.structure::before { content: ''; position: absolute; left: 14px; top: 20px; bottom: 20px; width: 4px; background: var(--line); }
.layer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; margin-bottom: 25px; transition: 0.3s; }
.layer::before { content: ''; position: absolute; left: -32px; top: 35px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 4px solid var(--bg); z-index: 2; }
.layer strong { display: block; color: var(--navy); font-size: 1.25rem; margin-bottom: 8px; }
.layer span { color: var(--text-muted); font-size: 1.05rem; }

/* CONTACTO */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.contact-box { background: var(--bg-alt); border-radius: 18px; padding: 40px; border: 1px solid var(--line); }
.highlight { color: var(--orange); font-weight: 700; }

/* FOOTER */
footer { padding: 40px 8%; background: var(--navy); color: #8fa6ba; display: flex; justify-content: space-between; font-size: 0.85rem; }

/* COOKIES */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 900px; background: rgba(0, 51, 85, 0.95);
    padding: 25px; border-radius: 16px; z-index: 9999; border: 1px solid var(--line); backdrop-filter: blur(5px);
}
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-content p { margin: 0; font-size: 0.9rem; color: #fff; }
.btn-cookie { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; }
.btn-accept { background: var(--orange); color: #fff; }
.btn-cancel { background: rgba(255,255,255,0.2); color: #fff; }

@media(max-width: 768px) {
    .hero-logo { width: 380px; } .hero p { margin-top: -20px; }
    nav { flex-direction: column; gap: 15px; } nav a::after { display: none; }
    .cookie-content { flex-direction: column; text-align: center; }
}

.cookie-btns { 
    display: flex; 
    flex-direction: row; /* Fuerza la disposición en fila */
    gap: 12px; 
    white-space: nowrap; 
    flex-shrink: 0; 
}

/* Ajuste para móviles */
@media(max-width: 900px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 20px; }
    .cookie-btns { justify-content: center; } /* Mantiene los botones alineados al centro en fila */
}