﻿/* =========================
   Base / Reset
========================= */
:root {
    --bg0: #0b0610;
    --bg1: #15081d;
    --card: rgba(255,255,255,.08);
    --card2: rgba(255,255,255,.10);
    --txt: #fff7fb;
    --muted: rgba(255,247,251,.72);
    --pink: #ff4aa2;
    --pink2: #ff78c7;
    --rose: #ff3d6e;
    --red: #ff2d55;
    --glow1: rgba(255,74,162,.35);
    --glow2: rgba(255,61,110,.28);
    --stroke: rgba(255,255,255,.12);
    --stroke2: rgba(255,255,255,.18);
    --shadow: 0 18px 55px rgba(0,0,0,.45);
    --shadow2: 0 12px 30px rgba(0,0,0,.35);
    --r: 18px;
    --r2: 22px;
    --max: 1040px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--txt);
    background: radial-gradient(900px 600px at 10% 10%, rgba(255,74,162,.22), transparent 55%), radial-gradient(900px 600px at 90% 15%, rgba(255,61,110,.18), transparent 55%), radial-gradient(900px 600px at 50% 100%, rgba(255,120,199,.14), transparent 55%), linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(255,74,162,.25);
}

/* Improve scroll feel */
html {
    scroll-behavior: smooth;
}

/* =========================
   Layout
========================= */
.layout {
    width: min(100%, calc(var(--max) + 48px));
    margin: 0 auto;
    padding: 84px 24px 52px; /* space for floating nav */
    position: relative;
}

/* =========================
   Scroll progress
========================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255,255,255,.06);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--rose), var(--pink2));
    box-shadow: 0 0 18px rgba(255,74,162,.35);
    border-radius: 0 99px 99px 0;
}

/* =========================
   Glow layers
========================= */
.glow {
    position: fixed;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .9;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -170px;
    left: -160px;
    background: radial-gradient(circle at 40% 40%, var(--glow1), transparent 65%);
}

.glow-2 {
    bottom: -190px;
    right: -170px;
    background: radial-gradient(circle at 60% 40%, var(--glow2), transparent 65%);
}

/* =========================
   FX Layer
========================= */
.fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.fx {
    position: absolute;
    top: -40px;
    font-size: var(--size, 18px);
    will-change: transform, opacity;
    animation: fxFall var(--dur, 7s) linear forwards;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.35));
    opacity: .95;
}

.fx--hearts {
}

.fx--flowers {
}

.fx--kisses {
}

.fx--chick {
}

@keyframes fxFall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: .98;
    }

    100% {
        transform: translate3d(var(--drift, 0vw), 110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

/* =========================
   Navbar (glass)
========================= */
.nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(var(--max) + 48px), calc(100% - 24px));
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15, 6, 20, .56);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow2);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
}

.nav__brandIcon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
}

.nav__brandText {
    font-weight: 800;
    letter-spacing: .2px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

.nav__link {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255,247,251,.80);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

    .nav__link:hover {
        background: rgba(255,255,255,.08);
        color: var(--txt);
        transform: translateY(-1px);
    }

    .nav__link.is-active {
        background: linear-gradient(90deg, rgba(255,74,162,.22), rgba(255,61,110,.18));
        border: 1px solid rgba(255,255,255,.14);
        color: var(--txt);
    }

.nav__toggle {
    border-radius: 999px;
}

/* Mobile nav: keep links but allow wrapping */
@media (max-width: 720px) {
    .nav {
        gap: 10px;
        padding: 10px;
    }

    .nav__links {
        display: none; /* clean mobile look */
    }
}

/* =========================
   Hero
========================= */
.hero {
    position: relative;
    z-index: 5;
    padding: 32px 0 8px;
}

.hero__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero__content {
    margin-top: 14px;
    padding: 26px 22px;
    border-radius: var(--r2);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

    /* Subtle decorative gradients inside hero */
    .hero__content::before {
        content: "";
        position: absolute;
        inset: -1px;
        background: radial-gradient(600px 280px at 20% 0%, rgba(255,74,162,.18), transparent 60%), radial-gradient(600px 280px at 80% 20%, rgba(255,61,110,.14), transparent 60%);
        pointer-events: none;
    }

.hero__title {
    position: relative;
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -.6px;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.heart {
    display: inline-block;
    transform-origin: center;
    animation: heartBeat 1.35s ease-in-out infinite;
}

@keyframes heartBeat {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.hero__letter {
    position: relative;
    margin: 10px 0 0;
    white-space: pre-wrap;
    color: rgba(255,247,251,.92);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.6;
    max-width: 74ch;
}

/* Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,247,251,.85);
    backdrop-filter: blur(10px);
}

.pill__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pink), var(--rose));
    box-shadow: 0 0 18px rgba(255,74,162,.35);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--txt);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    user-select: none;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 35px rgba(0,0,0,.34);
        background: rgba(255,255,255,.08);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn--primary {
    background: linear-gradient(90deg, rgba(255,74,162,.95), rgba(255,61,110,.92));
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 12px 35px rgba(255,74,162,.18);
}

    .btn--primary:hover {
        box-shadow: 0 16px 44px rgba(255,74,162,.25);
    }

.btn--soft {
    background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255,255,255,.18);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,247,251,.92);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

    .icon-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.08);
    }

.icon-btn--close {
    padding: 8px 10px;
}

.icon {
    display: inline-grid;
    place-items: center;
}

/* Hero actions */
.hero__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* FX controls */
.fx-controls {
    position: relative;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-radius: var(--r);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--txt);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .fx-btn span {
        font-size: 13px;
        color: rgba(255,247,251,.85);
    }

    .fx-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,.28);
        background: rgba(255,255,255,.08);
    }

.fx-btn--ghost {
    background: transparent;
    border-color: rgba(255,255,255,.18);
}

/* Mini note */
.mini-note {
    position: relative;
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--r);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.mini-note__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

.mini-note__text {
    color: rgba(255,247,251,.90);
}

/* Stats */
.stats {
    position: relative;
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.stat {
    padding: 14px;
    border-radius: var(--r);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.stat__label {
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255,247,251,.70);
}

.stat__value {
    margin-top: 6px;
    font-weight: 900;
    font-size: 18px;
    color: var(--txt);
}

/* Scroll hint */
.scroll-hint {
    position: relative;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,247,251,.75);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    width: fit-content;
}

.scroll-hint__mouse {
    width: 16px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.35);
    position: relative;
}

    .scroll-hint__mouse::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 4px;
        width: 3px;
        height: 6px;
        border-radius: 99px;
        transform: translateX(-50%);
        background: rgba(255,255,255,.55);
        animation: mouseDot 1.25s ease-in-out infinite;
    }

@keyframes mouseDot {
    0%,100% {
        transform: translate(-50%,0);
        opacity: .8;
    }

    50% {
        transform: translate(-50%,6px);
        opacity: .25;
    }
}

/* Typewriter cursor */
.tw-cursor {
    display: inline-block;
    animation: twBlink 1s steps(2,end) infinite;
    opacity: .9;
}

@keyframes twBlink {
    50% {
        opacity: .15;
    }
}

/* =========================
   Divider
========================= */
.divider {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 26px 0;
    opacity: .9;
}

    .divider span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        box-shadow: 0 10px 26px rgba(0,0,0,.22);
    }

/* =========================
   Sections
========================= */
.section {
    position: relative;
    z-index: 5;
    padding: 14px 0 0;
}

.section__head {
    margin: 0 0 14px;
}

.section__title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 900;
    letter-spacing: -.2px;
}

.section__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.section__cta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* Grid cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .layout {
        padding: 80px 16px 46px;
    }

    .hero__content {
        padding: 22px 16px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 16px 16px 18px;
    border-radius: var(--r2);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 36px rgba(0,0,0,.26);
    overflow: hidden;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 50px rgba(0,0,0,.35);
        border-color: rgba(255,255,255,.18);
    }

.card__badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

.card__title {
    margin: 12px 0 6px;
    font-weight: 900;
    letter-spacing: -.2px;
}

.card__text {
    margin: 0;
    color: rgba(255,247,251,.82);
    line-height: 1.55;
}

/* Razones section */
.reasons {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .reasons {
        grid-template-columns: 1fr;
    }
}

.reasons__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reason {
    padding: 12px 14px;
    border-radius: var(--r);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,247,251,.90);
    position: relative;
    overflow: hidden;
}

    .reason::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(420px 200px at 0% 0%, rgba(255,74,162,.14), transparent 60%);
        pointer-events: none;
    }

.quote {
    padding: 16px;
    border-radius: var(--r2);
    background: linear-gradient(180deg, rgba(255,74,162,.14), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 14px 36px rgba(0,0,0,.26);
}

.quote__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,247,251,.92);
}

.quote__tag {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255,247,251,.70);
}

/* =========================
   Gallery
========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.frame {
    margin: 0;
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    box-shadow: 0 16px 40px rgba(0,0,0,.26);
    position: relative;
}

.frame__btn {
    all: unset;
    display: block;
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: relative;
}

.frame__img {
    width: 100%;
    height: clamp(210px, 30vw, 320px);
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .25s ease, filter .25s ease;
}

.frame:hover .frame__img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.04);
}

.frame__overlay {
    position: absolute;
    inset: auto 12px 12px 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15,6,20,.55);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    color: rgba(255,247,251,.90);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.frame:hover .frame__overlay {
    opacity: 1;
    transform: translateY(0);
}

.img-error {
    filter: grayscale(1);
    opacity: .5;
}

/* =========================
   Footer
========================= */
.footer {
    margin-top: 26px;
    padding: 18px 14px;
    border-radius: var(--r2);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(255,247,251,.82);
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

/* =========================
   Modals
========================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9500;
}

    .modal.show {
        display: block;
    }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
}

.modal__box {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 8vh auto 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
}

.modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.modal__body {
    padding: 0 16px 16px;
}

.modal__text {
    color: rgba(255,247,251,.90);
    line-height: 1.6;
}

.letter-p {
    margin: 10px 0;
}

.modal__signature {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.sig__line {
    display: block;
    color: rgba(255,247,251,.75);
}

.sig__name {
    display: block;
    font-weight: 900;
    margin-top: 6px;
}

.modal__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px 16px;
}

/* Photo lightbox */
.photo-box {
    position: relative;
    width: min(920px, calc(100% - 28px));
    margin: 6vh auto 0;
    border-radius: 22px;
    background: rgba(10, 6, 14, .65);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 14px;
}

.photo-preview {
    width: 100%;
    height: min(70vh, 560px);
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
}

.photo-nav {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* =========================
   Back to top
========================= */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9200;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(15,6,20,.58);
    backdrop-filter: blur(12px);
    color: var(--txt);
    cursor: pointer;
    box-shadow: 0 16px 44px rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

    .to-top.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .to-top:hover {
        transform: translateY(-2px);
    }

/* =========================
   Reveal animations
========================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
    transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}

    [data-reveal].is-in {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

/* =========================
   Reduce motion
========================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .heart, .tw-cursor, .fx, .scroll-hint__mouse::after {
        animation: none !important;
    }

    [data-reveal] {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
