
/* =========================================
   INICIO 12 — CUMPLEAÑOS DE VANESA
   ========================================= */

:root {
    --background: #12090e;
    --background-soft: #211018;
    --wine: #7c1838;
    --wine-light: #a83256;
    --pink: #f2b7c9;
    --pink-light: #ffe2eb;
    --white: #fff8fa;
    --muted: #d6bdc6;
    --gold: #e8c18a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: var(--white);
    background: var(--background);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(124, 24, 56, 0.30),
            transparent 55%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(168, 50, 86, 0.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #10070b,
            #1d0b14 55%,
            #10070b
        );
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;

    background-image:
        radial-gradient(#ffffff 0.7px, transparent 0.7px);
    background-size: 24px 24px;
}

.welcome-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 48px 20px 28px;
    isolation: isolate;
}

.welcome-card {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    padding: clamp(30px, 6vw, 65px) clamp(20px, 6vw, 58px);

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(48, 20, 33, 0.82),
            rgba(24, 10, 17, 0.90)
        );

    border: 1px solid rgba(242, 183, 201, 0.22);
    border-radius: 28px;

    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.38),
        0 0 55px rgba(124, 24, 56, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    animation: card-entrance 1.1s ease both;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1.8;
    margin-bottom: 26px;
}

.birthday-decoration {
    margin-bottom: 18px;
    font-size: clamp(2rem, 6vw, 3.1rem);
    letter-spacing: 0.12em;

    animation: decoration-entrance 1.2s ease both;
    animation-delay: 0.25s;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

h1 span {
    display: block;
    margin-top: 8px;

    color: var(--pink);

    font-style: italic;
    text-shadow: 0 0 35px rgba(242, 183, 201, 0.16);
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 28px auto;
    max-width: 220px;
}

.separator > span:not(.separator-flower) {
    flex: 1;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(232, 193, 138, 0.7)
    );
}

.separator > span:last-child {
    transform: rotate(180deg);
}

.separator-flower {
    color: var(--gold);
    font-size: 1.1rem;
}

.welcome-message {
    max-width: 440px;
    margin: 0 auto 16px;

    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.7;
    text-wrap: balance;
}

.welcome-submessage {
    max-width: 410px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.birthday-illustrations {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(14px, 4vw, 28px);
    margin: 32px 0;

    font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.birthday-illustrations span {
    display: inline-block;
    animation: gentle-float 3s ease-in-out infinite;
}

.birthday-illustrations span:nth-child(2) {
    animation-delay: -0.8s;
}

.birthday-illustrations span:nth-child(3) {
    animation-delay: -1.6s;
}

.birthday-illustrations span:nth-child(4) {
    animation-delay: -2.3s;
}

.start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 54px;
    padding: 15px 26px;

    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.025em;

    background: linear-gradient(
        135deg,
        #84203f,
        #a83256
    );

    border: 1px solid rgba(255, 226, 235, 0.22);
    border-radius: 999px;

    box-shadow: 0 8px 28px rgba(124, 24, 56, 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.start-button span {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.start-button:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #a83256,
        #c1486b
    );

    box-shadow: 0 12px 35px rgba(168, 50, 86, 0.35);
}

.start-button:hover span {
    transform: translateX(4px);
}

.start-button:focus-visible {
    outline: 2px solid var(--pink-light);
    outline-offset: 5px;
}

.footer-note {
    margin-top: 27px;
    color: #c9a6b4;
    font-size: 0.82rem;
    letter-spacing: 0.035em;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 28px;

    color: rgba(242, 183, 201, 0.58);
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: center;

    animation: fade-in 1.2s ease both;
    animation-delay: 0.8s;
}

/* Flores y elementos flotantes */

.background-effects {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.floating-flower {
    position: absolute;
    display: block;

    opacity: 0.65;
    font-size: clamp(1.3rem, 3vw, 2rem);

    filter: drop-shadow(0 0 12px rgba(242, 183, 201, 0.12));

    animation: flower-drift 8s ease-in-out infinite;
}

.flower-1 {
    top: 13%;
    left: 9%;
    animation-delay: -1s;
}

.flower-2 {
    top: 23%;
    right: 10%;
    animation-delay: -4s;
}

.flower-3 {
    top: 66%;
    left: 7%;
    animation-delay: -2s;
}

.flower-4 {
    top: 77%;
    right: 11%;
    animation-delay: -5s;
}

.flower-5 {
    top: 44%;
    left: 3%;
    animation-delay: -3s;
}

.flower-6 {
    top: 49%;
    right: 4%;
    animation-delay: -6s;
}

/* Animaciones */

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
    }

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

@keyframes decoration-entrance {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

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

@keyframes flower-drift {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

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

/* Teléfonos */

@media (max-width: 600px) {
    .welcome-page {
        padding: 24px 14px;
    }

    .welcome-card {
        padding: 38px 22px;
        border-radius: 23px;
    }

    .eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.19em;
        margin-bottom: 23px;
    }

    .separator {
        margin: 23px auto;
    }

    .welcome-submessage {
        font-size: 0.88rem;
    }

    .birthday-illustrations {
        margin: 26px 0;
    }

    .start-button {
        width: 100%;
        max-width: 300px;
    }

    .flower-1 {
        top: 5%;
        left: 4%;
    }

    .flower-2 {
        top: 8%;
        right: 5%;
    }

    .flower-3 {
        bottom: 9%;
        top: auto;
        left: 4%;
    }

    .flower-4 {
        bottom: 8%;
        top: auto;
        right: 5%;
    }

    .flower-5,
    .flower-6 {
        display: none;
    }

    .page-footer {
        font-size: 0.53rem;
        gap: 8px;
        letter-spacing: 0.10em;
    }
}

/* Accesibilidad: reducir movimiento si así se solicita */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Transición al cambiar de página */

.welcome-card {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.welcome-card.is-leaving {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
}

.start-button.is-loading {
    pointer-events: none;
}

body.page-leaving {
    overflow: hidden;
}

/* Pantalla previa al cumpleaños. La fecha se controla desde inicio.html. */
.countdown {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(circle at 50% 25%, rgba(168, 50, 86, 0.34), transparent 42%),
        linear-gradient(145deg, #10070b, #2c0c1b 55%, #10070b);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.is-unlocked .countdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.countdown-card {
    width: min(100%, 620px);
    padding: clamp(32px, 7vw, 62px) clamp(20px, 6vw, 52px);
    border: 1px solid rgba(242, 183, 201, 0.26);
    border-radius: 28px;
    background: rgba(32, 10, 21, 0.70);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.countdown-flower {
    display: inline-block;
    margin-bottom: 15px;
    font-size: clamp(2.6rem, 9vw, 4rem);
    animation: gentle-float 3s ease-in-out infinite;
}

.countdown-kicker,
.countdown-zone {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.countdown h1 {
    margin: 10px auto 16px;
    font-size: clamp(2.1rem, 7vw, 4rem);
}

.countdown-message {
    max-width: 410px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.7;
}

.countdown-time {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 2vw, 16px);
    margin: 31px auto 22px;
}

.countdown-time div {
    min-width: 0;
    padding: 14px 6px;
    border: 1px solid rgba(242, 183, 201, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.countdown-time strong,
.countdown-time span {
    display: block;
}

.countdown-time strong {
    color: var(--pink-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 5vw, 2.25rem);
}

.countdown-time span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

@media (max-width: 420px) {
    .countdown { padding: 14px; }
    .countdown-card { border-radius: 22px; }
    .countdown-time { gap: 6px; }
    .countdown-time div { padding: 12px 3px; }
    .countdown-time span { font-size: 0.56rem; }
}
