/* --- FUENTES --- */
@font-face { font-family: 'Adelia'; src: url('../assets/fonts/adelia.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Caviar Dreams'; src: url('../assets/fonts/caviarDreams.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Caviar Dreams'; src: url('../assets/fonts/caviardreams_bold.ttf') format('truetype'); font-weight: bold; font-display: swap; }

:root {
    --bg-invitation: rgb(236, 227, 211);
    --bg-paper: #f9f7f2;
    --text-primary: #1a1a1a;
    --text-secondary: #2d2d2d;
    --accent-gold: #b59a6d;
    --accent-dark: #8c764d;
    --font-script: 'Adelia', cursive;
    --font-geom: 'Caviar Dreams', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & PROTECCIÓN --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-invitation); color: var(--text-primary); 
    font-family: var(--font-geom); line-height: 1.6; overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}

/* --- NAVBAR --- */
.navbar { 
    position: fixed; top: 0; width: 100%; height: 80px; 
    background: rgba(236, 227, 211, 0.98); backdrop-filter: blur(10px); 
    z-index: 9999; border-bottom: 1px solid rgba(181, 154, 109, 0.1); 
}
.nav-content { max-width: 1100px; margin: 0 auto; height: 100%; display: flex; justify-content: flex-end; align-items: center; padding: 0 25px; }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent-gold); }

/* --- BOTONES --- */
.btn-wedding {
    display: inline-block; background-color: var(--accent-dark); color: #ffffff !important;
    text-decoration: none; font-size: 13px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 2px; padding: 16px 35px; border-radius: 4px; border: 2px solid var(--accent-dark);
    transition: all 0.4s var(--ease); cursor: pointer; margin-top: 20px; text-align: center;
}
.btn-wedding:hover { background-color: transparent; color: var(--accent-dark) !important; transform: translateY(-3px); }

/* --- HERO --- */
.adelia-fixed { font-size: 32px; font-family: var(--font-script) !important; font-weight: normal; line-height: 1.6; padding: 15px 0; display: block; }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.hero-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 6px; color: var(--accent-gold); font-weight: bold; }
.hero-title { font-size: clamp(3.5rem, 10vw, 6.5rem); margin-top: 20px; }
.hero-divider { width: 40px; height: 1px; background: var(--accent-gold); margin: 15px auto; }
.hero-date { font-size: 18px; text-transform: uppercase; letter-spacing: 2px; }

/* --- COUNTDOWN --- */
.countdown { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.timer-item { background: rgba(255, 255, 255, 0.4); padding: 15px; min-width: 80px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }
.timer-item span { font-size: 32px; display: block; color: var(--text-primary); }
.timer-item label { font-size: 10px; text-transform: uppercase; color: var(--accent-gold); font-weight: bold; }

/* --- ESTILO MENSAJE FINAL CUENTA ATRÁS --- */
.countdown-finished {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-dark);
    margin-top: 30px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- GRID & CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; width: 100%; max-width: 1100px; }
.card { padding: 40px; border: 1px solid rgba(181, 154, 109, 0.2); text-align: center; background: rgba(255,255,255,0.1); transition: transform 0.3s ease; }
.card-icon { height: 50px; margin-bottom: 25px; display: flex; justify-content: center; align-items: center; }
.card-icon img { height: 100%; width: auto; filter: brightness(0) saturate(100%) invert(67%) sepia(16%) saturate(614%) hue-rotate(5deg) brightness(92%) contrast(88%); }

/* --- FAQ --- */
.faq-minimal { width: 100%; max-width: 750px; margin-top: 50px; text-align: left; }
.faq-item { border-bottom: 1px solid rgba(181, 154, 109, 0.2); }
.faq-header { width: 100%; padding: 30px 0; background: none; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-geom); font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: var(--text-primary); }
.faq-icon { position: relative; width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--accent-gold); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; }
.faq-item.active .faq-icon { transform: rotate(135deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-content-inner { padding: 0 0 35px 0; }
.faq-content p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; font-weight: 500; }

/* --- MENU MÓVIL Y X --- */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: 0.4s var(--ease); z-index: 9000; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.menu-toggle { display: none; background: transparent; border: none; width: 30px; height: 24px; position: relative; z-index: 10001; cursor: pointer; }
.menu-toggle span { display: block; position: absolute; height: 2px; width: 100%; background: var(--accent-dark); transition: all .3s ease-in-out; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--bg-paper); flex-direction: column; justify-content: center; transition: 0.5s var(--ease); z-index: 10000; box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding: 40px; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 14px; margin: 15px 0; width: 100%; text-align: center; }
}

/* --- FOOTER Y EASTER EGG --- */
.footer { width: 100%; padding: 60px 0 100px 0; text-align: center; border-top: 1px solid rgba(181, 154, 109, 0.1); position: relative; clear: both; }
.footer-text { font-size: 13px; color: var(--text-secondary); letter-spacing: 2px; display: block; }
.easter-egg { padding: 15px 25px; transition: all 0.3s ease; cursor: help; display: inline-block; }
.easter-egg:hover { color: var(--accent-gold); }

/* --- OTROS --- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: rgba(140, 118, 77, 0.8); border: none; border-radius: 50%; z-index: 999; opacity: 0; visibility: hidden; transition: 0.4s; display: flex; justify-content: center; align-items: center; }
.back-to-top.show { opacity: 1; visibility: visible; }
.arrow-up { width: 10px; height: 10px; border-left: 2px solid white; border-top: 2px solid white; transform: rotate(45deg); margin-top: 4px; }
.section { padding: 100px 20px; }
.section-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bg-paper { background-color: var(--bg-paper); }
.overline { font-size: 11px; font-weight: bold; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 4px; }
.hidden-element { opacity: 0; transform: translateY(20px); transition: 1s var(--ease); }
.show-element { opacity: 1; transform: translateY(0); }
.rsvp-text {margin-top: 16px;}