/* ===== CONFIGURACIÓN GLOBAL Y VARIABLES ===== */
:root {
    --defense-blue: #00A8FF; /* Azul Eléctrico */
    --nexus-silver: #E0E0E0; /* Plata Brillante */
    --cypher-red: #FF1E56;   /* Rojo Intenso */
    --dark-bg: #030303;
    --dark-card: #0A0A0A;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --font-heading: 'Neue Haas Grotesk Display Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

section {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===== SECCIÓN 1: HERO ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}

/* ===== SECCIÓN 1: HERO DEFENSE ===== */
.hero-section-df {
    position: relative;
    overflow: hidden;
}

.hero-background-df {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_df_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-df {
    z-index: 2;
    max-width: 800px;
}

.hero-content-df h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-df p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}

/* ===== SECCIÓN 1: HERO DEFENSE C2 ===== */
.hero-section-c2 {
    position: relative;
    overflow: hidden;
}

.hero-background-c2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_c2_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-c2 {
    z-index: 2;
    max-width: 800px;
}

.hero-content-c2 h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-c2 p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}

/* ===== SECCIÓN 1: HERO DEFENSE CI ===== */
.hero-section-ci {
    position: relative;
    overflow: hidden;
}

.hero-background-ci {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_ci_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-ci {
    z-index: 2;
    max-width: 800px;
}

.hero-content-ci h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-ci p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}
/* ===== SECCIÓN 1: HERO DEFENSE SI ===== */
.hero-section-si {
    position: relative;
    overflow: hidden;
}

.hero-background-si {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_si_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-si {
    z-index: 2;
    max-width: 800px;
}

.hero-content-si h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-si p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}


/* ===== SECCIÓN 1: HERO AI ===== */
.hero-section-ai {
    position: relative;
    overflow: hidden;
}

.hero-background-ai {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_ai_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-ai {
    z-index: 2;
    max-width: 800px;
}

.hero-content-ai h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-ai p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}

/* ===== SECCIÓN 1: HERO LAB ===== */
.hero-section-lb {
    position: relative;
    overflow: hidden;
}

.hero-background-lb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ct_lb_bnr_0001.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    animation: zoom-in 20s ease-out infinite;
}

.hero-content-lb {
    z-index: 2;
    max-width: 800px;
}

.hero-content-lb h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content-lb p {
    font-size: 1.2rem;
    color: var(--nexus-silver);
}

/* Animaciones Hero */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--defense-blue);
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

.fade-in-slow {
    animation: fadeIn 3s ease-in-out 3.5s forwards;
    opacity: 0;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 25px;
    height: 45px;
    border: 2px solid var(--nexus-silver);
    border-radius: 20px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--nexus-silver);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

/* ===== SECCIÓN 2: MISIONES ===== */
.mission-icon img {
    width: 345px;  /* Ajusta el tamaño según necesites */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px; /* Para darle espacio antes del título */
}

.missions-section {
    background-color: #050505;
    position: relative; /* <-- AÑADE ESTO */
    overflow: hidden;   /* <-- Y ESTO */
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Detrás del overlay pero por encima del fondo base */
    object-fit: cover;
}

.video-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Capa oscura para legibilidad */
    z-index: 2; /* Entre el vídeo y el contenido */
}

.missions-section .missions-intro,
.missions-section .missions-container {
    position: relative;
    z-index: 3;
}

.missions-intro {
    max-width: 700px;
    margin-bottom: 60px;
}

.missions-intro h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.missions-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.mission-card {
    background: var(--dark-card);
    border: 1px solid #1A1A1A;
    border-radius: 15px;
    padding: 40px 30px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-15px);
}

.mission-card.defense:hover { box-shadow: 0 0 30px var(--defense-blue); }
.mission-card.ai:hover { box-shadow: 0 0 30px var(--nexus-silver); }
.mission-card.cypher:hover { box-shadow: 0 0 30px var(--cypher-red); }


.mission-card h3 {
    font-size: 1.8rem;
    margin: 20px 0;
}
.mission-card .mission-description {
    min-height: 150px;
}

.mission-button {
    margin-top: 15px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mission-card.defense .mission-button { border: 2px solid var(--defense-blue); color: var(--defense-blue); }
.mission-card.ai .mission-button { border: 2px solid var(--nexus-silver); color: var(--nexus-silver); }
.mission-card.cypher .mission-button { border: 2px solid var(--cypher-red); color: var(--cypher-red); }

.mission-card.defense:hover .mission-button { background-color: var(--defense-blue); color: var(--dark-bg); }
.mission-card.ai:hover .mission-button { background-color: var(--nexus-silver); color: var(--dark-bg); }
.mission-card.cypher:hover .mission-button { background-color: var(--cypher-red); color: var(--dark-bg); }

/*============ ABUELITA BOX =======================*/
.abuela-box {
    position: relative; /* Necesario para posicionar el icono */
    background: #1b263b; /* Fondo oscuro de las tarjetas */
    max-width: 70vw;
    border: 1px solid #778da9;
    border-radius: 15px;
    padding: 25px;
    padding-left: 40px; /* Más espacio a la izquierda para el texto */
    margin: 40px auto; /* Espacio arriba y abajo */
}

.abuela-icon {
    position: absolute;
    top: -20px; /* Lo saca un poco por arriba */
    left: -20px; /* Lo saca un poco por la izquierda */
    width: 60px;
    height: 60px;
    background-color: #1b263b;
    border-radius: 50%; /* Lo hace redondo */
    border: 3px solid #778da9; /* Borde del color del fondo para separarlo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.abuela-text h4 {
    font-family: var(--font-heading);
    color: var(--defense-blue); /* Usamos el azul de Defense como acento, puedes cambiarlo */
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.abuela-text p {
    font-family: var(--font-body);
    color: #778da9;
    font-style: italic; /* El texto en cursiva le da un toque personal */
    margin-bottom: 0;
}

/* ===== SECCIÓN 3: FILOSOFÍA ===== */
.philosophy-section {
    padding: 0; /* Eliminamos el padding para que el contenedor hijo ocupe todo */
    overflow: hidden; /* Previene cualquier desbordamiento */
}

/* El nuevo contenedor con la imagen de fondo */
.philosophy-container {
    height: 100vh; /* Ocupa el 100% de la altura de la pantalla visible */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- LA MAGIA DEL FONDO --- */
    /* REEMPLAZA LA URL con la de la imagen de la doble hélice que te he pasado */
    background-image: url('./img/ct_bnr_0002.png');
    background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* ¡Este es el truco para el efecto parallax al hacer scroll! */
}

/* El contenido que va por encima, ahora con efecto "cristal" */
.philosophy-section .philosophy-content {
    max-width: 800px;
    padding: 60px;
    border-radius: 20px;
    text-align: center;

    /* --- EFECTO CRISTAL (GLASSMORPHISM) --- */
    background: rgba(10, 10, 10, 0.35); /* Fondo negro semi-transparente */
    backdrop-filter: blur(12px); /* El desenfoque del fondo que crea el efecto */
    -webkit-backdrop-filter: blur(12px); /* Para compatibilidad con Safari */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Un borde sutil para definir el cristal */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Sombra para darle profundidad */
}

/* Aseguramos que el degradado del título se vea bien sobre el nuevo fondo */
.philosophy-section .philosophy-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--defense-blue), var(--nexus-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.philosophy-section .philosophy-content p {
    text-align: justify;
}

/* ===== SECCIÓN 4: NOTICIAS ===== */
.news-section {
    background: #050505;
}
.news-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.news-item {
    background: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: scale(1.03);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-content {
    padding: 25px;
}
.news-content h4 {
    color: var(--defense-blue);
    margin-bottom: 10px;
}
.news-content a {
    font-weight: bold;
    color: var(--nexus-silver);
}

/* ===== SECCIÓN 5: CARRERAS ===== */
.careers-content {
    max-width: 700px;
}
.careers-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    border-radius: 50px;
    background: var(--defense-blue);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
}

/* ===== SECCIÓN 6: CREDENCIALES Y COMPROMISO ===== */

.credentials-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- LA MAGIA DEL FONDO --- */
    background-image: url('./img/ct_bnr_0002.png');
    background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* ¡Este es el truco para el efecto parallax al hacer scroll! */
}

.credentials-content{
      max-width: 95vw;
      padding: 60px;
      border-radius: 20px;
      text-align: center;

      /* --- EFECTO CRISTAL (GLASSMORPHISM) --- */
      background: rgba(10, 10, 10, 0.35); /* Fondo negro semi-transparente */
      backdrop-filter: blur(12px); /* El desenfoque del fondo que crea el efecto */
      -webkit-backdrop-filter: blur(12px); /* Para compatibilidad con Safari */
      border: 1px solid rgba(255, 255, 255, 0.1); /* Un borde sutil para definir el cristal */
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Sombra para darle profundidad */
  }
}

.credentials-section {
    background-color: var(--dark-bg);
    min-height: auto; /* Esta sección no necesita ocupar toda la pantalla */
    padding-top: 80px;
    padding-bottom: 120px;
}

.credentials-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.credentials-section p {
    text-align: justify;
    margin-bottom: 20px;
    font-size: 18px;
}

.credentials-intro {
    max-width: 550px;
    margin-bottom: 70px;
    position: relative;
    left: 12.5vw;
}

.credentials-grid {
    display: flex;
    flex-wrap: wrap; /* Para que se adapte en móviles */
    justify-content: center;
    align-items: flex-start; /* Alinea los items por la parte superior */
    gap: 65px; /* Espacio entre medallas */
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px; /* Ancho fijo para cada medalla */
}

.credential-image {
    height: 65px; /* Altura fija para la imagen de "Made in Europe" */
    margin-top: 18px;
    margin-bottom: 20px;
}

/* Estilo para los logos de placeholder que puedes reemplazar después */
.credential-placeholder-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #daa520;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.credential-item p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

/* =================================================================
   ESTILOS PARA PÁGINAS LEGALES (AVISO LEGAL, PRIVACIDAD, ETC.)
   ================================================================= */

/* --- Contenedor Principal --- */
/* Define el área principal donde se mostrará el contenido legal.
   Se centra en la página y tiene un ancho máximo para facilitar la lectura en pantallas grandes. */

.legal-content-container {
    width: 100%;
    max-width: 900px; /* Ancho ideal para textos largos */
    margin: 0 auto; /* Centra el contenedor en la página */
    padding: 80px 40px; /* Espaciado interno (arriba/abajo, izquierda/derecha) */
    box-sizing: border-box;
}

/* --- Estilos de Texto --- */
/* Configuración general para la tipografía dentro del contenedor legal. */

.legal-text {
    color: #cccccc; /* Un gris claro para el texto, más suave a la vista que el blanco puro */
    font-family: 'Inter', sans-serif; /* Fuente limpia y moderna */
    line-height: 1.7; /* Altura de línea para una mejor legibilidad */
}

/* --- Títulos y Encabezados --- */
/* Jerarquía visual clara para los diferentes niveles de títulos. */

.legal-text h1 {
    font-size: 2.5rem; /* Tamaño grande para el título principal */
    color: #ffffff; /* Blanco puro para destacar */
    border-bottom: 1px solid #00aaff; /* Un subrayado de acento en el color cian tecnológico */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
}

.legal-text h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 60px; /* Espacio amplio para separar las secciones principales */
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-text h3 {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* --- Párrafos y Énfasis --- */
/* Estilos para el cuerpo del texto para asegurar que sea fácil de leer. */

.legal-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.legal-text strong {
    color: #00aaff; /* El texto en negrita usa el color de acento para resaltar los puntos clave */
    font-weight: 600;
}

/* --- Listas --- */
/* Las listas se personalizan para mantener una estética limpia y moderna. */

.legal-text ul {
    list-style: none; /* Quitamos los puntos por defecto */
    padding-left: 20px; /* Espaciado a la izquierda */
    margin-bottom: 20px;
}

.legal-text li {
    padding-left: 25px; /* Espacio para el nuevo "bullet" */
    position: relative;
    margin-bottom: 15px;
}

.legal-text li::before {
    content: '»'; /* Usamos un carácter especial como viñeta */
    position: absolute;
    left: 0;
    top: 0;
    color: #00aaff; /* La viñeta tiene el color de acento */
    font-weight: bold;
}

/* --- Línea Horizontal --- */
/* La línea que separa la política de privacidad se estiliza para ser sutil. */

.legal-text hr {
    border: 0;
    height: 1px;
    background-color: #333333; /* Un gris oscuro, apenas visible */
    margin: 80px 0;
}

/* --- Enlaces (Hipervínculos) --- */
/* Estilo para los enlaces, asegurando que sean reconocibles. */

.legal-text a {
    color: #00ffff; /* Un cian más brillante para los enlaces */
    text-decoration: none;
    border-bottom: 1px dotted #00ffff;
    transition: color 0.3s, border-bottom 0.3s;
}

.legal-text a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* --- Media Queries para Responsividad --- */
/* Ajustes para que el texto se vea bien en dispositivos móviles. */
@media (max-width: 768px) {
    .legal-content-container {
        padding: 40px 20px; /* Menos espaciado en móviles */
    }

    .legal-text h1 {
        font-size: 2rem;
    }

    .legal-text h2 {
        font-size: 1.5rem;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: #000;
    padding: 60px 10%;
    border-top: 1px solid #1A1A1A;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-links h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--nexus-silver);
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li a {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: inline-block;
}
.footer-links ul li a:hover {
    color: var(--defense-blue);
}

/* ===== KEYFRAMES PARA ANIMACIONES ===== */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--defense-blue); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes zoom-in {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes scroll-anim {
  0% { opacity: 1; top: 10px; }
  100% { opacity: 0; top: 25px; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 80px 5%; }
    .missions-container { flex-direction: column; align-items: center; }
}
