* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #0a0f2e, #050618);
    color: #f2f2ff;
}

/* HEADER */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(90deg, #240022, #1a003d, #0b1a3a);
    box-shadow:
        0 0 50px rgba(255,0,245,0.4),
        0 0 100px rgba(0,212,255,0.3),
        0 0 120px rgba(123,0,255,0.25),
        0 0 140px rgba(63,92,255,0.25);
    border-bottom: 2px solid #ff2fb3;
}

header h1 {
    margin: 0;
    font-size: 3em;
    background: linear-gradient(90deg, #ff00f5, #00f0ff, #7b00ff, #3f5cff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 15px rgba(255,0,245,1),
        0 0 30px rgba(0,240,255,0.8),
        0 0 50px rgba(123,0,255,0.8),
        0 0 70px rgba(63,92,255,0.6);
}

header p {
    margin-top: 10px;
    color: #d6c8ff;
    letter-spacing: 2px;
}

/* GRID TARJETAS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    padding: 60px;
}

/* TARJETAS – MÁS ALTAS */
.tema {
    height: 220px; /* antes 140px → ahora más altas */
    background: linear-gradient(135deg, #1a003d, #0b1a3a);
    border-radius: 8px; /* más cuadradas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.35em;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,0,245,0.6); /* fucsia fuerte */
    box-shadow:
        0 0 25px rgba(255,0,245,0.7),
        0 0 40px rgba(0,240,255,0.6),
        0 0 60px rgba(123,0,255,0.5),
        0 0 80px rgba(63,92,255,0.4);
    transition: all 0.35s ease;
}

.tema:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 0 40px rgba(255,0,245,1),
        0 0 60px rgba(0,240,255,0.9),
        0 0 80px rgba(123,0,255,0.7),
        0 0 100px rgba(63,92,255,0.6);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
}

/* PANEL MODAL – ancho actual, alto más grande opcional */
.modal-panel {
    width: 80%; 
    height: 62%; 
    margin: 8% auto;
    background: linear-gradient(160deg, #2a001f, #1a003d, #050718);
    border-radius: 12px;
    padding: 35px;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 0 35px rgba(255,0,245,0.8),
        0 0 55px rgba(0,212,255,0.7),
        0 0 80px rgba(123,0,255,0.6),
        0 0 100px rgba(63,92,255,0.5);
}

/* TITULOS TRANSPARENTES NEON FUERTE */
.modal-panel h2,
.tema,
header h1 {
    background: linear-gradient(90deg, #ff00f5, #00f0ff, #7b00ff, #3f5cff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 15px rgba(255,0,245,1),
        0 0 30px rgba(0,240,255,0.9),
        0 0 50px rgba(123,0,255,0.8),
        0 0 70px rgba(63,92,255,0.7);
}

/* TEXTO MODAL */
.modal-panel p,
.modal-panel li {
    font-size: 1.1em;
    line-height: 1.85;
    color: #efeaff;
}

/* BOTÓN CERRAR */
.cerrar {
    position: absolute;
    top: 22px;
    right: 25px;
    background: none;
    border: none;
    color: #ff00f5; /* fucsia fuerte */
    font-size: 2em;
    cursor: pointer;
    text-shadow: 0 0 15px rgba(255,0,245,0.9);
}

.cerrar:hover {
    color: #00f0ff;
    text-shadow: 0 0 25px rgba(0,212,255,1);
}
/* Imágenes dentro del modal */
.modal-panel img {
    max-width: 100%;  /* Ajusta al ancho del modal */
    height: auto;     /* Mantiene proporción */
    display: block;
    margin: 15px 0;   /* Espacio arriba y abajo */
    border-radius: 10px;
    box-shadow: 
        0 0 15px rgba(255,0,245,0.6),
        0 0 25px rgba(0,240,255,0.5);
}
