/* Calendario de Adviento - Estilos Principales */

@import url('https://fonts.googleapis.com/css2?family=Grandstander:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Estilo global para la fuente Grand Hotel */
[style*="font-family: 'Grand Hotel'"],
[style*='font-family: "Grand Hotel"'],
.number,
.cal-adv-day-number,
.rank-number,
.stat-card .stat-value {
    text-shadow: 3px 3px 3px #00000040 !important;
}

/* Variables y Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Grandstander', cursive;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #B8EADF;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.number {
    font-family: "Grand Hotel", cursive;
    text-shadow: 3px 3px 3px #00000040;
}

sup {
    font-family: 'Grandstander', cursive;
}

.home-container {
    max-width: 100%;
    margin: 0 auto;
}

.home-header {
    position: relative;
}

.home-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 425px;
    height: 425px;
    background: url(../images/christmas-stars-big.png) no-repeat center center;
    content: "";
    background-size: cover;
    z-index: -1;
    animation: starBlinkSimple 4s ease-in-out infinite;
}

.home-header::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 280px;
    height: 280px;
    background: url(../images/christmas-stars.png) no-repeat center center;
    content: "";
    background-size: cover;
    z-index: -1;
    animation: starBlinkSimple 4s ease-in-out infinite;
}

.home-header__cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 60px 0;
}

.home-header__cont::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 425px;
    height: 425px;
    background: url(../images/christmas-stars-big.png) no-repeat center center;
    background-size: contain;
    z-index: 0;
    content: "";
    animation: starTwinkleLeft 4s ease-in-out infinite;
}


.home-header__cont::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 192px;
    height: 192px;
    background: url(../images/christmas-stars.png) no-repeat center center;
    background-size: contain;
    z-index: 0;
    content: "";
    animation: starTwinkleRight 3.5s ease-in-out infinite;
}

/* Animaciones de estrellas - Efecto de luces prendiendo/apagando */
@keyframes starTwinkleLeft {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    15% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    30% {
        opacity: 0.2;
        transform: translateY(-50%) scale(0.95);
    }

    45% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1);
    }

    60% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    75% {
        opacity: 0.25;
        transform: translateY(-50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes starTwinkleRight {
    0% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.95);
    }

    20% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    40% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    55% {
        opacity: 0.2;
        transform: translateY(-50%) scale(0.95);
    }

    70% {
        opacity: 0.25;
        transform: translateY(-50%) scale(1);
    }

    85% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.95);
    }
}

/* Animación para estrellas sin desplazamiento vertical */
@keyframes starBlinkSimple {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    15% {
        opacity: 1;
        transform: scale(1.05);
    }

    30% {
        opacity: 0.2;
        transform: scale(0.95);
    }

    45% {
        opacity: 0.3;
        transform: scale(1);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
    }

    75% {
        opacity: 0.25;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación específica para el logo */
@keyframes logoFloat {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    25% {
        opacity: 0.95;
        transform: scale(1.02);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    75% {
        opacity: 0.97;
        transform: scale(1.01);
    }
}

@keyframes treeSway {

    0%,
    100% {
        transform: rotate(0deg) translateY(0px);
    }

    25% {
        transform: rotate(-1.5deg) translateY(-2px);
    }

    50% {
        transform: rotate(0deg) translateY(-3px);
    }

    75% {
        transform: rotate(1.5deg) translateY(-2px);
    }
}

@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-3px) rotate(-1deg);
    }

    66% {
        transform: translateY(-1px) rotate(1deg);
    }
}

@keyframes pulseSoft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes wreathRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes giftBounceSwing {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-5deg);
    }

    50% {
        transform: translateY(-12px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.home-logo {
    width: 100%;
    /* max-width: 629px; */
    max-width: 500px;
    margin-bottom: 5rem;
    position: relative;
    animation: logoFloat 4s ease-in-out infinite;
}


.home-subtitle {
    font-family: 'Grandstander', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #337167;
    margin: 0;
    line-height: 48px;
    max-width: 861px;
    margin-bottom: 2rem;
}

.home-buttons {
    display: flex;
    gap: 4.5rem;
}

.home-btn {
    padding: 0rem 2rem;
    font-family: 'Grandstander', cursive;
    font-size: 2.375rem;
    font-weight: 400;
    color: #ffffff;
    background-color: #46CC8D;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-btn.register {
    background-color: #2F6F63;
}

.home-btn.register:hover {
    background-color: #46CC8D;
}

.home-btn:hover {
    background-color: #337167;
}

/* Header del sitio */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #c41e3a;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #c41e3a;
}

/* Wrapper del calendario */
.cal-adv-wrapper {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 0 0 20px;
    position: relative;
    overflow: visible;
}

/* Árbol movido a elemento HTML en lugar de ::after para mejor control con flexbox */
/* .cal-adv-wrapper::after {
    content: "";
    position: absolute;
    bottom: 940px;
    right: calc((100vw - 1400px) / -2);
    width: 500px;
    height: 900px;
    background: url(../images/christmas-tree.svg) no-repeat;
    background-position: right bottom;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
} */


/* Header del calendario */
.cal-adv-header {
    position: relative;
    overflow: visible;
    padding: 0 30px;
    margin-bottom: 50px;
    z-index: 10;
}

.cal-adv-header-center {
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

.cal-adv-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Derecha: Logo (posicionamiento inicial) */
.cal-adv-header-right {
    position: absolute;
    top: 0;
    right: 0;
}


.cal-adv-logo {
    width: 100%;
    max-height: 400px;
    height: auto;
    animation: logoFloat 4s ease-in-out infinite;
}


/* Izquierda: Usuario, Logout y Título */
.cal-adv-header-left {
    flex: 0 0 auto;
    color: white;
    font-family: 'Grandstander', cursive;
}

.cal-adv-header-left::after {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 192px;
    height: 192px;
    background: url(../images/christmas-stars.png);
    animation: starBlinkSimple 3.5s ease-in-out infinite;
}

.cal-adv-title {
    font-family: 'Grandstander', cursive;
    font-size: 80PX;
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 0.9;
}

/* Logo de Asi suena tu navidad */
.cal-adv-header-right {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-right: 20px;
}

.cal-adv-stats-cards {
    display: flex;
    gap: 1rem;
    overflow: visible;
}


.cal-adv-stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    font-family: 'Grand Hotel', cursive;
    min-width: 80px;
}

.cal-adv-stat-card.ranking {
    background: #CA2E43;
}

.cal-adv-stat-card.days {
    background: #46CC8D;
}

.cal-adv-stat-card .stat-value sup {
    position: absolute;
}

.cal-adv-stat-card.points {
    /* background: #5CAA95; */
    position: relative;
    overflow: visible;
}

.points-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 18vw;
    height: 100%;
    background: linear-gradient(to right, rgba(92, 170, 149, 0) 0%, rgba(92, 170, 149, 1) 100%);
    border-radius: 15px;
    z-index: 0;
    transform: translateX(calc(-18vw + 100%));
}

.cal-adv-stat-card.points .stat-value,
.cal-adv-stat-card.points .stat-label {
    position: relative;
    z-index: 1;
}

.cal-adv-stat-card.ranking {
    background: #CA2E43;
}

.cal-adv-stat-card.days {
    background: #46CC8D;
}

.cal-adv-stat-card .stat-value {
    display: block;
    font-size: 6.875rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cal-adv-stat-card .stat-label {
    display: block;
    font-size: 1.5rem;
    font-family: 'Grandstander', cursive;
    text-shadow: 3px 3px 3px #00000040;
    font-weight: 400;
    opacity: 0.9;
}

/* Tarjeta de bienvenida */
.cal-adv-welcome-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: #246654;
    font-family: 'Grandstander', cursive;
}

.welcome-text {
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}

.welcome-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 3px 3px 3px #00000040;
}

.welcome-name {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 3px #00000040;
}

.cal-adv-logout-btn {
    background: #5CAA95;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-adv-logout-btn:hover {
    background: #1a4d3a;
    transform: translateY(-1px);
}

/* Playlist Diaria */
.cal-adv-daily-playlist {
    max-width: 1200px;
    margin: 8rem auto 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animación de fuegos artificiales */
.cal-adv-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 3s infinite;
}

.firework:nth-child(1) {
    left: 10%;
    top: 20%;
    background: #FFD700;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    left: 80%;
    top: 30%;
    background: #FF6B6B;
    animation-delay: 0.6s;
}

.firework:nth-child(3) {
    left: 60%;
    top: 15%;
    background: #4ECDC4;
    animation-delay: 1.2s;
}

.firework:nth-child(4) {
    left: 30%;
    top: 40%;
    background: #45B7D1;
    animation-delay: 1.8s;
}

.firework:nth-child(5) {
    left: 90%;
    top: 50%;
    background: #96CEB4;
    animation-delay: 2.4s;
}

@keyframes firework {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
        box-shadow: 0 0 0 10px transparent,
            0 0 0 20px currentColor,
            0 0 0 30px transparent,
            0 0 0 40px currentColor;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Contenedor Principal del Calendario */
.cal-adv-main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    min-height: 650px;
}




/* Grid del Calendario */
.cal-adv-calendar-grid.new-layout {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1.2;
    z-index: 1;
}

.cal-adv-calendar-grid.new-layout::after {
    position: absolute;
    top: 25%;
    right: 35%;
    transform: translateX(50%);
    width: 425px;
    height: 425px;
    background: url(../images/christmas-stars-big.png);
    content: "";
    z-index: -1;
    animation: starTwinkleRight 4s ease-in-out infinite;
}

.new-layout .day-1 {
    grid-area: 1 / 1;
    animation: floatGentle 4s ease-in-out infinite;
}

.new-layout .day-2 {
    grid-area: 1 / 2;
    animation: pulseSoft 3s ease-in-out infinite;
}

.new-layout .day-3 {
    grid-area: 2 / 1;
    animation: wiggle 5s ease-in-out infinite;
}

.new-layout .day-4 {
    grid-area: 2 / 2;
    animation: bounce 3.5s ease-in-out infinite;
}

.new-layout .day-5 {
    grid-area: 3 / 1;
    animation: floatGentle 4.5s ease-in-out infinite;
}

.new-layout .day-6 {
    grid-area: 3 / 2;
    animation: pulseSoft 4s ease-in-out infinite;
}

.new-layout .day-7 {
    grid-row: 2 / span 3;
    grid-column: 3 / span 2;
    animation: wiggle 6s ease-in-out infinite;
}

.new-layout .cal-adv-day .day-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.new-layout .cal-adv-day .day-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Días del Calendario */
.cal-adv-day {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Grandstander', cursive;
    font-weight: 600;
    color: white;
    min-height: 80px;
}

/* Números de los días - posicionados en esquina superior derecha */
.day-number {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    font-size: 62px;
    font-family: 'Grand Hotel', cursive;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cal-adv-day:not(.locked):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* Días con regalos */
.cal-adv-day.gift-box {
    background: #CA2E43;
}

/* Días especiales con iconos */
.cal-adv-day.special-day.hearts {
    background: #CA2E43;
}

.cal-adv-day.special-day.star {
    background: #CA2E43;
}

.cal-adv-day.special-day.present {
    background: #5CAA95;
}

.cal-adv-day.special-day.wreath {
    background: #46CC8D;
}

.cal-adv-day.special-day.ornament {
    background: #CA2E43;
}

.cal-adv-day.special-day.snowflake {
    background: #CA2E43;
}

.cal-adv-day.special-day.candy-cane {
    background: #46CC8D;
}

.cal-adv-day.special-day.cupcake {
    background: #DCC057;
}

.cal-adv-day.special-day.candy {
    background: #CA2E43;
}

.cal-adv-day.special-day.star-gold {
    background: #DCC057;
}

.cal-adv-day.special-day.ornament {
    background-color: #46CC8D;
}

.cal-adv-day.special-day.snowflake {
    background-color: #A0D4C3;
}

.cal-adv-day.special-day.candy-cane {
    background-color: #B6F4E1;
}

.cal-adv-day.special-day.cupcake {
    background-color: #CA2E43;
}

.cal-adv-day.special-day.candy {
    background-color: #A0D4C3;
}

.cal-adv-day.special-day.star-gold {
    background-color: #4a6c5f;
}

.cal-adv-day.special-day.hohoho {
    background-color: #46CC8D;
}

/* Iconos de los días */
.day-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
    padding: 13px;
}

/* Árbol de Navidad */
.cal-adv-christmas-tree {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 500px;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 1;
    animation: treeSway 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.tree-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Regalos debajo del árbol */
.tree-gifts {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0 1rem;
}

.gift {
    width: 40px;
    height: 40px;
    animation: giftBounce 2s ease-in-out infinite;
}

.gift-1 {
    animation-delay: 0s;
}

.gift-2 {
    animation-delay: 0.3s;
}

.gift-3 {
    animation-delay: 0.6s;
}

@keyframes giftBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}



.cal-adv-tree-star {
    font-size: 3rem;
    text-align: center;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.cal-adv-tree-body {
    position: relative;
    margin: 10px auto;
}

.cal-adv-tree-section {
    margin: -10px auto;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
}

.cal-adv-tree-top {
    width: 0;
    height: 0;
    border-bottom: 80px solid #2d5016;
    border-left-width: 50px;
    border-right-width: 50px;
}

.cal-adv-tree-middle {
    width: 0;
    height: 0;
    border-bottom: 100px solid #3a6b1f;
    border-left-width: 70px;
    border-right-width: 70px;
}

.cal-adv-tree-bottom {
    width: 0;
    height: 0;
    border-bottom: 120px solid #2d5016;
    border-left-width: 90px;
    border-right-width: 90px;
}

.cal-adv-tree-trunk {
    width: 40px;
    height: 50px;
    background: #5d4037;
    margin: 0 auto;
    border-radius: 5px;
}

.cal-adv-tree-decorations {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 300px;
}

.cal-adv-ornament,
.cal-adv-candy-cane {
    position: absolute;
    font-size: 1.5rem;
    animation: swing 3s infinite ease-in-out;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.cal-adv-tree-gifts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cal-adv-gift-box {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.cal-adv-day {
    aspect-ratio: 1;
    background-color: #F0F4F3;
    /* Fondo blanco-grisáceo */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E5E4;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #4E8A78;
    /* Color de número para días sin icono */
}

.cal-adv-day.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.cal-adv-day.locked {
    background: #d3d3d3 !important;
    color: #666 !important;
    border: 2px solid #b0b0b0 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.cal-adv-day.locked .day-number {
    color: #666 !important;
}

.cal-adv-day.completed {
    background: #FFFFFF;
    opacity: 0.7;
    transform: scale(0.95);
    border: none;
    cursor: auto;
}

.cal-adv-day.completed .cal-adv-day-number,
.cal-adv-day.completed .cal-adv-day-icon {
    color: #ffffff;
}

.cal-adv-day.current {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.cal-adv-day.no-activity {
    opacity: 0.4;
    cursor: not-allowed;
}

.cal-adv-day-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    position: relative;
}

/* Envoltorio de regalo */
.cal-adv-gift-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Cinta del regalo */
.cal-adv-gift-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.cal-adv-gift-ribbon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 25%;
    background: linear-gradient(180deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Moño del regalo */
.cal-adv-gift-bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.cal-adv-day-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    z-index: 3;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cal-adv-day.completed .cal-adv-day-number {
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}


.cal-adv-day-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #1a1a1a;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Overlay de autenticación */
.cal-adv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 60px 20px 20px;
}

.cal-adv-overlay.active {
    display: flex;
}

/* Estilos del Leaderboard */
.leaderboard-title {
    font-family: 'Grandstander', cursive;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.ranking-layout {
    display: flex;
    gap: 2rem;
}

/* Columna Izquierda */
.ranking-col-left {
    flex: 1;
}


/* Columna Derecha */
.ranking-col-right {
    flex: 2;
}

.ranking-list-header {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    color: white;
    font-family: 'Grandstander', cursive;
    padding-right: 1rem;
}

.ranking-list-header .header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.ranking-list-header .header-item .medal {
    width: 30px;
    height: 30px;
}

.ranking-list-header .header-item .calendar {
    width: 40px;
    height: 40px;
}


.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Animaciones para días especiales (18-24) */
.new-layout .day-18.special-day.ornament {
    animation: pulseSoft 3s ease-in-out infinite;
}

.new-layout .day-19.special-day.snowflake {
    animation: floatGentle 4s ease-in-out infinite;
}

.new-layout .day-20.special-day.candy-cane {
    animation: wiggle 3.5s ease-in-out infinite;
}

.new-layout .day-21.special-day.cupcake {
    animation: bounce 4.5s ease-in-out infinite;
}

.new-layout .day-22.special-day.candy {
    animation: pulseSoft 3.2s ease-in-out infinite;
}

.new-layout .day-23.special-day.star-gold {
    animation: floatGentle 3.8s ease-in-out infinite;
}

.new-layout .day-24.special-day.hohoho {
    animation: wiggle 4.2s ease-in-out infinite;
}


.ranking-item .rank-number {
    display: inline;
    font-family: "Grand Hotel", cursive;
    font-size: 3.5rem;
    margin-right: 1rem;
    font-weight: 700;
    font-size: 2.75rem;
}

.ranking-item .rank-number sup {
    font-family: 'Grandstander', cursive;
}

.ranking-item .user-name {
    flex: 1;
    font-family: 'Grandstander', cursive;
    font-size: 2rem;
}

.ranking-item .user-points,
.ranking-item .user-days {
    width: 80px;
    text-align: right;
    font-family: "Grand Hotel", cursive;
}

.cal-adv-auth-modal {
    background: #5CAA95;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.cal-adv-auth-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Scrollbar personalizada para el contenido del modal */
.cal-adv-auth-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cal-adv-auth-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cal-adv-auth-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.cal-adv-auth-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Decoraciones del modal de autenticación */
.popup-wreath {
    position: absolute;
    top: -65px;
    left: 0;
    width: 120px;
    height: 90px;
    pointer-events: none;
    animation: wreathRotate 20s linear infinite;
}

.popup-gifts {
    position: absolute;
    bottom: -55px;
    right: -50px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    animation: giftBounceSwing 3s ease-in-out infinite;
}

/* Modal de Mensaje Final (Calendario Completado) */
.cal-adv-final-modal {
    background: #5CAA95;
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.cal-adv-final-modal .popup-wreath {
    position: absolute;
    top: -40px;
    left: -20px;
    width: 110px;
    height: 85px;
    pointer-events: none;
    z-index: 10;
}

.cal-adv-final-modal .popup-gifts {
    position: absolute;
    bottom: -55px;
    right: -50px;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.cal-adv-final-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Scrollbar personalizada para el contenido del modal final */
.cal-adv-final-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cal-adv-final-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cal-adv-final-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.cal-adv-final-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.cal-adv-final-content {
    text-align: center;
    color: #ffffff;
}

.cal-adv-final-content h2 {
    font-family: 'Grandstander', cursive;
    font-size: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cal-adv-final-content p {
    font-family: 'Grandstander', cursive;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cal-adv-playlist {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.cal-adv-playlist h3 {
    font-family: 'Grandstander', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cal-adv-playlist iframe {
    border-radius: 10px;
}

.cal-adv-auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cal-adv-tab-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #cccccc;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Grandstander', cursive;
    font-size: 1rem;
}

.cal-adv-tab-btn.active {
    background: #F43131;
    color: #ffffff;
    border-color: #FFFFFF;
}

.cal-adv-tab-btn i {
    margin-right: 0.5rem;
}

.cal-adv-tab-content {
    display: none;
}

.cal-adv-tab-content.active {
    display: block;
}

.cal-adv-tab-content h2 {
    font-family: 'Grand Hotel', sans-serif;
    font-size: 3.075rem;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

/* Formularios */
#cal-adv-register-tab .cal-adv-form-group {
    margin-bottom: 1rem;
}

#cal-adv-register-form .form-row {
    display: flex;
    gap: 1rem;
}

#cal-adv-register-form .form-row .cal-adv-form-group {
    flex: 1;
}

#cal-adv-register-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cal-adv-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9em;
}

.cal-adv-forgot-password {
    color: #FFFFFF;
    text-decoration: underline;
    font-size: 1.175rem;
}

.cal-adv-forgot-password:hover {
    text-decoration: underline;
    color: #CA2E43;
    transition: all 0.3s ease;
}

.cal-adv-form-group label {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 1.175rem;
    align-items: center;
}

.cal-adv-form-group label i {
    margin-right: 0.5rem;
    color: #CA2E43;
}

.cal-adv-form-group input[type="text"],
.cal-adv-form-group input[type="email"],
.cal-adv-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cal-adv-form-group input:focus {
    outline: none;
    border-color: #c41e3a;
}

.cal-adv-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.cal-adv-artist-option {
    display: block;
    padding: 0.5rem;
    background: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cal-adv-artist-option input[type="checkbox"] {
    display: none;
}

.cal-adv-artist-option input[type="checkbox"]:checked+span {
    background: #c41e3a;
    color: #ffffff;
}

.cal-adv-artist-option span {
    display: block;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.cal-adv-artist-option:hover {
    border-color: #c41e3a;
}

.cal-adv-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cal-adv-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid white;
    background: #D9D9D9;
    border-radius: 50%;
    margin-right: 1rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    accent-color: #46CC8D;
}

/* Checkbox de política de privacidad */
.cal-adv-privacy-check {
    margin: 1.5rem 0;
}

.cal-adv-privacy-check .cal-adv-checkbox {
    align-items: center;
}

.cal-adv-privacy-check .cal-adv-checkbox span {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ffffff;
}

.cal-adv-privacy-check .cal-adv-checkbox a {
    color: #F43131;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cal-adv-privacy-check .cal-adv-checkbox a:hover {
    color: #ffffff;
}

/* Botones */
.cal-adv-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cal-adv-btn-primary {
    background: #F43131;
    color: #ffffff;
}

.cal-adv-btn-primary:hover {
    background: #a01730;
    transform: translateY(-2px);
}

.cal-adv-btn-correct {
    background-color: #46CC8D !important;
    /* Verde éxito */
    color: white !important;
    cursor: default !important;
}

.cal-adv-success-inline {
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cal-adv-success-inline iframe {
    width: 597px;
    height: 148px;
}

.cal-adv-success-points {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-align: center;
}

.cal-adv-success-points span {
    display: block;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cal-adv-success-points strong {
    display: block;
    font-family: 'Grand Hotel', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 6.875rem;
    font-weight: 700;
}

.cal-adv-btn-secondary {
    background: #165b33;
    color: #ffffff;
}

.cal-adv-btn-secondary:hover {
    background: #0f4225;
}

.cal-adv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estilos para Scratch Card */
.cal-adv-scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.cal-adv-scratch-card-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 15px;
    /* Para que coincida con el contenedor */
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 2;
    border-radius: 15px;
}

.cal-adv-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.cal-adv-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cal-adv-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Modal de actividad */
.cal-adv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.cal-adv-modal.active {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.cal-adv-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: visible;
}

#cal-adv-modal-title {
    width: 100%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 1.3rem;
    margin: 0.75rem auto 0.5rem;
    font-family: 'Grandstander', cursive;
    max-width: 625px;
}

.cal-adv-modal-content {
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.cal-adv-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 20;
}

.cal-adv-modal-close:hover {
    background: #cccccc;
    transform: rotate(90deg);
}

.cal-adv-modal-body {
    padding: 0;
    background: transparent;
    overflow: visible;
}

.cal-adv-modal-content {
    background: transparent;
    box-shadow: none;
}

/* Nuevo Diseño del Popup */
.cal-adv-activity-container {
    background-color: #589b85;
    /* Verde del diseño */
    border-radius: 20px;
    /* padding: 3rem 4rem 1.5rem 4rem; */
    padding: 15px 20px;
    text-align: center;
    position: relative;
    color: white;
    overflow-y: auto;
    max-height: 85vh;
}

/* Decoraciones posicionadas relativas al modal-content para evitar cortes */
.cal-adv-modal-content .popup-wreath {
    position: absolute;
    top: -65px;
    left: 0;
    width: 160px;
    height: 130px;
    z-index: 12;
    pointer-events: none;
}

.cal-adv-modal-content .popup-gifts {
    position: absolute;
    bottom: -55px;
    right: -50px;
    width: 220px;
    height: 220px;
    z-index: 12;
    pointer-events: none;
}

.popup-title {
    font-family: 'Grandstander', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.popup-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 40px;
}

.popup-icons img {
    width: 110px;
    height: auto;
}


.popup-icons img:nth-child(2) {
    width: 170px;
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 1rem;
    padding: 70px 60px 0;
}

.popup-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.popup-option input[type="radio"] {
    display: none;
    /* Ocultar radio button original */
}

.popup-option .radio-custom {
    width: 35px;
    height: 35px;
    border: 2px solid white;
    background: #D9D9D9;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: inline-block;
    position: relative;
}

.popup-option input[type="radio"]:checked+.radio-custom::after {
    content: '';
    width: 29px;
    height: 29px;
    background: #46CC8D;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-option .option-text {
    font-family: 'Grandstander', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 3px 3px 3px #00000040;
}

.popup-actions {
    padding: 0.5rem 0 0;
}


.popup-actions .cal-adv-btn {
    background-color: #e54242;
    /* Rojo del botón */
    color: white;
    font-family: 'Grandstander', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.popup-actions .cal-adv-btn:hover {
    background-color: #c43535;
    transform: translateY(-2px);
}

.cal-adv-day-header {
    margin-bottom: 2rem;
}

.cal-adv-day-title {
    color: #c41e3a;
    margin: 0;
}

.cal-adv-day-thumbnail {
    margin-bottom: 1.5rem;
}

.cal-adv-day-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.cal-adv-day-description {
    line-height: 1.6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.cal-adv-activity-container h3 {
    color: #c41e3a;
    margin-top: 0;
}

.cal-adv-answer-input {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cal-adv-scratch-card-hidden {
    visibility: hidden;
    /* Ocultar por defecto para evitar parpadeo */
}

.cal-adv-answer-input:focus {
    outline: none;
    border-color: #c41e3a;
}

/* Ancho específico para el input de video */
.cal-adv-activity-container[data-activity-type="video"] .cal-adv-answer-input {
    width: 64%;
    margin: 0 auto;
    display: block;
}

/* Ancho específico para el input y audio del juego de Reconocer el Tema */
.cal-adv-activity-container[data-activity-type="audio_recognition"] .cal-adv-answer-input {
    width: 60%;
    margin: 0 auto;
    display: block;
}

.cal-adv-activity-container[data-activity-type="audio_recognition"] .cal-adv-audio-container audio {
    width: 60% !important;
    margin: 15px auto !important;
    display: block;
}

.cal-adv-activity-container[data-activity-type="audio_recognition"] .cal-adv-spotify-embed iframe {
    width: 60% !important;
    margin: 0 auto;
    display: block;
}

.cal-adv-activity-container[data-activity-type="audio_recognition"] .cal-adv-hint {
    width: 60%;
    margin: 15px auto;
    text-align: center;
}

.cal-adv-trivia-options,
.cal-adv-votacion-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cal-adv-trivia-option,
.cal-adv-votacion-option {
    display: block;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-adv-trivia-option input[type="radio"],
.cal-adv-votacion-option input[type="radio"] {
    margin-right: 0.75rem;
}

.cal-adv-trivia-option:hover,
.cal-adv-votacion-option:hover {
    border-color: #c41e3a;
    background: #ffe6ea;
}

.cal-adv-activity-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.cal-adv-activity-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.cal-adv-activity-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.cal-adv-activity-message.error {
    background: #E74C3C;
    color: white;
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    margin: 1rem auto 0.5rem;
    text-align: center;
    width: max-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Memotest Styles */
.memotest-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.memotest-stat {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.memotest-stat i {
    color: #c41e3a;
    margin-right: 5px;
}

.memotest-board {
    display: grid;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.memotest-card {
    aspect-ratio: 1;
    cursor: pointer;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memotest-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 3rem;
    font-weight: bold;
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    background: white;
    border: 3px solid #667eea;
    transform: rotateY(180deg);
}

.card-back img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.memotest-card.matched .card-inner {
    transform: rotateY(180deg);
}

.memotest-card.matched .card-back {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #11998e;
    animation: matchPulse 0.5s;
}

@keyframes matchPulse {

    0%,
    100% {
        transform: rotateY(180deg) scale(1);
    }

    50% {
        transform: rotateY(180deg) scale(1.1);
    }
}

.memotest-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    animation: successPulse 0.5s;
}

.memotest-success i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cal-adv-instruction {
    background: #e3f2fd;
    padding: 12px;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #1565c0;
    font-weight: 500;
}

/* Image Puzzle Styles */
.puzzle-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.puzzle-stat {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.puzzle-reference {
    max-width: 300px;
    margin: 0 auto 20px;
}

.puzzle-reference img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.puzzle-board {
    max-width: 600px;
    margin: 0 auto;
    background: #ddd;
    border-radius: 8px;
}

.puzzle-piece {
    background: white;
    transition: all 0.3s;
}

.puzzle-piece:hover {
    transform: scale(1.02);
    z-index: 10;
}

.puzzle-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    animation: successPulse 0.5s;
}

.puzzle-success i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.cal-adv-completed-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
}

.cal-adv-completed-badge i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cal-adv-success-card {
    text-align: center;
    padding: 2rem;
    background: #5CAA95;
    color: #FFFFFF;
    border-radius: 20px;
}

.cal-adv-success-card h2 {
    font-size: 38px;
}

.cal-adv-success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.cal-adv-success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.cal-adv-success-stat {
    text-align: center;
}

.cal-adv-success-stat i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

/* Leaderboard */
.cal-adv-leaderboard-section {
    padding: 2rem;
    font-family: "Playfair Display", cursive;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cal-adv-leaderboard-section {
        padding: 0;
    }
}

.cal-adv-leaderboard-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.cal-adv-section-title {
    display: inline;
    text-align: left;
    color: white;
    font-family: 'Grandstander', cursive;
    font-weight: 400;
    font-size: 2.5rem;
    margin: auto 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.ranking-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.ranking-col-left {
    flex: 0 0 32%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* margin-top: 60px; */
}

.ranking-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tarjeta 1er Lugar */
.ranking-card-gold {
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    position: relative;
}

/* .ranking-card-gold::after {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 301px;
    height: 210px;
    background: url(../images/gifts.svg) no-repeat center center;
    background-size: 60%;
    content: "";
    z-index: 2;
    animation: giftBounceSwing 3s ease-in-out infinite;
} */

/* Animación para el icono de regalo */
@keyframes giftBounceSwing {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    15% {
        transform: translateY(-8px) rotate(2deg);
    }

    30% {
        transform: translateY(-12px) rotate(-2deg);
    }

    45% {
        transform: translateY(-8px) rotate(2deg);
    }

    60% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}


.ranking-card-gold__cont {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.ranking-card-gold .rank-number {
    font-size: 4.875rem;
    font-weight: 700;
    opacity: 0.8;
    text-shadow: 0 4px #00000040;
}

.ranking-card-gold .user-info {
    margin-left: 1rem;
}

.ranking-card-gold .user-name {
    display: block;
    font-size: 2.125rem;
    font-weight: 600;
    font-family: 'Grandstander', cursive;
    text-shadow: 3px 3px 3px #00000040;
}

.ranking-card-gold .user-location {
    font-size: 1rem;
    opacity: 0.9;
}

.ranking-gifts-img {
    position: absolute;
    bottom: -10px;
    right: 5px;
    width: 120px;
    opacity: 0.9;
}

/* Tarjetas de Estadísticas */
.user-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-card.points {
    background: #5CAA95;
}

/* 
.stat-card.points::after {
    position: absolute;
    top: 30%;
    left: -17%;
    width: 200px;
    height: 190px;
    background: url(../images/Deco.svg) no-repeat center center;
    background-size: contain;
    content: "";
    z-index: 2;
    animation: wreathRotate 20s linear infinite;
} */

/* Animación de rotación para la corona */
@keyframes wreathRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.stat-card.days {
    background: #46CC8D;
}

.stat-card .stat-value {
    font-size: 5.875rem;
    font-weight: 800;
    display: block;
    font-family: "Grand Hotel", cursive;
}

.stat-card .stat-label {
    font-size: 1.8rem;
    opacity: 0.9;
    font-family: "Grand Hotel", cursive;
}

.ranking-wreath-img {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    opacity: 0.8;
}

/* Lista del Ranking */
.ranking-list-header {
    display: flex;
    justify-content: flex-end;
    gap: 85px;
    padding: 0 2rem 1.2rem;
}

.ranking-list-header span {
    font-family: "Grand Hotel", cursive;
    color: #246654;
    font-size: 2rem;
    font-weight: 400;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 0.15rem 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
}

.ranking-item {
    background: linear-gradient(180deg, #DCC057 0%, #937421 100%);
}

.ranking-card-gold {
    background-color: #CA2E43CC !important;
    /* Force red for first item */
    background: #CA2E43CC !important;
}




.ranking-item .user-points,
.ranking-item .user-days {
    text-align: right;
    font-weight: 600;
}

.ranking-item .user-points {
    font-size: 2.75rem;
}

.ranking-item .user-days {
    font-size: 2.75rem;
}

.ranking-item__right {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: flex-end;
}

.ranking-item__right .user-points,
.ranking-item__right .user-days {
    min-width: 120px;
    text-align: center;
}

/* Estilos para elementos del 5° en adelante
.ranking-item:nth-child(n+4) .rank-number,
.ranking-item:nth-child(n+4) .user-name {
    font-size: 28px !important;
} */
/* 
.ranking-item:nth-child(n+4) .user-points,
.ranking-item:nth-child(n+4) .user-days {
    font-size: 40px !important;
} */


.cal-adv-days-badge,
.cal-adv-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cal-adv-empty-state {
    text-align: center;
    padding: 3rem;
    color: #666666;
}

.cal-adv-empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Loading */
.cal-adv-loading {
    text-align: center;
    padding: 2rem;
    color: #666666;
}

.cal-adv-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #c41e3a;
}

/* Estilos adicionales para actividades */
.cal-adv-question {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.cal-adv-hint {
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    text-align: left;
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
}

.cal-adv-hint i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.cal-adv-artist-info {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.cal-adv-artist-info i {
    color: #46CC8D;
    margin-right: 0.5rem;
}

.cal-adv-emoji-display {
    font-size: 3rem;
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.cal-adv-message-content,
.cal-adv-surprise-content {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.cal-adv-video-container {
    position: relative;
    padding-bottom: 36%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto 0.75rem;
    max-width: 560px;
}

.cal-adv-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive para pantallas grandes */
@media (min-width: 1920px) {

    .cal-adv-wrapper::after {
        width: 600px;
        height: 1000px;
        right: calc((100vw - 1400px) / -2);
    }
}

/* Responsive para pantallas medianas a grandes */
@media (min-width: 1440px) and (max-width: 1919px) {

    .cal-adv-wrapper::after {
        right: calc((100vw - 1400px) / -2);
    }

    .home-logo {
        max-width: 300px !important;
    }

    .home-subtitle {
        font-size: 2.2rem;
    }

    .home-btn {
        font-size: 2rem;
    }
}

/* Responsive para tablets (770px - 1100px) */
@media (min-width: 770px) and (max-width: 1100px) {
    .cal-adv-wrapper {
        padding: 0 80px;
        max-width: 100%;
    }

    .cal-adv-main-container {
        padding: 5rem 3rem;
        min-height: 700px;
        gap: 5rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cal-adv-calendar-grid {
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }

    .cal-adv-christmas-tree {
        width: 250px;
        max-height: 350px;
        position: relative;
        margin: 3rem auto 0 auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .cal-adv-header {
        gap: 4rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .cal-adv-title {
        font-size: 40px;
        text-align: center;
        line-height: 1.1;
        margin-bottom: 4rem;
    }

    .cal-adv-logo {
        max-height: 200px;
        margin: 0 1rem 4rem auto;
        display: block;
    }

    .cal-adv-calendar-grid.new-layout {
        max-width: 100%;
    }

    .cal-adv-calendar-grid.new-layout::after {
        width: 200px;
        height: 200px;
        top: 10%;
        right: 20%;
    }

    .cal-adv-header-left::after {
        width: 192px;
        height: 192px;
        left: 59%;
    }

    .cal-adv-header-right {
        justify-content: center;
        padding-right: 0;
    }

    .cal-adv-header-left {
        width: 100%;
        text-align: center;
    }

    /* Evitar que elementos se superpongan */
    .cal-adv-stats-cards {
        margin: 3rem 0;
        justify-content: center;

    }

    .cal-adv-stat-card {
        margin: 0 1rem;
    }

    .points-background {
        width: 100%;
    }
}

/* Para pantallas más pequeñas que el max-width del wrapper */
@media (max-width: 1439px) and (min-width: 769px) {
    .cal-adv-wrapper {
        padding: 0 0 0 20px;
    }

    .cal-adv-wrapper::after {
        right: -20px;
    }

    .cal-adv-main-container {
        padding: 2rem;
        min-height: 550px;
    }

    .cal-adv-calendar-grid {
        max-width: 500px;
    }

    .cal-adv-christmas-tree {
        width: 400px;
        max-height: 550px;
        right: -2rem;
    }

    /* Video container para tablets */
    .cal-adv-video-container {
        padding-bottom: 56.25%;
        max-width: 100%;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {

    /* Overlay con espacio para decoraciones en móvil */
    .cal-adv-overlay {
        padding: 40px 10px 10px;
    }

    .cal-adv-success-inline iframe {
        width: auto;
    }


    .cal-adv-logo {
        margin-right: 0;
    }

    /* Header */
    .site-header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Título principal */
    .cal-adv-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    /* Header del calendario */
    .cal-adv-header {
        padding: 0 15px;
    }

    .cal-adv-header-center {
        flex-direction: column;
        gap: 1rem;
    }

    .cal-adv-header-left {
        width: 100%;
        text-align: center;
    }

    .cal-adv-header-right {
        position: relative;
        width: 80%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cal-adv-header-right::before {
        display: none;
    }

    .cal-adv-stats-cards {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .cal-adv-stat-card {
        min-width: 120px;
        padding: 0.75rem 1rem;
    }

    .cal-adv-stat-card .stat-value {
        font-size: 3rem !important;
    }

    .cal-adv-stat-card .stat-label {
        font-size: 0.9rem !important;
    }

    .points-background {
        width: 100%;
        transform: none;
    }

    /* Welcome card */
    .welcome-label {
        font-size: 1.2rem !important;
    }

    .welcome-name {
        font-size: 1.8rem !important;
    }

    .cal-adv-logout-btn {
        font-size: 1rem !important;
    }

    /* Playlist */
    .cal-adv-daily-playlist {
        margin: 2rem auto 1rem auto;
    }

    /* Video container para mobile */
    .cal-adv-video-container {
        padding-bottom: 56.25%;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    /* Wrapper en móvil */
    .cal-adv-wrapper {
        padding: 0 10px;
    }

    /* Contenedor principal */
    .cal-adv-main-container {
        padding: 1rem;
        min-height: auto;
    }

    .cal-adv-wrapper::after {
        display: none;
    }

    /* Grid del calendario */
    .cal-adv-calendar-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }

    .cal-adv-day {
        min-height: 70px;
    }

    .day-icon {
        padding: 8px;
    }

    .day-number {
        font-size: 1.5rem !important;
    }

    /* Árbol de Navidad */
    .cal-adv-wrapper::after {
        width: 280px;
        height: 500px;
        right: 0;
        bottom: 200px;
    }

    .cal-adv-calendar-grid {
        margin-bottom: 2rem;
    }

    .cal-adv-christmas-tree {
        position: relative;
        right: auto;
        width: 280px;
        height: 400px;
        max-height: 400px;
        margin: 0 auto;
        justify-content: center;
    }

    .tree-main {
        max-height: 400px;
    }

    /* Modal */
    .cal-adv-modal-wrapper {
        padding: 80px 0 80px 0;
    }

    .cal-adv-modal-content {
        width: 95%;
    }

    #cal-adv-modal-title {
        font-size: 2rem !important;
        margin: 30px auto;
    }

    .cal-adv-activity-container {
        padding: 1.5rem 1rem;
        max-height: 70vh;
    }

    /* Decoraciones del popup */
    .cal-adv-modal-content .popup-wreath {
        width: 100px;
        top: -50px;
        left: 10px;
    }

    .cal-adv-modal-content .popup-gifts {
        width: 120px;
        height: 120px;
        bottom: -40px;
        right: -20px;
    }

    /* Popup title y contenido */
    .popup-title {
        font-size: 2.5rem !important;
    }

    .popup-icons img {
        width: 80px !important;
    }

    .popup-icons img:nth-child(2) {
        width: 120px !important;
    }

    .popup-options {
        padding: 20px 15px 0;
        gap: 0.75rem;
    }

    .popup-option .radio-custom {
        width: 35px;
        height: 35px;
    }

    .popup-option input[type="radio"]:checked+.radio-custom::after {
        width: 28px;
        height: 28px;
    }

    .popup-option .option-text {
        font-size: 1.5rem !important;
    }

    .popup-actions .cal-adv-btn {
        font-size: 1.5rem !important;
        padding: 0.6rem 1.5rem;
    }

    /* Scratch card */
    .cal-adv-scratch-card-wrapper {
        max-width: 280px;
    }

    .cal-adv-scratch-card-canvas {
        height: 280px;
    }

    /* Hint/Pista */
    .cal-adv-hint {
        font-size: 1.2rem !important;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    /* Artist info */
    .cal-adv-artist-info {
        font-size: 1.3rem !important;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    /* Auth tabs */
    .cal-adv-auth-tabs {
        flex-direction: column;
    }

    /* Artists grid */
    .cal-adv-artists-grid,
    .cal-adv-artists-selection {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* Leaderboard */
    .cal-adv-section-title {
        font-size: 2.5rem !important;
    }

    .ranking-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ranking-col-left {
        flex: 1;
        width: 100%;
    }

    .ranking-col-right {
        width: 100%;
    }

    .ranking-card-gold .rank-number {
        font-size: 4rem !important;
    }

    .ranking-card-gold .user-name {
        font-size: 1.5rem !important;
    }

    .ranking-card-gold::after {
        width: 142px;
        height: 150px;
        bottom: 25px;
        right: -10px;
        background-size: contain;
    }

    .stat-card .stat-value {
        font-size: 4rem !important;
    }

    .stat-card.points::after {
        width: 100px;
        height: 95px;
        left: -5%;
        top: 40%;
    }

    .ranking-list-header {
        gap: 40px;
        padding: 0 1rem 0.5rem;
    }

    .ranking-list-header span {
        font-size: 1.2rem !important;
    }

    .ranking-item {
        grid-template-columns: 60px 1fr auto;
        padding: 0.5rem;
        align-items: center;
    }

    .ranking-item .rank-number {
        font-size: 2rem !important;
    }

    .ranking-item .user-name {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 5px;
    }

    .ranking-item .user-points,
    .ranking-item .user-days {
        font-size: 1.5rem !important;
        min-width: 40px;
        text-align: center;
    }

    .ranking-item__right {
        gap: 10px;
    }

    .ranking-gifts-img {
        width: 60px;
        bottom: -5px;
        right: 0;
    }

    .ranking-wreath-img {
        width: 50px;
        top: -15px;
        left: -15px;
    }

    /* Botones y formularios */
    .cal-adv-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .cal-adv-form-group input {
        font-size: 16px;
        /* Evita zoom en iOS */
    }

    /* Modal close button */
    .cal-adv-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    /* Completed badge */
    .cal-adv-completed-badge {
        font-size: 1.2rem;
        padding: 1.5rem 1rem;
    }

    /* Success messages */
    .cal-adv-success-inline {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Auth modal */
    .cal-adv-auth-modal {
        width: 95%;
        padding: 1.5rem;
    }

    .cal-adv-auth-modal-content {
        max-height: 85vh;
    }

    /* Decoraciones del modal de autenticación en móvil */
    .cal-adv-auth-modal .popup-wreath {
        width: 100px;
        height: 100px;
        top: -50px;
        left: 10px;
    }

    .cal-adv-auth-modal .popup-gifts {
        width: 120px;
        height: 120px;
        bottom: -40px;
        right: -30px;
    }

    /* Modal de mensaje final */
    .cal-adv-final-modal {
        width: 95%;
        padding: 1.5rem;
    }

    .cal-adv-final-modal-content {
        max-height: 85vh;
    }

    .cal-adv-final-modal .popup-wreath {
        width: 90px;
        height: 70px;
        top: -30px;
        left: -15px;
    }

    .cal-adv-final-modal .popup-gifts {
        width: 120px;
        height: 120px;
        bottom: -40px;
        right: -30px;
    }

    .cal-adv-final-content h2 {
        font-size: 2.5rem;
    }

    .cal-adv-final-content p {
        font-size: 1rem;
    }

    .cal-adv-playlist h3 {
        font-size: 1.2rem;
    }

    /* Memotest y puzzles */
    .memotest-board,
    .puzzle-board {
        gap: 8px;
    }

    .memotest-card,
    .puzzle-piece {
        min-height: 60px;
    }

    /* Admin stats (si aplica) */
    .cal-adv-admin-stats {
        grid-template-columns: 1fr;
    }

    /* Home page - Ajustes para mobile */
    .home-container {
        padding: 0 20px;
    }

    .home-header::after {
        width: 200px;
        height: 200px;
        top: 10px;
        right: -20px;
    }

    .home-header::before {
        width: 150px;
        height: 150px;
        top: 0;
        left: -20px;
    }

    .home-header__cont::after {
        display: none;
        /* Ocultar estrellas grandes en mobile */
    }

    .home-header__cont::before {
        display: none;
        /* Ocultar estrellas pequeñas en mobile */
    }

    .home-logo {
        max-width: 280px;
        margin-bottom: 3rem;
    }

    .home-subtitle {
        font-size: 1.5rem;
        line-height: 32px;
        margin-bottom: 1.5rem;
    }

    .home-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .home-btn {
        font-size: 1.5rem;
        padding: 0.5rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    #cal-adv-modal-title {
        font-size: 1rem !important;
        margin: 10px auto;
    }

    .cal-adv-video-container {
        padding-bottom: 82.25%;
    }

    .popup-option .radio-custom {
        width: 20px;
        height: 20px;
    }

    .popup-option .option-text {
        font-size: 1rem !important;
        gap: 0.3rem;
    }

    .cal-adv-activity-container[data-activity-type="audio_recognition"] .cal-adv-audio-container audio {
        width: 100% !important;
    }

    .cal-adv-activity-container[data-activity-type="video"] .cal-adv-answer-input {
        width: 100% !important;
    }

    .cal-adv-modal-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .cal-adv-activity-container {
        max-height: 80vh;
        padding: 1rem;

    }

    .cal-adv-success-message {
        font-size: 1rem;
    }

    .cal-adv-success-points strong {
        font-size: 5rem;
    }

    .cal-adv-activity-message.error {
        font-size: 0.9rem;
        padding: 0.5rem;
        width: 100%;
    }
}

/* Estilos para Selección de Artistas Favoritos */
.cal-adv-artists-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.cal-adv-artist-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cal-adv-artist-checkbox:hover {
    border-color: #46CC8D;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
}

.cal-adv-artist-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #46CC8D;
    transform: scale(1.1);
}

.cal-adv-artist-checkbox input[type="checkbox"]:checked+span {
    color: #46CC8D;
    font-weight: bold;
}

.cal-adv-artist-checkbox input[type="checkbox"]:checked {
    accent-color: #46CC8D;
}

.cal-adv-artist-checkbox span {
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.cal-adv-artist-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cal-adv-artist-checkbox input[type="checkbox"]:disabled+span {
    opacity: 0.7;
}

.cal-adv-artists-counter {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: #1565c0;
    font-weight: bold;
}

.cal-adv-no-artists {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}


/* Estilos para Scratch Card Game */
.cal-adv-success-inline {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: fadeIn 0.5s ease-in;
}

.cal-adv-success-message {
    font-family: 'Grandstander', cursive;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cal-adv-scratch-card-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cal-adv-scratch-card-canvas {
    position: relative;
    width: 100%;
    height: 400px;
    cursor: crosshair;
    display: block;
}

.cal-adv-scratch-card-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cal-adv-scratch-card-info {
    text-align: center;
    margin-top: 1.5rem;
    color: white;
}

.cal-adv-scratch-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cal-adv-scratch-card-artist {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
}

.cal-adv-scratch-card-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.cal-adv-scratch-card-progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 20px;
}

.cal-adv-scratch-card-timer {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffc107;
    margin: 1rem 0;
}

.cal-adv-scratch-card-hint {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Error messages for games */
.cal-adv-error-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #856404;
}

.cal-adv-error-message h3 {
    color: #d63031;
    margin-bottom: 1rem;
}

.cal-adv-error-message p {
    margin-bottom: 1.5rem;
}

/* Scratch card completion styles */
.cal-adv-scratch-card-complete {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.5s ease;
}

.cal-adv-scratch-card-complete h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.cal-adv-scratch-card-complete p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cal-adv-scratch-card-complete .cal-adv-btn-success {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cal-adv-scratch-card-complete .cal-adv-btn-success:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.cal-adv-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cal-adv-admin-stat-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cal-adv-admin-stat-icon {
    font-size: 40px;
    color: #2271b1;
}

.cal-adv-admin-stat-content h3 {
    margin: 0;
    font-size: 32px;
    color: #1d2327;
}

.cal-adv-admin-stat-content p {
    margin: 5px 0 0;
    color: #646970;
}

.cal-adv-admin-section {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cal-adv-admin-section h2 {
    margin-top: 0;
}

.cal-adv-admin-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.cal-adv-admin-day {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.cal-adv-admin-day.has-activity {
    border-color: #00a32a;
    background: #f0f9f4;
}

.cal-adv-admin-day.no-activity {
    border-color: #dba617;
    background: #fcf9e8;
}

.cal-adv-admin-day-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cal-adv-admin-day-status {
    margin-bottom: 10px;
    font-size: 14px;
}

.cal-adv-admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cal-adv-admin-instructions {
    line-height: 1.8;
}

/* Estilos para Páginas Legales (Privacy Policy, Terms & Conditions) */
.entry-title-legal {
    color: #333333;
    font-family: 'Grandstander', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-template-template-legal .entry-content {
    background-color: #ffffff;
    color: #333333;
    padding: 3rem 4rem;
    border-radius: 15px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy-policy .entry-content h1,
.terminos-y-condiciones .entry-content h1,
.privacy-policy .entry-content h2,
.terminos-y-condiciones .entry-content h2,
.privacy-policy .entry-content h3,
.terminos-y-condiciones .entry-content h3 {
    color: #c41e3a;
    /* Rojo temático */
    font-family: 'Grandstander', cursive;
}

.privacy-policy .entry-content p,
.terminos-y-condiciones .entry-content p {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.privacy-policy .entry-content ul,
.terminos-y-condiciones .entry-content ul,
.privacy-policy .entry-content ol,
.terminos-y-condiciones .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-policy .entry-content a,
.terminos-y-condiciones .entry-content a {
    color: #0056b3;
    text-decoration: underline;
}

.privacy-policy .entry-content a:hover,
.terminos-y-condiciones .entry-content a:hover {
    color: #003d82;
}


/* Estilos de la Página 404 */
.error-404-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 2rem;
    background-color: #5CAA95;
    /* Fondo verde navideño */
    color: #ffffff;
}

.error-404-content {
    max-width: 600px;
}

.error-404-icon {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: floatGentle 4s ease-in-out infinite;
}

.error-404-title {
    font-family: 'Grandstander', cursive;
    font-size: 6rem;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.error-404-message {
    font-family: 'Grandstander', cursive;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}


/* Estilos del Footer Dinámico */
.site-footer {
    padding: 1rem 2rem;
    text-align: center;
    margin-top: auto;
    /* Empuja el footer al fondo si el contenido es corto */
}

.site-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.site-footer .copyright {
    color: #343a40;
    font-weight: 500;
}

.footer-navigation a {
    color: #CA2E43CC;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.footer-navigation a:hover {
    color: #CA2E43CC;
    text-decoration: underline;
}

/* Responsive para el footer */
@media (max-width: 768px) {
    .site-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-navigation a {
        display: block;
        margin: 5px 0;
    }
}