/* ========================================================= */
/* ESTILOS PRINCIPALES Y BASE */
/* ========================================================= */

html {
    background-color: #f8b5c0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
}

body {
    background-color: #f8b5c0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 !important;
    padding: 20px 0 50px 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    display: flow-root;
}

h1 {
    font-family: 'Caveat', cursive, 'Segoe UI', sans-serif !important;
    font-size: 3.2rem !important;
    color: #5c112b !important;
    margin: 20px 0 10px 0 !important;
}

/* ========================================================= */
/* DECORACIÓN LATERAL MORADA */
/* ========================================================= */

body::before, body::after {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 42px !important;
    height: 100vh !important;
    height: 100dvh !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 0.85 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 800'%3E%3Cpath fill='%238a4baf' d='M0,0 C40,100 40,300 20,400 C0,500 40,700 0,800 L0,800 L0,0 Z'/%3E%3Ccircle cx='25' cy='100' r='12' fill='%237b3fa1'/%3E%3Ccircle cx='32' cy='250' r='15' fill='%239b59b6'/%3E%3Ccircle cx='18' cy='450' r='14' fill='%237b3fa1'/%3E%3Ccircle cx='28' cy='620' r='16' fill='%238e44ad'/%3E%3Ccircle cx='15' cy='740' r='11' fill='%239b59b6'/%3E%3C/svg%3E") !important;
    background-repeat: repeat-y !important;
    background-size: 100% auto !important;
    background-position: top left !important;
}

body::before {
    left: 0 !important;
}

body::after {
    right: 0 !important;
    transform: scaleX(-1) !important;
}

@media (max-width: 600px) {
    body::before, body::after {
        width: 26px !important;
    }
}

body.pagina-galeria::before,
body.pagina-galeria::after {
    display: none !important;
}

/* ========================================================= */
/* FOTO PRINCIPAL */
/* ========================================================= */

body > img:first-of-type {
    background: #ffffff !important;
    padding: 12px 12px 42px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 35px rgba(186, 24, 88, 0.22) !important;
    transform: rotate(-2deg) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    max-width: 82% !important;
    margin: 15px auto 30px auto !important;
    display: block !important;
    animation: flotarPolaroid 5s ease-in-out infinite !important;
}

body > img:first-of-type:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 0 22px 40px rgba(186, 24, 88, 0.32) !important;
}

@keyframes flotarPolaroid {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* ========================================================= */
/* TARJETAS */
/* ========================================================= */

.card {
    background: linear-gradient(145deg, #ffffff 0%, #ffe3ec 60%, #f0d6ff 100%) !important;
    border: 2px solid rgba(253, 180, 237, 0.9) !important;
    border-radius: 26px !important;
    padding: 25px 20px !important;
    margin: 25px auto !important;
    max-width: 380px !important;
    width: calc(100% - 64px) !important;
    box-shadow: 0 12px 28px rgba(114, 9, 183, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(114, 9, 183, 0.22) !important;
}

h2, .card h2, body > h2 {
    font-family: 'Caveat', cursive, sans-serif !important;
    font-size: 2.5rem !important;
    color: #4a1259 !important;
    margin: 5px 0 12px 0 !important;
    font-weight: 700 !important;
}

/* ========================================================= */
/* CONTADOR DE POLOLEO */
/* ========================================================= */

#contador {
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    
    background: linear-gradient(135deg, #ff758f 0%, #f72585 50%, #b5179e 100%) !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.35) !important;
    
    letter-spacing: 0.5px !important;
    margin: 10px auto 5px auto !important;
    animation: pulsoRomantico 3s ease-in-out infinite !important;
}

#contador::before {
    content: '💖 ' !important;
    font-size: 1.1rem !important;
    margin-right: 4px !important;
}

@keyframes pulsoRomantico {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(247, 37, 133, 0.35);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 25px rgba(247, 37, 133, 0.5);
    }
}

/* ========================================================= */
/* BOTÓN Y TEXTO DE RAZONES */
/* ========================================================= */

#razon, .card p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.98rem !important;
    color: #3c096c !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    margin: 15px 10px !important;
}

#boton-razon {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(114, 9, 183, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#boton-razon:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 12px 25px rgba(247, 37, 133, 0.5) !important;
}

/* ========================================================= */
/* CARRUSEL DE FOTOS WEBCAM */
/* ========================================================= */

#galeria {
    text-align: center;
}

.carrusel-contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

#img-carrusel {
    max-width: 75%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: src 0.3s ease;
}

.fade-anim {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.2;
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#boton-anterior,
#boton-siguiente {
    background-color: #ff85a1;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#boton-anterior:hover,
#boton-siguiente:hover {
    background-color: #ff6b8b;
    transform: scale(1.1);
}

#boton-anterior:active,
#boton-siguiente:active {
    transform: scale(0.95);
}

.indicadores {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.punto {
    width: 10px;
    height: 10px;
    background-color: #ffd1dc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.punto.activo {
    background-color: #ff85a1;
    transform: scale(1.3);
}

/* ========================================================= */
/* LÍNEA DEL TIEMPO */
/* ========================================================= */

.timeline {
    position: relative;
    margin: 20px 10px 10px 15px;
    padding-left: 20px;
    border-left: 3px solid #ff85a1;
    text-align: left;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #ff85a1;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ff85a1;
}

.timeline-content {
    background-color: #f7cee1;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 4px;
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #832c2c;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555555;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

.timeline-content > video {
    width: 100% !important;
    max-height: 320px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 10px 0 !important;
    display: block !important;
}

/* ========================================================= */
/* MOSAICOS DE FOTOS */
/* ========================================================= */

.mosaico-3 {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    grid-template-rows: 110px 110px !important;
    gap: 4px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 12px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer;
}

.mosaico-3 > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: filter 0.2s ease;
}

.mosaico-3 > *:hover {
    filter: brightness(0.92);
}

.mosaico-3 > *:nth-child(1) { grid-row: 1 / span 2 !important; grid-column: 1 !important; }
.mosaico-3 > *:nth-child(2) { grid-row: 1 !important; grid-column: 2 !important; }
.mosaico-3 > *:nth-child(3) { grid-row: 2 !important; grid-column: 2 !important; }

.foto-mas-contenedor {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.foto-mas-contenedor img,
.foto-mas-contenedor video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.capa-mas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease;
}

.foto-mas-contenedor:hover .capa-mas {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* ========================================================= */
/* VISOR EN PANTALLA COMPLETA */
/* ========================================================= */

.modal-visor, #modal-visor,
.modal, #modal,
.lightbox, #lightbox {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(0, 0, 0, 0.92) !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-visor.activo, #modal-visor.activo,
.modal.activo, #modal.activo,
.lightbox.activo, #lightbox.activo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 769px) {
    #foto-ampliada, #video-ampliado,
    .modal img, .modal video,
    #modal img, #modal video {
        max-width: 90vw !important;
        max-height: 85vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        margin: auto !important;
    }
}

@media (max-width: 768px) {
    #foto-ampliada, #video-ampliado,
    .modal img, .modal video,
    #modal img, #modal video {
        max-width: 92vw !important;
        max-height: 72dvh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8) !important;
        margin: auto !important;
        transform: translateY(-12px) !important;
    }
}

.cerrar-modal, .cerrar, .close, .modal-close, #modal-close {
    position: fixed !important;
    top: 15px !important;
    right: 20px !important;
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100001 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1 !important;
}

.modal-flecha, .flecha, .prev, .next, 
.modal-prev, .modal-next, #prev, #next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.modal-flecha:hover, .flecha:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.modal-flecha.izquierda, .flecha.izq, .prev, .modal-prev, #prev {
    left: 15px !important;
}

.modal-flecha.derecha, .flecha.der, .next, .modal-next, #next {
    right: 15px !important;
}

/* ========================================================= */
/* GALERIA.HTML */
/* ========================================================= */

body.pagina-galeria {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #0e0e0e !important;
    color: #ffffff !important;
}

body.pagina-galeria .header-galeria {
    text-align: center;
    padding: 25px 15px 20px !important;
    background-color: #121212 !important;
    border-bottom: 1px solid #222222 !important;
}

body.pagina-galeria .header-galeria a,
body.pagina-galeria .boton-volver {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    padding: 10px 24px !important;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: none !important;
}

body.pagina-galeria .header-galeria a:hover,
body.pagina-galeria .boton-volver:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6) !important;
    color: #ffffff !important;
}

body.pagina-galeria .header-galeria h1 {
    color: #ffffff !important;
    font-size: 1.7rem !important;
    margin: 10px 0 6px !important;
    font-family: inherit !important;
}

body.pagina-galeria .subtitulo-galeria {
    color: #aaaaaa !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

body.pagina-galeria .contenedor-galeria-masiva {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    box-sizing: border-box !important;
}

body.pagina-galeria .grid-masivo {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.pagina-galeria img.foto-grid-item,
body.pagina-galeria video.foto-grid-item {
    height: 180px !important;
    width: auto !important;
    flex-grow: 1 !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    background-color: #222222;
    transition: opacity 0.15s ease;
}

body.pagina-galeria img.foto-grid-item:hover,
body.pagina-galeria video.foto-grid-item:hover {
    opacity: 0.82;
}

@media (max-width: 600px) {
    body.pagina-galeria img.foto-grid-item,
    body.pagina-galeria video.foto-grid-item {
        height: 120px !important;
    }
}

body.pagina-galeria .grid-masivo::after {
    content: '' !important;
    flex-grow: 999999999 !important;
}

.boton-galeria {
    display: inline-block !important;
    margin-top: 12px !important;
    padding: 12px 26px !important;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-align: center;
}

.boton-galeria:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6) !important;
    color: #ffffff !important;
}

* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    outline: none !important;
}

/* ========================================================= */
/* CORAZONES FLOTANTES */
/* ========================================================= */

.corazon-flotante {
    position: fixed !important;
    bottom: -40px !important;
    user-select: none !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    animation-name: animarFlotar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes animarFlotar {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-115vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================================= */
/* REPRODUCTOR FLOTANTE */
/* ========================================================= */

.oculto {
    display: none !important;
}

#reproductor-flotante {
    position: fixed !important;
    bottom: 95px !important;
    right: 25px !important;
    width: 330px !important;
    max-width: calc(100vw - 50px) !important;
    background: linear-gradient(145deg, #ffffff 0%, #ffe3ec 60%, #f0d6ff 100%) !important;
    border: 2px solid rgba(253, 180, 237, 0.9) !important;
    border-radius: 22px !important;
    padding: 16px !important;
    box-shadow: 0 12px 28px rgba(114, 9, 183, 0.22) !important;
    z-index: 99998 !important;
    transition: all 0.3s ease !important;
}

#cerrar-reproductor {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: #ff758f !important;
    color: #ffffff !important;
    border: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

#cerrar-reproductor:hover {
    background: #f72585 !important;
    transform: scale(1.1) !important;
}

.titulo-reproductor {
    margin: 0 0 12px 0 !important;
    font-family: 'Caveat', cursive, sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #4a1259 !important;
    text-align: center !important;
}

/* ========================================================= */
/* BOTÓN FLOTANTE DE MÚSICA */
/* ========================================================= */

#btn-musica-toggle {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;

    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.45), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    z-index: 99999 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    backdrop-filter: blur(8px);
}

#btn-musica-toggle:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 14px 30px rgba(247, 37, 133, 0.65), 0 4px 12px rgba(114, 9, 183, 0.2) !important;
}

#btn-musica-toggle:active {
    transform: translateY(0) scale(0.95) !important;
}

/* ========================================================= */
/* SOBRES SECRETOS */
/* ========================================================= */

.contenedor-sobres {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.sobre {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px dashed #ff758f !important;
    border-radius: 18px !important;
    padding: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.sobre:hover {
    background: #ffffff !important;
    transform: translateY(-2px) !important;
}

.sobre-icono {
    font-size: 2rem !important;
    margin-bottom: 5px !important;
}

.sobre-titulo {
    font-weight: bold !important;
    color: #4a1259 !important;
    font-size: 1rem !important;
}

.sobre-contenido {
    display: none;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #ffd1dc !important;
    color: #3c096c !important;
    font-style: italic !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.sobre.abierto .sobre-contenido {
    display: block !important;
}

/* ========================================================= */
/* BOTÓN DE BESOS Y ANIMACIÓN */
/* ========================================================= */

#btn-beso {
    background: linear-gradient(135deg, #ff4d6d, #c77dff) !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4) !important;
    transition: transform 0.2s !important;
}

#btn-beso:active {
    transform: scale(0.95) !important;
}

.besos-count {
    font-weight: bold !important;
    color: #4a1259 !important;
    margin-top: 12px !important;
}

.beso-animado {
    position: fixed !important;
    pointer-events: none !important;
    font-size: 2rem !important;
    z-index: 99999 !important;
    animation: explosionBeso 1s ease-out forwards !important;
}

@keyframes explosionBeso {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + (var(--vx) * 1px)), calc(-50% + (var(--vy) * 1px))) scale(1.8) rotate(var(--rot));
    }
}

/* ========================================================= */
/* PANEL ADMIN & EFECTOS DE FIESTA */
/* ========================================================= */

#btn-secret-admin {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s;
    z-index: 99990;
}
#btn-secret-admin:hover { opacity: 1; }

.modal-admin {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(40, 10, 45, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.modal-admin-content {
    background: linear-gradient(145deg, #ffffff, #ffeef4);
    border: 2px solid #ff758f;
    padding: 25px;
    border-radius: 20px;
    width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(114, 9, 183, 0.3);
}

.modal-admin-content.panel-grande {
    width: 380px;
}

.cerrar-modal-admin {
    position: absolute;
    top: 10px; right: 12px;
    background: #ff4d6d;
    color: white; border: none;
    border-radius: 50%; width: 26px; height: 26px;
    cursor: pointer; font-weight: bold;
}

.admin-form input, .admin-input-group input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ffb3c1;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-ingresar {
    width: 100%;
    padding: 10px;
    background: #7209b7;
    color: white; border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

.error-msg {
    color: #e63946;
    font-size: 0.85rem;
    margin-top: 8px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.admin-grid button {
    padding: 12px 8px;
    background: #ffffff;
    border: 1.5px solid #f72585;
    border-radius: 12px;
    color: #4a1259;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.admin-grid button:hover {
    background: #ffe3ec;
    transform: scale(1.03);
}

.admin-input-group {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.admin-input-group button {
    background: #f72585;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-mega-celebracion {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff007f, #7209b7);
    color: white;
    font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
    animation: pulsoBtn 1.8s infinite;
}

@keyframes pulsoBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

#canvas-fiesta {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99995;
}

.overlay-luces {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99994;
    animation: flashLuces 2.5s ease-in-out infinite alternate;
}

@keyframes flashLuces {
    0% { background: rgba(247, 37, 133, 0.12); }
    50% { background: rgba(114, 9, 183, 0.15); }
    100% { background: rgba(255, 183, 3, 0.12); }
}

#banner-anuncio {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 680px;
    padding: 14px 28px;
    
    background: rgba(120, 30, 140, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 10000;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

#banner-anuncio.oculto {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-25px);
    pointer-events: none;
}

@media (min-width: 768px) {
    .banner-anuncio {
        width: 80vw;
        max-width: 850px;
        font-size: 1.85rem;
        padding: 35px 40px;
        border-left: 4px solid #ff0055;
        border-right: 4px solid #ff0055;
    }
}

@keyframes terremotoAnim {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-10px, 6px) rotate(-1.5deg); }
    40% { transform: translate(10px, -6px) rotate(1.5deg); }
    60% { transform: translate(-6px, -4px) rotate(-1deg); }
    80% { transform: translate(6px, 4px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.efecto-terremoto {
    animation: terremotoAnim 0.3s ease-in-out infinite;
}

.efecto-giro {
    transition: transform 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotate(360deg);
}
