/* assets/css/main.css */

:root {
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --bg-cream: #F9F7F2;
    --text-dark: #4A4A4A;
    --text-light: #888888;
    --white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-cream); font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

/* HERO */
.hero { height: 100vh; width: 100%; background-size: cover; background-position: center; background-attachment: fixed; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); }
.hero-content { position: relative; z-index: 2; padding: 20px; animation: fadeInUp 1.5s ease-out; }
.pre-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.couple-names { font-size: 4rem; margin: 10px 0; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.date-badge { display: inline-block; border-top: 1px solid var(--white); border-bottom: 1px solid var(--white); padding: 10px 20px; margin: 20px 0; font-size: 1.2rem; letter-spacing: 1px; }
.guest-greeting { margin-top: 20px; font-size: 1.1rem; font-style: italic; font-family: var(--font-heading); }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; z-index: 2; font-size: 1.5rem; opacity: 0.8; cursor: pointer; }

/* GENERAL */
.container { max-width: 800px; margin: 0 auto; padding: 0 20px 60px 20px; }
.section { padding: 60px 0; text-align: center; }
.section-title { font-size: 2.5rem; color: var(--gold); margin-bottom: 30px; position: relative; display: inline-block; }
.section-title::after { content: ""; display: block; width: 60px; height: 2px; background-color: var(--gold); margin: 10px auto 0; }
.welcome-text { font-size: 1.2rem; max-width: 700px; margin: 0 auto; color: var(--text-dark); font-weight: 300; }

/* TIMELINE ROMBOS */
.timeline-section { background-color: var(--white); }
.timeline { position: relative; max-width: 600px; margin: 40px auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 15px; width: 1px; background: #e0e0e0; }
.timeline-item { position: relative; margin-bottom: 50px; display: flex; align-items: flex-start; }
.timeline-item .marker { position: absolute; left: 15px; top: 5px; width: 14px; height: 14px; background: var(--gold); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 4px var(--white); z-index: 2; }
.timeline-item .content { margin-left: 50px; text-align: left; flex: 1; }
.timeline-item .time { font-weight: 700; color: var(--gold); font-family: var(--font-heading); font-size: 1.1rem; display: block; margin-bottom: 5px;}
.timeline-item h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: var(--text-dark); }
.timeline-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* CARDS, LOCATION & EXTRAS */
.card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; margin-bottom: 30px; }
.location-card .icon-gold, .info-icon { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.location-card .address { color: var(--text-light); margin: 10px 0 20px; }
.btn-outline { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 10px 25px; text-decoration: none; border-radius: 30px; transition: all 0.3s; font-size: 0.9rem; }
.btn-outline:hover { background: var(--gold); color: var(--white); }

/* NUEVOS ESTILOS: HOSPEDAJE Y BANCO */
.info-text { white-space: pre-wrap; color: var(--text-dark); font-size: 1rem; margin-top: 15px; line-height: 1.8; }
.bank-card { border: 1px solid #e0e0e0; background: #fffdf5; }

/* FAQ */
.faq-container { display: flex; flex-direction: column; gap: 15px; text-align: left; max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #fafafa; padding: 0 20px; }
.faq-answer p { padding: 20px 0; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 500px; }

/* RSVP & TICKETS */
.rsvp-form-container { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-control { width: 100%; padding: 12px; border: 1px solid #eee; background: #fdfdfd; border-radius: 6px; }
.radio-group { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.radio-option input { display: none; }
.radio-box { display: block; padding: 15px 25px; border: 1px solid #ddd; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-weight: 500; }
.radio-option input:checked + .radio-box { background-color: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold { width: 100%; background-color: var(--gold); color: var(--white); padding: 15px; border: none; border-radius: 6px; font-size: 1.1rem; cursor: pointer; font-weight: 600; }

.ticket-container { background: var(--white); max-width: 400px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.ticket-header { background: var(--bg-cream); padding: 20px; text-align: center; }
.qr-code { padding: 30px; text-align: center; background: white; }
.qr-code img { max-width: 200px; }
.ticket-details { padding: 20px; background: #fcfcfc; border-top: 1px dashed #ddd; text-align: center; }

/* FOOTER CORREGIDO */
footer { text-align: center; padding: 40px 20px; color: var(--text-light); font-family: var(--font-heading); font-size: 1.2rem; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }
.fade-up-element { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up-element.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) { .couple-names { font-size: 3rem; } .radio-group { flex-direction: column; } }

/* --- MEJORAS VISUALES: TARJETAS DE INFO --- */

/* Estilo base para cajas de información */
.info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    text-align: left; /* Alineación a la izquierda para leer mejor */
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-left: 5px solid var(--gold); /* Borde lateral dorado */
}

/* Títulos dentro de las tarjetas */
.info-card h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* El texto del usuario (mantiene los saltos de línea) */
.info-text {
    white-space: pre-wrap; 
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* Estilo específico para Banco (Números monoespaciados) */
.bank-details {
    background-color: #fafafa;
    font-family: 'Courier New', monospace; /* Tipo letra de ticket */
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #ccc;
    color: #333;
    font-weight: 600;
}

/* Botón de copiar (Opcional, decorativo por ahora) */
.copy-hint {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    display: block;
    margin-top: 5px;
    font-style: italic;
}

/* Iconos grandes flotantes */
.card-icon-float {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.1); /* Dorado muy transparente */
}


/* assets/css/main.css - VERSIÓN FINAL CORREGIDA */

:root {
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --bg-cream: #F9F7F2;
    --text-dark: #4A4A4A;
    --text-light: #888888;
    --white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-cream); font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

/* --- HERO (PORTADA) --- */
.hero { 
    height: 100vh; 
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    /* En escritorio se ve fijo (elegante) */
    background-attachment: fixed; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: var(--white); 
}

.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); }
.hero-content { position: relative; z-index: 2; padding: 20px; animation: fadeInUp 1.5s ease-out; }
.pre-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.couple-names { font-size: 4rem; margin: 10px 0; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.date-badge { display: inline-block; border-top: 1px solid var(--white); border-bottom: 1px solid var(--white); padding: 10px 20px; margin: 20px 0; font-size: 1.2rem; letter-spacing: 1px; }
.guest-greeting { margin-top: 20px; font-size: 1.1rem; font-style: italic; font-family: var(--font-heading); }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; z-index: 2; font-size: 1.5rem; opacity: 0.8; cursor: pointer; }

/* --- GENERAL --- */
.container { max-width: 800px; margin: 0 auto; padding: 0 20px 60px 20px; }
.section { padding: 60px 0; text-align: center; }
.section-title { font-size: 2.5rem; color: var(--gold); margin-bottom: 30px; position: relative; display: inline-block; }
.section-title::after { content: ""; display: block; width: 60px; height: 2px; background-color: var(--gold); margin: 10px auto 0; }
.welcome-text { font-size: 1.2rem; max-width: 700px; margin: 0 auto; color: var(--text-dark); font-weight: 300; }

/* --- TIMELINE ROMBOS --- */
.timeline-section { background-color: var(--white); }
.timeline { position: relative; max-width: 600px; margin: 40px auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 15px; width: 1px; background: #e0e0e0; }
.timeline-item { position: relative; margin-bottom: 50px; display: flex; align-items: flex-start; }
.timeline-item .marker { position: absolute; left: 15px; top: 5px; width: 14px; height: 14px; background: var(--gold); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 4px var(--white); z-index: 2; }
.timeline-item .content { margin-left: 50px; text-align: left; flex: 1; }
.timeline-item .time { font-weight: 700; color: var(--gold); font-family: var(--font-heading); font-size: 1.1rem; display: block; margin-bottom: 5px;}
.timeline-item h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: var(--text-dark); }
.timeline-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* --- CARDS & LOCATION --- */
.card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; margin-bottom: 30px; }
.location-card .icon-gold, .info-icon { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.location-card .address { color: var(--text-light); margin: 10px 0 20px; }
.btn-outline { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 10px 25px; text-decoration: none; border-radius: 30px; transition: all 0.3s; font-size: 0.9rem; }
.btn-outline:hover { background: var(--gold); color: var(--white); }

/* --- TARJETAS DE INFO (HOTEL / BANCO) --- */
.info-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 30px; margin-top: 20px; text-align: left; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-left: 5px solid var(--gold); }
.info-card h4 { color: var(--gold); font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.info-text { white-space: pre-wrap; font-family: var(--font-body); font-size: 0.95rem; color: #555; line-height: 1.8; }
.bank-details { background-color: #fafafa; font-family: 'Courier New', monospace; padding: 15px; border-radius: 6px; border: 1px dashed #ccc; color: #333; font-weight: 600; }
.copy-hint { font-size: 0.75rem; color: #999; text-align: right; display: block; margin-top: 5px; font-style: italic; }
.card-icon-float { position: absolute; top: 20px; right: 20px; font-size: 3rem; color: rgba(212, 175, 55, 0.1); }

/* --- FAQ --- */
.faq-container { display: flex; flex-direction: column; gap: 15px; text-align: left; max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #fafafa; padding: 0 20px; }
.faq-answer p { padding: 20px 0; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 500px; }

/* --- RSVP & TICKETS --- */
.rsvp-form-container { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-control { width: 100%; padding: 12px; border: 1px solid #eee; background: #fdfdfd; border-radius: 6px; }
.radio-group { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.radio-option input { display: none; }
.radio-box { display: block; padding: 15px 25px; border: 1px solid #ddd; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-weight: 500; }
.radio-option input:checked + .radio-box { background-color: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold { width: 100%; background-color: var(--gold); color: var(--white); padding: 15px; border: none; border-radius: 6px; font-size: 1.1rem; cursor: pointer; font-weight: 600; }

.ticket-container { background: var(--white); max-width: 400px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.ticket-header { background: var(--bg-cream); padding: 20px; text-align: center; }
.qr-code { padding: 30px; text-align: center; background: white; }
.qr-code img { max-width: 200px; }
.ticket-details { padding: 20px; background: #fcfcfc; border-top: 1px dashed #ddd; text-align: center; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 20px; color: var(--text-light); font-family: var(--font-heading); font-size: 1.2rem; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }
.fade-up-element { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up-element.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE (MÓVIL) - CORRECCIÓN CRÍTICA
   ========================================= */
@media (max-width: 768px) {
    /* 1. ARREGLO DE IMAGEN DE PORTADA */
    .hero {
        /* Desactivamos el efecto 'fixed' en celular porque causa zoom extremo */
        background-attachment: scroll; 
        /* Centramos la imagen arriba para que no se corten las cabezas */
        background-position: center top; 
    }

    /* 2. Ajustes de texto para celular */
    .couple-names { font-size: 3rem; }
    .radio-group { flex-direction: column; }
    
    /* 3. Ajuste de paddings para que no se vea apretado */
    .container { padding: 0 15px 40px 15px; }
    .card, .info-card { padding: 25px 20px; }
}

/* --- CARRUSEL DE FOTOS --- */
.carousel-container { position: relative; max-width: 800px; margin: 40px auto; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); aspect-ratio: 16/9; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 15px; cursor: pointer; z-index: 2; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.carousel-btn:hover { background: var(--gold); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* --- TARJETAS DE HABITACIONES --- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.room-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: left; transition: transform 0.3s; border: 1px solid #eee; }
.room-card:hover { transform: translateY(-5px); }
.room-img { width: 100%; height: 180px; object-fit: cover; }
.room-details { padding: 20px; }
.room-title { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; font-family: var(--font-heading); }
.room-price { color: var(--gold); font-weight: bold; font-size: 1.1rem; display: block; margin-bottom: 10px; }
.room-desc { font-size: 0.9rem; color: #777; line-height: 1.4; }

/* --- CARRUSEL DE FOTOS (CORREGIDO) --- */

/* Contenedor Principal: Define el tamaño de la ventana */
.carousel-container { 
    position: relative; 
    width: 100%; 
    max-width: 800px; 
    height: 400px; /* Altura fija para que no sea enorme */
    margin: 40px auto; 
    overflow: hidden; /* Oculta las fotos que están a los lados */
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    background: #000; /* Fondo negro por si la imagen no carga */
}

/* El Riel: Es la tira larga que contiene todas las fotos */
.carousel-track { 
    display: flex; 
    height: 100%; 
    width: 100%;
    /* ESTA LÍNEA ES LA MAGIA DE LA ANIMACIÓN: */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* Cada Foto individual */
.carousel-slide { 
    min-width: 100%; /* Ocupa el 100% del contenedor */
    height: 100%; 
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin estirarse */
    object-position: center;
}

/* Botones Flechas */
.carousel-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.3); /* Blanco semitransparente */
    color: #fff; 
    border: none; 
    cursor: pointer; 
    z-index: 10; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.carousel-btn:hover { 
    background: var(--gold); 
    color: #fff;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* --- AJUSTE PARA MÓVIL --- */
@media (max-width: 768px) {
    .carousel-container {
        height: 250px; /* En celular es más bajito para que se vea bien */
        margin: 20px auto;
    }
    .carousel-btn {
        width: 30px; 
        height: 30px; 
        font-size: 0.9rem;
    }
}