﻿/* ===== CLÁSICA: Crema, oro, elegancia atemporal ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Lato:wght@300;400;600&family=Cormorant+Garamond:ital,wght@1,400;1,500&display=swap');

:root {
    --gold:      #b8860b;
    --gold-lt:   #d4af5a;
    --gold-pale: #f5edda;
    --cream:     #faf7f2;
    --cream-dk:  #f0ebe0;
    --white:     #ffffff;
    --text:      #1e1e1e;
    --muted:     #888;
    --border:    #e5ddd0;
    --gc-accent: #b8860b;
    --gc-accent-text: #fff;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(.22,.61,.36,1), transform 0.85s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 40px;
    transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.nav.scrolled {
    background: rgba(250,247,242,0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
}
.nav ul { list-style: none; display: flex; justify-content: center; align-items: center; height: 64px; gap: 40px; flex-wrap: wrap; }
.nav-mobile-cta { display:none; }
.nav a {
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600;
    transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav.scrolled a { color: var(--text); }
.nav a:hover { color: white; }
.nav.scrolled a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    background: #1a1208 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%);
}
.hero-frame {
    position: absolute; inset: 28px;
    border: 1px solid rgba(212,175,90,0.3);
    pointer-events: none; z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    color: white; padding: 100px 32px 80px;
    display: flex; flex-direction: column; align-items: center;
}
.hero-pre {
    font-size: 0.7rem; letter-spacing: 5px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 28px;
    display: flex; align-items: center; gap: 16px;
}
.hero-pre::before, .hero-pre::after {
    content: ''; display: block; width: 40px; height: 1px; background: rgba(255,255,255,0.25);
}
.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic; color: var(--gold-lt);
    letter-spacing: 3px; margin-bottom: 20px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 400; line-height: 1.05;
    margin-bottom: 10px;
}
.hero-names .amp {
    font-style: italic; color: var(--gold-lt);
    font-size: 0.75em; margin: 0 12px;
}
.hero-divider {
    width: 1px; height: 48px; background: rgba(212,175,90,0.4);
    margin: 28px auto;
}
.hero-scroll {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.35); font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer; border: none; background: none;
}
.hero-scroll svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.35); fill: none; stroke-width: 1.5; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* COUNTDOWN */
.countdown {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.countdown-box {
    display: flex; flex-direction: column; align-items: center;
    min-width: 72px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212,175,90,0.25);
    border-radius: 4px; padding: 14px 10px;
    backdrop-filter: blur(4px);
}
.countdown-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 400; line-height: 1;
    color: white;
}
.countdown-label {
    font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.65); margin-top: 6px; text-shadow:0 1px 8px rgba(0,0,0,0.6);
}
.countdown-done {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-style: italic; color: var(--gold-lt);
    letter-spacing: 2px;
}

/* ===== DIVIDER ===== */
.ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin: 20px 0 52px;
}
.ornament::before, .ornament::after {
    content: ''; display: block; height: 1px;
    width: 80px; background: var(--border);
}
.ornament-diamond {
    width: 7px; height: 7px;
    background: var(--gold); transform: rotate(45deg);
    flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section-alt { background: var(--white); }
.section-dark {
    background: #1a1208; color: white;
}
.container    { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 680px; margin: 0 auto; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400; text-align: center; color: var(--text);
    line-height: 1.2;
}
.section-subtitle {
    text-align: center; color: var(--muted);
    font-size: 0.9rem; letter-spacing: 0.5px;
    margin-top: -8px; margin-bottom: 4px;
}

/* ===== STORY ===== */
.story-text {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.9; color: #555;
    text-align: center; max-width: 620px; margin: 0 auto;
    font-weight: 300;
}
.story-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem; color: var(--gold-pale);
    line-height: 0.5; margin-bottom: 16px; text-align: center;
}

/* ===== LOCATIONS ===== */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.location-card {
    background: var(--cream); border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.location-card-header { padding: 28px 28px 0; text-align: center; }
.location-type {
    font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.location-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem;
    font-weight: 400; margin-bottom: 6px;
}
.location-time {
    font-size: 1.4rem; font-weight: 300;
    color: var(--text); margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}
.location-time-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.location-address {
    color: var(--muted); font-size: 0.85rem; margin-bottom: 20px;
    line-height: 1.5;
}
.map-container { height: 200px; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: none; display: block; }
.location-card-footer { padding: 14px 28px; text-align: center; border-top: 1px solid var(--border); background: var(--white); }
.map-link {
    font-size: 0.8rem; color: var(--gold); text-decoration: none;
    font-weight: 600; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s;
}
.map-link:hover { gap: 10px; }

/* ===== SCHEDULE ===== */
.schedule { list-style: none; max-width: 500px; margin: 0 auto; position: relative; }
.schedule::before {
    content: ''; position: absolute; left: 72px; top: 0; bottom: 0;
    width: 1px; background: var(--border);
}
.schedule-item {
    display: flex; gap: 0; align-items: flex-start;
    padding: 0 0 32px; position: relative;
}
.schedule-item:last-child { padding-bottom: 0; }
.schedule-time {
    font-family: 'Playfair Display', serif;
    font-weight: 400; color: var(--gold);
    font-size: 1rem; min-width: 72px; padding-right: 24px;
    text-align: right; padding-top: 2px; flex-shrink: 0;
}
.schedule-dot {
    width: 10px; height: 10px;
    background: var(--white); border: 2px solid var(--gold);
    border-radius: 50%; flex-shrink: 0;
    margin: 4px 20px 0 0; position: relative; z-index: 1;
}
.schedule-body {}
.schedule-event {
    font-size: 1rem; color: var(--text); font-weight: 600;
    display: block; margin-bottom: 2px;
}
.schedule-detail { font-size: 0.82rem; color: var(--muted); }

/* ===== DRESSCODE ===== */
.dresscode-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px; text-align: center; max-width: 440px; margin: 0 auto;
}
.dresscode-text { font-size: 1.05rem; color: #555; margin-bottom: 28px; line-height: 1.7; font-weight: 300; }
.dresscode-color-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; }
.color-swatch {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border), 0 4px 12px rgba(0,0,0,0.1);
}
.dresscode-color-name { font-size: 0.9rem; color: var(--muted); letter-spacing: 1px; }

/* ===== ACCOMMODATION ===== */
.accommodation-box {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    padding: 36px 40px; text-align: center;
    border-top: 3px solid var(--gold);
}
.accommodation-text { font-size: 0.95rem; color: #555; line-height: 1.9; font-weight: 300; }

/* ===== GALLERY ===== */
.gallery { columns: 3; gap: 10px; }
@media (max-width: 640px) { .gallery { columns: 2; } }
.gallery-item {
    break-inside: avoid; margin-bottom: 10px;
    border-radius: 10px; overflow: hidden;
    cursor: pointer; position: relative;
}
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.12); }
.gallery-item img { width: 100%; display: block; transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover img { transform: scale(1.04); }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(10,8,4,0.95);
    align-items: center; justify-content: center;
    cursor: default; padding: 24px;
}
.lightbox.active { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 84vw; max-height: 88vh;
    border-radius: 6px; object-fit: contain;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.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-section-inner { max-width: 640px; margin: 0 auto; }
.message-form {
    display: flex; flex-direction: column; gap: 14px; margin-bottom: 52px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
}
.form-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.message-form input, .message-form textarea {
    padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--text);
    background: var(--cream); transition: border-color 0.2s, background 0.2s;
}
.message-form input:focus, .message-form textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
}
.message-form button {
    align-self: flex-end; padding: 13px 32px;
    background: var(--text); color: white; border: none; border-radius: 10px;
    font-size: 0.88rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.message-form button:hover { background: #333; transform: translateY(-1px); }
.messages-list { display: flex; flex-direction: column; gap: 20px; }
.message-card {
    background: var(--white); border-radius: 12px; padding: 24px 28px;
    border: 1px solid var(--border); position: relative;
}
.message-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif; font-size: 4rem;
    color: var(--gold-pale); position: absolute; top: 8px; left: 16px;
    line-height: 1;
}
.message-card-body { padding-left: 20px; }
.message-author { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.message-content { font-size: 0.92rem; color: #555; line-height: 1.7; margin-bottom: 10px; font-weight: 300; }
.message-date { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.5px; }
.alert-success { background: #edf9f3; color: #1a6b3c; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; border: 1px solid #b7e4c7; }
.alert-error   { background: #fff0f0; color: #c0392b; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; border: 1px solid #f5c6cb; }

/* ===== HELP ===== */
.help-intro { text-align: center; color: var(--muted); margin-bottom: 36px; font-size: 1rem; font-weight: 300; line-height: 1.7; }
.help-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.help-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px 40px; text-align: center; min-width: 220px;
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 3px solid var(--gold);
}
.help-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.07); }
.help-icon { font-size: 1.3rem; margin-bottom: 12px; }
.help-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.help-value { font-size: 1.05rem; color: var(--text); font-weight: 400; letter-spacing: 1.5px; }

/* ===== RSVP ===== */
.rsvp-intro { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; font-weight: 300; }
.rsvp-intro strong { color: var(--gold); font-weight: 600; }
.rsvp-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; max-width: 640px; margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rsvp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.rsvp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.rsvp-field:last-child { margin-bottom: 0; }
.rsvp-label {
    font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase;
    font-weight: 700; color: var(--gold);
}
.rsvp-label span { font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--muted); 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: 13px 16px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--text);
    background: var(--cream); transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none; appearance: none;
}
.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='%23888' 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 14px center;
    padding-right: 40px; cursor: pointer;
}
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
}
.rsvp-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.rsvp-section-label { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.rsvp-card button {
    width: 100%; padding: 16px;
    background: var(--text); color: white; border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; margin-top: 8px;
}
.rsvp-card button:hover { background: #333; transform: translateY(-1px); }
.rsvp-hidden { display: none; }
.rsvp-success {
    text-align: center; padding: 48px 24px;
    background: var(--white); border: 1px solid var(--border); border-radius: 20px;
    max-width: 640px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.rsvp-success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.rsvp-success h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; margin-bottom: 10px; }
.rsvp-success p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 560px) {
    .rsvp-grid, .rsvp-grid-3 { grid-template-columns: 1fr; margin-bottom: 20px; }
    .rsvp-card { padding: 28px 20px; }
}

/* ===== FOOTER ===== */
.footer {
    background: #100d07; padding: 56px 24px;
    text-align: center; position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.footer-content { position: relative; z-index: 1; }
.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: rgba(255,255,255,0.9); font-weight: 400;
    margin-bottom: 12px;
}
.footer-names .amp { font-style: italic; color: var(--gold-lt); }
.footer-date { font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer-line { width: 1px; height: 32px; background: rgba(212,175,90,0.2); margin: 20px auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .nav ul { gap: 20px; height: auto; padding: 12px 0; }
.nav-mobile-cta { display:none; }
    .section { padding: 72px 20px; }
    .container { padding: 0 20px; }
    .hero-frame { inset: 14px; }
    .schedule { padding: 0 4px; }
    .schedule::before { left: 60px; }
    .schedule-time { min-width: 60px; }
    .message-form { padding: 24px; }
    .locations { gap: 16px; }
    .location-card { border-radius: 12px; }
}
@media (max-width: 640px) {
    .nav ul { gap: 16px; }
.nav-mobile-cta { display:none; }
    .nav a { font-size: 0.65rem; letter-spacing: 1.5px; }
    .section { padding: 64px 16px; }
    .container { padding: 0 16px; }
    .hero { padding: 0 20px; }
    .hero-names { font-size: 2.6rem; }
    .countdown { gap: 6px; }
    .countdown-box { min-width: 56px; padding: 10px 6px; }
    .countdown-num { font-size: 1.7rem; }
    .message-form { padding: 20px 16px; }
    .gallery { columns: 2; gap: 8px; }
    .rsvp-card { padding: 28px 16px; }
}
@media (max-width: 400px) {
    .nav ul { gap: 10px; }
.nav-mobile-cta { display:none; }
    .hero-names { font-size: 2.2rem; }
    .countdown-box { min-width: 48px; padding: 8px 4px; }
    .countdown-num { font-size: 1.5rem; }
    .countdown-label { font-size: 0.55rem; }
}

@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:600; color:var(--gold); text-decoration:none; border:1px solid rgba(184,134,11,0.4); padding:6px 14px; white-space:nowrap; }
}
