/* ============================================================
   DANNA JAZMIN — INVITACIÓN DIGITAL
   01. Variables  02. Base  03. Desktop  04. Portada
   05. Secciones 06. Galería 07. Interacciones 08. Accesibilidad
   ============================================================ */
:root {
  --rose: #d9a6b8;
  --rose-dark: #8f6274;
  --rose-soft: #fff5f8;
  --ivory: #fffaf8;
  --white: #fff;
  --gold: #b99567;
  --ink: #5f4e56;
  --muted: #8a7a81;
  --shadow: 0 18px 50px rgba(161, 103, 124, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: 'DM Sans', sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
.mobile-site { position: relative; overflow: hidden; min-height: 100dvh; }
.desktop-notice { display: none; }
.eyebrow { font-size: .67rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-dark); line-height: 1.7; }
.script-heading, .signature, .footer__script { font-family: 'Great Vibes', cursive; font-weight: 400; }
.script-heading { margin: .25rem 0 1.1rem; font-size: clamp(3.2rem, 12vw, 4.7rem); line-height: 1.15; color: var(--rose-dark); }
.section { position: relative; padding: 90px 25px; text-align: center; }
.section-inner { width: 100%; max-width: 520px; margin: auto; }
.section-description { font-family: 'Playfair Display', serif; font-size: 1rem; line-height: 1.95; color: var(--muted); }
.divider-flower { margin: 19px 0; color: var(--gold); font-size: 1.3rem; letter-spacing: .6em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; min-height: 50px; padding: 14px 24px; border: 1px solid transparent; border-radius: 100px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:active { transform: scale(.97); }
.button--primary { color: #fff; background: #ba8296; box-shadow: 0 8px 22px rgba(186,130,150,.25); }
.button--outline { border-color: #d4afbd; color: var(--rose-dark); background: #fff; }
/* Desktop is intentionally blocked; phone-width viewport is the actual invitation. */
@media (min-width: 768px) {
  .mobile-site { display: none !important; }
  .desktop-notice { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 30px; background: radial-gradient(circle at top, #ffe5ee, #fffaf8 68%); }
  .desktop-notice__card { width: min(440px, 100%); text-align: center; padding: 45px 35px; border: 1px solid #efd5dd; border-radius: 25px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
  .desktop-notice__flower { font-size: 3rem; color: var(--rose); }
  .desktop-notice h1 { font: 4.1rem 'Great Vibes', cursive; color: var(--rose-dark); margin: 4px 0 16px; }
  .desktop-notice p:not(.eyebrow) { line-height: 1.8; }
  .desktop-notice__hint { font-size: .84rem; color: var(--muted); }
  .phone-drawing { width: 72px; height: 116px; margin: 22px auto 0; border: 5px solid var(--rose-dark); border-radius: 15px; display: grid; place-items: center; color: var(--rose); font-size: 2rem; }
}
/* Entry and hero */
.entry-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 26px; text-align: center; background: radial-gradient(ellipse at 50% 25%, #fff 5%, #ffeef4 60%, #f6dbe5 100%); transition: opacity .7s, visibility .7s; }
.entry-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-screen__content { position: relative; width: 100%; max-width: 440px; padding: 70px 15px; border: 1px solid rgba(188,154,105,.55); outline: 7px solid rgba(255,255,255,.55); border-radius: 190px 190px 12px 12px; }
.ornament { color: var(--gold); letter-spacing: .5em; }
.entry-screen__script, .hero__script { margin: 15px 0 0; font: 3.3rem 'Great Vibes', cursive; color: var(--rose-dark); }
.entry-screen h1, .hero h2 { margin: 5px 0; font: 3.25rem 'Playfair Display', serif; font-weight: 400; color: #8f6577; line-height: 1.25; }
.entry-screen h1 span,
.hero h2 em {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: normal;
}.line-flower { margin: 24px 0; color: var(--gold); }
.entry-screen__date { margin-bottom: 32px; letter-spacing: .24em; font-size: .85rem; }
.microcopy { margin: 14px auto 0; color: var(--muted); font-size: .68rem; line-height: 1.7; }
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 85px 20px 105px; background: radial-gradient(circle at 50% 32%, #fff 0, #fff3f7 48%, #f7dce7 100%); }
.hero__frame { position: relative; width: 100%; padding: 95px 15px; border: 1px solid rgba(188,154,105,.5); border-radius: 180px 180px 12px 12px; background: rgba(255,255,255,.33); box-shadow: var(--shadow); }
.hero__date { font-size: .7rem; letter-spacing: .1em; line-height: 1.7; }
.hero__time { font-family: 'Playfair Display', serif; color: var(--rose-dark); font-size: 1.3rem; }
.sakura { position: absolute; font-size: 7rem; color: rgba(234,185,202,.4); pointer-events: none; }
.sakura small { display: block; font-size: 3rem; transform: translate(25px,-30px); }
.sakura--left { left: -42px; top: 30px; transform: rotate(-24deg); }
.sakura--right { right: -42px; bottom: 30px; transform: rotate(24deg); }
.scroll-hint { position: absolute; bottom: 35px; left: 0; right: 0; font-size: .65rem; text-decoration: none; letter-spacing: .12em; color: var(--rose-dark); }
.scroll-hint span { display: block; font-size: 1.4rem; margin-top: 5px; }
/* Sections */
.message-section { background: var(--white); }
.message-text { font: italic 1.05rem/2 'Playfair Display', serif; color: #816b73; }
.signature { font-size: 2.2rem; color: var(--rose-dark); margin: 30px 0 0; }
.countdown-section { background: linear-gradient(160deg,#f9e4ec,#fff8fa); }
.countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 30px 0 24px; }
.countdown div { padding: 17px 4px; background: rgba(255,255,255,.75); border: 1px solid #f4dce4; border-radius: 12px; }
.countdown strong { display: block; font: 1.8rem 'Playfair Display', serif; color: var(--rose-dark); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font-size: .59rem; color: var(--muted); }
.countdown-note { font: italic .95rem 'Playfair Display', serif; color: var(--muted); }
.details-section { background: var(--white); }
.event-card { margin-top: 25px; padding: 30px 15px; border: 1px solid #eed7df; background: #fffbfc; box-shadow: var(--shadow); border-radius: 12px; }
.event-card__icon { font-size: 2.5rem; color: var(--rose); }
.event-card__date { font: 2.7rem 'Playfair Display', serif; color: var(--rose-dark); margin: 12px 0; }
.event-card__date span { font-size: 1.15rem; font-style: italic; }
.event-card__hour { font-size: .83rem; letter-spacing: .1em; }
.fine-line { width: 65px; height: 1px; background: var(--gold); margin: 30px auto; }
.event-card h3 { font: 1.45rem 'Playfair Display', serif; font-weight: 400; margin-bottom: 10px; }
.event-card p:not(.eyebrow) { line-height: 1.9; }
.event-card .button { margin-top: 15px; }
.dress-card { margin-top: 25px; padding: 22px; display: flex; align-items: center; justify-content: space-around; border: 1px solid #f0dce3; border-radius: 12px; }
.dress-card > span { color: var(--gold); font-size: 1.5rem; }
.dress-card h3 { margin: 0; font: 1.6rem 'Playfair Display', serif; }
.dress-card > div { flex: 1; min-width: 0; padding: 0 10px; text-align: center; }
.dress-card__note { max-width: 290px; margin: 10px auto 0; font-size: .82rem; line-height: 1.65; color: var(--muted); }
.gallery-section { background: linear-gradient(180deg, #fff7fa 0%, #fff2f6 100%); }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 25px; }
.photo-slot { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f3e4e9; border: 5px solid white; box-shadow: 0 10px 30px rgba(120,70,90,.10); }
.photo-slot--large { grid-column: span 2; aspect-ratio: 4/3; }
.photo-slot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: radial-gradient(circle at 50% 25%, #fff9fb, #eecbd8); color: var(--rose-dark); }
.photo-placeholder span { font-size: 3.2rem; color: #dfacbe; }
.photo-placeholder small { font: italic .9rem 'Playfair Display',serif; }
.gallery-note { font-size: .75rem; color: var(--muted); }
.gifts-section { background: var(--white); }
.gift-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 30px; }
.gift-item { padding: 25px 9px; border: 1px solid #eedce2; background: #fff8fa; border-radius: 12px; }
.gift-item > span { font-size: 2.6rem; color: var(--gold); }
.gift-item h3 { font: 1.3rem 'Playfair Display',serif; font-weight: 400; }
.gift-item p { font-size: .72rem; line-height: 1.7; color: var(--muted); }
.rsvp-section { background: linear-gradient(160deg,#f9e1ea,#fff6f9); }
.rsvp-section .button { margin-top: 22px; }
.footer { padding: 55px 15px 85px; background: #fff; text-align: center; }
.footer > span { color: var(--gold); font-size: 1.8rem; }
.footer__script { font-size: 3.3rem; color: var(--rose-dark); margin: 0; }
.footer p:not(.footer__script) { font-size: .7rem; letter-spacing: .15em; }
.footer__last { color: var(--muted); }
.music-button { position: fixed; z-index: 10; bottom: max(18px,env(safe-area-inset-bottom)); right: 17px; width: 52px; height: 52px; border: 1px solid #f1dbe2; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--rose-dark); font-size: 1.55rem; cursor: pointer; }
.music-button.is-playing { animation: pulse 2.4s infinite; }
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
.petal { position: absolute; top: -35px; color: #e8b1c5; opacity: .65; animation: fall linear infinite; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fall { from { transform: translate3d(0,-30px,0) rotate(0); } to { transform: translate3d(75px,110vh,0) rotate(330deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(234,185,202,.2); } }
@media (max-width: 355px) { .entry-screen h1, .hero h2 { font-size: 2.7rem; } .section { padding-left: 17px; padding-right: 17px; } .button { padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .petal { display: none; } .reveal { opacity: 1; transform: none; transition: none; } .music-button.is-playing { animation: none; } }
.copyright {
    width: 100%;
    padding: 25px 15px;
    text-align: center;
    background-color: #fff8fa;
}

.copyright p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #a78b91;
    line-height: 1.8;
}

.copyright strong {
    font-weight: 600;
    color: #b88665;
}
html.scroll-locked,
body.scroll-locked {
    overflow: hidden;
    height: 100%;
}