﻿/* ===== VELVET: Romantic luxury · Deep plum & dusty rose · Fraunces ===== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;1,9..144,300;1,9..144,400;1,9..144,700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --plum:        #160816;
    --wine:        #1e0d1c;
    --wine-lt:     #281528;
    --rose:        #c9849a;
    --blush:       #f5e8ee;
    --cream:       #fdf7f9;
    --gold:        #c9a870;
    --muted:       #b8a0a8;
    --border-dark: rgba(201,132,154,0.13);
    --border-lt:   rgba(22,8,22,0.09);
    --gc-accent: #c9849a;
    --gc-accent-text: #fff;
    --gc-card-bg: rgba(255,255,255,0.07);
    --gc-card-border: rgba(255,255,255,0.1);
    --gc-title-color: rgba(255,255,255,0.82);
    --gc-reserve-color: rgba(255,255,255,0.5);
    --gc-reserve-border: rgba(255,255,255,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--plum); background: var(--plum);
    -webkit-font-smoothing: antialiased;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes float  { 0%,100%{transform:translateY(0);}50%{transform:translateY(7px);} }

/* ── SCROLL REVEALS ── */
.reveal {
    opacity:0; transform:translateY(22px);
    transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left {
    opacity:0; transform:translateX(-28px);
    transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.22s; }
.reveal-delay-3 { transition-delay:0.34s; }

/* ── NAV ── */
.nav {
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:0 48px; height:64px;
    display:flex; align-items:center; justify-content:space-between;
    transition:background 0.5s, border-color 0.5s;
}
.nav.scrolled {
    background:rgba(22,8,22,0.96);
    border-bottom:1px solid var(--border-dark);
    backdrop-filter:blur(12px);
}
.nav-logo {
    font-family:'Fraunces',serif; font-style:italic;
    font-size:1rem; color:rgba(255,255,255,0.55); letter-spacing:0.5px;
}
.nav ul { list-style:none; display:flex; gap:32px; align-items:center; }
.nav-mobile-cta { display:none; }
.nav a {
    text-decoration:none; color:rgba(255,255,255,0.3);
    font-size:0.65rem; letter-spacing:2.5px; text-transform:uppercase;
    font-weight:500; transition:color 0.2s;
}
.nav a:hover { color:var(--rose); }

/* ── HERO ── */
.hero {
    position:relative; min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    text-align:center; overflow:hidden;
}
.hero-bg {
    position:absolute; inset:0;
    background:var(--plum) center/cover no-repeat;
    will-change:transform;
}
.hero-bg::after {
    content:''; position:absolute; inset:0;
    background:linear-gradient(to bottom, rgba(22,8,22,0.35) 0%, rgba(22,8,22,0.15) 40%, rgba(22,8,22,0.88) 100%);
}
/* Rose glow from below */
.hero::after {
    content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
    background:radial-gradient(ellipse at 50% 90%, rgba(201,132,154,0.2) 0%, transparent 60%);
}
.hero-content {
    position:relative; z-index:2;
    display:flex; flex-direction:column; align-items:center; padding:0 48px;
}
.hero-pre {
    font-size:0.6rem; letter-spacing:6px; text-transform:uppercase;
    color:var(--rose); margin-bottom:28px; font-weight:500;
    animation:fadeIn 1s 0.2s both;
}
.hero-names {
    font-family:'Fraunces',serif; font-style:italic;
    font-size:clamp(4rem,10vw,9rem); color:white; line-height:0.9;
    margin-bottom:28px;
    animation:fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}
.hero-amp {
    display:block; font-size:0.24em; font-style:normal;
    font-family:'Outfit',sans-serif; font-weight:300;
    color:var(--rose); letter-spacing:8px; text-transform:uppercase;
    margin:14px 0; opacity:0.85;
}
.hero-line {
    width:1px; height:32px; background:rgba(201,132,154,0.3);
    margin:0 auto 28px; animation:fadeIn 0.8s 0.6s both;
}
.hero-date {
    font-size:0.66rem; letter-spacing:5px; text-transform:uppercase;
    color:rgba(255,255,255,0.7); margin-bottom:36px;
    animation:fadeIn 0.8s 0.7s both; text-shadow:0 1px 10px rgba(0,0,0,0.6);
}
.countdown { display:flex; gap:0; justify-content:center; animation:fadeIn 1s 0.9s both; }
.countdown-item {
    display:flex; flex-direction:column; align-items:center;
    padding:0 24px; border-right:1px solid var(--border-dark);
}
.countdown-item:last-child { border-right:none; }
.countdown-num {
    font-family:'Fraunces',serif; font-style:italic;
    font-size:2.6rem; color:white; line-height:1;
}
.countdown-label {
    font-size:0.48rem; letter-spacing:2px; text-transform:uppercase;
    color:rgba(255,255,255,0.6); margin-top:5px; text-shadow:0 1px 8px rgba(0,0,0,0.6);
}
.countdown-done { font-family:'Fraunces',serif; font-style:italic; font-size:1.4rem; color:var(--rose); }
.hero-scroll {
    position:absolute; bottom:40px; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:8px;
    font-size:0.55rem; letter-spacing:3px; text-transform:uppercase;
    color:rgba(255,255,255,0.2); background:none; border:none; cursor:pointer;
    animation:fadeIn 1.5s 1.2s both;
}
.hero-scroll::after {
    content:''; width:1px; height:40px; background:rgba(201,132,154,0.3);
    animation:float 2.5s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section { padding:120px 0; }
.section-dark  { background:var(--wine); color:white; position:relative; overflow:hidden; }
.section-dark::before {
    content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:80%; height:80%; pointer-events:none;
    background:radial-gradient(ellipse, rgba(201,132,154,0.05) 0%, transparent 65%);
}
.section-blush { background:var(--blush); color:var(--plum); }
.section-cream  { background:var(--cream); color:var(--plum); }
.container    { max-width:1120px; margin:0 auto; padding:0 56px; }
.container-sm { max-width:720px; margin:0 auto; padding:0 56px; }

.section-label {
    font-size:0.58rem; letter-spacing:5px; text-transform:uppercase; font-weight:500;
    margin-bottom:16px; display:flex; align-items:center; gap:18px;
}
.section-label::before { content:''; display:block; width:32px; height:1px; }
.section-dark .section-label { color:var(--rose); }
.section-dark .section-label::before { background:var(--rose); opacity:0.5; }
.section-blush .section-label,
.section-cream .section-label { color:var(--muted); }
.section-blush .section-label::before,
.section-cream .section-label::before { background:var(--muted); opacity:0.4; }

.section-title {
    font-family:'Fraunces',serif; font-style:italic; font-weight:400;
    font-size:clamp(2.6rem,5.5vw,4.8rem); line-height:1.05; margin-bottom:48px;
}
.section-dark .section-title { color:white; }
.section-blush .section-title,
.section-cream .section-title { color:var(--plum); }

/* Ornament — circle */
.ornament { display:flex; align-items:center; gap:20px; margin-bottom:48px; }
.ornament::before,.ornament::after { content:''; flex:1; height:1px; }
.ornament-circle { width:8px; height:8px; border-radius:50%; flex-shrink:0; border:1.5px solid currentColor; }
.section-dark .ornament::before,.section-dark .ornament::after { background:var(--border-dark); }
.section-dark .ornament-circle { border-color:var(--rose); }
.section-blush .ornament::before,.section-blush .ornament::after,
.section-cream .ornament::before,.section-cream .ornament::after { background:var(--border-lt); }
.section-blush .ornament-circle,
.section-cream .ornament-circle { border-color:var(--muted); }

/* ── STORY ── */
.story-layout { display:grid; grid-template-columns:220px 1fr; gap:72px; align-items:start; }
.story-num {
    font-family:'Fraunces',serif; font-style:italic;
    font-size:8rem; color:rgba(22,8,22,0.06); line-height:1; margin-bottom:-16px;
}
.story-lbl { font-size:0.58rem; letter-spacing:3px; text-transform:uppercase; color:var(--muted); }
.story-text { font-size:1.05rem; line-height:2; color:#5a3850; font-weight:300; }

/* ── LOCATIONS ── */
.locations { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px,1fr)); gap:20px; }
.location-card {
    border-radius:20px; overflow:hidden;
    background:var(--wine-lt); border:1px solid var(--border-dark);
}
.location-tag { padding:22px 28px 0; font-size:0.56rem; letter-spacing:5px; text-transform:uppercase; color:var(--rose); }
.location-header { padding:12px 28px 24px; border-bottom:1px solid var(--border-dark); }
.location-header h3 {
    font-family:'Fraunces',serif; font-style:italic;
    font-size:1.9rem; font-weight:400; color:white; margin-bottom:6px;
}
.location-time { font-family:'Fraunces',serif; font-style:italic; font-size:2.2rem; color:var(--rose); line-height:1; }
.location-address { font-size:0.8rem; color:rgba(255,255,255,0.35); margin-top:8px; line-height:1.6; }
.map-container { height:220px; }
.map-container iframe { width:100%; height:100%; border:none; display:block; filter:grayscale(80%) brightness(0.6) sepia(15%); }
.location-footer { padding:14px 28px; }
.map-link {
    font-size:0.68rem; text-transform:uppercase; letter-spacing:2px; font-weight:500;
    color:rgba(255,255,255,0.3); text-decoration:none;
    display:inline-flex; align-items:center; gap:8px; transition:color 0.2s,gap 0.2s;
}
.map-link:hover { color:var(--rose); gap:14px; }

/* ── SCHEDULE ── */
.schedule { list-style:none; max-width:540px; }
.schedule-item {
    display:grid; grid-template-columns:80px 1fr; gap:24px;
    padding:26px 0; border-bottom:1px solid var(--border-lt); align-items:baseline;
}
.schedule-item:last-child { border-bottom:none; }
.schedule-time { font-family:'Fraunces',serif; font-style:italic; font-size:1.05rem; color:var(--muted); }
.schedule-event { font-size:0.95rem; color:var(--plum); }

/* ── DRESSCODE ── */
.dresscode-card {
    border-left:3px solid var(--rose);
    padding:28px 36px; max-width:520px;
}
.dresscode-text { font-size:1.05rem; color:#5a3850; line-height:1.8; font-weight:300; margin-bottom:24px; }
.color-swatch-row { display:flex; align-items:center; gap:14px; }
.color-swatch { width:44px; height:44px; border-radius:50%; border:1px solid rgba(0,0,0,0.07); }
.color-name { font-size:0.8rem; color:var(--muted); letter-spacing:1px; }

/* ── ACCOMMODATION ── */
.accommodation-text { font-size:1rem; color:#5a3850; line-height:2; font-weight:300; max-width:560px; }

/* ── GALLERY — soft masonry with rounded corners ── */
.gallery { columns:3; gap:14px; }
.gallery-item {
    break-inside:avoid; margin-bottom:14px;
    border-radius:20px; overflow:hidden; cursor:pointer; position:relative;
}
.gallery-item img { width:100%; display:block; transition:transform 0.8s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover img { transform:scale(1.06); }
.gallery-item::after {
    content:''; position:absolute; inset:0; border-radius:20px;
    background:rgba(22,8,22,0); transition:background 0.4s;
}
.gallery-item:hover::after { background:rgba(22,8,22,0.22); }
@media (max-width:640px) { .gallery { columns:2; gap:10px; } }

/* ── LIGHTBOX ── */
.lightbox { display:none; position:fixed; inset:0; z-index:1000; background:rgba(10,4,10,0.97); align-items:center; justify-content:center; cursor:default; }
.lightbox.active { display:flex; animation:fadeIn 0.15s ease; }
.lightbox img { max-width:84vw; max-height:88vh; object-fit:contain; border-radius:12px; }
.lb-close { position:absolute; top:20px; right:24px; z-index:1; background:none; border:none; color:rgba(255,255,255,0.45); font-size:1.5rem; cursor:pointer; padding:8px; line-height:1; transition:color 0.2s; }
.lb-close:hover { color:white; }
.lb-prev, .lb-next { position:absolute; top:50%; transform:translateY(-50%); z-index:1; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.13); color:white; font-size:2.2rem; cursor:pointer; width:48px; height:64px; border-radius:6px; display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.lb-prev { left:20px; } .lb-next { right:20px; }
.lb-prev:hover, .lb-next:hover { background:rgba(255,255,255,0.16); }
@media (max-width:640px) { .lb-prev { left:6px; } .lb-next { right:6px; } .lb-prev, .lb-next { width:38px; height:52px; font-size:1.8rem; } }

/* ── MESSAGES ── */
.messages-layout { display:grid; grid-template-columns:1fr 1.6fr; gap:72px; align-items:start; }
.messages-aside-num { font-family:'Fraunces',serif; font-style:italic; font-size:6rem; color:rgba(22,8,22,0.05); line-height:1; margin-bottom:-10px; }
.messages-aside-title { font-family:'Fraunces',serif; font-style:italic; font-size:2.6rem; font-weight:400; line-height:1.1; margin-bottom:14px; color:var(--plum); }
.messages-aside p { font-size:0.9rem; color:var(--muted); line-height:1.8; font-weight:300; }
.messages-list { margin-top:48px; }
.message-card { padding:22px 0; border-bottom:1px solid var(--border-lt); }
.message-card:first-child { border-top:1px solid var(--border-lt); }
.message-author { font-family:'Fraunces',serif; font-style:italic; font-size:1.1rem; margin-bottom:5px; color:var(--plum); }
.message-content { font-size:0.88rem; color:#7a6070; line-height:1.75; font-weight:300; }
.message-date { font-size:0.68rem; color:#c0a0b0; margin-top:6px; }
.message-form { display:flex; flex-direction:column; }
.form-row { margin-bottom:18px; }
.form-label { font-size:0.58rem; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); display:block; margin-bottom:8px; }
.message-form input,.message-form textarea {
    width:100%; padding:12px 0; border:none; border-bottom:1px solid var(--border-lt);
    background:transparent; font-size:0.95rem; font-family:inherit; color:var(--plum);
    transition:border-color 0.2s; border-radius:0;
}
.message-form input:focus,.message-form textarea:focus { outline:none; border-bottom-color:var(--rose); }
.message-form button {
    align-self:flex-start; margin-top:8px; padding:14px 40px;
    background:var(--plum); color:white; border:none; border-radius:40px;
    font-size:0.68rem; font-weight:500; letter-spacing:2.5px; text-transform:uppercase;
    cursor:pointer; font-family:inherit; transition:background 0.2s, transform 0.15s;
}
.message-form button:hover { background:var(--wine); transform:translateY(-2px); }
.alert-success { padding:12px 0; font-size:0.88rem; color:#2d6a4f; border-bottom:1.5px solid #52b788; margin-bottom:20px; }
.alert-error   { padding:12px 0; font-size:0.88rem; color:#c62828; border-bottom:1.5px solid #c62828; margin-bottom:20px; }

/* ── HELP ── */
.help-intro { font-size:0.95rem; color:rgba(255,255,255,0.35); line-height:1.75; font-weight:300; margin-bottom:36px; max-width:420px; text-align:center; margin-left:auto; margin-right:auto; }
.help-layout { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; }
#ayuda .gc-intro { text-align:center; }
#ayuda .gc-grid { margin-left:auto; margin-right:auto; }
#ayuda .section-label { justify-content:center; }
#ayuda .section-title { text-align:center; }
#rsvp .section-label { justify-content:center; }
#rsvp .section-title { text-align:center; }
#rsvp .ornament { display:flex; justify-content:center; }
#rsvp .rsvp-intro { text-align:center; }
.help-card {
    flex:1; min-width:200px; padding:36px 32px;
    border:1px solid var(--border-dark); border-radius:20px; background:var(--wine-lt);
}
.help-type { font-size:0.56rem; letter-spacing:4px; text-transform:uppercase; color:var(--rose); margin-bottom:14px; }
.help-value { font-family:'Fraunces',serif; font-style:italic; font-size:1.5rem; color:white; }

/* ── RSVP ── */
.rsvp-intro { color:var(--muted); font-size:0.95rem; margin-bottom:32px; font-weight:300; }
.rsvp-intro strong { color:var(--plum); font-weight:500; }
.rsvp-card {
    background:white; border:1px solid var(--border-lt);
    border-radius:24px; padding:48px; max-width:660px;
}
.rsvp-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.rsvp-field { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.rsvp-label { font-size:0.58rem; letter-spacing:2.5px; text-transform:uppercase; font-weight:500; color:var(--muted); }
.rsvp-label span { font-weight:300; text-transform:none; letter-spacing:0; font-size:0.75rem; }
.rsvp-card input[type="text"],.rsvp-card input[type="email"],.rsvp-card input[type="number"],
.rsvp-card select,.rsvp-card textarea {
    width:100%; padding:12px 0; border:none; border-bottom:1px solid var(--border-lt);
    background:transparent; font-size:0.95rem; font-family:inherit; color:var(--plum);
    transition:border-color 0.2s; -webkit-appearance:none; appearance:none; border-radius:0;
}
.rsvp-card select {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8a0a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 4px center; padding-right:28px;
}
.rsvp-card input:focus,.rsvp-card select:focus,.rsvp-card textarea:focus { outline:none; border-bottom-color:var(--rose); }
.rsvp-divider { border:none; border-top:1px solid var(--border-lt); margin:24px 0; }
.rsvp-section-label { font-size:0.58rem; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:16px; }
.rsvp-card button {
    padding:14px 44px; background:var(--plum); color:white; border:none; border-radius:40px;
    font-size:0.68rem; font-weight:500; letter-spacing:2.5px; text-transform:uppercase;
    cursor:pointer; font-family:inherit; transition:background 0.2s, transform 0.15s; margin-top:8px;
}
.rsvp-card button:hover { background:var(--wine); transform:translateY(-2px); }
.rsvp-hidden { display:none; }
.rsvp-success { padding:52px 48px; background:white; border:1px solid var(--border-lt); border-radius:24px; max-width:660px; }
.rsvp-success-icon { font-size:2.4rem; margin-bottom:20px; }
.rsvp-success h3 { font-family:'Fraunces',serif; font-style:italic; font-size:2rem; font-weight:400; margin-bottom:10px; color:var(--plum); }
.rsvp-success p { color:var(--muted); font-size:0.95rem; }

/* ── FOOTER ── */
.footer {
    background:var(--plum); padding:90px 56px 60px;
    border-top:1px solid var(--border-dark);
    display:grid; grid-template-columns:1fr auto; align-items:end; gap:40px;
}
.footer-names {
    font-family:'Fraunces',serif; font-style:italic; font-weight:400;
    font-size:clamp(3rem,8vw,7rem); color:white; line-height:0.92;
    display:flex; flex-direction:column;
}
.footer-amp {
    display:block; font-size:0.24em; font-family:'Outfit',sans-serif; font-style:normal;
    font-weight:300; color:var(--rose); letter-spacing:7px; text-transform:uppercase; margin:10px 0;
}
.footer-meta { text-align:right; }
.footer-date { font-size:0.6rem; letter-spacing:4px; text-transform:uppercase; color:rgba(255,255,255,0.45); }

/* ── RESPONSIVE ── */
@media (max-width:900px) {
    .story-layout,.messages-layout { grid-template-columns:1fr; gap:36px; }
    .footer { grid-template-columns:1fr; gap:20px; }
    .footer-meta { text-align:left; }
}
@media (max-width:768px) {
    .nav { padding:0 20px; }
    .nav ul { gap:20px; }
.nav-mobile-cta { display:none; }
    .section { padding:80px 0; }
    .container,.container-sm { padding:0 24px; }
    .hero-content { padding:0 24px; }
    .gallery { columns:2; gap:10px; }
    .gallery-item { margin-bottom:10px; }
    .footer { padding:60px 24px 40px; }
}
@media (max-width:640px) {
    .nav ul { gap:14px; }
.nav-mobile-cta { display:none; }
    .nav a { font-size:0.6rem; letter-spacing:1.5px; }
    .section { padding:64px 0; }
    .container,.container-sm { padding:0 16px; }
    .rsvp-grid { grid-template-columns:1fr; }
    .rsvp-card,.rsvp-success { padding:32px 16px; }
    .gallery { columns:1; }
    .locations { grid-template-columns:1fr; }
    .help-card { min-width:100%; }
    .countdown-item { padding:0 16px; }
    .footer { padding:52px 16px 36px; }
    .messages-aside-title { font-size:2rem; }
    .hero-scroll { display:none; }
}

@media(max-width:640px) {
    .nav .nav-links { display:none; }
    .nav-mobile-cta { display:inline-block; font-size:0.6rem; letter-spacing:2px; text-transform:uppercase; font-weight:500; color:var(--rose); text-decoration:none; border:1px solid rgba(201,132,154,0.35); padding:6px 14px; white-space:nowrap; }
}
