/* ==========================================================================
   CSS; Área Dron 
   David Alonso | Proyecto Oficial 2026
   ========================================================================== */
/*
==========================================================================
   ÍNDICE GENERAL — ÁREA DRONES 2026
==========================================================================
   0. SISTEMA BASE
      0.1 Variables ROOT
      0.2 Modo Oscuro
      0.3 Reset Global
      0.4 Navbar + Submenús (Solución Dead Space)
      0.5 Secciones y Títulos (Solución Scroll)
      0.6 Hero Background
   1. INICIO
      1.1 Equipo (Slider + Tarjetas)
      1.2 Flota (Galerías + Descargas 100% integradas)
   2. SERVICIOS
      2.1 Test AESA (Simulador)
      2.2 Glosario Técnico
      2.3 Calculadora / Formularios / Planificador
   3. NORMATIVA
      3.1 Scroll Técnico
      3.2 Sticky Header
      3.3 Tablas AESA/EASA
	4. CONTACTO
	   4.1 Formulario de Contacto (Inputs + Validación + Checkbox 3D)
	   4.2 Partners / Colaboradores (Marquesinas Verticales)
   5. BOTONES GLOBALES
   6. FOOTER CORPORATIVO
   7. RESPONSIVE
      7.1 Tablet (≤ 992px)
      7.2 Mobile (≤ 768px)
==========================================================================
*/

/* ==========================================================================
   0. SISTEMA BASE;   VARIABLES DE ENTORNO (:ROOT) - IDENTIDAD ÁREA DRON
   ========================================================================== */

/* --- 0.1 Variables ROOT --- */
:root {
	    /* ============================================================
       1. PALETA CORPORATIVA
       ============================================================ */
    --color-brand-primary: #1e1b1a;      /* Carbón profundo */
    --color-brand-secondary: #ff5500;    /* Naranja aeronáutico */
    --color-brand-accent: #ff003c;       /* Rojo corporativo */
    --color-brand-danger: #dc2626;       /* Alertas */
    --color-brand-success: #16a34a;      /* Validaciones */

    /* Colores generales */
    --color-fondo: #fdfbf7;
    --color-caja: #ffffff;
    --color-texto: #1a202c;
    --color-texto-secundario: #64748b;
    --color-blanco: #ffffff;

    /* Texto */
    --txt-headers: #1e1b1a;
    --txt-light: #ffffff;
    --txt-dark: #1a1a1a;                 /* NUEVO: útil para modo claro */
    --txt-muted: #94a3b8;                /* NUEVO: textos secundarios suaves */

    /* Degradado corporativo */
    --gradient-rainbow: linear-gradient(90deg, #1e1b1a, #ff5500, #ff8800, #ff5500, #1e1b1a);


    /* ============================================================
       2. TIPOGRAFÍA
       ============================================================ */
    --fuente-titulos: 'Bebas Neue', sans-serif;
    --fuente-cuerpo: 'Barlow', sans-serif;
    --fuente-mono: 'Consolas', 'Courier New', monospace;

    /* Tamaños fluidos */
    --tamano-texto: clamp(16px, 1.2vw + 10px, 18px);
    --tamano-h1: clamp(2.5rem, 5vw, 4.5rem);
    --tamano-h2: clamp(2rem, 4vw, 3.5rem);
    --tamano-h3: clamp(1.5rem, 3vw, 2.5rem);


    /* ============================================================
       3. ESPACIADOS Y GEOMETRÍA
       ============================================================ */
    --alto-navbar: 80px;
    --ancho-contenedor: 1200px;
    --max-width-seccion: 1200px;
    --max-width-formulario: 550px;

    --padding-seccion-v: 80px;
    --padding-seccion-h: 5%;

    --radio-pill: 50px;
    --radio-card: 20px;
    --radio-input: 8px;

    --border-width-thin: 1px;
    --border-width-bold: 3px;
    --border-color-default: #cbd5e1;     /* NUEVO: borde estándar */


    /* ============================================================
       4. SOMBRAS Y EFECTOS
       ============================================================ */
    --shadow-input-focus: 0 0 0 4px rgba(255, 85, 0, 0.1);
    --glow-active: rgba(255, 85, 0, 0.15);

    --shadow-neon: 0 0 20px rgba(255, 85, 0, 0.4);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 12px rgba(0,0,0,0.12);   /* NUEVO */


    /* ============================================================
       5. ANIMACIONES
       ============================================================ */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);


    /* ============================================================
       6. CAPAS (Z-INDEX)
       ============================================================ */
    --z-index-nav: 1000;
    --z-index-fixed: 9999;


    /* ============================================================
       7. BREAKPOINTS RESPONSIVE (NUEVO)
       ============================================================ */
    --bp-desktop: 1200px;
    --bp-tablet: 992px;
    --bp-mobile: 768px;
    --bp-small: 480px;
}
/* ==========================================================================
      FIN del ROOT
   ========================================================================== */
   
   
/* --- 0.2 Modo Oscuro --- */
   /* ==========================================================================
        MODO OSCURO (POR SCRIPT)
   ========================================================================== */
body.dark-mode {

    /* Fondos */
    --color-fondo: #0f111a;
    --color-caja: #1e2230;
    --bg-seccion-light: #151823;
    --bg-header-nav: rgba(20, 23, 34, 0.95);
    --bg-input: #252a3c;
    --bg-footer: #090b11;

    /* Texto */
    --color-texto: #cbd5e1;
    --color-texto-secundario: #94a3b8;
    --txt-headers: #f8fafc;
    --txt-light: #e2e8f0;      /* NUEVO */
    --txt-muted: #a5b4c8;      /* NUEVO */

    /* Bordes */
    --border-input: #334155;
    --border-color-default: #475569; /* NUEVO */

    /* Sombras */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.4); /* NUEVO */
}


/* --- 0.3 Reset Global --- */
/* ==========================================================================
    REGLAS DE RESETEO Y BASE GLOBAL
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; height: auto; }

body {
    padding-top: var(--alto-navbar);
    font-family: var(--fuente-cuerpo), Arial, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-size: var(--tamano-texto);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

/* Reglas generales para todos los títulos */
/* Títulos globales */
h1, h2, h3, h4 {
    font-family: var(--fuente-titulos);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--txt-headers);
    line-height: 1.1;
}

h1 { font-size: var(--tamano-h1); }
h2 { font-size: var(--tamano-h2); }
h3 { font-size: var(--tamano-h3); }
h4 { font-size: var(--tamano-h4); } 
/* ==========================================================================
      FIN DE  REGLAS DE RESETEO Y BASE GLOBAL
   ========================================================================== */
   
   
/* --- 0.4 Navbar + Submenús --- */  
 /* ==========================================================================
   NAVEGACIÓN (HEADER Y MENÚ DESPLEGABLE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alto-navbar);
    z-index: var(--z-index-nav);

    /* Fondo corporativo */
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: moverDegradado 8s ease infinite;

    backdrop-filter: blur(10px);
    padding: 0 var(--padding-seccion-h);
    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: var(--shadow-card);
}

/* Logo */
.logo-contenedor { display: flex; align-items: center; }

.logo-img {
    height: 50px;
    border-radius: var(--radio-input);
    background-color: rgba(255,255,255,0.9);
    padding: 4px;
    transition: var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
    background-color: rgba(255,255,255,1);
}

/* Menú principal */
.menu > ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

/* Ampliamos el área de colisión del <li> para que el ratón no "caiga" */
.menu li { 
    position: relative; 
    display: flex;
    align-items: center;
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}

.menu a {
    color: var(--txt-light);
    text-decoration: none;
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    padding: 1.6rem 1.2rem;
    display: block;
    transition: var(--transition-fast);
}

.menu li > a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-brand-primary);
}

/* Submenús - SOLUCIÓN AL DEAD SPACE, Z-INDEX Y ANCHO AJUSTADO */
.submenu, .submenu3nivel {
    position: absolute;
    top: 100%; 
    left: 0;
    background: var(--color-brand-primary);
    list-style: none;
    min-width: max-content; /* HACE QUE LA CAJA SE AJUSTE AL TEXTO MÁS LARGO */
    display: none; 
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2000; 
}

.submenu3nivel { 
    top: 0; 
    left: 100%; 
}

/* Mostrar submenús */
.menu li:hover > .submenu,
.submenu li:hover > .submenu3nivel {
    display: block; 
    animation: fadeInMenu 0.3s ease;
}

/* Estilos de enlaces en submenús */
.submenu a,
.submenu3nivel a {
    padding: 12px 20px !important;
    font-size: 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--txt-light);
    white-space: nowrap; /* EVITA QUE EL TEXTO SE ROMPA EN VARIAS LÍNEAS */
}



/* Botón modo oscuro + selector idioma */
.btn-nav-dark,
#idioma {
    background: rgba(255,255,255,0.1);
    color: var(--txt-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: var(--radio-input);
    cursor: pointer;
    font-family: var(--fuente-cuerpo);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-nav-dark:hover,
#idioma:hover {
    background: var(--color-brand-secondary);
    border-color: var(--color-brand-secondary);
    color: var(--color-brand-primary);
}

/* Animación del degradado */
@keyframes moverDegradado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Línea inferior animada (CORREGIDA PARA NO CORTAR EL HOVER) */
.navbar::after {
    content: "";
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    animation: moverDegradado 6s linear infinite;
    pointer-events: none; /* ESTA ES LA MAGIA: El ratón la atraviesa sin romper el hover */
    z-index: 1001;
}

/* ==========================================================================
   MODO OSCURO — NAVBAR
   ========================================================================== */
body.dark-mode .navbar {
    background: var(--color-brand-primary);
    box-shadow: var(--shadow-card);
}

body.dark-mode .menu a {
    color: var(--txt-light);
}

body.dark-mode .menu li > a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-brand-secondary);
}

body.dark-mode .submenu,
body.dark-mode .submenu3nivel {
    background: var(--color-caja);
    border-color: var(--border-color-default);
}

body.dark-mode .submenu a,
body.dark-mode .submenu3nivel a {
    color: var(--color-texto);
}

body.dark-mode .btn-nav-dark,
body.dark-mode #idioma {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: var(--txt-light);
}

body.dark-mode .btn-nav-dark:hover,
body.dark-mode #idioma:hover {
    background: var(--color-brand-secondary);
    color: var(--color-brand-primary);
}
/* ==========================================================================
       FIN DEL NAVBAR 
   ========================================================================== */

/* ==========================================================================
     ESTRUCTURA DE SECCIONES Y TÍTULOS
   ========================================================================== */
   /* --- 0.5 Secciones y Títulos --- */
.container { width: 100%; margin: 0 auto; }

.seccion {
    padding: var(--padding-seccion-v) var(--padding-seccion-h);
    max-width: var(--max-width-seccion);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Compensa el alto del navbar fijo al hacer clic en un enlace ancla */
    scroll-margin-top: calc(var(--alto-navbar) + 30px); 
}

.titulo-capsula {
	margin-top: 40px; /* Distancia entre el titulo de la sección y el H1 */
    border-left: 6px solid var(--color-brand-secondary);
	color: var(--txt-headers); 
    padding-left: 20px;                                        
    margin-bottom: 40px;                                       
    display: flex;
    flex-direction: column; 
    gap: 8px;                    
    text-align: left;    
}
body.dark-mode .titulo-capsula h1,
body.dark-mode .titulo-capsula h2 {
    color: var(--txt-light);
}


.titulo-capsula h1, .titulo-capsula h2 {
    font-size: 3.5rem; 
    color: var(--txt-headers);         
    line-height: 1;              
}

.titulo-capsula span { color: var(--color-brand-secondary); }

.titulo-seccion {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--txt-headers);
	border-bottom: 3px solid var(--color-brand-secondary);
    padding-bottom: 15px;
    width: fit-content;
    margin-left: auto;  
    margin-right: auto; 
}
body.dark-mode .titulo-seccion {
    color: var(--txt-light);
}
.card-info-hero h2 { color: var(--color-brand-primary); margin-bottom: 15px; }
body.dark-mode .card-info-hero h2 {
    color: var(--txt-light);}
.card-info-hero p { line-height: 1.6; color: var(--color-texto-secundario); }

/* ==========================================================================
   CLASES GLOBALES DE COLOR PARA SPANS Y TEXTOS
   ========================================================================== */
.txt-naranja { color: var(--color-brand-secondary) !important; }
.txt-rojo    { color: var(--color-brand-accent) !important; }
.txt-verde   { color: var(--color-brand-success) !important; }
.txt-blanco  { color: var(--color-blanco) !important; }
body.dark-mode .txt-blanco { 
    color: var(--txt-light) !important; 
}
/* ==========================================================================
==========================================================================
        ESTRUCTURA DE EJERCICIOS EN LA WEB AREA DRONES

    1. INICIO
        1.1 Equipo
        1.2 Flota

    2. SERVICIOS
        2.1 Test AESA
        2.2 Glosario
        2.3 Calculadora    etc......
		
==========================================================================
   ========================================================================== */


/* ==========================================================================
   PUNTO 1. SECCIÓN INICIO — HERO BACKGROUND Y ESTRUCTURA FLEXBOX
   ========================================================================== */
.seccion-hero-background {
    width: 100%;
    min-height: calc(100vh - var(--alto-navbar));
    background-image: url('https://images.unsplash.com/photo-1508614589041-895b88991e3e?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* 1. Quitar transparencia del overlay del hero (usa color sólido o menos opacidad) */
.hero-overlay {
  /* Si quieres fondo oscuro pero sin "velado" sobre la imagen del dron, usa un color más opaco o elimina el overlay */
  background: linear-gradient(
    to bottom,
    rgba(30, 27, 26, 0.15), /* menos opaco que antes */
    rgba(30, 27, 26, 0.25)
  );
  /* o para eliminar totalmente la capa oscura, descomenta la línea siguiente */
  /* background: transparent; */
}

/* Contenedor flex */
.hero-container-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width-seccion);
    margin: 0 auto;
    gap: 50px;
    padding: 0 var(--padding-seccion-h);
}

/* Texto del hero */
.hero-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Título del hero */
.hero-texto .titulo-capsula {
    align-items: flex-start;
    text-align: left;
    border-left: 6px solid var(--color-brand-secondary);
    padding-left: 20px;
    margin-bottom: 20px;
}

.hero-texto .titulo-capsula h1 {
    font-size: 5rem;
    color: var(--txt-light);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-texto .titulo-capsula p {
    color: var(--txt-light);
}

/* Intro */
.hero-texto .intro-texto {
    text-align: left;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--color-texto-secundario);
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Texto central */
.hero-texto .texto-central {
    margin-top: 20px;
}

.hero-texto .texto-central h1 {
    font-size: 2rem;
    color: var(--color-brand-secondary);
}

.hero-texto .texto-central h2 {
    color: var(--txt-light);
}

/* 2. Asegurar que la imagen del dron sea totalmente opaca y rellene su caja */
.dron-animado {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;          /* mantiene proporción */
  opacity: 1 !important;        /* fuerza opacidad total */
  filter: none !important;      /* elimina filtros que causen transparencia/tono */
  mix-blend-mode: normal !important;
  will-change: transform;       /* mejora rendimiento de la animación */
  backface-visibility: hidden;
  transform-origin: center center;
  transition: transform 0.35s ease;
}
/* 3. Animación de levitación (suave y sin jitter) */
@keyframes levitarDron {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-14px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.dron-animado {
  animation: levitarDron 4s ease-in-out infinite;
}

/* 4. Si la imagen está dentro de un contenedor con overlay semitransparente,
   fuerza que la imagen esté por encima visualmente */
.hero-visual,
.hero-visual .dron-animado {
  position: relative;
  z-index: 3; /* asegúrate de que sea mayor que el overlay */
}

/* 5. Opcional: aumentar contraste y saturación para que el dron no parezca "lavado" */
.dron-animado {
  filter: saturate(1.05) contrast(1.03);
}

/* ==========================================================================
   MODO OSCURO — HERO
   ========================================================================== */
body.dark-mode .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 17, 26, 0.55),
        rgba(15, 17, 26, 0.85)
    );
}

body.dark-mode .hero-texto .intro-texto {
    color: var(--txt-muted);
}

body.dark-mode .hero-texto .texto-central h2 {
    color: var(--txt-light);
}

body.dark-mode .dron-animado {
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.7));
}

/* ==========================================================================
   PUNTO 1.1 — EQUIPO Y FLOTA (SLIDERS)
   ========================================================================== */
.div-slider {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Track general */
.slide-track {
    display: flex;
    gap: 25px;
    width: calc((240px + 25px) * 10);
    animation: scroll-infinito 25s linear infinite;
}

.track-servicios {
    width: calc((310px + 25px) * 13);
    animation: scroll-servicios 35s linear infinite;
}

.slide-track:hover {
    animation-play-state: paused;
}

/* Tarjetas del slider */
.slide-hijo.hijo {
    width: 240px;
    background-color: var(--color-caja);
    border-radius: var(--radio-card);
    padding: 20px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

.slide-hijo.hijo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radio-input);
    margin-bottom: 15px;
}

.slide-hijo.hijo h3 {
    font-family: var(--fuente-mono);
    font-size: 1.05rem;
    color: var(--txt-headers);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-hijo.hijo p {
    font-family: var(--fuente-cuerpo);
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    margin: 0;
}

/* Tarjetas de servicios dentro del slider */
.card-servicio-slide {
    width: 310px !important;
    min-height: 270px;
    border-top: 5px solid var(--color-brand-primary) !important;
    transition: var(--transition-smooth) !important;
}

.card-servicio-slide:hover {
    transform: translateY(-8px);
    border-top-color: var(--color-brand-secondary) !important;
    box-shadow: var(--shadow-neon) !important;
}

/* Animaciones */
@keyframes scroll-infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1325px); }
}

@keyframes scroll-servicios {
    0% { transform: translateX(0); }
    100% { transform: translateX(-3015px); }
}

/* Estática de equipo */
.caja-equipo {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.item-personal {
    flex: 1;
    background: var(--color-caja);
    padding: 25px;
    text-align: center;
    border-radius: var(--radio-card);
    border: 1px solid var(--border-color-default);
    box-shadow: var(--shadow-subtle);
    max-width: 400px;
    transition: var(--transition-fast);
}

.item-personal img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color-default);
    object-fit: cover;
}

.item-personal:hover {
    transform: translateY(-10px);
    border-color: var(--color-brand-secondary);
}

/* Configuración de la estructura Flexbox */
.galeria-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.fila {
    display: flex;
    gap: 15px;
    width: 100%;
}

.fila img {
    width: 33.333%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radio-input);
    filter: grayscale(80%);
    transition: var(--transition-smooth);
}

.fila img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    box-shadow: var(--shadow-neon);
    border: 2px solid var(--color-brand-secondary);
}

/* Galería de Descargas */
.galeria-descargas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.fila-descargas {
    display: flex;
    gap: 15px;
    width: 100%;
}

.fila-descargas a {
    flex: 1;
    display: block;
    border-radius: var(--radio-input);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.fila-descargas img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition-smooth);
    display: block;
}

.fila-descargas a:hover {
    box-shadow: var(--shadow-neon);
    border-color: var(--color-brand-secondary);
}

.fila-descargas a:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Multimedia */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    aspect-ratio: 16 / 9;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radio-card);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   16. GALERÍA DE FLOTA Y DESCARGAS
   ========================================================================== */
.fila {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 20px 0;
}

.fila > a {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 250px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radio-card);
    background: var(--bg-seccion-light);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.fila a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.fila img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition-fast);
}

.fila a:hover img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Contenedor de botón de descarga */
.btn-desc-container {
    padding: 12px;
    background: var(--bg-seccion-light);
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-input);
}

.btn-descargar {
    background: var(--color-brand-secondary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.btn-descargar:hover {
    background: var(--color-brand-primary);
    color: var(--color-brand-secondary);
    transform: translateY(-2px);
}

.btn-descargar:active {
    transform: translateY(0);
}

/* ==========================================================================
   MODO OSCURO — EQUIPO Y FLOTA
   ========================================================================== */
body.dark-mode .slide-hijo.hijo,
body.dark-mode .item-personal {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .item-personal img {
    border-color: var(--border-color-default);
}

body.dark-mode .video-wrapper video,
body.dark-mode .video-wrapper iframe {
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
    FIN PUNTO 1.1  — FLOTA DE DRONES Y DESCARGAS
   ========================================================================== */

/* ==========================================================================
    SECCION 1.2 — FLOTA DE DRONES Y DESCARGAS
   ========================================================================== */

/* Grid de tarjetas de descarga */
.grid-descargas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta de descarga */
.card-descarga {
    display: flex;
    flex-direction: column;
    background: var(--color-caja);
    border: 1px solid var(--border-input);
    border-radius: var(--radio-card);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-subtle);
}

/* Contenedor de imagen */
.card-descarga .imagen-descarga {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

/* Imagen */
.card-descarga .imagen-descarga img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

/* Contenido */
.descarga-contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Botón descarga */
.descarga-contenido .btn-ira {
    margin-top: auto;
    width: 100%;
}

/* Galerías */
.galeria-flex,
.galeria-descargas {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Tarjetas de flota */
.card-flota {
    flex: 1;
    background: var(--color-caja);
    border-radius: var(--radio-input);
    padding: 15px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Imagen flota */
.card-flota img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radio-input);
    filter: grayscale(80%);
    transition: var(--transition-smooth);
}

/* Hover flota */
.card-flota:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-flota:hover {
    border-color: var(--color-brand-secondary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

/* Botón descarga flota */
.card-flota .btn-descargar {
    background: var(--color-brand-secondary);
    color: var(--txt-light);
    padding: 10px 20px;
    border-radius: var(--radio-input);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
}

.card-flota .btn-descargar:hover {
    background: var(--color-brand-primary);
    color: var(--color-brand-secondary);
}

/* ==========================================================================
   MODO OSCURO — FLOTA Y DESCARGAS
   ========================================================================== */
body.dark-mode .card-descarga {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .card-flota {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .card-flota .btn-descargar {
    background: var(--color-brand-secondary);
    color: var(--txt-light);
}

body.dark-mode .card-flota .btn-descargar:hover {
    background: var(--color-brand-primary);
    color: var(--color-brand-secondary);
}


/* ==========================================================================
      FIN de SECCION 1.2;   FLOTA de Drones Y DESCARGAS de archivos
   ========================================================================== */

/* ==========================================================================
==========================================================================
        ESTRUCTURA DE EJERCICIOS EN LA WEB AREA DRONES

    2. SERVICIOS
        2.1 Test AESA
        2.2 Glosario
        2.3 Calculadora
   ========================================================================== */


/* ==========================================================================
   PUNTO 2.1 — SIMULADOR DE EXAMEN (TEST AESA)
   ========================================================================== */
.quiz-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-caja);
    padding: 40px;
    border-radius: var(--radio-card);
    border: 1px solid var(--border-input);
    box-shadow: var(--shadow-card);
}

.selector-title {
    font-size: 1.6rem;
    color: var(--txt-headers);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-brand-secondary);
    padding-bottom: 8px;
}

.selector-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn-categoria {
    width: 100%;
    text-align: left;
    background: var(--bg-input);
    color: var(--color-texto);
    border: 2px solid var(--border-input);
    border-radius: var(--radio-input);
    padding: 18px 20px;
    font-family: var(--fuente-cuerpo);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-categoria:hover {
    transform: translateX(5px);
    border-color: var(--color-brand-secondary);
    box-shadow: var(--shadow-neon);
}

.question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--txt-headers);
    margin-bottom: 25px;
    line-height: 1.45;
}

.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    margin: 10px 0;
    border: 2px solid var(--border-input);
    border-radius: var(--radio-input);
    background: var(--bg-input);
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-btn:hover:not(:disabled) {
    border-color: var(--color-brand-secondary);
    background: var(--bg-seccion-light);
}

/* Feedback */
.feedback {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: var(--radio-input);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

/* Correcto / Incorrecto con variables */
.correct {
    background-color: rgba(22, 163, 74, 0.15);
    color: var(--color-brand-success);
    border-left: 4px solid var(--color-brand-success);
}

.incorrect {
    background-color: rgba(220, 38, 38, 0.15);
    color: var(--color-brand-danger);
    border-left: 4px solid var(--color-brand-danger);
}

/* ==========================================================================
   MODO OSCURO — TEST AESA
   ========================================================================== */
body.dark-mode .quiz-container {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .btn-categoria {
    background: var(--bg-input);
    color: var(--color-texto);
    border-color: var(--border-color-default);
}

body.dark-mode .btn-categoria:hover {
    border-color: var(--color-brand-secondary);
    box-shadow: var(--shadow-neon);
}

body.dark-mode .option-btn {
    background: var(--bg-input);
    border-color: var(--border-color-default);
    color: var(--color-texto);
}

body.dark-mode .option-btn:hover:not(:disabled) {
    background: var(--bg-seccion-light);
}

body.dark-mode .correct {
    background-color: rgba(22, 163, 74, 0.25);
}

body.dark-mode .incorrect {
    background-color: rgba(220, 38, 38, 0.25);
}

/* =========================================================================
     FIN PUNTO 2.1 
   ========================================================================= */
/* ==========================================================================
   PUNTO 2.2;   TERMINAL GLOSARIO
   ========================================================================== */
.glosario-box {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
    padding: 40px;
    border-radius: var(--radio-card);
    border: 2px solid var(--color-brand-secondary);
    box-shadow: inset 0 0 20px rgba(255, 85, 0, 0.15);
    width: 100%;
    margin: 0 auto;
}

.glosario-resultado-card {
    text-align: left;
    animation: fadeInMenu 0.3s ease;
}

.glosario-resultado-card h3 {
    font-family: var(--fuente-mono);
    font-size: 1.8rem;
    color: var(--color-brand-secondary);
    border-bottom: 1px solid rgba(255, 85, 0, 0.2);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.glosario-concepto {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--txt-light);
    margin-bottom: 15px;
}

.glosario-definicion {
    color: var(--txt-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radio-input);
    border-left: 3px solid var(--color-brand-accent);
}

/* Modo oscuro: ajustar contraste del glosario */
body.dark-mode .glosario-box {
    background-color: #111827;
    box-shadow: inset 0 0 25px rgba(255, 85, 0, 0.25);
}

body.dark-mode .glosario-definicion {
    background: rgba(15, 23, 42, 0.8);
    color: var(--color-texto-secundario);
}
/* ==========================================================================
   PUNTO 2;  SERVICIOS; pROGRAMAS Y TOGGLE
   ========================================================================== */
.grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Etiqueta superior reutilizable (tarjetas .card y .card-descarga) */
.actividad-tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--color-brand-secondary);
    color: var(--txt-light);
    font-family: var(--fuente-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.card {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 30px;
    background: var(--color-caja);
    border: 1px solid var(--border-input);
    border-radius: var(--radio-card);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-color-default);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: calc(var(--radio-card) - 6px);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-texto);
}

.card p {
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Empuja precio + estado al final, igualando el remate de las 3 tarjetas */
.card .precio {
    margin-top: auto;
    padding-top: 5px;
}

/* Variante destacada */
.card2 {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
    border-color: var(--color-brand-secondary);
    box-shadow: var(--shadow-neon);
}

.card2 h3,
.card2 p,
.card2 .precio {
    color: var(--txt-light);
}

.card2 img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

/* Modo oscuro: ajustar tarjetas */
body.dark-mode .card {
    background-color: var(--color-caja);
    box-shadow: var(--shadow-subtle);
}

body.dark-mode .card h3 {
    color: var(--color-texto);
}

body.dark-mode .card p {
    color: var(--color-texto-secundario);
}
/* Modo oscuro para widget */
body.dark-mode .widget-container {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .widget-container h3 {
    color: var(--txt-light);
}

body.dark-mode .widget-subtitle {
    color: var(--color-texto-secundario);
}
/* ==========================================================================
   PUNTO 2.3 ;  PLANIFICADOR, CALCULADORAS 
   ========================================================================== */
.seccion-contacto-layout { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 30px; width: 100%; margin: 35px auto 0; }

.formulario-box, .formulario-calculadora { background: var(--color-caja); padding: 40px; border-radius: var(--radio-card); border: 2px solid var(--border-input); box-shadow: var(--shadow-card); flex: 1; max-width: var(--max-width-formulario); margin: 0 auto; }

.control-group, .campo { display: flex; flex-direction: column; text-align: left; gap: 8px; margin-bottom: 18px; }
.control-group label, .campo label { font-size: 0.95rem; font-weight: bold; color: var(--color-brand-primary); text-transform: uppercase; font-family: var(--fuente-mono); }

/* ─────────────────────────────────────────────────────────────────────────────
   WIDGET ESPECÍFICO: METEOROLÓGICO
   ───────────────────────────────────────────────────────────────────────────── */

.widget-meteo {
    /* Heredar de widget-container automáticamente */
}

/* iframe dentro del widget */
.widget-iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
/* ─────────────────────────────────────────────────────────────────────────────
   SECCIÓN PLANIFICADOR + WIDGET (Contenedor FLEX)
   ───────────────────────────────────────────────────────────────────────────── */

.seccion-planificador-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: var(--max-width-seccion);
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
}

/* Ambos elementos ocupan el 50% del espacio (desktop) */
.seccion-planificador-widget > * {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WIDGET CONTENEDOR (Clase reutilizable)
   
   Uso: <div class="widget-container widget-meteo">
   ───────────────────────────────────────────────────────────────────────────── */

.widget-container {
    /* Reutilizar estilos de formulario-box */
    background: var(--color-caja);
    padding: 40px;
    border-radius: var(--radio-card);
    border: 2px solid var(--border-input);
    box-shadow: var(--shadow-card);
    
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-container h3 {
    margin: 0;
    color: var(--txt-headers);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--color-brand-secondary);
    padding-bottom: 10px;
}

/* Subtítulo del widget */
.widget-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

/* ═════════════════════════════════════════════════════════════════════════════
   GLOSARIO CONTAINER (Mejorado)
   ═════════════════════════════════════════════════════════════════════════════ */

.glosario-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: var(--max-width-seccion);
    margin: 0 auto;
}

.glosario-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.glosario-search input,
.glosario-search select {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radio-input);
    font-size: 1rem;
    background-color: var(--bg-input);
    color: var(--color-texto);
}

.glosario-search input:focus,
.glosario-search select:focus {
    outline: none;
    border-color: var(--color-brand-secondary);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1);
}

.glosario-resultado {
    display: grid;
    gap: 15px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FIN CSS WIDGET MEJORADO
   ═════════════════════════════════════════════════════════════════════════════ */



/* ==========================================================================
==========================================================================
        ESTRUCTURA DE EJERCICIOS EN LA WEB AREA DRONES

          3. NORMATIVA
		  
   ========================================================================== */
/* ==========================================================================
   PUNTO 3;  NORMATIVA Y TABLAS (AESA/EASA)
   ========================================================================== */
/* ==========================================================================
==========================================================================
        ESTRUCTURA DE EJERCICIOS EN LA WEB AREA DRONES

          3. NORMATIVA
   ========================================================================== */

/* ==========================================================================
   PUNTO 3 — NORMATIVA Y TABLAS (AESA/EASA)
   ========================================================================== */

.contenedor-paralelo {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
}

.bloque-scroll {
    flex: 1;
    background-color: var(--color-caja);
    border: 2px solid var(--border-input);
    border-radius: var(--radio-card);
    height: 350px;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--color-brand-secondary) transparent;
}

.bloque-scroll::-webkit-scrollbar { width: 6px; }
.bloque-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-brand-secondary);
    border-radius: 10px;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
    z-index: 10;
    border-bottom: 3px solid var(--color-brand-secondary);
}

.item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-input);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--transition-fast);
    text-align: left;
}

.item:hover {
    background-color: var(--bg-input);
    border-left: 4px solid var(--color-brand-secondary);
    padding-left: 16px;
}

.item strong {
    color: var(--color-brand-secondary);
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.info-safety-security {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.card-info {
    background-color: var(--color-caja);
    padding: 25px;
    border-radius: var(--radio-card);
    border: 1px solid var(--border-input);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.card-info .resaltado-tecnico {
    color: var(--color-brand-secondary);
    font-size: 1.3rem;
}

.btn-enlace {
    background: var(--color-brand-primary);
    color: var(--txt-light);
    padding: 8px 16px;
    border-radius: var(--radio-input);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--fuente-mono);
    margin-top: auto;
    transition: var(--transition-fast);
}

.btn-enlace:hover {
    background: var(--color-brand-secondary);
    transform: translateY(-2px);
}

/* Tablas */
.contenedor-tabla-aeronautica {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    scrollbar-width: thin;
    scrollbar-color: var(--color-brand-secondary) transparent;
}

.tabla-regulacion-uas {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--fuente-cuerpo);
    font-size: 0.95rem;
    color: var(--color-texto);
    background-color: var(--color-caja);
    text-align: left;
    min-width: 950px;
}

.cabecera-macro th {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
    font-size: 1.2rem;
    text-align: center;
    padding: 15px;
    border: 2px solid var(--color-caja);
}

.cabecera-parametros th {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
    font-weight: 600;
    padding: 14px 15px;
    border: 1px solid var(--border-color-default);
    text-align: center;
}

.tabla-regulacion-uas td {
    padding: 16px 18px;
    border: 4px solid var(--color-caja);
    vertical-align: top;
    line-height: 1.6;
    background-color: var(--bg-input);
}

.celda-clase-destacada {
    font-weight: bold;
    color: var(--txt-headers);
    background-color: var(--bg-seccion-light) !important;
    text-align: center;
    vertical-align: middle !important;
}

.celda-peso,
.celda-subcat {
    text-align: center;
    vertical-align: middle !important;
    font-weight: bold;
}

.icon-check-yes {
    background-color: rgba(22, 163, 74, 0.2) !important;
    color: var(--color-brand-success);
    font-weight: bold;
    text-align: center;
    font-size: 1.4rem;
    vertical-align: middle !important;
}

.icon-check-no {
    background-color: rgba(220, 38, 38, 0.2) !important;
    color: var(--color-brand-danger);
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
    vertical-align: middle !important;
}

.lista-tabla {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

/* ==========================================================================
   MODO OSCURO — NORMATIVA
   ========================================================================== */

body.dark-mode .bloque-scroll {
    background-color: var(--color-caja);
    border-color: var(--border-color-default);
}

body.dark-mode .sticky-header {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
}

body.dark-mode .card-info {
    background-color: var(--color-caja);
    border-color: var(--border-color-default);
    box-shadow: var(--shadow-card);
}

body.dark-mode .contenedor-tabla-aeronautica {
    box-shadow: var(--shadow-card);
}

body.dark-mode .cabecera-parametros th {
    background-color: var(--color-brand-primary);
    color: var(--txt-light);
}

body.dark-mode .celda-clase-destacada {
    background-color: var(--bg-seccion-light) !important;
}

body.dark-mode .icon-check-yes {
    background-color: rgba(22, 163, 74, 0.3) !important;
}

body.dark-mode .icon-check-no {
    background-color: rgba(220, 38, 38, 0.3) !important;
}

/* ==========================================================================
   FIN PUNTO 3;  NORMATIVA 
   ========================================================================== */


/* ==========================================================================
==========================================================================
        ESTRUCTURA DE EJERCICIOS EN LA WEB AREA DRONES

          4. CONTACTO
          4.1 FORM de Contacto
          4.2 COLABORADORES / Partners / Marquesinas
==========================================================================
========================================================================== */


/* ==========================================================================
   PUNTO 4 — CONTACTO (FORMULARIO)
   ========================================================================== */

/* Inputs corporatius */
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-input);
    border-radius: var(--radio-input);
    background-color: var(--bg-input);
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    transition: var(--transition-fast);
}

/* Focus premium */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-brand-secondary);
    box-shadow: var(--shadow-card);
    outline: none;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 90px;
}

/* Checkbox simple (per checkbox-label) */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Botó corporatiu */
.formulario-box button {
    width: 100%;
    padding: 14px;
    background: var(--color-brand-secondary);
    color: var(--txt-light);
    font-weight: 700;
    border: none;
    border-radius: var(--radio-pill);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.formulario-box button:hover {
    background: var(--color-brand-secondary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px);
}

/* Resultat */
#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radio-input);
    background: var(--bg-seccion-light);
    border-left: 4px solid var(--color-brand-secondary);
    color: var(--color-brand-primary);
    font-weight: bold;
    text-align: center;
}

/* Validació */
.msg-validacion {
    color: var(--color-brand-danger);
    font-size: 0.85rem;
    min-height: 1rem;
}

/* ==========================================================================
   FIN PUNTO 4 — CONTACTO
   ========================================================================== */


/* ==========================================================================
   PUNTO 4.1 — FORM de Contacto (Contenedor + Checkbox 3D) — ESTILO ACTUALIZADO
   ========================================================================== */

/* Contenedor principal: glass card, sombra y padding */
.formulario-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(250,250,250,0.80));
    border-radius: var(--radio-card);
    box-shadow: 0 12px 30px rgba(16,24,40,0.08), var(--shadow-subtle);
    border: 1px solid rgba(30,30,30,0.04);
    backdrop-filter: blur(6px) saturate(1.02);
    transition: box-shadow .22s ease, transform .18s ease;
}

/* Grups de control */
.control-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.control-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-texto);
    letter-spacing: 0.2px;
}

/* Inputs, selects i textarea: base visual modern
   NOTE: todos los inputs del formulario tendrán borde de 2px */
.formulario-box input[type="text"],
.formulario-box input[type="email"],
.formulario-box textarea,
.formulario-box select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid rgba(30,30,30,0.08); /* 2px solicitado */
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
    font-size: 0.95rem;
    transition: box-shadow .20s ease, transform .16s ease, border-color .16s ease;
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    outline: none;
}

/* Placeholder sutil */
.formulario-box input::placeholder,
.formulario-box textarea::placeholder {
    color: rgba(26,32,44,0.42);
    font-style: italic;
}

/* Focus: glow y elevación (manteniendo 2px) */
.formulario-box input:focus,
.formulario-box textarea:focus,
.formulario-box select:focus {
    border-width: 2px;
    border-color: var(--color-brand-secondary);
    box-shadow: 0 10px 30px rgba(255,85,0,0.08), 0 0 0 6px rgba(255,85,0,0.06);
    transform: translateY(-2px);
}

/* Textarea con altura controlada y suavizado */
.formulario-box textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

/* Labels de validación (mensajes de error) */
.msg-validacion,
#labelName, #labelMail, #labelMensaje, #labelCheckBox, #msgServicio {
    font-size: 0.85rem;
    min-height: 18px;
    display: block;
    color: var(--color-brand-danger);
    transition: opacity .18s ease, transform .18s ease;
}

/* Mensaje de éxito */
.resultado-box {
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(22,163,74,0.06), rgba(22,163,74,0.03));
    border: 1px solid rgba(22,163,74,0.12);
    color: var(--color-brand-success);
    box-shadow: 0 8px 22px rgba(22,163,74,0.04);
}

/* ============================
   Checkbox: inline, check visible y texto seguido
   Compatible con:
     - <label class="checkbox-label"><input ...> Texto</label>
     - <div class="checkbox-campo"><input id="x"><label for="x">Texto</label></div>
   ============================ */

/* Contenedor y alineación */
.checkbox-campo,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}

/* Estilo del label cuando envuelve el input (inline) */
.checkbox-label {
    padding: 8px 10px;
    border-radius: var(--radio-input);
    transition: background .12s ease, transform .12s ease;
}

/* Si el input está dentro del label: mostrar checkbox nativo y texto seguido */
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: var(--color-brand-secondary);
    border: 2px solid rgba(30,30,30,0.08);
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

/* Si usas la estructura input + label (input fuera del label) */
.checkbox-campo input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: var(--color-brand-secondary);
    border: 2px solid rgba(30,30,30,0.08);
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

/* Texto del label: seguir inmediatamente al checkbox */
.checkbox-campo label,
.checkbox-label > span,
.checkbox-label {
    font-weight: 700;
    color: var(--color-texto);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mantener visibilidad del check en navegadores antiguos */
.checkbox-campo input[type="checkbox"]::-ms-check { background: var(--color-brand-secondary); }

/* Para la estructura input + label: usar ::before como caja visual y mostrar SVG cuando está marcado */
.checkbox-campo input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
    border: 2px solid rgba(30,30,30,0.08);
    background: transparent;
    vertical-align: middle;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

/* Mostrar check visual cuando está marcado (input + label) */
.checkbox-campo input[type="checkbox"]:checked + label::before {
    background-color: var(--color-brand-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--color-brand-secondary);
}

/* Si el input está dentro del label, ocultamos el ::before para evitar duplicados */
.checkbox-label input[type="checkbox"] + label::before,
.checkbox-label label::before { display: none; }

/* Hover y foco para accesibilidad */
.checkbox-campo input[type="checkbox"]:focus,
.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,85,0,0.08);
    border-color: var(--color-brand-secondary);
}

/* Dark mode: adaptar bordes y check */
body.dark-mode .checkbox-campo input[type="checkbox"],
body.dark-mode .checkbox-label input[type="checkbox"] {
    border-color: var(--border-input);
    box-shadow: 0 3px 8px rgba(0,0,0,0.45);
}
body.dark-mode .checkbox-campo input[type="checkbox"]:checked + label::before,
body.dark-mode .checkbox-label input[type="checkbox"]:checked + label::before {
    border-color: var(--color-brand-success);
    background-color: rgba(22,163,74,0.95);
}

/* ============================
   Botón principal: estilo con glow y micro‑interacción
   ============================ */
#btn-enviar.btn-primary {
    background: linear-gradient(90deg, var(--color-brand-secondary), #ff7a2b);
    color: var(--txt-light);
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 12px 36px rgba(255,85,0,0.12), inset 0 -4px 12px rgba(0,0,0,0.06);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    width: 100%;
}

/* Hover / Active */
#btn-enviar.btn-primary:hover:not([disabled]) {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(255,85,0,0.18), inset 0 -6px 18px rgba(0,0,0,0.08);
    filter: saturate(1.05);
}
#btn-enviar.btn-primary:active:not([disabled]) {
    transform: translateY(-1px) scale(.998);
}

/* Disabled state */
#btn-enviar.btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Micro‑interacción: foco en campo con icono (si añades iconos) */
.control-group:focus-within {
    transform: translateY(-2px);
}

/* Dark mode compatibility (mantener coherencia con variables) */
body.dark-mode .formulario-box {
    background: linear-gradient(180deg, rgba(30,34,44,0.45), rgba(20,22,30,0.35));
    border: 1px solid var(--border-color-default);
    box-shadow: var(--shadow-card);
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--bg-input);
    color: var(--txt-light);
    border: 2px solid var(--border-input); /* mantener 2px en modo oscuro */
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
body.dark-mode .checkbox-campo label {
    background: var(--color-caja);
    border-color: var(--border-color-default);
    color: var(--txt-light);
    box-shadow: var(--shadow-card);
}
body.dark-mode .checkbox-campo label::before {
    background-color: var(--bg-input);
    border-color: var(--border-color-default);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
body.dark-mode .checkbox-campo input[type="checkbox"]:checked + label {
    background: rgba(22,163,74,0.12);
    border-color: var(--color-brand-success);
}



/* ==========================================================================
   FIN PUNTO 4.1 — FORM de Contacto (estilo actualizado)
   ========================================================================== */




/* ==========================================================================
   PUNTO 4.2 — Partners / Colaboradores / Marquesinas
   ========================================================================== */

.columna-marquesina-lado {
    width: 140px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radio-input);
    background: var(--color-caja);
}

.marquesina-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    width: 100%;
}

.marquesina-vertical img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radio-input);
    border: 2px solid var(--border-input);
    transition: var(--transition-fast);
}

.track-subida {
    animation: cascadaAscendente 15s linear infinite;
}

.track-bajada {
    animation: cascadaDescendente 15s linear infinite;
}

@keyframes cascadaAscendente {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes cascadaDescendente {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   FIN PUNTO 4.2 — PARTNERS
   ========================================================================== */








   /* ==========================================================================
   PUNTO 5. BOTONES GLOBALES Y UTILIDADES
   ========================================================================== */

/* Contenedor centrado para botones */
.contenedor-btn-centrado {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Botones globales */
button,
.btn-ira {
    background: var(--color-brand-secondary);
    color: var(--txt-light);
    font-weight: 800;
    padding: 15px 35px;
    border: none;
    border-radius: var(--radio-pill);
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Hover premium */
button:hover:not(:disabled),
.btn-ira:hover {
    background: var(--color-brand-primary);
    color: var(--color-brand-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* Botón deshabilitado */
button:disabled {
    background-color: var(--border-color-default);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botón flotante subir */
.btn-subir-fijo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-brand-accent);
    color: var(--txt-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: var(--z-index-fixed);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.btn-subir-fijo:hover {
    transform: translateY(-8px);
    background: var(--color-brand-secondary);
}

/* MODO OSCURO — Botones */
body.dark-mode button,
body.dark-mode .btn-ira {
    background: var(--color-brand-secondary);
    color: var(--txt-light);
}

body.dark-mode button:hover:not(:disabled),
body.dark-mode .btn-ira:hover {
    background: var(--color-brand-primary);
    color: var(--color-brand-secondary);
}

body.dark-mode .btn-subir-fijo {
    background: var(--color-brand-accent);
    box-shadow: var(--shadow-card);
}

body.dark-mode .btn-subir-fijo:hover {
    background: var(--color-brand-secondary);
}

/* ==========================================================================
    FIN PUNTO 5 BOTONES 
   ========================================================================== */




/* ==========================================================================
   PUNTO 6 — MEGA-FOOTER CORPORATIVO 
   ========================================================================== */

.mega-footer {
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: moverDegradado 8s ease infinite;

    color: var(--txt-light);
    padding: 60px 20px 20px 20px;
    font-family: var(--fuente-cuerpo);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Línea superior animada */
.mega-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    animation: moverDegradado 6s linear infinite;
    filter: brightness(1.5);
}

/* Contenido general */
.mega-footer .footer-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-footer .footer-col {
    flex: 1 1 250px;
    min-width: 250px;
}

.mega-footer .footer-col-derecha {
    display: flex;
    flex-direction: column;
}

.mega-footer p {
    margin-bottom: 15px;
    color: var(--txt-light);
}

/* Logo */
.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--fuente-titulos);
    color: var(--color-brand-primary);
}

.footer-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--txt-light);
}

/* Títulos */
.footer-tit-border {
    border-bottom: 2px solid var(--color-brand-secondary);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 15px;
    font-family: var(--fuente-titulos);
    letter-spacing: 1px;
    color: var(--txt-light);
}

/* Redes */
.footer-redes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-redes a {
    font-size: 1.2rem;
    color: var(--txt-light);
    transition: var(--transition-fast);
}

.footer-redes a:hover {
    color: var(--color-brand-secondary);
}

/* Teléfono */
.footer-telefono {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.footer-telefono span {
    font-size: 2rem;
    color: var(--txt-light);
}

.footer-telefono strong {
    font-size: 1.4rem;
    margin-left: 10px;
    color: var(--txt-light);
}

/* Horario */
.footer-horario-tit {
    margin-bottom: 5px;
    color: var(--color-brand-secondary);
    font-weight: bold;
}

.footer-horario-txt {
    margin-bottom: 2px;
    color: var(--txt-light);
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--txt-light);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-brand-secondary);
    padding-left: 5px;
}

/* Mapa */
.footer-mapa {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-card);
}

/* Dirección */
.footer-direccion {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--txt-light);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.icon-dir {
    font-size: 1.2rem;
    margin-right: 8px;
    margin-top: 2px;
    color: var(--color-brand-secondary);
}

/* Botón WhatsApp */
.footer-btn-ws {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: var(--color-brand-success);
    color: var(--txt-light);

    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-btn-ws svg {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

.footer-btn-ws:hover {
    background-color: var(--color-brand-secondary);
    transform: translateY(-2px);
}

/* Imagen inferior */
.contenedor-imagen-footer {
    margin-top: 25px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.imagen-simetrica-footer {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.contenedor-imagen-footer:hover .imagen-simetrica-footer {
    transform: scale(1.05);
}

/* Footer inferior */
.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color-default);
    font-size: 0.9rem;
    color: var(--txt-light);
}

.footer-bottom span {
    font-size: 0.8rem;
    margin-top: 5px;
    display: inline-block;
    opacity: 0.8;
}

/* ==========================================================================
                    FIN PUNTO 6 — FOOTER CORPORATIVO
   ========================================================================== */

   
/* ==========================================================================
==========================================================================
          PUNTO 7. RESPONSIVE — MEDIA QUERIES OFICIALES 2026
   ========================================================================== */


/* ============================================================
   7.1 — TABLET (≤ 992px)
   ============================================================ */
/* Responsive: compact spacing en pantallas pequeñas */
@media (max-width: 768px) {
    .formulario-box { padding: 18px; border-radius: 10px; }
    .control-group { margin-bottom: 14px; }
    .formulario-box input, .formulario-box textarea { padding: 10px 12px; border-width: 2px; }
    #btn-enviar.btn-primary { padding: 12px; }
}

@media (max-width: 992px) {

    /* HERO */
    .hero-texto .titulo-capsula h1 { font-size: 4rem; }
    .hero-overlay { padding-top: 40px; }

    /* Ocultar marquesinas laterales */
    .columna-marquesina-lado { display: none; }

    /* CONTACTO */
    .seccion-contacto-layout {
        flex-direction: column;
        align-items: center;
    }

    /* GALERÍAS */
    .fila > a {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }

    /* PLANIFICADOR (SERVICIOS 2.3) */
    .seccion-planificador-widget {
        gap: 20px;
    }
    .seccion-planificador-widget > * {
        flex: 1 1 calc(50% - 10px);
    }
}


/* ============================================================
   7.2 — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* NAVBAR */
    .navbar {
        height: 60px;
        padding: 10px 5%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .logo-contenedor { min-width: 150px; }

    .menu ul {
        flex-direction: row;
        gap: 5px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .submenu,
    .submenu3nivel {
        position: absolute;
        width: auto;
        min-width: 150px;
        box-shadow: var(--shadow-card);
        background: var(--bg-header-nav);
        border: 1px solid var(--border-color-default);
        border-radius: 4px;
        z-index: var(--z-index-nav);
    }

    body { padding-top: 60px; }

    /* HERO MOBILE */
    .hero-texto .titulo-capsula h1 { font-size: 3rem; }

    .hero-container-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-texto,
    .hero-texto .titulo-capsula,
    .hero-texto .intro-texto {
        align-items: center;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    /* GALERÍAS MOBILE */
    .fila,
    .fila-descargas {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .fila a,
    .fila-descargas a,
    .fila img,
    .fila-descargas img {
        width: 100%;
        flex: auto;
    }

    .fila img { height: 250px; }

    /* NORMATIVA + FOOTER */
    .contenedor-paralelo,
    .footer-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-centro iframe {
        max-width: 100%;
        height: 200px;
    }

    /* SECCIONES */
    .seccion {
        padding: 60px 5%;
    }

    /* PLANIFICADOR (SERVICIOS 2.3) */
    .seccion-planificador-widget {
        flex-direction: column;
        gap: 20px;
    }
    .seccion-planificador-widget > * {
        flex: 1 1 100%;
        min-width: auto;
    }
    .widget-container {
        padding: 20px;
    }
    .widget-iframe {
        height: 200px;
    }
}


/* ==========================================================================
                    FIN PUNTO 7 — RESPONSIVE
   ========================================================================== */

