/* ===================================
   CARTA DE SAN VALENTÍN 2026
   ================================== */

/* ===================================
   ALERTA PERSONALIZADA
   ================================== */

.sanvalentin-alerta-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    justify-content: center;
    align-items: center;
}

.sanvalentin-alerta-overlay.activa {
    display: flex;
}

.sanvalentin-alerta-caja {
    background: linear-gradient(135deg, #fff0f5, #ffe4f1);
    border-radius: 20px;
    padding: 45px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.4);
    border: 3px solid #ff69b4;
    animation: sanvalentinAlertaEntrar 0.4s ease;
}

@keyframes sanvalentinAlertaEntrar {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sanvalentin-alerta-icono {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(255, 105, 180, 0.4));
}

.sanvalentin-alerta-texto {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #c71585;
    margin: 0 0 30px;
    font-style: italic;
    font-weight: 500;
}

.sanvalentin-alerta-botones {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sanvalentin-alerta-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sanvalentin-alerta-btn-si {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #fff;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}

.sanvalentin-alerta-btn-si:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6);
}

.sanvalentin-alerta-btn-no {
    background: #fff;
    color: #c71585;
    border: 2px solid #ff69b4;
}

.sanvalentin-alerta-btn-no:hover {
    background: #fff0f5;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sanvalentin-alerta-caja {
        padding: 30px 25px;
    }

    .sanvalentin-alerta-texto {
        font-size: 1.1rem;
    }

    .sanvalentin-alerta-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

/* Contenedor principal de la carta */
.carta-sanvalentin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 80px auto;
    padding: 40px;
    max-width: 500px;
}

/* Sobre de San Valentín */
.sanvalentin-envelope {
    position: relative;
    width: 400px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    perspective: 1000px;
}

.sanvalentin-envelope:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 105, 180, 0.6);
}

/* Parte trasera del sobre */
.sanvalentin-envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #c71585 100%);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.4);
    z-index: 1;
    border: 3px solid #ff1493;
}

/* Parte frontal del sobre */
.sanvalentin-envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.sanvalentin-envelope-front::before,
.sanvalentin-envelope-front::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.sanvalentin-envelope-front::before {
    top: 0;
    left: 0;
    border-width: 150px 200px 0 0;
    border-color: #ff85c1 transparent transparent transparent;
}

.sanvalentin-envelope-front::after {
    top: 0;
    right: 0;
    border-width: 0 200px 150px 0;
    border-color: transparent #ff85c1 transparent transparent;
}

/* Solapa del sobre */
.sanvalentin-envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb3d9 0%, #ff69b4 100%);
    clip-path: polygon(0% 0%, 50% 50%, 100% 0%);
    transform-origin: top center;
    transition: transform 0.5s ease;
    z-index: 6;
    border-left: 2px solid #ff1493;
    border-right: 2px solid #ff1493;
}

.sanvalentin-envelope:hover .sanvalentin-envelope-flap {
    transform: rotateX(180deg);
}

/* Carta dentro del sobre */
.sanvalentin-love-letter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 85%;
    background: linear-gradient(to bottom, #fff0f5, #ffe4f1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    transition: transform 0.5s ease;
    z-index: 2;
    padding: 20px;
    border: 2px solid #ffb3d9;
}

.sanvalentin-envelope:hover .sanvalentin-love-letter {
    transform: translateX(-50%) translateY(-20px);
}

/* Encabezado de la carta */
.sanvalentin-letter-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ff69b4;
}

.sanvalentin-letter-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.3);
}

.sanvalentin-letter-date {
    font-size: 1rem;
    color: #c71585;
    font-style: italic;
}

/* Líneas de texto simuladas */
.sanvalentin-letter-lines {
    margin-top: 15px;
}

.sanvalentin-letter-lines::before,
.sanvalentin-letter-lines::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffb3d9, transparent);
    margin: 10px 0;
    border-radius: 2px;
}

/* Sello del sobre */
.sanvalentin-envelope-seal {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    z-index: 4;
    animation: sanvalentinPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 20, 147, 0.6));
}

@keyframes sanvalentinPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Conejo decorativo */
.sanvalentin-conejo {
    position: absolute;
    bottom: -40px;
    left: -50px;
    width: 120px;
    height: auto;
    z-index: 5;
    animation: sanvalentinBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(255, 105, 180, 0.4));
}

@keyframes sanvalentinBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtítulo */
.carta-sanvalentin-subtitle {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #ff1493;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.3);
    animation: sanvalentinGlow 2s ease-in-out infinite;
}

@keyframes sanvalentinGlow {
    0%, 100% {
        text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 105, 180, 0.6);
    }
}

/* ===================================
   MODAL DE SAN VALENTÍN
   ================================== */

/* Modal fullscreen opaco - no se ve nada detrás */
#cartaSanValentinModal {
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: none;
    overflow: hidden;
}

/* Sección principal con textura papel de fondo */
.sanvalentin-seccion-1 {
    position: relative;
    padding: 1040px 140px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Imagen de papel como fondo con margen para ver el negro */
.sanvalentin-fondo-papel {
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    object-fit: cover;
    z-index: 0;
    border-radius: 8px;
}

/* Cuadro de carta separado */
.sanvalentin-carta-cuadro {
    position: absolute;
    top: 450px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 85%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Sección intermedia */
.sanvalentin-seccion-intermedia {
    background: #000000;
    padding: 60px 60px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Título de la sección intermedia */
.seccion-intermedia-titulo {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 60px;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    font-style: italic;
}

/* Contenedor de frases en la oscuridad */
.oscuridad-frases-container {
    position: relative;
    width: 100%;
    height: 100vh;
    cursor: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    animation: marcoPulso 3s ease-in-out infinite;
}

@keyframes marcoPulso {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.05), inset 0 0 8px rgba(255, 255, 255, 0.02);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 0 18px rgba(255, 255, 255, 0.12), inset 0 0 15px rgba(255, 255, 255, 0.04);
    }
}

/* Cada frase individual */
.oscuridad-frase {
    position: absolute;
    font-size: 1.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0);
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.6s ease, text-shadow 0.6s ease;
    font-style: italic;
    letter-spacing: 0.5px;
    user-select: none;
}

/* Frase iluminada */
.oscuridad-frase.iluminada {
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 10px rgba(255, 200, 220, 0.6),
        0 0 30px rgba(255, 150, 180, 0.3),
        0 0 60px rgba(255, 100, 150, 0.15);
}

/* Linterna del cursor */
.oscuridad-linterna {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(
        circle,
        rgba(255, 220, 235, 0.08) 0%,
        rgba(255, 180, 210, 0.04) 40%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.oscuridad-linterna.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .seccion-intermedia-titulo {
        font-size: 1.4rem;
        padding: 0 20px;
    }

    .oscuridad-frases-container {
        height: 120vh;
    }

    .oscuridad-frase {
        font-size: 1rem;
        white-space: normal;
        max-width: 80%;
    }

    .sanvalentin-seccion-intermedia {
        padding: 60px 20px;
    }
}

/* ===================================
   SECCIÓN CARTA
   ================================== */

.sanvalentin-seccion-carta {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.sanvalentin-carta-img {
    width: calc(100% - 80px);
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive carta */
@media (max-width: 768px) {
    .sanvalentin-seccion-carta {
        padding: 20px;
    }

    .sanvalentin-carta-img {
        width: calc(100% - 40px);
    }
}


/* Sección 3: Imagen */
.sanvalentin-seccion-3 {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

/* Sección 4 */
.sanvalentin-seccion-4 {
    background: #000000;
    padding: 60px 40px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sección final / footer de la carta */
.sanvalentin-seccion-final {
    background: #000000;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sanvalentin-seccion-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.sanvalentin-final-contenido {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(255, 20, 147);
    border: 3px solid #ff69b4;
}

.sanvalentin-final-texto {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    color: #c71585;
    margin: 0;
    font-style: italic;
}

.sanvalentin-final-teamo {
    font-size: 2.5rem;
    color: #ff1493;
    margin: 30px 0 0;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
    word-break: break-word;
}

@media (max-width: 768px) {
    .sanvalentin-seccion-final {
        padding: 60px 20px;
    }

    .sanvalentin-final-contenido {
        padding: 30px 20px;
    }

    .sanvalentin-final-texto {
        font-size: 1.1rem;
    }

    .sanvalentin-final-teamo {
        font-size: 2.5rem;
    }
}

/* Hatsune clickeable arriba a la izquierda */
.sanvalentin-hatsune-wrapper {
    position: absolute;
    top: 70px;
    left: 60px;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sanvalentin-hatsune-wrapper:hover {
    transform: scale(1.1) rotate(-5deg);
}

.sanvalentin-hatsune {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

/* Mini carta emergente */
.sanvalentin-mini-carta {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.sanvalentin-mini-carta.activa {
    display: flex;
}

.sanvalentin-mini-carta-contenido {
    background: linear-gradient(135deg, #fff0f5, #ffe4f1);
    border-radius: 15px;
    padding: 40px 35px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(255, 20, 147, 0.4);
    border: 3px solid #ff69b4;
    text-align: center;
}

.sanvalentin-mini-carta-contenido p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #c71585;
    margin: 0;
    font-style: italic;
}

.sanvalentin-mini-carta-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #c71585;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sanvalentin-mini-carta-cerrar:hover {
    transform: scale(1.3);
}

/* Contenedor de listones posicionado arriba */
.sanvalentin-listones {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

/* Listón principal */
.sanvalentin-titulo-grande {
    font-size: 5rem;
    color: #ffffff;
    text-align: center;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #c71585 100%);
    padding: 25px 0;
    transform: rotate(-3deg);
    width: 120vw;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
    position: relative;
    z-index: 2;
}

/* Listón secundario cruzado por debajo */
.sanvalentin-liston-secundario {
    font-size: 2.2rem;
    color: #ffffff;
    text-align: center;
    margin: 0;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #c71585 0%, #a0105a 50%, #8b0a50 100%);
    padding: 12px 0;
    transform: rotate(1deg);
    width: 120vw;
    box-shadow: 0 6px 20px rgba(160, 16, 90, 0.5);
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

/* Subtítulo */
.sanvalentin-subtitulo-recorrido {
    font-size: 1.8rem;
    color: rgba(80, 40, 30, 0.85);
    text-align: center;
    margin: 0;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    position: absolute;
    top: 390px;
    left: 0;
    width: 100%;
    z-index: 2;
    animation: subtituloOscila 3s ease-in-out infinite;
}

@keyframes subtituloOscila {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Responsive para títulos */
@media (max-width: 768px) {
    .sanvalentin-titulo-grande {
        font-size: 2.8rem;
    }

    .sanvalentin-liston-secundario {
        font-size: 1.4rem;
    }

    .sanvalentin-subtitulo-recorrido {
        font-size: 1.2rem;
    }

    .sanvalentin-listones {
        top: 40px;
    }

    .sanvalentin-hatsune-wrapper {
        left: 15px;
        top: 10px;
    }

    .sanvalentin-hatsune {
        width: 80px;
    }
}

/* Carrete a la izquierda */
.sanvalentin-carrete-wrapper {
    position: absolute;
    left: 80px;
    top: 750px;
    z-index: 4;
}

.sanvalentin-carrete {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
}

/* Responsive carrete */
@media (max-width: 768px) {
    .sanvalentin-carrete-wrapper {
        position: relative;
        left: auto;
        top: auto;
        margin: 40px auto 0;
        text-align: center;
    }

    .sanvalentin-carrete {
        width: 200px;
    }
}

/* ===================================
   POKÉDEX CLICKER
   ================================== */

.pokedex-container {
    position: absolute;
    right: 80px;
    top: 370px;
    z-index: 4;
}

.pokedex-body {
    background: linear-gradient(145deg, #dc2626, #b91c1c, #991b1b);
    border-radius: 20px;
    padding: 20px;
    width: 280px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border: 3px solid #7f1d1d;
}

/* Franja superior con luces */
.pokedex-top-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #7f1d1d;
}

.pokedex-lens {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #93c5fd, #3b82f6, #1e3a8a);
    border: 3px solid #e5e7eb;
    box-shadow:
        0 0 10px rgba(59, 130, 246, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.pokedex-small-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.pokedex-light-red {
    background: radial-gradient(circle at 40% 40%, #fca5a5, #ef4444);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

.pokedex-light-yellow {
    background: radial-gradient(circle at 40% 40%, #fde68a, #f59e0b);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

.pokedex-light-green {
    background: radial-gradient(circle at 40% 40%, #86efac, #22c55e);
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

/* Pantalla del pokédex */
.pokedex-screen {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    padding: 15px;
    border: 4px solid #374151;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.pokedex-pokemon-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.15s ease;
    image-rendering: auto;
}

.pokedex-pokemon-img:active {
    transform: scale(0.9);
}

/* Contador */
.pokedex-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    background: #1f2937;
    border-radius: 8px;
    padding: 8px 15px;
    border: 2px solid #374151;
}

.pokedex-counter-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 2px;
}

.pokedex-counter-number {
    font-size: 1.8rem;
    color: #4ade80;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Botones inferiores */
.pokedex-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px;
}

.pokedex-dpad {
    position: relative;
    width: 60px;
    height: 60px;
}

.pokedex-dpad-h,
.pokedex-dpad-v {
    position: absolute;
    background: #1f2937;
    border-radius: 3px;
    border: 1px solid #374151;
}

.pokedex-dpad-h {
    width: 100%;
    height: 33%;
    top: 33%;
}

.pokedex-dpad-v {
    width: 33%;
    height: 100%;
    left: 33%;
}

.pokedex-btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4b5563, #374151);
    border: 2px solid #1f2937;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

.pokedex-btn-round:active {
    transform: scale(0.9);
}

/* Animación de evolución */
@keyframes pokedexEvolve {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.3); filter: brightness(3); }
    60% { transform: scale(0.8); filter: brightness(2); }
    100% { transform: scale(1); filter: brightness(1); }
}

.pokedex-evolving {
    animation: pokedexEvolve 0.6s ease-out;
}

/* Responsive pokédex */
@media (max-width: 768px) {
    .pokedex-container {
        position: relative;
        right: auto;
        top: auto;
        margin: 40px auto 0;
    }

    .pokedex-body {
        width: 250px;
    }

    .pokedex-pokemon-img {
        width: 150px;
        height: 150px;
    }

    .pokedex-screen {
        min-height: 170px;
    }
}

/* Difuminado entre sección blanca e imagen */


.sanvalentin-modal-content {
    background: #000;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Botón de cerrar */
.sanvalentin-close-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    background: rgba(255, 20, 147, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
}

.sanvalentin-close-btn:hover {
    background: rgba(199, 21, 133, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.8);
}

/* Contenedor principal */
.sanvalentin-main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sanvalentin-imagen-principal {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.sanvalentin-carta-titulo {
    font-size: 2.5rem;
    color: #c71585;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.sanvalentin-carta-texto {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.sanvalentin-carta-texto p {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .carta-sanvalentin-container {
        padding: 20px;
    }

    .sanvalentin-envelope {
        width: 300px;
        height: 225px;
    }

    .sanvalentin-conejo {
        width: 80px;
        left: -30px;
        bottom: -30px;
    }

    .sanvalentin-close-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .sanvalentin-seccion-3 {
        min-height: 40vh;
    }

    .sanvalentin-carta-titulo {
        font-size: 2rem;
    }

    .sanvalentin-carta-texto {
        font-size: 1.1rem;
    }

    .sanvalentin-carta-texto p {
        padding: 20px;
    }

    .sanvalentin-seccion-1 {
        padding: 40px 15px;
    }

    .sanvalentin-carta-cuadro {
        width: 95%;
        margin-top: 50px;
        padding: 30px 20px;
    }

    .sanvalentin-seccion-4 {
        padding: 40px 20px;
    }
}
