﻿/* ===== RIVIERA: Mediterranean luxury · Cobalt & Terracotta · Cinzel ===== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Raleway:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
    --cobalt:      #1e3a5f;
    --navy:        #0f2540;
    --azure:       #2a4f7a;
    --terra:       #c9705a;
    --terra-lt:    #e08a74;
    --sand:        #e8d5bf;
    --white:       #fdfaf6;
    --mist:        #f4f0ea;
    --muted:       #8a9ab0;
    --border-dark: rgba(255,255,255,0.1);
    --border-lt:   rgba(30,58,95,0.1);
    --gc-accent: #c9705a;
    --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:'Raleway', sans-serif;
    color:var(--cobalt); background:var(--navy);
    -webkit-font-smoothing:antialiased;
}

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

/* ── SCROLL REVEALS ── */
.reveal { opacity:0; transform:translateY(20px); 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 56px; height:64px;
    display:flex; align-items:center; justify-content:space-between;
    transition:background 0.5s, border-color 0.5s;
}
.nav.scrolled {
    background:rgba(15,37,64,0.96);
    border-bottom:1px solid var(--border-dark);
    backdrop-filter:blur(12px);
}
.nav-logo {
    font-family:'Cinzel',serif; font-size:0.82rem; letter-spacing:3px;
    color:rgba(255,255,255,0.55); text-transform:uppercase;
}
.nav ul { list-style:none; display:flex; gap:36px; }
.nav-mobile-cta { display:none; }
.nav a {
    text-decoration:none; color:rgba(255,255,255,0.32);
    font-size:0.62rem; letter-spacing:2.5px; text-transform:uppercase;
    font-weight:500; transition:color 0.2s;
}
.nav a:hover { color:var(--terra-lt); }

/* ── 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(--navy) center/cover no-repeat;
    will-change:transform;
}
.hero-bg::after {
    content:''; position:absolute; inset:0;
    background:linear-gradient(to bottom, rgba(15,37,64,0.55) 0%, rgba(15,37,64,0.2) 40%, rgba(15,37,64,0.92) 100%);
}
.hero-content {
    position:relative; z-index:2;
    display:flex; flex-direction:column; align-items:center; padding:0 48px;
}
/* Architectural horizontal rules */
.hero-rule {
    width:100px; height:1px; background:rgba(255,255,255,0.25);
    margin:0 auto; transform-origin:center;
    animation:slideInX 1s cubic-bezier(.22,.61,.36,1) 0.3s both;
}
.hero-eyebrow {
    font-size:0.58rem; letter-spacing:7px; text-transform:uppercase;
    color:var(--terra-lt); margin:20px 0 0; font-weight:500;
    animation:fadeIn 0.8s 0.4s both;
    text-shadow:0 1px 10px rgba(0,0,0,0.6);
}
.hero-names {
    font-family:'Cinzel',serif;
    font-size:clamp(2.4rem,7vw,7rem);
    color:white; line-height:1.0; letter-spacing:0.08em; font-weight:400;
    margin:16px 0;
    animation:fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.5s both;
    text-shadow:0 2px 24px rgba(0,0,0,0.4);
}
.hero-amp { color:var(--terra); margin:0 0.2em; display:inline-block; }
.hero-date {
    font-size:0.62rem; letter-spacing:5px; text-transform:uppercase;
    color:rgba(255,255,255,0.7); margin:0 0 28px;
    animation:fadeIn 0.8s 0.7s both;
    text-shadow:0 1px 10px rgba(0,0,0,0.6);
}
.hero-rule-bottom {
    animation-delay:0.6s;
}
.countdown { display:flex; gap:0; justify-content:center; margin-top:28px; animation:fadeIn 1s 0.9s both; }
.countdown-item {
    display:flex; flex-direction:column; align-items:center;
    padding:0 28px; border-right:1px solid var(--border-dark);
}
.countdown-item:last-child { border-right:none; }
.countdown-num { font-family:'Cinzel',serif; font-size:2.2rem; color:white; line-height:1; letter-spacing:0.04em; text-shadow:0 1px 10px rgba(0,0,0,0.5); }
.countdown-label { font-size:0.46rem; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,0.6); margin-top:6px; text-shadow:0 1px 8px rgba(0,0,0,0.6); }
.countdown-done { font-family:'Cinzel',serif; font-size:1.2rem; color:var(--terra); letter-spacing:3px; }
.hero-scroll {
    position:absolute; bottom:40px; right:56px;
    writing-mode:vertical-rl; text-orientation:mixed;
    font-size:0.55rem; letter-spacing:3px; text-transform:uppercase;
    color:rgba(255,255,255,0.2); background:none; border:none; cursor:pointer;
    display:flex; flex-direction:column; align-items:center; gap:12px;
    animation:fadeIn 1.5s 1.1s both;
}
.hero-scroll::after { content:''; width:1px; height:40px; background:rgba(255,255,255,0.15); animation:float 2.5s ease-in-out infinite; }

/* ── SECTIONS ── */
.section { padding:120px 0; }
.section-cobalt { background:var(--cobalt); color:white; }
.section-white  { background:var(--white);  color:var(--cobalt); }
.section-mist   { background:var(--mist);   color:var(--cobalt); }
.container    { max-width:1140px; margin:0 auto; padding:0 64px; }
.container-sm { max-width:740px;  margin:0 auto; padding:0 64px; }

.section-label {
    font-size:0.56rem; letter-spacing:5px; text-transform:uppercase; font-weight:500;
    margin-bottom:20px; display:flex; align-items:center; gap:18px;
}
.section-label::before { content:''; display:block; width:32px; height:1px; }
.section-cobalt .section-label { color:var(--terra-lt); }
.section-cobalt .section-label::before { background:var(--terra); opacity:0.6; }
.section-white  .section-label,
.section-mist   .section-label { color:var(--terra); }
.section-white  .section-label::before,
.section-mist   .section-label::before { background:var(--terra); }

/* Cinzel gives natural caps feel */
.section-title {
    font-family:'Cinzel',serif;
    font-size:clamp(2rem,5vw,4rem);
    line-height:1.1; font-weight:400; letter-spacing:0.04em; margin-bottom:48px;
}
.section-cobalt .section-title { color:white; }
.section-white  .section-title,
.section-mist   .section-title { color:var(--cobalt); }

/* Ornament — terracotta rule */
.ornament { margin-bottom:48px; }
.ornament-rule { width:56px; height:2px; background:var(--terra); }
.section-cobalt .ornament-rule { opacity:0.7; }

/* ── STORY ── */
.story-layout { display:grid; grid-template-columns:200px 1fr; gap:72px; align-items:start; }
.story-num {
    font-family:'Cinzel',serif;
    font-size:6rem; color:rgba(30,58,95,0.06); line-height:1; margin-bottom:-12px; letter-spacing:0.05em;
}
.story-lbl { font-size:0.56rem; letter-spacing:3px; text-transform:uppercase; color:var(--muted); }
.story-text { font-size:1.05rem; line-height:2; color:#4a5a70; font-weight:300; }

/* ── LOCATIONS ── */
.locations { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:2px; background:var(--border-lt); }
.location-card { background:var(--white); overflow:hidden; }
.location-tag { padding:20px 28px 0; font-size:0.56rem; letter-spacing:5px; text-transform:uppercase; color:var(--terra); font-weight:500; }
.location-header { padding:12px 28px 20px; border-bottom:2px solid var(--terra); }
.location-header h3 {
    font-family:'Cinzel',serif; font-size:1.5rem; font-weight:400;
    color:var(--cobalt); margin-bottom:6px; letter-spacing:0.04em;
}
.location-time { font-family:'Cinzel',serif; font-size:2rem; color:var(--terra); line-height:1; letter-spacing:0.04em; }
.location-address { font-size:0.8rem; color:var(--muted); margin-top:8px; line-height:1.6; }
.map-container { height:220px; }
.map-container iframe { width:100%; height:100%; border:none; display:block; filter:sepia(20%) saturate(0.8); }
.location-footer { padding:14px 28px; }
.map-link {
    font-size:0.65rem; text-transform:uppercase; letter-spacing:2px; font-weight:500;
    color:var(--cobalt); text-decoration:none; opacity:0.5;
    display:inline-flex; align-items:center; gap:8px; transition:opacity 0.2s,color 0.2s,gap 0.2s;
}
.map-link:hover { opacity:1; color:var(--terra); gap:14px; }

/* ── SCHEDULE ── */
.schedule { list-style:none; max-width:580px; }
.schedule-item {
    display:grid; grid-template-columns:90px 1fr; gap:24px;
    padding:24px 0; border-bottom:1px solid var(--border-lt); align-items:baseline;
}
.schedule-item:last-child { border-bottom:none; }
.schedule-time { font-family:'Cinzel',serif; font-size:0.92rem; color:var(--terra); letter-spacing:0.04em; }
.schedule-event { font-size:0.95rem; color:var(--cobalt); font-weight:400; }

/* ── DRESSCODE ── */
.dresscode-card {
    border-left:3px solid var(--terra);
    padding:28px 36px; max-width:520px;
}
.dresscode-text { font-size:1.05rem; color:rgba(255,255,255,0.75); line-height:1.85; font-weight:300; margin-bottom:24px; }
.color-swatch-row { display:flex; align-items:center; gap:14px; }
.color-swatch { width:40px; height:40px; 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:#4a5a70; line-height:2; font-weight:300; max-width:560px; }

/* ── GALLERY — clean architectural grid ── */
.gallery-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; }
.gallery-item { overflow:hidden; cursor:pointer; position:relative; aspect-ratio:4/3; background:var(--azure); width:calc(33.333% - 2px); flex-shrink:0; }
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.7s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover img { transform:scale(1.06); }
.gallery-item::after { content:''; position:absolute; inset:0; background:rgba(15,37,64,0); transition:background 0.4s; }
.gallery-item:hover::after { background:rgba(15,37,64,0.32); }

/* ── LIGHTBOX ── */
.lightbox { display:none; position:fixed; inset:0; z-index:1000; background:rgba(8,20,36,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; }
.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-title { font-family:'Cinzel',serif; font-size:1.8rem; font-weight:400; line-height:1.2; margin-bottom:14px; color:var(--cobalt); letter-spacing:0.04em; }
.messages-aside p { font-size:0.9rem; color:var(--muted); line-height:1.8; font-weight:300; }
.messages-list { margin-top:40px; }
.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:'Cinzel',serif; font-size:0.9rem; letter-spacing:0.04em; margin-bottom:6px; color:var(--cobalt); }
.message-content { font-size:0.88rem; color:#6a7a8a; line-height:1.75; font-weight:300; }
.message-date { font-size:0.68rem; color:#b0c0d0; margin-top:6px; }
.message-form { display:flex; flex-direction:column; }
.form-row { margin-bottom:18px; }
.form-label { font-size:0.56rem; letter-spacing:3px; 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(--cobalt);
    transition:border-color 0.2s; border-radius:0;
}
.message-form input:focus,.message-form textarea:focus { outline:none; border-bottom-color:var(--terra); }
.message-form button {
    align-self:flex-start; margin-top:8px; padding:14px 40px;
    background:var(--cobalt); color:white; border:none; border-radius:0;
    font-size:0.65rem; font-weight:500; letter-spacing:3px; text-transform:uppercase;
    cursor:pointer; font-family:inherit; transition:background 0.2s;
}
.message-form button:hover { background:var(--navy); }
.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.38); line-height:1.75; font-weight:300; margin-bottom:36px; max-width:440px; text-align:center; margin-left:auto; margin-right:auto; }
.help-layout { display:flex; flex-wrap:wrap; border:1px solid var(--border-dark); 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; }
#historia .section-title { font-size:clamp(1.4rem,3vw,2.4rem); }
#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; max-width:600px; margin-left:auto; margin-right:auto; }
#rsvp .rsvp-card { max-width:680px; margin-left:auto; margin-right:auto; }
.help-card { flex:1; min-width:200px; padding:36px; border-right:1px solid var(--border-dark); }
.help-card:last-child { border-right:none; }
.help-type { font-size:0.54rem; letter-spacing:4px; text-transform:uppercase; color:var(--terra-lt); margin-bottom:14px; }
.help-value { font-family:'Cinzel',serif; font-size:1.4rem; color:white; letter-spacing:0.03em; }

/* ── RSVP ── */
.rsvp-intro { color:var(--muted); font-size:0.95rem; margin-bottom:32px; font-weight:300; }
.rsvp-intro strong { color:var(--cobalt); font-weight:500; }
.rsvp-card {
    background:white; border:none; border-top:3px solid var(--terra);
    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.56rem; letter-spacing:3px; 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(--cobalt);
    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='%238a9ab0' 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(--terra); }
.rsvp-divider { border:none; border-top:1px solid var(--border-lt); margin:24px 0; }
.rsvp-section-label { font-size:0.56rem; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:16px; }
.rsvp-card button {
    padding:14px 44px; background:var(--cobalt); color:white; border:none; border-radius:0;
    font-size:0.65rem; font-weight:500; letter-spacing:3px; text-transform:uppercase;
    cursor:pointer; font-family:inherit; transition:background 0.2s; margin-top:8px;
}
.rsvp-card button:hover { background:var(--navy); }
.rsvp-hidden { display:none; }
.rsvp-success { padding:48px; background:white; border:none; border-top:3px solid var(--terra); max-width:660px; }
.rsvp-success-icon { font-size:2.4rem; margin-bottom:20px; }
.rsvp-success h3 { font-family:'Cinzel',serif; font-size:1.8rem; font-weight:400; margin-bottom:10px; color:var(--cobalt); }
.rsvp-success p { color:var(--muted); font-size:0.95rem; }

/* ── FOOTER ── */
.footer {
    background:var(--navy); padding:88px 64px 60px;
    border-top:1px solid var(--border-dark);
    display:grid; grid-template-columns:1fr auto; align-items:end; gap:40px;
}
.footer-names {
    font-family:'Cinzel',serif; font-weight:400;
    font-size:clamp(2.2rem,6.5vw,6rem); color:white; line-height:0.95; letter-spacing:0.06em;
    display:flex; flex-direction:column;
}
.footer-amp { display:block; font-size:0.32em; color:var(--terra); margin:10px 0; letter-spacing:0.06em; }
.footer-meta { text-align:right; }
.footer-date { font-size:0.58rem; letter-spacing:5px; 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; }
    .section { padding:80px 0; }
    .container,.container-sm { padding:0 24px; }
    .hero-content { padding:0 24px; }
    .hero-names { font-size:clamp(2rem,10vw,3.5rem); letter-spacing:0.04em; }
    .gallery-grid .gallery-item { width:calc(50% - 1.5px); }
    .footer { padding:60px 24px 40px; }
    .hero-scroll { display:none; }
}
@media (max-width:640px) {
    .nav .nav-links { display:none; }
    .nav-mobile-cta { display:block; font-size:0.52rem; letter-spacing:2px; text-transform:uppercase; font-weight:500; color:var(--terra-lt); text-decoration:none; border:1px solid rgba(201,112,90,0.35); padding:6px 14px; white-space:nowrap; }
    .section { padding:64px 0; }
    .container,.container-sm { padding:0 16px; }
    .rsvp-grid { grid-template-columns:1fr; }
    .rsvp-card,.rsvp-success { padding:32px 16px; }
    .gallery-grid .gallery-item { width:100%; }
    .locations { grid-template-columns:1fr; }
    .help-card { min-width:100%; border-right:none; border-bottom:1px solid var(--border-dark); }
    .countdown-item { padding:0 18px; }
    .footer { padding:52px 16px 36px; }
    .messages-aside-title { font-size:1.5rem; }
}
