/* themes/minimal/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- 0. VARIABLES Y BASE --- */
:root {
    --text-main: #2B2A28; 
    --text-muted: #555555;
    --bg-main: #FAF7F2;  
    --accent-color: #9A7B4F;
    --accent-dark: #6C5435;
    --bg-card: #ffffff;
    --border-light: #EAE3D9;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.02em;
    background: var(--bg-main);
    color: var(--text-main);
}

h1, h2, h3, h4, h5, .serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Common Section */
.section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 50px;
    position: relative;
    color: var(--text-main);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); }
.btn-outline:hover { background: var(--accent-color); color: #fff; }


/* --- 1. HERO --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-main);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); /* Overlay oscuro suave */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-content h1 {
    font-size: clamp(4rem, 10vw, 7rem);
    margin: 0;
    line-height: 1.1;
    font-weight: 500;
}
.hero-content .details {
    font-size: 1.2rem;
    margin-top: 25px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.7);
    animation: drift 2s infinite alternate;
}
@keyframes drift {
    0% { transform: translate(-50%, 0); opacity: 0.5; }
    100% { transform: translate(-50%, 15px); opacity: 1; }
}

/* --- 2. CUENTA REGRESIVA --- */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.cd-item {
    text-align: center;
}
.cd-item span {
    display: block;
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent-color);
    line-height: 1;
}
.cd-item small {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --- 3. NUESTRA HISTORIA --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}
@media(min-width: 768px) {
    .story-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .story-grid:nth-child(even) .story-text { order: -1; }
}
.story-text {
    font-size: 1.05rem;
}
.story-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- 4. GALERÍA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 300px;
    min-height: 250px;
    background: #eaeaea;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* --- 5. EVENTOS POSTALES --- */
.events-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media(min-width: 768px) { .events-wrapper { grid-template-columns: 1fr 1fr; } }
.postal-card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
}
.postal-icon { width: 50px; opacity: 0.8; margin-bottom: 20px; }
.dress-code-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}
.color-swatch {
    width: 25px; height: 25px; border-radius: 50%;
    border: 1px solid #ddd;
}
.map-iframe { width: 100%; height: 200px; border: 0; background: #eee; margin: 20px 0; }

/* --- 6. ITINERARIO TIMELINE --- */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.timeline::before {
    content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
    width: 1px; background: var(--accent-color); opacity: 0.5;
}
.tl-item {
    position: relative; padding-left: 50px; margin-bottom: 30px;
}
.tl-dot {
    position: absolute; left: 10px; top: 5px;
    width: 11px; height: 11px; background: var(--bg-main);
    border: 2px solid var(--accent-color); border-radius: 50%;
}
.tl-time { font-weight: bold; color: var(--accent-color); font-size: 0.9rem; margin-bottom: 5px; }

/* --- 7. PADRINOS --- */
.padrinos-grid {
    display: grid;
    grid-template-columns: 1fr; gap: 20px;
}
@media(min-width: 600px) { .padrinos-grid { grid-template-columns: 1fr 1fr; } }
.padrino-box {
    padding: 20px; border-bottom: 1px solid var(--border-light);
}

/* --- 8 & 9. HOTELS & TRANSPORT --- */
.lodging-grid {
    display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.lodge-card {
    background: #fff; text-align: left;
    border: 1px solid var(--border-light);
}
.lodge-card img { width: 100%; height: 200px; object-fit: cover; }
.lodge-content { padding: 25px; }

/* --- 10. MESA DE REGALOS --- */
.registry-grid {
    display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.registry-card {
    background: #fff; padding: 40px 20px; border: 1px solid var(--border-light);
}

/* --- 11. FAQ --- */
.faq-wrap { max-width: 700px; margin: 0 auto; text-align: left; }
.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}
.faq-question {
    width: 100%; text-align: left; padding: 15px 0;
    background: none; border: none; font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    cursor: pointer; display: flex; justify-content: space-between;
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 15px; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-color); }

/* --- 12. GUESTBOOK --- */
.guestbook-grid {
    display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 40px; text-align: left;
}
.book-card {
    background: #fff; padding: 25px; border-left: 3px solid var(--accent-color);
    font-style: italic; color: #444;
}

/* --- 13. RSVP GLOBAL --- */
.rsvp-wrapper { background: #fff; padding: 50px; max-width: 600px; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #555; font-weight: 500; }
.form-control { width: 100%; padding: 12px; border: 1px solid #e0e0e0; background: #fafafa; font-family: 'Inter', sans-serif; font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent-color); background: #fff; }

/* --- 14. FOOTER & AUDIO --- */
.site-footer {
    padding: 100px 20px; text-align: center; background: #111; color: #fff;
}
.site-footer h2 { font-size: 3rem; margin-bottom: 10px; color: var(--accent-color); }

.audio-player-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100; border: 1px solid #eee;
    font-size: 1.5rem;
}
.audio-player-btn.playing {
    background: var(--accent-color); color: #fff; border-color: transparent;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(154,123,79, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(154,123,79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(154,123,79, 0); }
}

/* LANG SELECTOR */
.lang-selector {
    position: absolute; top: 20px; right: 20px; z-index: 10;
}
.lang-selector a {
    color: #fff; font-size: 0.85rem; text-transform: uppercase; text-decoration: none; margin-left: 10px; opacity: 0.7;
}
.lang-selector a.active { opacity: 1; font-weight: bold; border-bottom: 1px solid #fff; }

/* LIGHTBOX */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 999;
    display: none; justify-content: center; align-items: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90%; max-height: 90vh; }
