/* =========================================
   1. TIPOGRAFÍA
   ========================================= */
@font-face { font-family: 'DidotTitlePro'; src: url('fonts/Didot Title.woff2') format('woff2'), url('fonts/Didot Title.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'FuturaBookPro'; src: url('fonts/FuturaCyrillicBook.woff2') format('woff2'), url('fonts/FuturaCyrillicBook.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'FuturaLightPro'; src: url('fonts/FuturaCyrillicLight.woff2') format('woff2'), url('fonts/FuturaCyrillicLight.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }

/* =========================================
   2. RESET Y BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #000; font-family: 'FuturaBookPro', sans-serif; overflow: hidden; height: 100vh; height: 100svh; color: #FFF; }
.fade-text { transition: opacity 0.3s ease; }
.menu-text-active, .active-lang { color: rgb(133, 39, 34) !important; opacity: 1; }

/* CLASES UTILITARIAS */
.opacity-zero { opacity: 0 !important; transition: opacity 0.2s ease; }
.loading-state { opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.loaded-visible { opacity: 1; pointer-events: auto; }

/* =========================================
   3. BARRAS DE NAVEGACIÓN
   ========================================= */
.navbar, .bottom-bar { position: fixed; left: 0; width: 100%; height: 55px; background-color: #FFF; display: flex; justify-content: space-between; align-items: center; z-index: 2000; }
.navbar { top: 0; border-bottom: 1px solid #000; }
.bottom-bar { bottom: 0; border-top: 1px solid #000; }
.nav-section, .bottom-left, .bottom-right { display: flex; align-items: center; height: 100%; }
.nav-section.center { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-text, .icon-btn { font-family: 'FuturaBookPro', sans-serif; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: #000; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0 25px; height: 100%; display: flex; align-items: center; transition: color 0.3s ease; }
.divider { display: block; width: 1px; height: 20px; background-color: #000; }
.logo { font-family: 'DidotTitlePro', serif; font-size: 1.5rem; letter-spacing: 5px; font-weight: normal; color: #000; white-space: nowrap; cursor: pointer; }

/* =========================================
   4. MENÚ OVERLAY
   ========================================= */
.menu-overlay { position: fixed; top: 55px; left: 0; width: 100%; height: calc(100% - 110px); background-color: rgba(0, 0, 0, 0.5); z-index: 1500; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-box { background-color: #FFF; width: 90%; max-width: 450px; border: 1px solid #000; display: flex; flex-direction: column; }
.menu-link { font-family: 'FuturaBookPro', sans-serif; font-size: 0.85rem; letter-spacing: 2px; text-align: center; padding: 18px 0; color: #000; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid #000; transition: background 0.2s, color 0.2s; }
.menu-link:hover { background-color: #f5f5f5; color: rgb(133, 39, 34); }
.menu-items .menu-link:last-child { border-bottom: none; }
.menu-footer { display: flex; justify-content: space-between; border-top: 1px solid #000; background-color: #FFF; }
.menu-footer-item { flex: 1; text-align: center; padding: 12px 0; font-size: 0.65rem; font-family: 'FuturaBookPro', sans-serif; letter-spacing: 1px; color: #000; border-right: 1px solid #000; text-transform: uppercase; cursor: pointer; }
.menu-footer-item:last-child { border-right: none; }
.menu-footer-item:hover { color: rgb(133, 39, 34); background-color: #f5f5f5; }
.made-by-sliver {
    display: block;
    text-align: center;
    font-family: 'FuturaLightPro', sans-serif;
    font-size: 0.55rem; /* Muy chiquito y elegante */
    letter-spacing: 2px;
    color: #000; /* Gris suave */
    text-decoration: none;
    padding: 12px 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
    border-top: 1px solid #000; /* Una línea divisoria sutil (opcional) */
}

.made-by-sliver:hover {
    color: #aaa; /* Se oscurece al pasar el mouse */
}

/* =========================================
   5. CAPA DE DETALLES
   ========================================= */
.details-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 80px; }
.details-container { width: 90%; max-width: 500px; pointer-events: auto; display: flex; flex-direction: column; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
body.details-mode .details-container { opacity: 1; transform: translateY(0); }

.next-section-bar { background-color: #FFF; border: 1px solid #000; border-bottom: none; height: 45px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; cursor: pointer; transition: background 0.3s; }
.next-section-bar:hover { background-color: #f9f9f9; }
.next-section-title { font-family: 'FuturaBookPro', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #000; }
.next-section-bar i { color: #000; font-size: 0.8rem; }

.details-bar { background-color: #FFF; border: 1px solid #000; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; cursor: pointer; transition: background 0.3s; }
.details-bar:hover { background-color: #f2f2f2; }
.detail-bar-title { font-family: 'FuturaBookPro', sans-serif; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #000; }
.detail-toggle { display: flex; align-items: center; gap: 10px; font-family: 'FuturaBookPro', sans-serif; font-size: 0.65rem; letter-spacing: 1px; color: #000; }

.details-content-box { background-color: #FFF; border-left: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; overflow: hidden; max-height: 0; transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1); position: relative; }
.details-content-box.expanded { max-height: 60vh; }
.scroll-content { padding: 40px 30px; overflow-y: auto; max-height: 60vh; text-align: center; }
.close-details-absolute { position: absolute; top: 15px; right: 20px; background: none; border: none; cursor: pointer; font-size: 1rem; color: #000; z-index: 5; }

.story-heading { font-family: 'DidotTitlePro', serif; font-size: 1.5rem; letter-spacing: 3px; margin-bottom: 20px; font-weight: normal; text-transform: uppercase; color: #000; text-shadow: none; }
#detail-body-text, #detail-body-text p { color: #000 !important; font-family: 'DidotTitlePro', serif; font-size: 1.1rem; line-height: 1.6; font-weight: normal; text-shadow: none; text-transform: none; }
#detail-body-text a { color: #000; text-decoration: underline; }

.back-btn { margin-top: 15px; background: none; border: none; color: #FFF; font-family: 'FuturaBookPro', sans-serif; font-size: 0.7rem; letter-spacing: 2px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.5s; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
body.details-mode .back-btn { opacity: 0.8; pointer-events: auto; }
body.details-mode .back-btn:hover { opacity: 1; text-decoration: underline; }

/* =========================================
   6. OTROS
   ========================================= */
.lang-container { height: 100%; display: flex; align-items: center; padding: 0 25px; font-family: 'FuturaBookPro', sans-serif; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; }
.lang-sep { color: #000; margin: 0 5px; }
.lang-opt { cursor: pointer; color: #000000; transition: color 0.3s ease; }

.bg-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: background-image 0.8s ease-in-out; z-index: 1; }
.overlay-dark { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); z-index: 2; transition: background 0.5s; }
body.details-mode .overlay-dark { background: rgba(0,0,0,0.6); }

/* WRAPPER CENTRAL */
.middle-wrapper { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%; z-index: 10; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; }
.middle-wrapper * { pointer-events: auto; }

/* REGLA MAESTRA: Si estamos en detalles, se oculta el carrusel a la fuerza */
body.details-mode .middle-wrapper { opacity: 0 !important; transform: translateY(-40%); pointer-events: none; }

.top-subtitle { font-family: 'FuturaLightPro', sans-serif; font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: #FFF; margin-bottom: 25px; }
.text-swiper { width: 100%; height: 70px; overflow: visible; }
.swiper-slide { width: auto !important; display: flex; align-items: center; justify-content: center; padding: 0 20px; opacity: 0.3; transition: all 0.5s ease; transform: scale(0.9); text-align: center; }
.swiper-slide-active { opacity: 1; transform: scale(1); z-index: 10; }
.slide-title { font-family: 'FuturaBookPro', sans-serif; font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; color: #F4F1E8; white-space: nowrap; font-weight: normal; cursor: grab; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.btn-box { margin-top: 25px; display: inline-block; padding: 12px 30px; background-color: #F4F1E8; color: #000; text-decoration: none; font-family: 'FuturaBookPro', sans-serif; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; transition: opacity 0.3s, transform 0.2s; }
.btn-box:hover { background-color: #FFF; transform: translateY(-2px); }

/* =========================================
   7. MEDIA QUERIES (DESKTOP)
   ========================================= */
.nav-zone { display: none; }
@media (min-width: 768px) {
    .nav-zone { display: block; position: fixed; top: 55px; bottom: 55px; width: 50%; z-index: 5; }
    .zone-left { left: 0; cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="square" stroke-linejoin="miter"><path d="M15 18l-6-6 6-6"/></svg>') 20 20, pointer; }
    .zone-right { right: 0; cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="square" stroke-linejoin="miter"><path d="M9 18l6-6-6-6"/></svg>') 20 20, pointer; }
    body.details-mode .nav-zone { display: none; }
    .swiper-slide { padding: 0 60px; }
    .slide-title { font-size: 2.2rem; letter-spacing: 4px; }
    .btn-box { margin-top: 40px; padding: 14px 45px; font-size: 0.75rem; }
    .details-container { width: 500px; }
}

/* =========================================
   8. ESTILOS RSVP FORM
   ========================================= */
.rsvp-step-container { width: 100%; text-align: left; margin-top: 20px; }
.rsvp-label { display: block; font-family: 'DidotTitlePro', serif; font-size: 0.9rem; color: #000; margin-bottom: 8px; margin-top: 20px; }
.rsvp-input { width: 100%; border: none; border-bottom: 1px solid #000; padding: 8px 0; font-family: 'FuturaBookPro', sans-serif; font-size: 1rem; color: #000; outline: none; background: transparent; border-radius: 0; transition: border 0.3s; }
.rsvp-input:focus { border-bottom: 1px solid rgb(133, 39, 34); }
.input-error { border-bottom: 1px solid rgb(133, 39, 34) !important; }

.rsvp-textarea { width: 100%; border: none; border-bottom: 1px solid #000; padding: 8px 0; font-family: 'FuturaBookPro', sans-serif; font-size: 1rem; color: #000; outline: none; background: transparent; border-radius: 0; resize: none; height: 40px; }
.rsvp-textarea:focus { border-bottom: 1px solid rgb(133, 39, 34); }

.rsvp-error { color: rgb(133, 39, 34); font-family: 'FuturaBookPro', sans-serif; font-size: 0.75rem; margin-top: 5px; display: none; }
.rsvp-btn { width: 100%; background-color: #000; color: #FFF; border: none; padding: 15px; margin-top: 30px; font-family: 'FuturaBookPro', sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.rsvp-btn:hover { background-color: rgb(133, 39, 34); }

.guest-block { margin-bottom: 30px; border-bottom: 1px dashed #ccc; padding-bottom: 20px; }
.guest-block:last-child { border-bottom: none; }
.guest-number { font-family: 'DidotTitlePro', serif; font-size: 0.9rem; color: #666; margin-bottom: 15px; text-transform: uppercase; }
.radio-group { display: flex; gap: 20px; margin-top: 10px; }
.radio-label { font-family: 'FuturaBookPro', sans-serif; font-size: 0.9rem; color: #000; display: flex; align-items: center; gap: 5px; cursor: pointer; }