/* Variables CSS */
:root {
    --primary-color: #1e5981; /* Azul oscuro */
    --secondary-color: #1e5981; /* Azul vibrante */
    --accent-color: #4ab7df; /* Rojo para acentos/botones */
    --text-color: #333;
    --light-text-color: #ecf0f1;
    --bg-light: #f4f7f6;
    --bg-dark: #233140; /* Fondo más oscuro para secciones */
    --border-color: #ddd;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Source Serif Pro', serif;
    --header-height: 80px;
    --header-scrolled-height: 60px;
}

/* Base y Reseteo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


 body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padded {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.4px;
}


h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

p {
    margin-bottom: 15px;
    margin-left: 25px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}
.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}
.btn-secondary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 15px;
}
.btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.btn-download {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    margin-top: 20px;
}
.btn-download:hover {
    background-color: #34495e;
}
.btn-download i {
    margin-right: 8px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: height 0.3s ease, padding 0.3s ease;
    height: var(--header-height);
}

header.scrolled {
    height: var(--header-scrolled-height);
    padding: 10px 0;
    background-color: rgba(44, 62, 80, 0.95); /* Ligeramente transparente */
}

header .logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
header .logo img {
    height: 80px; /* Ajusta según tu logo */
    width: 80px;
    margin-right: 10px;
    border-radius: 10px;
    background-color: #fff;
}
header .logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--light-text-color);
}

header nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
}
header nav ul li {
    margin-left: 30px;
}
header nav ul li a {
    color: var(--light-text-color);
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
}
header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
header nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Oculto por defecto en desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 5px 15px;
}
.nav-toggle .icon-bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 6px 0;
    transition: 0.4s;
    box-shadow: none;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px; /* Altura del carrusel hero */
    overflow: hidden;
    margin-top: var(--header-height); /* Espacio para el header fijo */
}

.hero-carousel .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.hero-carousel .carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-in-out; /* Animación de fade-in para cada slide */
}
.hero-carousel .carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay oscuro */
}

.hero-carousel .slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Fondo semitransparente para el texto */
    border-radius: 10px;
}
.hero-carousel .slide-content h2 {
    color: var(--light-text-color);
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-carousel .slide-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
}
.hero-carousel .carousel-nav button {
    background-color: rgba(0,0,0,0.5);
    color: var(--light-text-color);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 2em;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
.hero-carousel .carousel-nav button:hover {
    background-color: rgba(0,0,0,0.8);
}

.hero-carousel .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-carousel .carousel-indicators .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-carousel .carousel-indicators .dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}
.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.stats-section .stat-item {
    flex: 1 1 200px;
    max-width: 250px;
    background-color: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.stats-section .stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0,0,0,0.3);
}
.stats-section .stat-item .count {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--light-text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.stats-section .stat-item p {
    font-size: 1.2em;
    margin: 0;
}

#tecnicaturas {
    /* Degradado + imagen */
    background: linear-gradient(
                    rgba(0, 0, 0, 0.5),  /* Negro semi-transparente arriba */
                    rgba(0, 0, 0, 0.5)   /* Negro semi-transparente abajo */
                ),
                url("../img/islas malvinas.png"); /* Imagen de fondo */
    
    background-size: cover;        /* Ajusta la imagen al tamaño de la sección */
    background-position: center;   /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que se repita */
    background-attachment: fixed;  /* Hace que la imagen se quede fija */
    
    padding-top: 100px;            /* Ajuste para el header fijo */
    padding-bottom: 100px;         /* Espacio inferior */
    min-height: 100vh;             /* Altura mínima de toda la ventana */
    
    position: relative;
    color: #fff;                   /* Texto blanco si el fondo es oscuro */
    z-index: 1;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.card h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card p {
    font-size: 1em;
    color: var(--text-color);
    flex-grow: 1; /* Para que el contenido crezca y los botones estén alineados */
}
.card .btn {
    margin-top: 20px;
}

/* Galería - Carousel */
#galeria {
    background-color: var(--bg-light);
    background-image: url("../img/islas malvinas.png"); 
    background-size: cover; /* Ajusta la imagen al tamaño de la sección */
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que se repita */
    padding-top: 100px; /* Ajuste para el header fijo */
    padding-bottom: 100px; /* Espacio inferior para respirar */
    min-height: 100vh; /* Hace que ocupe toda la altura de la ventana */
    position: relative;
    color: #fff; /* Texto blanco si el fondo es oscuro */
    z-index: 1;
    padding-top: 100px; /* Ajuste para el header fijo */
    background-attachment: fixed;
    background-blend-mode: darken;
}
#galeria h2 {
    color: white;
}
#galeria h2::after {
    background-color: var(--secondary-color);
}

.carousel-container-gallery {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 3px solid #ebe3ff;
    max-height: 900px;
}

.carousel-slide-gallery {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide-gallery img {
    width: 100%;
    height: auto; /* Altura fija para las imágenes del carrusel */
    flex-shrink: 0;
    border-radius: 10px;
    cursor: zoom-in;
}

.prev-btn-gallery, .next-btn-gallery {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    font-size: 1.8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    z-index: 10;
}
.prev-btn-gallery:hover, .next-btn-gallery:hover {
    background-color: rgba(0,0,0,0.8);
}
.prev-btn-gallery {
    left: 10px;
}
.next-btn-gallery {
    right: 10px;
}

.carousel-dots-gallery {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dots-gallery .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.carousel-dots-gallery .dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Noticias */
#noticias {
    /* Degradado + imagen */
    background: linear-gradient(
                    rgba(0, 0, 0, 0.4),  /* Oscurece la imagen ligeramente */
                    rgba(0, 0, 0, 0.4)
                ),
                url("../img/islas malvinas.png"); /* Imagen sin escapar el espacio */

    background-size: cover;        /* La imagen ocupa toda la sección */
    background-position: center;   /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita repetición */
    background-attachment: fixed;  /* Efecto parallax (opcional) */

    padding-top: 100px;            /* Ajuste para header fijo */
    padding-bottom: 100px;         /* Espacio inferior */
    min-height: 100vh;             /* Que ocupe toda la ventana */

    position: relative;
    z-index: auto;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.news-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.news-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: left;
}
.news-item .date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
    text-align: left;
}
.news-item .summary {
    font-size: 1em;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 20px;
    text-align: left;
}
.news-item .btn {
    align-self: flex-start; /* Alinea el botón a la izquierda */
}
#load-more-news {
    display: block;
    margin: 50px auto 0;
}

/* Contacto */
#contacto {
    /* Imagen de fondo + filtro oscuro */
    background-color: rgba(0,0,0,0.5); /* filtro negro semi-transparente */
    background-image: url("../img/islas malvinas.png"); /* tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* efecto parallax sutil */
    background-blend-mode: darken; /* mezcla color + imagen para oscurecerla */

    /* Espaciado y tamaño */
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 100vh;

    /* Posición y color de texto */
    position: relative;
    color: #fff; /* texto blanco para destacar sobre fondo oscuro */
}

#contacto h2 {
    color: white;
}
#contacto h2::after {
    background-color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}
.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-info p i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.4em;
    width: 25px; /* Para alinear íconos */
    text-align: center;
}
.contact-info a {
    color: var(--light-text-color);
    text-decoration: underline;
}
.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 30px;
}
.social-links a {
    color: var(--light-text-color);
    font-size: 2em;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.error-message {
    color: #ffdddd; /* Rojo claro para errores en fondo oscuro */
    background-color: #c0392b; /* Fondo rojo oscuro */
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 5px;
    display: none; /* Oculto por defecto */
}
.status-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    display: none; /* Oculto por defecto */
    color: var(--light-text-color);
}
.status-message.success {
    background-color: #27ae60; /* Verde */
}
.status-message.error {
    background-color: #e74c3c; /* Rojo */
}

/* Spinner para formulario */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--light-text-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: #e6f5fa; /* Un poco más oscuro que primary */
    color: #fff;
    padding: 50px 0 20px;
    font-size: 0.95em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: left;
}
.footer-column p {
    color: #fff;
    line-height: 1.8;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: #fff;
}
.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.social-links-footer a {
    color: #fff;
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links-footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9em;
    color: #999;
}
.footer-bottom a {
    color: #999;
    margin: 0 10px;
}
.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    animation: fadeInScale 0.3s ease-out;
}
.modal-content h4 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}
.modal-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}
.modal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}
.modal-content ul li {
    margin-bottom: 8px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 25px; /* Mueve el botón más a la izquierda */
    font-size: 30px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 30%; /* Hace el botón redondo */
    width: 40px; /* Ancho del botón */
    height: 40px; /* Alto del botón */
    display: flex;
    align-items: center; /* Centra el texto (si tienes texto o un ícono) */
    justify-content: center; /* Centra el texto (si tienes texto o un ícono) */
}

/* Tabs dentro del Modal */
.tabs-container {
    margin-top: 20px;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}
.tab-button {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #777;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
.tab-button:hover {
    color: var(--secondary-color);
}
.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}
.tab-content {
    display: none;
    padding: 20px 0;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}
.tab-content h5 {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: left;
}
.small-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 15px;
}


/* Lightbox para Galería */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1002; /* Higher than modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    background-color: transparent; /* No background for content itself */
    position: relative;
}
.lightbox-close {
    position: absolute;
    top: 0px;
    right: 0px;
    color: var(--light-text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover {
    color: var(--accent-color);
    background-color: rgba(0,0,0,0.7);
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80vh; /* Adjust height for image */
    margin-bottom: 20px;
}
.lightbox-current-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    font-size: 2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.7);
}
.lightbox-prev {
    left: 0px;
}
.lightbox-next {
    right: 0px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px; /* Space for scrollbar */
    max-width: 100%;
    justify-content: center;
}
.lightbox-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}
.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
    opacity: 1;
    border-color: var(--secondary-color);
}

/* Scrollbar personalizado para lightbox-thumbnails */
.lightbox-thumbnails::-webkit-scrollbar {
    height: 8px;
}
.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}
.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}


/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Media Queries para Responsive Design */
@media (max-width: 1024px) {
    .hero-carousel .slide-content h2 {
        font-size: 2.8em;
    }
    .hero-carousel .slide-content p {
        font-size: 1.1em;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        order: -1; /* Mueve el mapa arriba en móviles */
    }
}

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 10px 0;
        height: var(--header-height); /* Mantiene la altura normal en mobile */
    }
    header .logo {
        margin-left: 15px;
    }
    header .logo h1 {
        font-size: 1.5em;
    }
    header nav ul {
        display: none; /* Oculta el menú en pantallas pequeñas */
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        right: 0;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 20px;
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.4s ease-out;
        z-index: 999; /* Debajo del header */
    }
    strong{
        margin-right: 20px;
    }
    header nav.nav-open ul {
        transform: translateX(0); /* Muestra el menú */
    }
    header nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    header nav ul li a {
        font-size: 1.4em;
        display: block;
        padding: 10px 0;
    }
    .nav-toggle {
        display: block; /* Muestra el botón hamburguesa */
        margin-right: 15px;
        position: relative;
        z-index: 1001; /* Asegura que esté por encima del menú desplegado */
    }
    .nav-toggle.active .icon-bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .nav-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .icon-bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* Hero Carousel */
    .hero-carousel {
        height: 450px;
    }
    .hero-carousel .slide-content h2 {
        font-size: 2.2em;
    }
    .hero-carousel .slide-content p {
        font-size: 1em;
    }

    /* Stats Section */
    .stats-section .stat-item {
        flex-basis: 45%;
    }

    /* Cards Grid (Propuesta) */
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Galería */
    .carousel-slide-gallery img {
        height: 350px;
    }

    /* Contacto */
    #contact-form {
        padding: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4 {
        text-align: center;
    }
    .social-links-footer {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h4 {
        font-size: 1.6em;
    }
    .tab-button {
        font-size: 1em;
        padding: 10px 15px;
    }

    /* Lightbox */
    .lightbox-image-container {
        height: 70vh;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 1.5em;
        padding: 8px 10px;
    }
    .lightbox-thumbnails img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2em;
    }
    .hero-carousel {
        height: 350px;
    }
    .hero-carousel .slide-content h2 {
        font-size: 1.8em;
    }
    .hero-carousel .slide-content p {
        font-size: 0.9em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .stats-section .stat-item {
        flex-basis: 100%;
        max-width: 300px; /* Para que no se estiren demasiado */
    }
    .carousel-slide-gallery img {
        height: 280px;
    }
    .prev-btn-gallery, .next-btn-gallery {
        font-size: 1.5em;
    }
    .news-item h3 {
        font-size: 1.3em;
    }
    .contact-info p {
        font-size: 1em;
    }
    .modal-content h4 {
        font-size: 1.4em;
    }
    .lightbox-image-container {
        height: 60vh;
    }
    .lightbox-thumbnails img {
        width: 50px;
        height: 38px;
    }
    .lightbox-close {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Clases para efectos de JavaScript */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only { /* Para accesibilidad: ocultar visualmente pero mantener para lectores de pantalla */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.borde-contacto {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Capa oscura encima */
#galeria::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* ← ajustá el 0.6 para más o menos oscuridad */
    z-index: 1;
}

/* El contenido de la galería debe ir por encima de la capa */
#galeria > * {
    position: relative;
    z-index: 2;
}


#contact-form {
    background-color: #e6f4ff;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s ease; /* Transición suave en 0.3 segundos */
}

#contact-form:hover{
    transform: translateY(-5px); /* Mueve el botón hacia arriba */
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

#contact-form h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
}
#contact-form .form-group {
    margin-bottom: 20px;
}
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="password"],
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #e2eef7;
    color: black;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form input[type="password"]::placeholder,
#contact-form textarea::placeholder {
    color: #070707;
}
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="password"]::focus,
#contact-form textarea:focus {
    border-color: var(--bg-dark);
    outline: none;
}
#contact-form textarea {
    resize: vertical;
}

#contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

#h2-blanco{
    color: #fff;
}

/* Estilos del modal de noticias */
.news-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.news-modal-content {
  background: #fff;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.news-modal-content h2 {
  margin-top: 0;
  color: #333;
}

.close-news-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
.close-news-modal:hover {
  color: #000;
}

/* Animaciones suaves */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Bloqueo de scroll cuando hay modal */
body.modal-open {
  overflow: hidden;
}

footer {
  background-color: #000524;
  color: #333;
  padding: 40px 0;
  text-align: left;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* 👈 esto alinea las tres columnas arriba */
  gap: 40px;                /* espacio entre columnas */
  flex-wrap: wrap;          /* para móviles */
}

.footer-column {
  flex: 1;
  min-width: 200px;         /* evita que se achiquen demasiado */
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-column p,
.footer-column a,
.footer-column li {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 5px 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.social-links-footer {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  margin-top: 30px;
}

.about-section {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
  background-color: transparent;
}

.about-container {
  background-color: #e6f4ff; /* 💙 Fondo celestito */
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 1100px; /* 👈 No ocupa todo el ancho */
  width: 90%;
  padding: 60px 40px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.about-container h2 {
  font-family: 'Source Serif Pro', serif;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.about-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

#noticias {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/islas malvinas.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: darken;

  padding-top: 100px;
  padding-bottom: 100px;
  min-height: 100vh;
  position: relative;
  z-index: auto;
}


/* Contenedor interno */
#gallery-lightbox .lightbox-content {
  position: relative;
  max-width: 96%;
  max-height: 96%;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Imagen principal */
#gallery-lightbox .lightbox-current-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

/* Botones y miniaturas (mantener encima) */
#gallery-lightbox .lightbox-prev,
#gallery-lightbox .lightbox-next,
#gallery-lightbox .lightbox-close {
  z-index: 100000;
}

.map-container {
  background-color: #e6f4ff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  color: #333333;
  transition: transform 0.3s ease; /* Transición suave en 0.3 segundos */
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.map-container h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #333333;
}

.map-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.map-content iframe {
  width: 350px;
  height: 350px;
  border-radius: 15px;
  border: none;
}

.contact-info {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 15px;
  width: 280px;
  color: #333333;
  text-align: left;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease; /* Transición suave en 0.3 segundos */
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.contact-info h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333333;
  text-align: center;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-info strong {
  display: inline-block;
  width: 90px;
  color: #333333;
}

/* Estilos básicos */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #000524;
    color: #fff;
}

header .logo img {
    max-width: 100px;
    height: auto;
}

nav {
    position: relative;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 130px;
    height: 55px;
}

.nav-toggle .icon-bar {
    display: block;
    width: 60px;
    height: 3px;
    margin: 5px 0;
    margin-left: 30px;
    background-color: white;
    box-shadow: none;  /* Esto elimina la sombra que no te gusta */
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .nav-list {
        display: flex;  /* El menú siempre es un contenedor flexible */
        flex-direction: column;
        background-color: #000524;
        position: absolute;
        top: 25px;
        right: 0;
        left: 7%;
        padding: 0px;
        margin-top: 10px;
        height: 0; /* Comienza con altura 0 */
        overflow: hidden; /* Oculta el contenido que desborda */
        transform: translateY(-20px); /* Comienza fuera de la pantalla */
        transition: height 0.3s ease, transform 0.3s ease; /* Añadir transición */
    }

    .nav-toggle {
        display: block;
    }

    .nav-list.open {
        height: auto;
        transform: translateY(0); /* El menú se mueve hacia su posición */
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.2rem;
    }
}

.about-card.full-width {
    width: 100%; /* Ocupa todo el ancho disponible */
    text-align: center; /* Centra el contenido dentro de la tarjeta */
    margin-top: 20px; /* Opcional: espacio superior para separar un poco */
}

.about-card.full-width .btn {
    display: inline-block;
    margin: 0 auto; /* Centra el botón dentro de la tarjeta */
}

/* Tabs dentro del Modal */
.tabs-container {
    margin-top: 20px;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}
.tab-button {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #777;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
.tab-button:hover {
    color: var(--secondary-color);
}
.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}
.tab-content {
    display: none;
    padding: 20px 0;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}
.tab-content h5 {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: left;
}
.small-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 15px;
}

.header{
    background-color: #fff;
}

#li-header{
    color: #fff;
}

.carousel-container-gallery {
    width: 100%;
    height: 400px; /* ajustá según el alto que quieras */
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0px;
    background-color: #000; /* fondo negro si el video no llena todo */
}

.carousel-slide-gallery {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 🖼️ Imágenes y videos dentro del carrusel */
.carousel-slide-gallery img,
.carousel-slide-gallery video {
    width: 100%;
    height: 400px; /* ajustá según el alto que quieras */
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0px;
    background-color: #000; /* fondo negro si el video no llena todo */
}

/* Si querés que los videos no se recorten, cambiá object-fit a 'contain' */
.carousel-slide-gallery video {
    display: block;
}

/* ⏪ Botones de navegación */
.prev-btn-gallery,
.next-btn-gallery {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.prev-btn-gallery:hover,
.next-btn-gallery:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn-gallery {
    left: 15px;
}

.next-btn-gallery {
    right: 15px;
}

/* 🔘 Indicadores (dots) */
.carousel-dots-gallery {
    text-align: center;
    margin-top: 15px;
}

.carousel-dots-gallery button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dots-gallery button.active {
    background-color: #fff;
}

/* 📱 Responsive: videos e imágenes más bajos en pantallas chicas */
@media (max-width: 768px) {
    .carousel-slide-gallery img,
    .carousel-slide-gallery video {
        height: 300px;
    }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px; /* Mueve el botón más a la izquierda */
    font-size: 30px;
    cursor: pointer;
    background-color: #333;
    border-radius: 30%; /* Hace el botón redondo */
    width: 40px; /* Ancho del botón */
    height: 40px; /* Alto del botón */
    display: flex;
    align-items: center; /* Centra el texto (si tienes texto o un ícono) */
    justify-content: center; /* Centra el texto (si tienes texto o un ícono) */
}


/* Contenedor de botones */
.carousel-buttons-container {
    display: flex;
    flex-direction: column; /* apilados verticalmente */
    align-items: center; /* centrados horizontalmente */
    gap: 20px; /* espacio entre botones */
    margin: 40px 0; /* espacio arriba y abajo */
}

/* Estilo de los botones que abren el carrusel */
button.open-modal {
    background-color: #AEEEEE; /* Fondo color pastel suave (turquesa claro) */
    color: #005F73; /* Letra azul oscuro */
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Transiciones suaves */
    text-align: center;
    width: 100%; /* Asegurar que ocupe el 100% del ancho del contenedor */
}

/* Efecto hover - cuando el usuario pasa el mouse */
button.open-modal:hover {
    background-color: #80FFFF; /* Fondo pastel más brillante (un poco más intenso) */
    transform: translateY(-3px); /* Ligera elevación al pasar el mouse */
}

/* Efecto de foco (focus) para accesibilidad */
button.open-modal:focus {
    outline: 3px solid #005F73; /* Borde azul oscuro cuando está en foco */
}

/* Descripción debajo del botón */
p.gallery-card-desc {
    color: #005F73; /* Azul oscuro para las descripciones */
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500; /* Peso de fuente moderado */
    line-height: 1.4;
}

/* Tarjeta de cada tecnicatura */
.gallery-card {
    background-color: #e6f4ff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 700px;
    height: 240px;

    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 30px;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Botón más pequeño con fondo blanco dentro de las tarjetas */
.gallery-card .open-modal {
    background-color: #80FFFF;
    color: #005F73; /* texto azul oscuro */
    padding: 10px 20px;
    font-size: 16px;
    width: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-card .open-modal:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Estilo para los botones del carrusel */
button.prev-btn-gallery,
button.next-btn-gallery {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    padding: 10px; /* Espaciado interno */
    font-size: 20px; /* Tamaño de la fuente */
    border-radius: 50%; /* Borde redondeado para hacer los botones circulares */
    position: absolute; /* Posicionarlos dentro del contenedor */
    top: 50%; /* Centrarlos verticalmente */
    transform: translateY(-50%); /* Ajustar el centrado */
    z-index: 1; /* Asegurar que estén encima de las imágenes */
    cursor: pointer; /* Cursor de puntero cuando se pasa por encima */
    transition: background-color 0.3s, transform 0.3s; /* Transiciones suaves */
}

/* Botón "anterior" */
button.prev-btn-gallery {
    left: 10px; /* Alineado a la izquierda */
}

/* Botón "siguiente" */
button.next-btn-gallery {
    right: 10px; /* Alineado a la derecha */
}

/* Efecto hover - cuando el usuario pasa el mouse */
button.prev-btn-gallery:hover,
button.next-btn-gallery:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro más intenso */
    transform: scale(1.1); /* Aumentar ligeramente el tamaño */
}

/* Responsive */
@media (max-width: 768px) {
    .open-modal {
        width: 70%; /* más ancho en móviles */
        font-size: 16px;
        padding: 12px 20px;
    }

    /* Ajuste para las tarjetas en móviles */
    .gallery-card {
        width: 70vw; /* ahora más ancha */
        max-width: 800px; /* opcional para pantallas grandes */
    }
}

/* Modal base */
.modal-galeria {
    display: none; /* oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 40px;
    width: 100%;
    height: 100vh;
    overflow: auto;
}

/* Ajustes para dispositivos pequeños (móviles y tabletas) */
@media (max-width: 768px) {
    .modal-galeria {
        top: 80px; /* Mayor distancia en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .modal-galeria {
        top: 120px; /* Aún más distancia para pantallas muy pequeñas */
    }
}

.logos-galeria{
    height: 50px;
    width: 50px;
}

header .logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.decorative-line {
    width: 60px; /* La longitud de la línea */
    height: 2px; /* El grosor de la línea */
    background-color: #000524; /* El color de la línea */
    border: none; /* Quitamos el borde predeterminado */
    margin: 20px auto; /* Centramos la línea con un margen */
}

/* === Registro (usa el mismo formulario que contacto) === */

#contacto {
    background: url('../img/islas malvinas.png') no-repeat center center fixed;
    background-size: cover;
    padding-top: 120px;
    min-height: 100vh;
}

/* Estilo del formulario reutilizado, solo ajustes menores */
#contact-form .status-message {
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

#contact-form .status-message.success {
    color: #005f2f;
}

#contact-form .status-message.error {
    color: #8b0000;
}

#contact-form .login-link {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95em;
    color: #003366;
}

#contact-form .login-link a {
    color: var(--bg-dark);
    font-weight: bold;
    text-decoration: underline;
}

#contact-form .login-link a:hover {
    color: #004a99;
}

