/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #0f4c75;
    --secondary: #00a896;
    --accent: #7e57c2;
    --light: #e3f2fd;
    --dark: #2d3748;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* ===== RESET Y ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--primary);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: var(--primary);
}

/* ---------------- para popup */
.popup-prorroga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999; /* Valor ultra alto */
    align-items: center;
    display: none;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-prorroga.mostrar {
    display: flex;
    opacity: 1;
}

.popup-contenido {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 90%;
    padding: 20px;
    animation: aparecer 0.5s;
}

@keyframes aparecer {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cerrar-popup {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.contenedor-imagenes {
    display: flex;
    flex-direction: column; /* Apila verticalmente */
    align-items: center; /* Centra horizontalmente */
    gap: 20px; /* Espacio entre imágenes */
    width: 100%;
    max-width: 300px; /* Ancho máximo del contenedor */
    margin: 0 auto; /* Centra el contenedor */
}

.imagen-popup {
    width: 100%; /* Ocupa todo el ancho disponible */
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.imagen-popup:hover {
    transform: scale(1.03);
}

.imagen-popup img {
    width: 100%;
    height: auto;
    display: block;
}

#popupProrroga.mostrar {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .contenedor-imagenes {
        flex-direction: column; /* Mantiene apilado vertical aunque sea desktop */
        max-width: 400px; /* Puedes ajustar este valor */
    }
}