@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,900&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

:root{
    --sky-deep:    #1b1730;
    --sky-mid:     #34264a;
    --sky-horizon: #5c3a52;
    --petal-light: #ffdd73;
    --petal-mid:   #f7c548;
    --petal-deep:  #d99a2b;
    --cream:       #fff6d6;
}

*{
    font-family: 'Poppins', cursive;
    box-sizing: border-box;
}
html{
    height: 100%;
    overflow: hidden;
}
body{
    position: relative;
    color: var(--cream);
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(70% 55% at 50% 105%, rgba(247, 197, 72, 0.14), transparent 65%),
        linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 55%, var(--sky-horizon) 100%);
    overflow: hidden;
}

/* Lluvia de pétalos ambiental, muy sutil, detrás de todo. */
#petal-bg{
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
body > *:not(#petal-bg){
    position: relative;
    z-index: 1;
}

.botones{
    padding: 0;
    border-radius: 80px;
    background-color: transparent;
    border: none;
}

.botones a{
    display: inline-block;
    background: linear-gradient(135deg, var(--petal-light), var(--petal-mid) 55%, var(--petal-deep));
    color: #3a2a10;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.85rem 2.2rem;
    border-radius: 80px;
    box-shadow: 0 8px 26px rgba(217, 154, 43, 0.45), 0 0 0 1px rgba(255,255,255,0.15) inset;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.botones a:hover,
.botones a:focus{
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(217, 154, 43, 0.6), 0 0 0 1px rgba(255,255,255,0.2) inset;
}

/* Palabras de amor que van apareciendo flotando por toda la pantalla
   durante la bienvenida (JS decide texto, posición y tamaño). */
.love-words{
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.love-word{
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    color: var(--petal-light);
    text-shadow: 0 0 14px rgba(247,197,72,0.65), 0 0 34px rgba(247,197,72,0.35);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    animation: love-word-pop 2.4s ease-in-out forwards;
}
@keyframes love-word-pop{
    0%{   opacity: 0; transform: translate(-50%,-50%) scale(0.7) translateY(10px); }
    18%{  opacity: 1; transform: translate(-50%,-50%) scale(1) translateY(0); }
    78%{  opacity: 1; transform: translate(-50%,-50%) scale(1) translateY(-4px); }
    100%{ opacity: 0; transform: translate(-50%,-50%) scale(0.92) translateY(-16px); }
}

.button a{
    text-decoration: none;
    font-size: 1.05rem;
}

@media screen and (max-width:574px){
    .love-word{
        font-size: 1.5rem !important;
    }
    .button a{
        font-size: 1rem;
    }
}
.lock-screen{
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 8vh 6vw;
    background:
        radial-gradient(60% 45% at 50% 105%, rgba(247, 197, 72, 0.16), transparent 70%),
        linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 55%, var(--sky-horizon) 100%);
    color: var(--cream);
    transition: opacity 1.1s ease-in-out, visibility 1.1s ease-in-out;
}
.lock-screen.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* El atributo [hidden] tiene que ganarle sí o sí a este display:flex,
   si no, el bloqueo se queda tapando todo aunque el JS ya lo haya
   "ocultado" a nivel de atributo. */
.lock-screen[hidden]{
    display: none !important;
}

.lock-eyebrow{
    font-size: 1rem;
    opacity: 0.8;
    margin: 0 0 0.2rem;
}
.lock-title{
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.9rem, 6vw, 2.8rem);
    font-weight: 600;
    color: var(--petal-light);
    text-shadow: 0 0 12px rgba(247,197,72,0.55), 0 0 34px rgba(247,197,72,0.3);
    margin: 0 0 0.6rem;
    line-height: 1.15;
}
.lock-sub{
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 2rem;
    max-width: 34ch;
}

.countdown{
    display: flex;
    gap: clamp(0.6rem, 3vw, 1.4rem);
    margin-bottom: 2rem;
}
.countdown-unit{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}
.countdown-number{
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 600;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.countdown-label{
    margin-top: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.75;
    letter-spacing: 0.04em;
}
.lock-footer{
    font-size: 0.85rem;
    opacity: 0.75;
    font-style: italic;
}

/* =====================================================================
   EXPERIENCIA (portada) + revelación en secuencia
===================================================================== */
.experience{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Mismo motivo que arriba: sin esto, el atributo [hidden] no oculta
   realmente la experiencia. */
.experience[hidden]{
    display: none !important;
}

#button-wrap{
    opacity: 0;
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: opacity 1s ease, transform 1s ease;
}
#button-wrap.is-visible{
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Resplandor especial detrás del botón, pulsando suave, para que el
   momento de "tu regalo está listo" se sienta especial. */
#button-wrap::before{
    content: "";
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(247,197,72,0.35), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 1.2s ease, transform 1.2s ease;
    z-index: -1;
}
#button-wrap.is-visible::before{
    opacity: 1;
    transform: scale(1);
    animation: button-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes button-glow-pulse{
    0%, 100%{ transform: scale(1); opacity: 0.9; }
    50%{ transform: scale(1.18); opacity: 0.45; }
}
