/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para colores y temas */
:root {
    --primary-blue: #1e40af;      /* Azul principal institucional */
    --secondary-blue: #3b82f6;    /* Azul secundario */
    --dark-blue: #1e293b;         /* Azul oscuro para fondos */
    --gold: #fbbf24;              /* Dorado para acentos */
    --red: #dc2626;               /* Rojo para alertas */
    --white: #ffffff;             /* Blanco puro */
    --light-gray: #f8fafc;        /* Gris claro para fondos */
    --medium-gray: #e2e8f0;       /* Gris medio para bordes */
    --text-dark: #1e293b;         /* Texto oscuro */
    --text-light: #64748b;        /* Texto claro */
}

/* Estilos generales del cuerpo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ESTILOS PARA EL LOGO DE IMAGEN - NUEVOS */
.logo-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 120px;
    height: 118px;

}

.footer-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Barra superior del header */
.header-top {
    background: var(--dark-blue);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-info {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    color: var(--white);
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info i {
    color: var(--gold);
}

/* Header principal con navegación */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo de la institución */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ELIMINADO: Estilos del icono de avión que ocultaban la imagen */
.logo-military {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 3.3rem;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
}

.logo-sub {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 500;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--gold);
}

/* Efecto de subrayado animado */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Menú hamburguesa para móviles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Sección Hero - Portada principal */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%230f172a" width="1200" height="800"/><path fill="%231e293b" d="M0,0 L1200,800 L0,800 Z"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.6) 50%, rgba(251, 191, 36, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Badge o etiqueta destacada */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Botones de acción principal */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Tarjeta de eventos en el hero */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.hero-card-header h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin: 0;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Estilos de secciones generales */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: #f7f3f3;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Línea decorativa bajo el título */
.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* CONTENEDOR DE IMAGEN CORREGIDO */
.news-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

/* IMÁGENES REALES EN NOTICIAS - CORREGIDO */
.news-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-image-top {
    object-position: center 20%;
}

/* ELIMINAR FONDOS GRADIENTES QUE TAPABAN LAS IMÁGENES */
.military-image-1,
.military-image-2,
.military-image-3 {
    background: none !important;
}

.news-overlay {
    display: none !important;
}

/* CONTENEDOR PARA VIDEO DE YOUTUBE */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px 10px 0 0;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 60px;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-excerpt {
    min-height: 6.4em;
}

.news-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    margin-top: auto;
}

.news-link:hover {
    color: var(--secondary-blue);
    gap: 12px;
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.news-modal.active {
    display: flex;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.news-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-modal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-modal-body {
    padding: 2rem;
}

.news-modal-body h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#news-modal-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

#news-modal-text p:last-child {
    margin-bottom: 0;
}

#news-modal-text ol {
    padding-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

#news-modal-text ol li {
    margin-bottom: 0.75rem;
}

#news-modal-text ol li:last-child {
    margin-bottom: 0;
}

/* Grid institucional - Misión, Visión, Valores */
.institutional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.institutional-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

/* Línea superior decorativa */
.institutional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.institutional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.institutional-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.institutional-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.institutional-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Sección de Tecnología Aeroespacial */
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tech-text p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.capabilities-grid {
    display: grid;
    gap: 1.5rem;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.capability-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.capability-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    min-width: 50px;
}

.capability-item h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.capability-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.tech-display {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 6.8em;
    gap: 1.5rem;
}

.tech-item {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.tech-item.active,
.tech-item:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-item h4 {
    font-size: 1.3rem;
    margin: 0;
}

/* Grid de servicios para asociados */
#servicios .container {
    max-width: 1680px;
    width: 96%;
}

.services-grid {
    display: grid;
    grid-template-columns: minmax(460px, 1fr) 520px minmax(460px, 1fr);
    gap: 2rem;
    align-items: center;
    margin: 0 auto;
}

.services-carrusel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 520px;
    margin: 0 auto;
}

.services-carrusel.carrusel {
    width: 520px;
    max-width: 520px;
    height: auto;
    min-height: unset;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.services-carrusel .carrusel-inner {
    position: relative;
    width: 520px;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.services-carrusel .carrusel-slide {
    border-radius: 16px;
    transform: none;
    transition: opacity 1.2s ease-in-out;
}

.services-carrusel .carrusel-slide.active {
    transform: none;
}

.services-carrusel .carrusel-image {
    object-fit: cover;
    border-radius: 16px;
    background: var(--light-gray);
}

.services-carrusel .carrusel-slide.active .carrusel-image {
    transform: none;
}

.services-carrusel-indicators {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    padding: 14px 0 0;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.services-carrusel-indicators .indicator {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border: none;
    opacity: 1;
}

.services-carrusel-indicators .indicator.active {
    background: var(--primary-blue);
    transform: none;
    box-shadow: none;
}

.services-carrusel-indicators .indicator:hover {
    transform: none;
}

#servicios .service-card {
    max-width: 100%;
    padding: 2rem 3rem;
}

#servicios .service-features li {
    padding: 8px 0 8px 30px;
    line-height: 1.45;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Fondo con imagen SA1 en tarjetas de servicios */
.service-card--bg {
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.88)),
        url('img/SA1.jpg') center / cover no-repeat;
    border-color: rgba(255, 255, 255, 0.25);
}

.service-card--bg::before {
    z-index: 1;
}

.service-card--bg > * {
    position: relative;
    z-index: 1;
}

.service-card--bg h3 {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.service-card--bg .service-features {
    background: rgba(0, 0, 0, 0.55);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card--bg .service-features li {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.service-card--bg .service-features li::before {
    color: var(--gold);
    text-shadow: none;
}

.service-card--bg .service-features strong {
    color: #fbbf24;
    font-weight: 700;
}

.service-card--bg .service-icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Línea superior dorada en tarjetas de servicio */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    border-radius: 15px 15px 0 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-features {
    list-style: none;
    text-align: left;
    padding: 0;
}

.service-features li {
    padding: 10px 0 10px 30px;
    color: var(--text-light);
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
    line-height: 1.5;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Checkmark para lista de características */
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 10px;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

#servicios .service-features li::before {
    top: 8px;
}

.service-features strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Footer - Pie de página */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 4rem 0 1rem;
    position: relative;
}

/* Línea superior decorativa del footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--gold);
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.8rem;
}

.footer-logo p {
    color: var(--gold);
    margin: 0;
    font-size: 0.9rem;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

/* Línea decorativa bajo títulos del footer */
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.contact-info i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-credits {
    color: var(--gold);
    font-weight: 600;
}

/* CORRECCIONES ESPECÍFICAS PARA IMÁGENES Y VIDEO */

/* Imagen del boletín en el hero */
.boletin-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Responsive para videos */
@media (max-width: 768px) {
    .news-image {
        height: 200px;
    }
    
    .video-container iframe {
        border-radius: 10px 10px 0 0;
    }
}

/* Diseño Responsive - Tablets */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .tech-content {
        gap: 3rem;
    }

    .services-grid {
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr);
    }

    .services-carrusel-section,
    .services-carrusel.carrusel {
        width: 420px;
        max-width: 420px;
    }

    .services-carrusel .carrusel-inner {
        width: 420px;
        height: 340px;
    }
}

/* Diseño Responsive - Móviles */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    /* Menú móvil desplegable */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Animación del menú hamburguesa */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .tech-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .news-grid,
    .institutional-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid .service-card:first-of-type {
        order: 1;
    }

    .services-carrusel-section {
        order: 2;
        width: 100%;
        max-width: 520px;
    }

    .services-grid .service-card:last-of-type {
        order: 3;
    }

    .services-carrusel.carrusel,
    .services-carrusel .carrusel-inner {
        width: 100%;
        max-width: 520px;
    }

    .services-carrusel .carrusel-inner {
        height: 380px;
    }

    #servicios .service-card {
        padding: 2rem 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Diseño Responsive - Móviles pequeños */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Scroll suave entre secciones */
html {
    scroll-behavior: smooth;
}

/* Clases de animación para efectos de aparición */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de carga - fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    z-index: 1001;
    transition: width 0.3s ease;
}
/* Estilos para la tarjeta institucional en el hero */
.hero-image .institutional-card {
    background: linear-gradient(135deg, #1a365f 0%, #2a5298 100%);
    border:  #1a365f;
    border-radius: 12px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 450px;
    margin: 0 auto;
}

.hero-image .card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-image .military-symbol {
    font-size: 2.5rem;
    color: #9e9898;
    margin-bottom: 1rem;
}

.hero-image .card-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #a5a4a2;
    font-weight: 600;
}

.hero-image .motto {
    font-style: italic;
    color: #ececec;
    border-left: 3px solid #ebeae5;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.hero-image .history {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #ececec;
}

.hero-image .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-image .stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 38, 255, 0.3);
}

.hero-image .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dfdbdb;
}


/* ===== CARRUSEL MÁS ANCHO Y MÁS CORTO ===== */
.tech-boletin-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 3rem;
}

/* Sección del Carrusel (Izquierda) */
.carrusel-section {
    display: flex;
    justify-content: flex-start;
    height: 100%;
}

.carrusel-container {
    width: 100%;
    height: 100%;
    margin: 0;
}

.carrusel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--white);
    height: 100%;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carrusel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carrusel-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.carrusel-loading i {
    font-size: 2rem;
}

.carrusel-loading.carrusel-error {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.carrusel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carrusel-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra imagen completa */
    display: block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); /* Fondo para espacios vacíos */
}

.carrusel-slide.active .carrusel-image {
    transform: scale(1.05);
}

.carrusel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0;
}

.carrusel-slide.active .carrusel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carrusel-caption h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.carrusel-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.carrusel-control:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.4);
    border-color: var(--gold);
}

.carrusel-control.prev {
    left: 15px;
}

.carrusel-control.next {
    right: 15px;
}

.carrusel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: calc(100% - 120px);
    overflow-x: auto;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.indicator:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* ===== BOLETÍN (Derecha) ===== */
.boletin-section {
    display: flex;
    justify-content: flex-start;
    height: 100%;
}

.boletin-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 1px solid var(--medium-gray);
    position: relative;
    display: flex;
    flex-direction: column;
}

.boletin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    z-index: 2;
}

.boletin-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
}

.boletin-header h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.boletin-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.boletin-image-container {
    padding: 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    flex-shrink: 0;
}

.boletin-image {
    width: 100%;
    max-width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--white);
}

.boletin-content {
    padding: 1.5rem 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.boletin-content h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.boletin-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.boletin-features {
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-item i {
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-boletin {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.btn-boletin:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #d97706 0%, var(--gold) 100%);
}

/* Efectos hover */
.carrusel, .boletin-card {
    transition: all 0.3s ease;
}

.carrusel:hover, .boletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .tech-boletin-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-boletin-grid {
        gap: 1.5rem;
    }
    
    .carrusel, .boletin-card {
        min-height: 350px;
        border-radius: 15px;
    }
    
    .carrusel-control {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .carrusel-control.prev {
        left: 10px;
    }
    
    .carrusel-control.next {
        right: 10px;
    }
    
    .carrusel-caption,
    .boletin-header,
    .boletin-image-container,
    .boletin-content {
        padding: 1rem;
    }
    
    .boletin-header h3 {
        font-size: 1.3rem;
    }
    
    .boletin-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carrusel, .boletin-card {
        min-height: 300px;
    }
    
    .carrusel-caption h3,
    .boletin-header h3 {
        font-size: 1.2rem;
    }
    
    .boletin-content h4 {
        font-size: 1.1rem;
    }
    
    .carrusel-control {
        width: 40px;
        height: 40px;
    }
    
    .btn-boletin {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Asegurar misma altura */
.tech-boletin-grid {
    align-items: stretch;
}

.carrusel-section, .boletin-section {
    height: 100%;
}

.carrusel-container, .boletin-card {
    height: 100%;
}




/* Botón flotante de WhatsApp - LADO DERECHO */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso para el botón */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }
}
