﻿/* ===== MINIMAL: Editorial, contraste extremo, pantalla partida ===== */

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

:root {
    --black:      #0a0a0a;
    --black-soft: #111111;
    --white:      #ffffff;
    --warm:       #fafaf8;
    --muted:      #888;
    --border:     #e5e5e5;
    --text:       #0a0a0a;
    --gc-accent: #0a0a0a;
    --gc-accent-text: #fff;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.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-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-left { opacity: 0; transform: translateX(-24px); 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); }

/* ===== 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.4s, border-color 0.4s;
}
.nav.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem; letter-spacing: 1px; color: white;
    transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--black); }
.nav ul { list-style: none; display: flex; gap: 36px; align-items: center; }
.nav-mobile-cta { display:none; }
.nav a {
    text-decoration: none; color: rgba(255,255,255,0.7);
    font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase;
    font-weight: 500; transition: color 0.2s;
}
.nav.scrolled a { color: var(--muted); }
.nav a:hover { color: white; }
.nav.scrolled a:hover { color: var(--black); }

/* ===== HERO — SPLIT SCREEN ===== */
.hero {
    display: grid;
    grid-template-columns: 55fr 45fr;
    min-height: 100vh;
}
.hero-photo {
    position: relative;
    background: var(--black) center/cover no-repeat;
    overflow: hidden;
}
.hero-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
.hero-panel {
    background: var(--black);
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 100px 56px 80px;
    position: relative;
}
.hero-panel::before {
    content: ''; position: absolute; top: 64px; left: 56px; right: 56px;
    height: 1px; background: rgba(255,255,255,0.1);
}
.hero-panel::after {
    content: ''; position: absolute; bottom: 60px; left: 56px; right: 56px;
    height: 1px; background: rgba(255,255,255,0.1);
}
.hero-pre {
    font-size: 0.65rem; letter-spacing: 5px; text-transform: uppercase;
    color: rgba(255,255,255,0.35); margin-bottom: 32px; font-weight: 400;
}
.hero-names {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-style: italic; font-weight: 400;
    color: white; line-height: 1.05; margin-bottom: 8px;
}
.hero-names-last { display: block; }
.hero-amp {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: normal;
    color: rgba(255,255,255,0.25);
    letter-spacing: 6px; text-transform: uppercase;
    font-family: 'DM Sans', sans-serif; font-weight: 300;
    margin: 16px 0;
}
.hero-date {
    font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
    color: rgba(255,255,255,0.7); margin-top: 28px; margin-bottom: 40px;
    font-weight: 400; text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero-line { width: 40px; height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 32px; }
.hero-scroll {
    position: absolute; bottom: 36px; right: 48px;
    writing-mode: vertical-rl; text-orientation: mixed;
    font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.45); font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    animation: float 2.5s ease-in-out infinite; cursor: pointer;
    background: none; border: none;
}
.hero-scroll::after {
    content: ''; display: block; width: 1px; height: 32px;
    background: rgba(255,255,255,0.15);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* COUNTDOWN */
.countdown { display: flex; gap: 0; }
.countdown-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 20px 0 0; margin-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.countdown-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.countdown-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem; font-style: italic;
    color: white; line-height: 1; font-weight: 400;
}
.countdown-label { font-size: 0.55rem; letter-spacing: 2.5px; 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: 'DM Serif Display', serif; font-size: 1.4rem; font-style: italic; color: rgba(255,255,255,0.6); }

/* ===== SECTIONS ===== */
.section { padding: 112px 0; position: relative; }
.section-white { background: var(--white); }
.section-warm  { background: var(--warm); }
.section-black { background: var(--black); color: white; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.container-sm { max-width: 700px; margin: 0 auto; padding: 0 48px; }

.section-eyebrow {
    font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase;
    font-weight: 500; color: var(--muted); margin-bottom: 14px;
    display: flex; align-items: center; gap: 16px;
}
.section-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--border); }
.section-black .section-eyebrow { color: rgba(255,255,255,0.3); }
.section-black .section-eyebrow::before { background: rgba(255,255,255,0.12); }

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-style: italic; font-weight: 400;
    line-height: 1.1; color: var(--text);
    margin-bottom: 0;
}
.section-black .section-title { color: white; }
.section-rule { width: 48px; height: 1px; background: var(--border); margin: 28px 0 48px; }
.section-black .section-rule { background: rgba(255,255,255,0.15); }

/* ===== STORY ===== */
.story-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.story-aside {}
.story-aside-num {
    font-family: 'DM Serif Display', serif;
    font-size: 8rem; font-style: italic;
    color: rgba(0,0,0,0.04); line-height: 1;
    margin-bottom: -20px;
}
.story-aside-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.story-text { font-size: 1.05rem; line-height: 2; color: #555; font-weight: 300; }
.story-text p + p { margin-top: 1.2em; }

/* ===== LOCATIONS ===== */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--border); }
.location-card { background: var(--white); padding: 0; overflow: hidden; }
.location-tag {
    padding: 24px 32px 0;
    font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--muted); font-weight: 500;
}
.location-header { padding: 14px 32px 24px; border-bottom: 1px solid var(--border); }
.location-card h3 {
    font-family: 'DM Serif Display', serif; font-style: italic;
    font-size: 1.8rem; font-weight: 400; margin-bottom: 6px; color: var(--text);
}
.location-time { font-size: 2rem; font-weight: 300; color: var(--text); line-height: 1; }
.location-address { font-size: 0.82rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.map-container { height: 220px; }
.map-container iframe { width: 100%; height: 100%; border: none; display: block; }
.location-footer { padding: 16px 32px; }
.map-link {
    font-size: 0.75rem; font-weight: 600; color: var(--text);
    text-decoration: none; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: gap 0.2s;
}
.map-link:hover { gap: 14px; }

/* ===== SCHEDULE (dark) ===== */
.schedule { list-style: none; max-width: 540px; margin-left: auto; margin-right: auto; }
.schedule-item {
    display: grid; grid-template-columns: 80px 1fr;
    gap: 0; padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    align-items: start;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
    font-family: 'DM Serif Display', serif; font-style: italic;
    font-size: 1.05rem; color: rgba(255,255,255,0.35); padding-top: 1px;
}
.schedule-event { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.schedule-detail { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin-top: 3px; }

/* ===== DRESSCODE ===== */
.dresscode-block { max-width: 480px; }
.dresscode-text { font-size: 1.1rem; color: #555; line-height: 1.8; font-weight: 300; margin-bottom: 28px; }
.dresscode-color-wrap { display: flex; align-items: center; gap: 16px; }
.color-swatch { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); }
.dresscode-color-name { font-size: 0.85rem; color: var(--muted); letter-spacing: 1px; }

/* ===== ACCOMMODATION ===== */
.accommodation-text { font-size: 1rem; color: #555; line-height: 1.9; font-weight: 300; max-width: 560px; }

/* ===== GALLERY — HORIZONTAL SCROLL ===== */
.gallery-strip {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 0 48px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    cursor: grab;
}
.gallery-strip:active { cursor: grabbing; }
.gallery-strip::-webkit-scrollbar { height: 3px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-item {
    flex-shrink: 0; scroll-snap-align: start;
    width: 300px; height: 400px;
    border-radius: 4px; overflow: hidden; cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover img { transform: scale(1.04); }
.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.08); }
.gallery-counter { padding: 20px 48px 0; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.97); align-items: center; justify-content: center; cursor: default; padding: 24px; }
.lightbox.active { display: flex; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.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.4fr; gap: 80px; align-items: start; }
.messages-aside-title {
    font-family: 'DM Serif Display', serif; font-style: italic;
    font-size: 3rem; font-weight: 400; line-height: 1.1; margin-bottom: 16px;
}
.messages-aside p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; font-weight: 300; }
.message-form { display: flex; flex-direction: column; gap: 0; }
.form-row { margin-bottom: 16px; }
.form-label { font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; color: var(--muted); display: block; margin-bottom: 8px; }
.message-form input, .message-form textarea {
    width: 100%; padding: 14px 0;
    border: none; border-bottom: 1.5px solid var(--border);
    border-radius: 0; font-size: 0.95rem; font-family: inherit;
    color: var(--text); background: transparent;
    transition: border-color 0.2s;
}
.message-form input:focus, .message-form textarea:focus { outline: none; border-bottom-color: var(--black); }
.message-form button {
    align-self: flex-start; padding: 14px 36px; margin-top: 8px;
    background: var(--black); color: white; border: none; border-radius: 0;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.message-form button:hover { background: #333; }
.messages-list { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.message-card { padding: 24px 0; border-bottom: 1px solid var(--border); }
.message-card:first-child { border-top: 1px solid var(--border); }
.message-author { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.1rem; margin-bottom: 6px; }
.message-content { font-size: 0.88rem; color: #555; line-height: 1.7; font-weight: 300; }
.message-date { font-size: 0.7rem; color: var(--border); margin-top: 8px; letter-spacing: 0.5px; }
.alert-success { background: #f0faf5; color: #1a6b3c; padding: 14px 0; font-size: 0.9rem; border-bottom: 2px solid #27ae60; margin-bottom: 20px; }
.alert-error   { color: #c0392b; padding: 14px 0; font-size: 0.9rem; border-bottom: 2px solid #c0392b; margin-bottom: 20px; }

/* ===== HELP ===== */
.help-layout { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--border); }
.help-card {
    flex: 1; min-width: 220px; padding: 40px 36px;
    border-right: 1px solid var(--border);
}
.help-card:last-child { border-right: none; }
.help-type { font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.help-value { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.6rem; color: var(--text); }
.help-intro { font-size: 0.9rem; color: var(--muted); line-height: 1.7; font-weight: 300; margin-bottom: 32px; text-align: center; }
#ayuda .gc-intro { text-align: center; }
#ayuda .gc-grid { margin-left: auto; margin-right: auto; }
#ayuda .section-eyebrow { justify-content: center; }
#ayuda .section-title { text-align: center; }
#ayuda .section-rule { margin-left: auto; margin-right: auto; }
#programa .section-eyebrow { justify-content: center; }
#programa .section-title { text-align: center; }
#programa .section-rule { margin-left: auto; margin-right: auto; }

/* ===== RSVP ===== */
#rsvp .section-eyebrow { justify-content: center; }
#rsvp .section-title { text-align: center; }
#rsvp .section-rule { margin-left: auto; margin-right: auto; }
.rsvp-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; font-weight: 300; text-align: center; }
.rsvp-intro strong { color: var(--black); font-weight: 500; }
.rsvp-card {
    background: var(--warm); border: 1px solid var(--border);
    border-radius: 0; padding: 48px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.rsvp-grid { display: grid; grid-template-columns: 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.62rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; 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: 13px 0;
    border: none; border-bottom: 1.5px solid var(--border);
    background: transparent; font-size: 0.95rem; font-family: inherit; color: var(--text);
    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='%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 4px center;
    padding-right: 28px; cursor: pointer;
}
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus { outline: none; border-bottom-color: var(--black); }
.rsvp-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.rsvp-section-label { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.rsvp-card button {
    padding: 14px 40px;
    background: var(--black); color: white; border: none; border-radius: 0;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s; font-family: inherit; margin-top: 8px;
}
.rsvp-card button:hover { background: #333; }
.rsvp-hidden { display: none; }
.rsvp-success {
    padding: 56px 48px;
    background: var(--warm); border: 1px solid var(--border);
    max-width: 640px;
}
.rsvp-success-icon { font-size: 3rem; margin-bottom: 20px; }
.rsvp-success h3 { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 2rem; font-weight: 400; margin-bottom: 10px; }
.rsvp-success p { color: var(--muted); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--black); padding: 80px 48px;
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 40px;
}
.footer-names {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-style: italic; font-weight: 400;
    color: white; line-height: 1.0;
}
.footer-names span { display: block; }
.footer-names .amp {
    font-size: 0.4em; font-style: normal;
    color: rgba(255,255,255,0.45);
    letter-spacing: 6px; text-transform: uppercase;
    font-family: 'DM Sans', sans-serif; font-weight: 300;
    display: block; margin: 12px 0;
}
.footer-meta { text-align: right; }
.footer-date { font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-photo { min-height: 55vh; }
    .hero-panel { padding: 60px 32px; }
    .hero-panel::before, .hero-panel::after { display: none; }
    .hero-scroll { display: none; }
    .story-layout, .messages-layout { grid-template-columns: 1fr; gap: 40px; }
    .story-aside-num { font-size: 5rem; }
    .footer { grid-template-columns: 1fr; gap: 20px; }
    .footer-meta { text-align: left; }
}
@media (max-width: 640px) {
    .nav { padding: 0 20px; }
    .nav ul { gap: 20px; }
.nav-mobile-cta { display:none; }
    .nav a { font-size: 0.62rem; letter-spacing: 1.5px; }
    .section { padding: 72px 0; }
    .container, .container-sm { padding: 0 24px; }
    .gallery-strip { padding: 0 24px 20px; }
    .gallery-counter { padding: 16px 24px 0; }
    .gallery-item { width: 240px; height: 320px; }
    .rsvp-grid { grid-template-columns: 1fr; }
    .rsvp-card { padding: 32px 24px; }
    .help-card { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .footer { padding: 56px 24px; }
    .messages-layout { grid-template-columns: 1fr; }
}

@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:rgba(255,255,255,0.85); text-decoration:none; border:1px solid rgba(255,255,255,0.4); padding:6px 14px; white-space:nowrap; }
    .nav.scrolled .nav-mobile-cta { color:var(--text); border-color:rgba(10,10,10,0.35); }
}
