/* Variables de color */
:root {
    --primary-color: #0F2027;
    --secondary-color: #203A43;
    --accent-color: #2C5364;
    --text-color: #ffffff;
    --highlight-color: #00ffd5;
    --bg-light: #f7f7f7;
    --text-dark: #1a1a1a;
}

/* Fuente */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

/* Contenedor */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.2);
}

header .overlay {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3em;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

header .subtitle {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
    color: var(--highlight-color);
}

/* Secciones */
section {
    padding: 50px 20px;
}

section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Galería de imágenes */
.gallery .images {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery img {
    width: 100%;
    max-width: 280px;
    height: 332px;
    /* puedes ajustar esta altura si lo deseas */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.gallery img:hover {
    transform: scale(1.05);
}

/* Contacto */
.contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 20px;
    font-size: 14px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* Fondo oscuro */
.modal {
    display: none; /* se activa con JS */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}


/* Caja blanca centrada */
.modal-box {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cerrar (X) */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #555;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Contenedor de imagen + título */
.modal-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Imagen pequeña */
.modal-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

/* Título */
.modal-text h3 {
    font-size: 20px;
    margin: 0;
    color: #222;
}

/* Descripción */
#modalDesc {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Responsive: apilar imagen y texto */
@media (max-width: 600px) {
    .modal-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-img {
        width: 80%;
    }
}

#caption h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

#caption p {
    color: #ddd;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}