/* Fuentes */
@font-face {
    font-family: 'Alchadera';
    src: url('../fonts/Alchadera.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url('../fonts/Sofia_Pro_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.alchadera {
    font-family: 'Alchadera';
}

.sofia {
    font-family: 'Sofia';
}

/* Estilos Base */
body, html {
    margin: 0;
    padding: 0;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../../images/verde.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

/* Capa verde translúcida */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 46, 20, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Imagen del Monograma (R&F) */
.img-monogram {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
}

/* Imagen de los Nombres */
.img-names {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Monograma R&F */
.initials {
    font-size: 10rem;
    margin: 0;
    font-weight: serif;
    letter-spacing: -5px;
}

/* Nombres y Fecha */
.names {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 20px;
    text-transform: uppercase;
}

.names span {
    font-style: italic;
}

.date {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #d4af37; /* Color dorado para la fecha */
}

/* Hojas Decorativas */
.decor-leaf {
    position: absolute;
    bottom: 0;
    width: 30%;
    z-index: 2;
    pointer-events: none;
}

.leaf-left {
    left: 0;
}

.leaf-right {
    right: 0;
    transform: scaleX(-1); /* Refleja la imagen para el lado derecho */
}

/* Responsive básico */
@media (max-width: 768px) {
    .initials { font-size: 6rem; }
    .names { font-size: 1.5rem; }
    .date { font-size: 1.2rem; }
    .decor-leaf { width: 50%; }
    .img-monogram { max-width: 280px; }
    .img-names { max-width: 320px; }
}

/* Estilos Base necesarios */
body, html {
    margin: 0;
    padding: 0;
}

/* Sección Contenedora Principal */
.countdown-story {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

/* Capa de Papel (Superior) */
.paper-layer {
    position: relative;
    background-image: url('../../images/paper_texture.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px 80px;
    text-align: center;
    z-index: 10; /* Por encima de la foto */
}


/* Contenido dentro del papel */
.paper-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 300;
}

.countdown-timer {
    font-size: 6rem;
    color: #1a2e14;
    font-weight: bold;
    line-height: 1;
}

/* Capa de Foto (Inferior) */
.photo-layer {
    position: relative;
    width: 100%;
    margin-top: -100px;
    z-index: 5;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* Ratio 3:2 */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto cubra el espacio sin deformarse */
    display: block;
    /* Estilos de transición (Fade) */
    opacity: 0; /* Ocultas por defecto */
    transition: opacity 1.5s ease-in-out; /* Velocidad del desvanecimiento */
    z-index: 1; /* Nivel base */
}

/* Foto activa (visible) */
.carousel-slide.active {
    opacity: 1;
    z-index: 2; /* Por encima de las ocultas */
}

/* Responsive básico */
@media (max-width: 768px) {
    .countdown-timer { font-size: 3.5rem; }
    .story-text { font-size: 1rem; }
    .paper-layer { padding: 50px 15px 100px; }
    .paper-layer::after { height: 80px; }
    .photo-layer { margin-top: -60px; }
}

.itinerary-section {
    background-image: url('../../images/paper_texture.jpg');
    padding: 0px 20px;
    text-align: center;
}

.bible-verse {
    max-width: 700px;
    margin: 0 auto 50px;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

.verse-ref {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

/* El Arco Verde */
.itinerary-arch {
    position: relative;
    background-color: #1a2e14; /* Verde oscuro */
    background-image: url('../../images/itinerario.png');
    background-size: cover;
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px;
    border-radius: 300px 300px 0 0; /* Forma de arco */
    color: white;
    overflow: hidden;
}

.itinerary-title {
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Timeline */
.itinerary-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: rgba(212, 175, 55, 0.5); /* Dorado suave */
    z-index: 1;
}

.event {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Icono a la izquierda, texto a la derecha */
    width: 100%;
    align-items: center;
    z-index: 2;
}

.event-icon {
    font-size: 2.5rem;
    padding-right: 30px;
    text-align: right;
}

.event-text {
    font-size: 1.8rem;
    padding-left: 30px;
    text-align: left;
}

/* Hojas decorativas */
.arch-leaf {
    position: absolute;
    width: 150px;
    z-index: 3;
}

.leaf-left { top: 10%; left: -20px; transform: rotate(-15deg); }
.leaf-right { bottom: 10%; right: -20px; transform: rotate(15deg); }

/* Mobile */
@media (max-width: 600px) {
    .itinerary-arch { border-radius: 150px 150px 0 0; padding: 60px 20px; }
    .event-text { font-size: 1.2rem; }
    .event-icon { font-size: 1.8rem; }
    .itinerary-title { font-size: 1.8rem; }
}

/* Forzar 100% de ancho de pantalla */
.location-banner-full {
    position: relative;
    width: 100vw; /* 100% del ancho de la ventana */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    height: 60vh;
    min-height: 400px;
    background-image: url('../../images/lugar.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.location-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen de fondo */
    z-index: 1;
}

/* Texto grande oscuro que se ve de fondo en tu captura */
.bg-text-decoration {
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.location-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.location-icon {
    font-size: 3.5rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.location-title {
    font-size: 5rem;
    line-height: 0.85;
    font-weight: bold;
    margin: 0;
    letter-spacing: -2px;
}

.location-title span {
    font-size: 5.5rem;
}

.location-floor {
    font-size: 2.2rem;
    margin-top: 10px;
    font-weight: 300;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .location-title { font-size: 3rem; }
    .location-title span { font-size: 3.5rem; }
    .bg-text-decoration { font-size: 8rem; }
    .location-banner-full { height: 50vh; }
}

.info-wedding-section {
    background-color: #1a2e14; /* Mismo verde que el itinerario */
    background-image: url('../../images/fondo_regalos.png'); 
    background-size: cover;
    padding: 80px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Fila de Vestimenta */
.dress-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.dress-code-text p {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}

.dress-code-text h3 {
    font-size: 3rem;
    letter-spacing: 5px;
    margin: 0;
}

.dress-code-icons {
    font-size: 4.5rem;
    display: flex;
    gap: 30px;
    opacity: 0.9;
}

/* Texto central */
.thanks-text {
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 60px;
}

/* Fila de Regalos */
.gifts-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gift-details h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 300;
}

.gift-details p {
    font-size: 1.8rem;
    margin: 0;
}

.gift-details span {
    font-weight: bold;
}

.gift-logo img {
    max-width: 250px;
    height: auto;
}

/* Hojas decorativas */
.decor-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.info-leaf-left {
    top: 20px;
    left: -40px;
    transform: rotate(-20deg);
}

.info-dots-right {
    top: 100px;
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .dress-code-row, .gifts-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }
    
    .dress-code-text h3 { font-size: 2.2rem; }
    .dress-code-icons { font-size: 3.5rem; }
    .thanks-text { font-size: 1.1rem; }
    .gift-details p { font-size: 1.4rem; }
    .info-wedding-section { padding: 40px 20px; }
}

.wedding-footer {
    position: relative;
    padding: 80px 20px;
    background-image: url('../../images/paper_texture.jpg');
    background-size: cover;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05); /* Separación sutil */
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Botón Circular de WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #222;
    color: white;
    border-radius: 50%;
    font-size: 2.2rem;
    text-decoration: none;
    margin-bottom: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #1a2e14; /* Cambio al verde de la boda al pasar el mouse */
}

/* Títulos y Frase */
.rsvp-title {
    font-size: 1.8rem;
    color: #1a2e14;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-weight: 400;
}

.final-quote {
    font-size: 3.5rem; /* Tamaño grande para la caligrafía */
    color: #1a2e14;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .final-quote { font-size: 2.2rem; }
    .rsvp-title { font-size: 1.4rem; }
    .whatsapp-btn { width: 60px; height: 60px; font-size: 1.8rem; }
    .wedding-footer { padding: 60px 15px; }
}