:root {
  --primary-color: #1a472a;  /* Verde oscuro navideño */
  --secondary-color: #c41e3a; /* Rojo navideño */
  --accent-color: #d4af37;   /* Dorado */
  --text-color: #fff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: 
        linear-gradient(
            135deg, 
            #0f2c1a 0%,
            #1a472a 35%,
            #2c614c 50%,
            #1a472a 65%,
            #0f2c1a 100%
        );
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Efecto de luces navideñas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(220, 20, 60, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Patrón de copos de nieve */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

h1 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    line-height: 1.2;
    position: relative;
}

.title-main {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-main strong {
    font-weight: 400;
}



.title-sub {
    display: inline-block;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #017bbc, #015c8c);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;

    margin-top: 0;
}

.title-accent {
    color: var(--accent-color);
}

.nadalas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.nadala-card {
    position: relative;
    height: 300px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

.nadala-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.nadala-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.nadala-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.nadala-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

/* Eliminar solo lo necesario */
.nadala-preview,
.nadala-card.open {
    display: none;
}

/* Ajustar responsive */
@media (max-width: 1024px) {
    .nadala-card {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nadala-card {
        height: 200px;
    }
}

.nadala-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.nadala-card.open:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.nadala-card:not(.open)::before {
    content: "";
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nadala-card:not(.open)::after {
    content: "Disponible pronto";
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    animation: cardOpen 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modal-content {
    width: 100%;
    opacity: 0;
    transform: scale(0.98);
    animation: contentFadeIn 0.3s ease-out 0.1s forwards;
}

@keyframes cardOpen {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2rem;
    color: #333;
    transition: transform 0.3s ease;
    padding: 10px;
    z-index: 1005;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.close:hover {
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .nadalas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .nadala-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nadalas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .nadala-card {
        height: 350px;
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
        padding: 0.4rem 1.2rem;
    }

    .title-main {
        font-size: 5rem;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotateY(-3deg); }
    75% { transform: translateX(3px) rotateY(3deg); }
}

.snowflake {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

#modal-content {
    position: relative;
    z-index: 1002;
}

.modal-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1003;
}

.modal-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: #017bbc;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
}

.download-btn:hover {
    background: #015c8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: sparkleAnim 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkleAnim {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

#modal-content img,
#modal-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.download-btn-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    position: relative;
    z-index: 1003;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: #017bbc;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: #015c8c;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

/* Ajustar el contenedor del modal */
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

#modal-content {
    width: 100%;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.intro-text {
    text-align: left;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.intro-text p {
    margin-bottom: 1rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.holiday-wish {
    position: relative;
    margin: 3rem auto;
    max-width: 800px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.holiday-wish {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 4rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .intro-text {
        padding: 0 2rem;
        font-size: 1.1rem;
    }

    .holiday-wish {
        font-size: 1.4rem;
    }
}

.logo-container {
    margin-bottom: 3rem;
}

.logo {
    height: auto;
    display: block;
}

/* Solo aplicar max-width en mobile */
@media (max-width: 768px) {
    .logo-container {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .logo {
        margin: 0 auto;
        max-width: 250px;
        width: 80%;
    }
}

.calendar-instructions {
    color: var(--accent-color);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 3rem auto 0;
    max-width: 800px;
    text-align: left;
}

.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.music-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    transition: transform 0.2s ease;
}

.share-buttons a:hover {
    transform: scale(1.1);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.share-text {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}


