/* Reset y estilo general */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #a8edea, #fed6e3, #d299c2); /* Gradient background */
    color: black;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #667eea, #764ba2); /* Gradient header */
    color: white;
    border-radius: 0 0 20px 20px;
    position: relative;
}

header p {
    margin-top: 5px;
    font-size: 16px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-btn, .extra-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.nav-btn:hover, .extra-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Contenedor y tarjetas */
.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta {
    background: linear-gradient(135deg, #f093fb, #f5576c); /* Gradient cards */
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 18px;
    font-weight: bold;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* MODAL */
#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-contenido {
    background: linear-gradient(135deg, #a8edea, #fed6e3); /* Gradient modal */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: aparecer 0.4s ease;
    color: #fff;
    box-shadow: 0 0 30px #ff00cc, 0 0 50px #333399;
    text-align: center;
    overflow-y: auto;
    max-height: 90vh;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botón cerrar */
#cerrar {
    color: #aaa;
    float: right;
    font-size: 40px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}

#cerrar:hover {
    color: black;
}

/* Titulos y texto del modal */
#modal-titulo {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

#modal-texto {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Espacio para imágenes dentro del modal */
#modal-imagenes {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#modal-imagenes img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, filter 0.3s;
}

#modal-imagenes img:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

/* Botón de salida */
#btn-salir {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #feca57); /* Gradient button */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 2000;
}

#btn-salir:hover {
    transform: scale(1.05);
}

.extra-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #a8edea, #fed6e3);
    color: black;
    margin-top: 40px;
    border-radius: 15px 15px 0 0;
}
