/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #ff5fa2;
    color: #ffffff;
}


/* =====================================================
   LANDING
===================================================== */

.landing {
    position: relative;

    min-height: 100svh;
    width: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(255, 255, 255, 0.18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #ff6ba9 0%,
            #ec4c9a 35%,
            #b63ed0 68%,
            #713bd7 100%
        );
}


/* =====================================================
   GLOW DECORATIVO
===================================================== */

.glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);

    pointer-events: none;
}

.glow-one {
    width: 220px;
    height: 220px;

    top: -100px;
    right: -70px;

    background: rgba(255, 255, 255, 0.18);
}

.glow-two {
    width: 250px;
    height: 250px;

    bottom: -100px;
    left: -100px;

    background: rgba(255, 160, 220, 0.20);
}


/* =====================================================
   CORAZONES
   El contenedor está listo para JavaScript.
===================================================== */

#hearts-container {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    z-index: 2;

    min-height: 100svh;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding:
        30px
        24px
        40px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
}


/* =====================================================
   PRODUCTO
===================================================== */

.product-container {
    position: relative;

    width: min(78vw, 350px);

    margin-bottom: 15px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    position: relative;

    z-index: 2;

    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    /*
        Una pequeña inclinación hace que el producto
        se sienta menos rígido.
    */
    transform: rotate(-3deg);

    /*
        Si tu imagen ya tiene una buena sombra,
        puedes eliminar este filter.
    */
    filter:
        drop-shadow(
            0 25px 22px rgba(70, 17, 75, 0.30)
        );
}


/* Luz detrás del alfajor */

.product-glow {
    position: absolute;

    width: 70%;
    aspect-ratio: 1;

    border-radius: 50%;

    background: rgba(255, 210, 240, 0.38);

    filter: blur(45px);

    z-index: 0;
}


/* =====================================================
   CONTENIDO
===================================================== */

.content {
    position: relative;

    z-index: 3;

    width: 100%;
    max-width: 480px;
}


/* Pequeño texto superior */

.eyebrow {
    display: block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.18em;

    line-height: 1.4;
}


/* =====================================================
   TITULO
===================================================== */

h1 {
    margin-bottom: 2px;

    color: #ffffff;

    font-size: clamp(2.7rem, 13vw, 4.8rem);

    font-weight: 900;

    line-height: 0.95;

    letter-spacing: -0.055em;

    text-shadow:
        0 5px 20px rgba(92, 20, 100, 0.18);
}


/* =====================================================
   TEASER
===================================================== */

.teaser {
    margin-top: 14px;

    font-size: 1.25rem;

    font-weight: 600;

    color: rgba(255, 255, 255, 0.92);
}

.emoji {
    display: inline-block;

    margin-left: 3px;
}


/* =====================================================
   DESCRIPCION
===================================================== */

.description {
    max-width: 390px;

    margin:
        14px
        auto
        0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.98rem;

    line-height: 1.55;
}

.description strong {
    color: #ffffff;

    font-weight: 800;
}


/* =====================================================
   BOTON
===================================================== */

.vote-button {
    width: 100%;

    min-height: 58px;

    margin-top: 27px;

    padding:
        16px
        20px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    border-radius: 999px;

    background: #ffffff;

    color: #8a287c;

    text-decoration: none;

    font-size: 0.82rem;

    font-weight: 900;

    letter-spacing: 0.03em;

    box-shadow:
        0 12px 30px rgba(74, 20, 85, 0.22);

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

.vote-button .arrow {
    font-size: 1.35rem;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


/* =====================================================
   HOVER
===================================================== */

@media (hover: hover) {

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

        background: #fff8fd;

        box-shadow:
            0 16px 35px rgba(74, 20, 85, 0.30);
    }

    .vote-button:hover .arrow {
        transform: translateX(5px);
    }
}


/* =====================================================
   ACTIVE / TOUCH
===================================================== */

.vote-button:active {
    transform: scale(0.97);
}


/* =====================================================
   TEXTO INFERIOR
===================================================== */

.small-text {
    margin-top: 15px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.72rem;

    line-height: 1.4;
}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 600px) {

    .hero {
        padding:
            50px
            35px;
    }

    .product-container {
        width: min(55vw, 400px);

        margin-bottom: 20px;
    }

    .description {
        font-size: 1.05rem;
    }

    .vote-button {
        max-width: 430px;

        margin-left: auto;
        margin-right: auto;
    }
}


/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 900px) {

    .hero {
        min-height: 100vh;

        padding:
            50px;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 50px;

        text-align: left;
    }


    /* Producto a la derecha */

    .product-container {
        grid-column: 2;
        grid-row: 1;

        width: min(42vw, 480px);

        margin: 0 auto;
    }


    /* Contenido a la izquierda */

    .content {
        grid-column: 1;
        grid-row: 1;

        max-width: 500px;

        margin: 0 auto;
    }


    .description {
        margin-left: 0;
        margin-right: 0;
    }


    .vote-button {
        margin-left: 0;
        margin-right: 0;

        width: fit-content;

        min-width: 350px;
    }


    .small-text {
        text-align: left;
    }
}


/* =====================================================
   DESKTOP GRANDE
===================================================== */

@media (min-width: 1200px) {

    .hero {
        grid-template-columns:
            1fr
            1fr;

        gap: 80px;
    }

    h1 {
        font-size: 5.2rem;
    }

    .product-container {
        width: 500px;
    }
}


/* =====================================================
   REDUCE MOTION
   Respeta la configuración de accesibilidad
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================
   CORAZONES CAYENDO
===================================================== */

.falling-heart {
    position: absolute;

    top: -30px;

    display: block;

    font-family: Arial, sans-serif;

    pointer-events: none;
    user-select: none;

    opacity: 0;

    animation-name: heart-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;

    will-change: transform, opacity;
}


@keyframes heart-fall {

    0% {
        opacity: 0;

        transform:
            translateY(-30px)
            rotate(var(--rotation));
    }

    10% {
        opacity: 0.75;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;

        transform:
            translateY(calc(100vh + 60px))
            rotate(calc(var(--rotation) + 90deg));
    }
}


@media (prefers-reduced-motion: reduce) {

    .falling-heart {
        display: none;
    }
}