/* ==========================================================================
   Importación de Fuentes e Íconos (De fonts.css)
   ========================================================================== */
@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?ku4n2s');
  src:  url('fonts/icomoon.eot?ku4n2s#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?ku4n2s') format('truetype'),
    url('fonts/icomoon.woff?ku4n2s') format('woff'),
    url('fonts/icomoon.svg?ku4n2s#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-cien:before {
  content: "\e906";
}
.icon-cris:before {
  content: "\e907";
}
.icon-hum:before {
  content: "\e908";
}
.icon-activ:before {
  content: "\e900";
}
.icon-close:before {
  content: "\e901";
}
.icon-icon:before {
  content: "\e902";
}
.icon-innova:before {
  content: "\e903";
}
.icon-knowledge:before {
  content: "\e904";
}
.icon-rincon:before {
  content: "\e905";
}
.icon-home:before {
  content: "\e909";
}
.icon-home2:before {
  content: "\e90a";
}
.icon-pencil2:before {
  content: "\e913";
}
.icon-quill:before {
  content: "\e914";
}
.icon-camera:before {
  content: "\e90f";
}
.icon-headphones:before {
  content: "\e910";
}
.icon-play:before {
  content: "\e915";
}
.icon-connection:before {
  content: "\e91b";
}
.icon-mic:before {
  content: "\e91e";
}
.icon-books:before {
  content: "\e920";
}
.icon-library:before {
  content: "\e921";
}
.icon-lifebuoy:before {
  content: "\e941";
}
.icon-phone:before {
  content: "\e942";
}
.icon-location:before {
  content: "\e947";
}
.icon-location2:before {
  content: "\e948";
}
.icon-alarm:before {
  content: "\e950";
}
.icon-drive:before {
  content: "\e963";
}
.icon-database:before {
  content: "\e964";
}
.icon-user:before {
  content: "\e971";
}
.icon-spinner3:before {
  content: "\e97c";
}
.icon-key:before {
  content: "\e98d";
}
.icon-sphere:before {
  content: "\e9c9";
}
.icon-earth:before {
  content: "\e9ca";
}
.icon-eye:before {
  content: "\e9ce";
}
.icon-volume-high:before {
  content: "\ea26";
}
.icon-facebook:before {
  content: "\ea90";
}
.icon-instagram:before {
  content: "\ea92";
}
.icon-whatsapp:before {
  content: "\ea93";
}
.icon-safari:before {
  content: "\eadd";
}

/* ==========================================================================
   Variables y Reset (Paleta JP2)
   ========================================================================== */
:root {
    --bg-primary: #001c71; 
    --bg-secondary: #0047ba; 
    --accent-yellow: #ffdd00; 
    --accent-red: #f5333f; 
    --gray-dark: #636569; 
    --gray-medium: #a7a8a9; 
    --gray-light: #d9d8d6; 
    --text-white: #ffffff;
    --text-dark: #001c71; 
    --whatsapp-green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--text-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==========================================================================
   Header Mobile (Sticky, Max 80px)
   ========================================================================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px; 
    z-index: 400; 
}
.capsule-box { display: none; }
.nav-text { display: inline-block; white-space: nowrap; }

.main-header {
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 501; 
    height: 80px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo { max-height: 55px; width: auto; }

.menu-toggle {
    background-color: var(--bg-secondary);
    border: none;
    width: 45px; height: 45px; 
    border-radius: 8px; 
    cursor: pointer;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger-box {
    position: absolute; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
}
.hamburger {
    z-index: 1000;
    width: 26px; height: 3px; background-color: var(--text-white);
    border-radius: 2px; position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger:nth-child(1) { transform: translateY(-8px); }
.hamburger:nth-child(2) { transform: translateY(0); }
.hamburger:nth-child(3) { transform: translateY(8px); }

.menu-toggle.is-active .hamburger:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle.is-active .hamburger:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ==========================================================================
   Menú Fullscreen (Mobile Base)
   ========================================================================== */
.fullscreen-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(0, 28, 113, 0.95); 
    display: flex; flex-direction: column; align-items: center;
    padding-top: 80px; 
    opacity: 0; visibility: hidden; transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fullscreen-menu.active {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}

.menu-content { width: 100%; }

.nav-links { list-style: none; width: 100%; }
.nav-links li { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.nav-links li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

/* CAMBIO MÓVIL: Padding absoluto, ancho total y alineación forzada para móvil */
.nav-links a {
    display: flex; align-items: center; padding: 20px 30px;
    color: var(--text-white); text-decoration: none; font-size: 22px; gap: 20px;
    transition: all 0.3s ease; width: 100%; justify-content: flex-start;
}
.nav-links a:hover, .nav-links a.active-link {
    color: var(--accent-yellow); background-color: rgba(99, 101, 105, 0.4); padding-left: 45px; 
}
.nav-links a span[class^="icon-"] { font-size: 28px; transition: color 0.3s ease; }

/* ==========================================================================
   Secciones Principales (Hero, Eslogan, Intro)
   ========================================================================== */
.hero-video video {
    width: 100%; height: 300px; object-fit: cover; display: block;
}

.tagline {
    background-color: var(--bg-secondary); color: var(--text-white);
    text-align: center; padding: 35px 20px;
}
.tagline h1 { font-size: 26px; font-weight: 300; line-height: 1.4; }

.intro { padding: 40px 20px; text-align: center; }
.intro p { font-size: 22px; font-weight: 300; line-height: 1.4; color: var(--bg-secondary); }

/* ==========================================================================
   Tarjetas de Valores
   ========================================================================== */
.values {
    padding: 0 20px 50px; display: flex; flex-direction: column; gap: 35px; align-items: center;
}
.card-link {
    display: block;
    width: 100%;
    text-decoration: none; /* Evita que el texto herede subrayados del enlace */
    border-radius: 15px; /* Ajusta este valor al radio de borde que tenías originalmente */
    overflow: hidden; /* Vital para que el zoom no se salga de los bordes redondeados */
}

.card {
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantiene el cuadrado perfecto */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* CAMBIO CLAVE: Empuja la etiqueta hacia el borde inferior */
    align-items: center;
    
    /* Transición suave para los efectos hover */
    transition: transform 0.3s ease, filter 0.3s ease; 
    overflow: hidden; /* Asegura que ningún elemento sobresalga de los bordes redondeados */
}
/* 3. Efectos Hover solicitados (Zoom mínimo y oscurecimiento) */
.card-link:hover .card {
    transform: scale(1.03); /* Zoom mínimo y sutil hacia adelante */
    filter: brightness(0.85); /* Oscurece ligeramente la tarjeta completa */
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el cuadrado sin achatarse */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Envía la imagen al fondo */
}
.card-label { position: relative; z-index: 2; width: 100%; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 22px; font-weight: 500; }
.card-blue .card-label { background-color: var(--bg-secondary); color: var(--text-white); }
.card-yellow .card-label { background-color: var(--accent-yellow); color: var(--bg-primary); }

/* ==========================================================================
   Footer Base (Mobile)
   ========================================================================== */
.main-footer {
    background-color: var(--bg-primary); color: var(--text-white);
    padding: 50px 20px 20px;
}

.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }

.footer-fachada { display: none; }

.footer-logo { width: 160px; margin-bottom: 30px; }

.footer-links { list-style: none; width: 100%; max-width: 250px; margin-bottom: 40px; text-align: left; }
/* CAMBIO MÓVIL: Alineación regresada a la izquierda (flex-start) */
.footer-links li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: center; justify-content: flex-start;}
.footer-links li::before { content: ""; display: inline-block; width: 6px; height: 6px; background-color: var(--accent-yellow); margin-right: 12px; }

.footer-links a {
    color: var(--text-white); text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-yellow);
    transform: translateX(8px);
}

.map-container { width: 200px; height: 200px; border-radius: 5%; overflow: hidden; margin-bottom: 25px; border: 4px solid var(--accent-yellow); }
.map-container iframe { width: 100%; height: 100%; }
.address { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 14px;}
.pin-icon { color: var(--accent-red); font-size: 32px; }

.copyright {
    font-size: 11px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px; width: 100%; color: var(--gray-medium); display: flex; flex-direction: column; gap: 5px;
}

/* ==========================================================================
   Botón WhatsApp
   ========================================================================== */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-green);
    color: var(--text-white);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1005;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.btn-whatsapp:hover { transform: scale(1.1); }

/* ==========================================================================
   BREAKPOINT DESKTOP (Min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    
    .main-header {
        position: fixed; top: 0; left: 0; width: 100%; height: 150px; max-height: 150px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
        box-shadow: none; align-items: flex-start; padding: 40px 50px; z-index: 1001;
    }
    .hamburger-box { display: none; }
    .menu-toggle { background-color: transparent; width: 50px; height: 50px; }
    .capsule-box { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; position: relative; }
    .btn-insignia, .btn-close { position: absolute; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; }
    .btn-close { font-size: 32px; color: var(--text-white); transform: rotate(-90deg) scale(0.5); opacity: 0; }
    .btn-insignia { width: 100%; object-fit: contain; transform: rotate(0) scale(1); opacity: 1; }
    .menu-toggle.is-active .btn-insignia { transform: rotate(90deg) scale(0.5); opacity: 0; }
    .menu-toggle.is-active .btn-close { transform: rotate(0) scale(1); opacity: 1; }

    .fullscreen-menu {
        position: fixed; background-color: rgba(99, 101, 105, 0.6); backdrop-filter: blur(5px); 
        border-radius: 40px; width: auto; height: auto; top: 50%; left: 45px;
        transform: translateY(-50%); padding: 20px 0; z-index: 1000; 
    }
    .fullscreen-menu.active { transform: translateY(-50%); }
    .nav-links li, .nav-links li:last-child { border: none; } 
    
    /* CAMBIO ESCRITORIO: Reset estricto para evitar heredar paddings móviles desalineados */
    .nav-links a { padding: 15px 25px; display: flex; align-items: center; position: relative; width: auto; justify-content: center; }
    .nav-links a:hover, .nav-links a.active-link, .nav-links a.touch-active { background-color: transparent; padding: 15px 25px; }
    
    .nav-links a span[class^="icon-"] { transition: transform 0.3s ease, color 0.3s ease; }
    .nav-links a:hover span[class^="icon-"] { transform: scale(1.15); color: var(--accent-yellow); }

    .nav-text {
        position: absolute; top: 50%; left: 100%; margin-left: 15px;
        background-color: var(--bg-secondary); color: var(--text-white);
        padding: 5px 12px; border-radius: 6px; font-size: 13px; 
        white-space: nowrap; pointer-events: none;
        opacity: 0; transform: translateY(-50%) translateX(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .nav-text::before {
        content: ""; position: absolute; top: 50%; right: 100%; transform: translateY(-50%);
        border-width: 5px; border-style: solid; border-color: transparent var(--bg-secondary) transparent transparent;
    }
    .nav-links a:hover .nav-text { font-size: 21px; opacity: 1; transform: translateY(-50%) translateX(0); color: var(--accent-yellow); }

    .hero-video video { height: 90vh; }

    .tagline {
        position: relative; z-index: 10; margin-top: -45px; border-radius: 50px; 
        width: 70%; max-width: 1000px; margin-left: auto; margin-right: auto;
        padding: 25px 40px; box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .tagline h1 { font-size: 34px; }
    .hide-desktop { display: none; } 

    .intro { padding: 80px 20px 60px; max-width: 800px; margin: 0 auto; }
    .intro p { font-size: 26px; }

    .values { flex-direction: row; justify-content: center; gap: 40px; padding-bottom: 80px; max-width: 1200px; margin: 0 auto; }

    .main-footer { padding: 60px 50px 30px; }
    
    .footer-grid { 
        flex-direction: row; justify-content: space-between; align-items: flex-start;
        max-width: 1200px; width: 100%; margin: 0 auto; text-align: left;
    }

    .footer-fachada { display: block; width: 280px; height: 280px; object-fit: cover; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
    
    .footer-nav { margin: 0 20px; }
    .footer-logo { width: 220px; margin-bottom: 25px; }
    .footer-links li { justify-content: flex-start; font-size: 16px; margin-bottom: 15px; }
    
    .footer-location { display: flex; flex-direction: column; align-items: center; }
    .map-container { width: 220px; height: 220px; margin-bottom: 20px; }
    .address { flex-direction: row; text-align: left; font-size: 15px; }

    .copyright {
        flex-direction: row; justify-content: space-between;
        max-width: 1200px; margin: 40px auto 0; font-size: 13px;
    }
}

/* ==========================================================================
NUEVOS ESTILOS PARA LA FECHA DEL HEADER 
========================================================================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fecha-header {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.95;
    letter-spacing: 0.4px;
    margin-left: 5px;
}

@media (min-width: 1024px) {
    .header-left {
        gap: 18px;
    }
    .fecha-header {
        font-size: 18px;
        font-weight: 600;
        margin-left: 10px;
    }
}