/* ================= PALETA Y VARIABLES ORIGINALES ================= */
:root {
    --azul-petroleo: #11252D;
    --verde-salvia: #7BA393;
    --oro-suave: #C79A42; 
    --oro-brillante: #D4AF60;
    --blanco: #FFFFFF;
    --gris-claro: #F9FAFB;
    --gris-texto: #4B5563;
    --font-family: 'Montserrat', sans-serif;
    --sombra-suave: 0 10px 40px -10px rgba(17, 37, 45, 0.08);
    --sombra-hover: 0 20px 40px -10px rgba(199, 154, 66, 0.2);
}

/* ================= ESTILOS GLOBALES ================= */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* Efecto magnético sutil al hacer scroll para encajar las secciones */
    scroll-snap-type: y proximity; 
}
body {
    max-width: 100vw; 
    overflow-x: hidden; 
    font-family: var(--font-family); 
    margin: 0; 
    padding: 0; 
    padding-top: 115px; /* Compensa la altura del header fijo */
    background-color: var(--blanco); 
    color: var(--azul-petroleo);
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased; 
}
h1, h2, h3, h4 { font-weight: 600; margin-bottom: 1.2rem; color: var(--azul-petroleo); letter-spacing: -0.02em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.bg-light { background-color: var(--gris-claro); }
.bg-white { background-color: var(--blanco); }

/* ================= SECCIONES (FULL-SCREEN LAYOUT) ================= */
section {
    scroll-snap-align: start; /* El navegador se detiene justo al principio de cada sección */
    scroll-margin-top: 115px; /* Respeta el espacio del header fijo al hacer el "snap" */
}

.hero { 
    /* Ocupa el 100% de la pantalla restando exactamente lo que mide el menú superior */
    min-height: calc(100vh - 115px); 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical perfecto */
    padding: 2rem 0; 
    text-align: center; 
    background: radial-gradient(circle at top, #ffffff 0%, var(--gris-claro) 100%); 
}

.hero h1 { 
    font-size: 2.7rem; /* Reducido ligeramente para ganar elegancia y control */
    max-width: 850px;  /* Acotamos el ancho para forzar de forma natural las 2 líneas */
    margin: 0 auto 1.5rem auto; 
    line-height: 1.2; 
    font-weight: 700; 
    text-wrap: balance; /* Distribuye el texto equitativamente entre las líneas */
}
.hero h1 span.gold-text { color: var(--oro-suave); } 
.hero h2 { font-size: 1.2rem; max-width: 750px; margin: 0 auto 2.5rem auto; color: var(--gris-texto); font-weight: 400; line-height: 1.6; }

.section-padding { 
    min-height: calc(100vh - 115px); /* Cada sección de contenido ocupa también 1 pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra la cuadrícula de tarjetas en el medio de la pantalla */
    padding: 4rem 0; 
}

.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.pilar-card {
    background-color: var(--blanco); 
    /* Aumentamos el padding superior a 3.5rem para separarlo de la barra */
    padding: 3.5rem 2rem 2.5rem 2rem; 
    border-radius: 12px; 
    cursor: pointer;
    box-shadow: var(--sombra-suave); 
    transition: all 0.4s ease; 
    position: relative; 
    overflow: hidden;
    border: 1px solid rgba(199,154,66,0.15); 
    text-align: left; 
    text-decoration: none; 
    display: block;
}
.pilar-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--oro-suave), var(--oro-brillante));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.pilar-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-hover); border-color: var(--oro-suave); }
.pilar-card:hover::before { transform: scaleX(1); }
.pilar-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--azul-petroleo); display: flex; align-items: center; gap: 10px; }
.pilar-card p { color: var(--gris-texto); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.tag-industria { display: inline-block; background: var(--blanco); padding: 0.7rem 1.5rem; border-radius: 30px; border: 1px solid rgba(199,154,66,0.2); color: var(--azul-petroleo); font-weight: 500; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s; }
.tag-industria:hover { border-color: var(--oro-suave); transform: translateY(-2px); background-color: var(--oro-suave); color: var(--blanco); }

/* ================= BOTONES ================= */
.btn {
    font-family: var(--font-family); display: inline-block; 
    background: linear-gradient(135deg, var(--azul-petroleo) 0%, #1a3642 100%);
    color: var(--blanco); padding: 1rem 2rem; text-decoration: none; font-weight: 600;
    border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: all 0.4s ease;
    font-size: 0.95rem; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(17, 37, 45, 0.15); text-align: center;
}
.btn:hover { background: var(--azul-petroleo); border-color: var(--oro-suave); box-shadow: 0 8px 25px rgba(199, 154, 66, 0.2); transform: translateY(-2px); color: var(--blanco);}
.btn-gold { background: linear-gradient(135deg, var(--oro-suave) 0%, var(--oro-brillante) 100%); color: var(--azul-petroleo); box-shadow: 0 4px 15px rgba(199, 154, 66, 0.2); }
.btn-gold:hover { background: var(--blanco); color: var(--oro-suave); border-color: var(--oro-suave); }

/* ================= HEADER & NAVEGACIÓN ================= */
header {
    background-color: var(--blanco); 
    position: fixed; 
    top: 0; 
    left: 0;
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.04); 
    border-bottom: 1px solid rgba(199, 154, 66, 0.2); 
    width: 100%;
}
.header-container { padding: 0.3rem 1.5rem; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-img { height: 100px; width: auto; display: block; max-width: 100%; object-fit: contain; cursor: pointer; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.02); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.dropdown { position: relative; display: inline-block; padding-bottom: 20px; margin-bottom: -20px; }
.hamburger-btn { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 10px; transition: all 0.3s ease; }
.hamburger-btn span { display: block; width: 28px; height: 2px; background-color: var(--azul-petroleo); border-radius: 2px; transition: all 0.3s ease; }
.dropdown:hover .hamburger-btn span { background-color: var(--oro-suave); }
.dropdown:hover .hamburger-btn span:nth-child(2) { width: 20px; }
.dropdown-content {
    display: none; position: absolute; background-color: var(--blanco); min-width: 250px;
    box-shadow: var(--sombra-suave); z-index: 10; border-radius: 8px; top: 100%; right: 0;
    overflow: hidden; border: 1px solid rgba(199, 154, 66, 0.2); margin-top: 0;
}
.dropdown-content::before { content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; background: transparent; }
.dropdown-content a { color: var(--azul-petroleo); padding: 15px 25px; text-decoration: none; display: block; font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease; border-left: 3px solid transparent; }
.dropdown-content a:hover { background-color: var(--gris-claro); color: var(--oro-suave); border-left-color: var(--oro-suave); padding-left: 30px; }
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* ================= FORMULARIO Y TABLAS GLOBALES ================= */
.formulario-box {
    background-color: var(--blanco); max-width: 800px; margin: 0 auto; padding: 3.5rem;
    border-radius: 12px; box-shadow: var(--sombra-hover); position: relative;
    border: 1px solid rgba(199, 154, 66, 0.15); transition: all 0.5s ease;
}
.formulario-box::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px;
    height: 5px; background: linear-gradient(90deg, var(--oro-suave), var(--oro-brillante)); border-radius: 0 0 5px 5px;
}
.form-group { margin-bottom: 1.5rem; width: 100%; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.6rem; color: var(--azul-petroleo); }
.form-group select, .form-group input, .form-group textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid #E5E7EB; border-radius: 6px; font-size: 1rem; font-family: var(--font-family); box-sizing: border-box; transition: all 0.3s ease; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--oro-suave); box-shadow: 0 0 0 4px rgba(199, 154, 66, 0.1); }
.form-row { display: flex; gap: 1.5rem; width: 100%; }
.form-row .form-group { flex: 1; }
.checkbox-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.checkbox-group label { display: flex; align-items: center; font-weight: 400; color: var(--gris-texto); font-size: 0.95rem; margin:0;}
.checkbox-group input[type="checkbox"] { width: auto; margin-right: 10px; padding: 0; cursor: pointer; }

/* ================= FLUJOS VISUALES (Diagramas tipo flowchart) ================= */
.flow-diagram { margin: 3rem auto; display: flex; flex-direction: column; align-items: center; gap: 15px; font-size: 1.1rem; }
.flow-box { border: 2px solid var(--azul-petroleo); padding: 1rem 2rem; border-radius: 6px; background: var(--blanco); font-weight: 600; color: var(--azul-petroleo); min-width: 200px; text-align: center; letter-spacing: 1px;}
.flow-arrow { color: var(--oro-suave); font-size: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* ================= FOOTER ================= */
footer { background: linear-gradient(180deg, var(--azul-petroleo) 0%, #0a161b 100%); color: var(--blanco); padding: 5rem 0 2.5rem; border-top: 4px solid var(--oro-suave); scroll-snap-align: end; }
.footer-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { color: var(--oro-suave); font-size: 1.15rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid rgba(199,154,66,0.3); padding-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.9rem; display: flex; align-items: flex-start; }
.footer-col li::before { content: '✦'; color: rgba(199, 154, 66, 0.4); margin-right: 10px; font-size: 0.8rem; margin-top: 4px; transition: color 0.3s ease; }
.footer-col li:hover::before { color: var(--oro-suave); }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease; }
.footer-col a:hover { color: var(--blanco); transform: translateX(5px); color: var(--oro-brillante); }
.footer-bottom { border-top: 1px solid rgba(199,154,66,0.2); padding-top: 2.5rem; text-align: center; }
.footer-bottom-links { font-size: 0.8rem; letter-spacing: 3px; color: rgba(255,255,255,0.8); text-transform: uppercase; margin-top: 1.5rem; line-height: 2;}
.footer-bottom-links span { color: var(--oro-suave); margin: 0 12px; }
.legal-footer-links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.legal-footer-links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-decoration: none; transition: color 0.3s; }
.legal-footer-links a:hover { color: var(--oro-suave); }

/* ================= MEDIA QUERIES (Responsividad) ================= */
@media (max-width: 992px) { 
    .hero h1 { font-size: 2.6rem; } 
    .pilares { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } 
}
@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; min-height: auto; } /* En móvil flexibilizamos la altura */
    .hero { min-height: calc(100vh - 90px); padding: 2rem 0; } 
    .hero h1 { font-size: 2.2rem; line-height: 1.25; } 
    .hero h2 { font-size: 1.05rem; margin-bottom: 2rem; }
    header { padding: 0; } .header-container { padding: 0.5rem 1.5rem; } .logo-img { height: 75px; } 
    .formulario-box { padding: 2.5rem 1.5rem; } .form-row { flex-direction: column; gap: 0; }
    .footer-links-grid { grid-template-columns: 1fr; gap: 2.5rem; } footer { padding: 4rem 0 2rem; } .dropdown-content { right: -20px; } 
    body { padding-top: 90px; } 
}
@media (max-width: 480px) {
    .header-container { flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; } .logo-img { height: 60px; } .header-actions { width: 100%; justify-content: center; gap: 1.5rem; }
    .hero h1 { font-size: 1.9rem; } .pilar-card { padding: 2rem 1.5rem; } .tag-industria { font-size: 0.85rem; padding: 0.6rem 1.2rem; margin-bottom: 0.5rem; }
    .formulario-box { padding: 2rem 1rem; } .btn { width: 100%; text-align: center; } .footer-bottom-links span { display: none; } .footer-bottom-links { display: flex; flex-direction: column; gap: 5px; }
    body { padding-top: 155px; }
    .hero { min-height: calc(100vh - 155px); }
    /* Desactivamos el "snap" agresivo en móviles muy pequeños para evitar bloqueos de lectura vertical */
    html { scroll-snap-type: none; }
}

/* ================= TARJETAS DE SERVICIOS (.card) ================= */
.card {
    background-color: var(--blanco);
    /* 2.5rem arriba/abajo y 3rem a los lados para separarlo bien de la barra */
    padding: 2.5rem 3rem; 
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
}

/* ================= FOOTER REDISEÑADO (VISIÓN HOLÍSTICA) ================= */
footer { 
    background: linear-gradient(180deg, var(--azul-petroleo) 0%, #0a161b 100%); 
    color: var(--blanco); 
    padding: 5rem 0 2rem; 
    border-top: 4px solid var(--oro-suave); 
    scroll-snap-align: end; 
}

/* Sección Visión Holística */
.footer-vision-section { margin-bottom: 3rem; }
.vision-title { 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    color: var(--blanco); 
    text-transform: uppercase; 
    margin-bottom: 3rem; 
    font-weight: 500;
}
.vision-title span { color: var(--verde-salvia); }

/* Sustituye estas clases en tu style.css */
.vision-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); /* ← Aquí forzamos las 6 columnas exactas */
    gap: 1.5rem; /* Reducimos ligeramente la separación */
}
.vision-col { 
    border-right: 1px solid rgba(255,255,255,0.1); 
    padding-right: 1.5rem; 
}
.vision-col:last-child { 
    border-right: none; 
    padding-right: 0; 
}

.vision-icon { 
    height: 50px; 
    margin-bottom: 1.5rem; 
    display: flex; 
    justify-content: center; /* Esto centra el icono horizontalmente */
}
.vision-icon svg { width: auto; height: 100%; }

.vision-col h5 { 
    font-size: 0.85rem; 
    color: var(--blanco); 
    margin-bottom: 0.5rem; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    font-weight: 400; /* Quitamos la negrita (pasa de 600 a 400) */
}

/* Añadimos el punto dorado automáticamente delante de cada título */
.vision-col h5::before {
    content: '•';
    color: var(--oro-suave);
    margin-right: 10px;
    font-weight: bold; /* Mantenemos el punto un poco más grueso para que destaque */
}
.vision-col p { 
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.7); 
    line-height: 1.6; 
    margin: 0; 
}

/* Slogan Bar */
.footer-divider { 
    border: none; 
    border-top: 1px solid rgba(255,255,255,0.15); 
    margin: 2rem 0; 
}
.footer-slogan { 
    text-align: center; 
    font-size: 0.85rem; 
    letter-spacing: 3px; 
    color: rgba(255,255,255,0.9); 
    padding: 1rem 0; 
}
.footer-slogan span { color: var(--oro-suave); margin: 0 15px; }

/* Enlaces del Footer */
.footer-links-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 3rem; 
    margin-top: 4rem; 
    margin-bottom: 2rem; 
}
.footer-col h4 { 
    color: var(--oro-suave); 
    font-size: 1rem; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { 
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: all 0.3s ease; 
}
.footer-col a:hover { color: var(--oro-brillante); padding-left: 5px; }

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.5); 
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; margin-left: 15px; }
.footer-bottom a:hover { color: var(--oro-suave); }

/* Responsive Footer */
@media (max-width: 992px) { 
    .vision-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
    .vision-col { border-right: none; padding-right: 0; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } 
    .footer-col:first-child { grid-column: span 2; }
}
@media (max-width: 768px) {
    .vision-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .vision-icon { display: flex; justify-content: center; }
    .footer-slogan { line-height: 2.5; }
    .footer-slogan span { display: none; }
    .footer-slogan br { display: block; content: ""; margin-top: 5px; }
    .footer-links-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col:first-child { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ================= PÁGINAS LEGALES (LAYOUT & TOC) ================= */
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 140px;
    background: var(--blanco);
    border: 1px solid rgba(199, 154, 66, 0.25);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--sombra-suave);
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--azul-petroleo);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(199, 154, 66, 0.2);
}

.toc a {
    display: block;
    color: var(--gris-texto);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toc a:hover {
    color: var(--oro-suave);
    padding-left: 5px;
}

/* ================= PÁGINAS LEGALES (ESTILO COMPACTO) ================= */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 135px;
    background: var(--blanco);
    border: 1px solid rgba(199, 154, 66, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--sombra-suave);
}

.toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--azul-petroleo);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(199, 154, 66, 0.15);
}

.toc a {
    display: block;
    color: var(--gris-texto);
    font-size: 0.8rem;
    padding: 0.35rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toc a:hover {
    color: var(--oro-suave);
    padding-left: 4px;
}

.legal-content {
    background: var(--blanco);
    border: 1px solid rgba(199, 154, 66, 0.12);
    border-radius: 10px;
    padding: 2.25rem 2.5rem;
    box-shadow: var(--sombra-suave);
}

.legal-content section {
    scroll-margin-top: 130px;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #edf0f2;
}

.legal-content section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-content h2 {
    font-size: 1.05rem;
    color: var(--azul-petroleo);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--gris-texto);
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

.legal-content a {
    color: var(--azul-petroleo);
    text-decoration: underline;
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--oro-suave);
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .toc {
        position: static;
    }

    .legal-content {
        padding: 1.75rem 1.25rem;
    }

    .legal-content p {
        text-align: left;
    }
}