:root {
    --verde-oliva: #4b5340;
    --oliva-suave: #8c9474;
    --crema: #f1ede1;
    --dorado: #d4b46c;
    --ocre: #c09141;
    --blanco: #ffffff;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'EB Garamond', serif;
    background-color: var(--blanco);
    overflow-x: hidden;
    color: var(--verde-oliva);
}

/* --- NAVEGACIÓN --- */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--crema);
    padding: 15px 0;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}
.nav-list { display: flex; list-style: none; }
.nav-list a {
    text-decoration: none;
    color: var(--verde-oliva);
    margin: 0 20px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}
.btnh { display: none; width: 30px; cursor: pointer; }

/* --- HERO --- */
.hero-header { position: relative; height: 100vh; display: flex; flex-direction: column; }
.hero-content {
    position: absolute;
    top: 4%;
    width: 100%;
    z-index: 10;
    text-align: center;
}
.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--blanco);
    letter-spacing: 15px;
    font-weight: 400;
    text-transform: uppercase;
     display: inline-block !important;
}
.hero-date {
    font-size: 1.1rem;
    color: var(--ocre);
    letter-spacing: 8px;
    text-transform: uppercase; 
    opacity: 0.9;
    padding-left: 450px;
}
.hero-image {
    width: 100%;
    height: 100%;
    background: url("imagenes/J u a n y P a u l a.png") no-repeat center 10% / cover;
    filter: brightness(0.9);
}

/* --- SECCIONES --- */
.section-minimalist { padding: 120px 20px; display: flex; justify-content: center; }
.mini-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
}
.mini-photo img { width: 100%; border-radius: 10px; }
.mini-subtitle {
    font-size: 20px;
    color: var(--oliva-suave);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 10px;
}
.mini-content-box h2 { font-size: 3.5rem; margin-bottom: 20px; }
.mini-content-box p { font-size: 20px; line-height: 1; margin-bottom: 30px; }

.centrar{ text-align: center;}


.section-rsvp { padding: 100px 20px; background-color: var(--crema); text-align: center; }
.rsvp-card {
    background: var(--blanco);
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 15px;
}
.divider { width: 60px; height: 1px; background: var(--ocre); margin: 15px auto; }
.btn-rsvp {
    display: inline-block;
    padding: 15px 35px;
    background: var(--verde-oliva);
    color: var(--blanco);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: 0.3s;
}

.section-contacto { padding: 100px 20px; background-color: var(--blanco); display: flex; justify-content: center; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1000px; }
.contacto-image img { width: 100%; border-radius: 10px; filter: grayscale(20%); }
.whatsapp-links { display: flex; flex-direction: column; gap: 15px; }
.btn-wa {
    text-decoration: none;
    color: var(--verde-oliva);
    border-bottom: 1px solid var(--ocre);
    padding: 10px 0;
    width: fit-content;
    transition: 0.3s;
}

.main-footer { padding: 60px 20px; text-align: center; background-color: var(--crema); }
.footer-thanks { font-style: italic; font-size: 1.5rem; }
.credits { margin-top: 30px; font-size: 0.85rem; color: #999; text-transform: uppercase; }
.portfolio-link { color: var(--verde-oliva); text-decoration: none; font-weight: 600; }
.mb20 { margin-bottom: 20px; }

/* --- ANIMACIONES FADE-IN --- */
.reveal, .reveal-left, .reveal-right, .reveal-static {
    opacity: 0;
    transition: all 1.2s ease-out;
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-static { transform: none; }

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-static.active {
    opacity: 1;
    transform: translate(0, 0);
}

.b { 
    color: white !important; 
    font-size: 25px;            
}

.fecham { display: none; } 
.fechapc { display: block; }

.v{ color:  #4b5340; }

.btn-rsvp {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(75, 83, 64, 0.2);
}

.btn-rsvp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(75, 83, 64, 0.4);
    letter-spacing: 4px; /* El texto se expande elegantemente */
}


/* Estado inicial más elegante */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    filter: blur(5px); /* Añadimos desenfoque */
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* Curva de lujo */
}

/* Estado activo */
.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f1ede1; /* Tu variable --crema */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.heart-container {
    text-align: center;
}

.heart {
    background-color: #4b5340; /* Tu variable --verde-oliva */
    display: inline-block;
    height: 30px;
    margin: 0 10px;
    position: relative;
    top: 0;
    transform: rotate(-45deg);
    width: 30px;
    animation: heartbeat 1.2s infinite;
}

.heart:before,
.heart:after {
    content: "";
    background-color: #4b5340;
    border-radius: 50%;
    height: 30px;
    position: absolute;
    width: 30px;
}

.heart:before {
    top: -15px;
    left: 0;
}

.heart:after {
    left: 15px;
    top: 0;
}

.loading-text {
    margin-top: 40px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 5px;
    color: #4b5340;
    text-transform: uppercase;
    font-size: 14px;
}

/* Animación del latido */
@keyframes heartbeat {
    0% { transform: rotate(-45deg) scale(1); }
    25% { transform: rotate(-45deg) scale(1.1); }
    50% { transform: rotate(-45deg) scale(1); }
    75% { transform: rotate(-45deg) scale(1.2); }
    100% { transform: rotate(-45deg) scale(1); }
}


/* --- MÓVIL --- */
@media (max-width: 768px) {
    .nav-container { justify-content: center; }
    .btnh { display: block; margin: 0 auto; }
    .nav-list {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--blanco);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--crema);
        text-align: center;
    }
    .nav-list li { width: 85%; margin: 0 auto; border-bottom: 1px solid var(--crema); }
    .nav-list li:last-child { border-bottom: none; }
    .nav-list a { display: block; padding: 15px 0; margin: 0; font-size: 14px; }

    /* CONTENIDO DEL HERO: CENTRADO FIJO SIN MOVIMIENTO */
    .hero-content { 
        top: 13% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important; 
        width: 90% !important;
        position: absolute;
    }
    
    /* MODIFICACIÓN PARA EVITAR SALTO DE LÍNEA */
    .hero-text h1 { 
        font-size: 40px !important; /* Tamaño reducido para caber en la pantalla */
        letter-spacing: 8px !important; /* Espaciado reducido */
        white-space: nowrap !important; /* Fuerza al navegador a no cortar la palabra */
        width: 100% !important;
        display: inline-block !important;
    }

    .hero-date { 
        padding-left: 0;
        font-size: 0.9rem;
        letter-spacing: 5px; 
        text-align: center;
        margin-top: -10px;
    }

    .mini-grid, .contacto-grid { grid-template-columns: 1fr; text-align: center; }
    .mini-text-align, .contacto-info { order: 1; }
    .mini-image-align, .contacto-image { order: 2; }
    .whatsapp-links { align-items: center; }
    
    .reveal-left, .reveal-right { transform: translateY(30px); }
    .reveal-static.active { transform: translate(-50%, -50%) !important; }

    .bm { 
        color: white !important; 
        font-size: 20px;              
    }

    .fecham { display: block; }  
    .fechapc { display: none; }

    .movil { width: 100%; }
}