--- START OF FILE style.css ---
/* style.css - ESTILO RECREADO DESDE CERO - BODA JUDIT & YERAY - 4 OCT 2025 */

/* --- ESTILOS BASE Y GENERALES --- */
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #4a4a4a;
    line-height: 1.6;
    animation: bgAnimation 20s infinite alternate;
}

@keyframes bgAnimation {
    0% { background-color: #f8f8f8; }
    25% { background-color: #f2f2f2; }
    50% { background-color: #eaeaea; }
    75% { background-color: #f0f0f0; }
    100% { background-color: #f8f8f8; }
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    color: #7a5c61;
    font-weight: 700;
    margin-top: 0;
}

.section-content {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    overflow: hidden;
}

@keyframes sectionBackgrounds {
    0%  { background-image: url('foto1_bg.jpg'); }
    25% { background-image: url('foto2_bg.jpg'); }
    50% { background-image: url('foto3_bg.jpg'); }
    75% { background-image: url('foto1_bg.jpg'); }
    100% {background-image: url('foto2_bg.jpg');}
}

.dynamic-bg {
    animation: sectionBackgrounds 20s infinite alternate;
}


/* --- HEADER --- */
.site-header {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(70%);
}

.header-content {
    position: relative;
    padding: 80px 30px 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wedding-date-header {
    font-size: 1.3em;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.site-header h1 {
    margin-bottom: 10px;
    font-size: 3.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.site-header h2 {
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.header-nav {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center; /* Centrar elementos horizontalmente */
    flex-wrap: wrap; /* Permite que los links se envuelvan a la siguiente línea si no caben */
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 15px; /* Añadido padding a los enlaces */
    box-sizing: border-box; /* Incluir padding en el ancho total */
    white-space: nowrap; /* Evitar salto de línea dentro de cada enlace (opcional) */
}

.header-nav a:hover {
    color: #f0e9e9;
    transform: translateY(-2px);
}


/* --- SECCIÓN NOVIOS --- */
#our-story {
    background-color: #f8f8f8;
    background-image: none;
    animation: none;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

#our-story h2 {
    margin-bottom: 40px;
    font-size: 2.8em;
    color: #7a5c61;
    text-shadow: 1px 1px 2px #eee;
}

.story-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 0 20px;
    overflow: hidden;
}

.story-column {
    text-align: center;
    padding: 30px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

#yeray-story-column {
    background-image: url('yeray_fondo_translucido_recortada.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
}

#judit-story-column {
    background-image: url('judit_fondo_translucido_recortada.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
}

.story-photo {
    max-width: 65%;
    border-radius: 50%;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    border: 3px solid white;
}

.story-column h3, .story-column p {
    color: #eee;
    text-shadow: 1px 1px 2px #222, 2px 2px 3px #000;
}

.story-column p {
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.7;
}


/* --- SECCIÓN FOTO ANCHA FONDO --- */
#background-photo-section {
    background-image: url('foto_fondo_ancha.jpg');
    /* background-attachment: fixed;  ELIMINADO PARA PARALAJE JS */
    background-size: cover;
    background-position: center top; /* Ajustado a 'top' para mejor inicio paralaje */
    background-repeat: no-repeat; /* Asegurar que no se repite */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    padding: 0;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: none;
    background-attachment: scroll; /* Asegurar scroll (valor por defecto, pero explícito) */
    overflow: hidden; /* Añadido overflow hidden para evitar problemas de recorte */
}


/* --- SECCIÓN NUESTRA HISTORIA (TIMELINE VERTICAL) --- */
#nuestra-historia-propia {
    background-color: #fff;
    background-image: none;
    animation: none;
}

#nuestra-historia-propia h2 {
    margin-bottom: 40px;
    font-size: 2.8em;
    color: #7a5c61;
}

.timeline-vertical-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 50px;
}

.timeline-vertical-item {
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
    padding: 25px;
}

.timeline-vertical-item.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-vertical-image {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 30px;
    margin-left: 0;
}

.timeline-vertical-item.reverse .timeline-vertical-image {
    margin-left: 30px;
    margin-right: 0;
}

.timeline-photo {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.timeline-vertical-content {
    flex: 1 1 auto;
    text-align: left;
}

.timeline-vertical-content h3 {
    font-size: 1.6em;
    color: #555;
    margin-bottom: 10px;
}

.timeline-vertical-content .timeline-date {
    font-size: 1em;
    color: #777;
    margin-bottom: 15px;
    font-style: italic;
    display: block;
    display: none; /* Ocultar fechas timeline */
}

.timeline-vertical-content p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}


/* --- SECCIÓN GALERÍA --- */
#galeria {
    background-color: #f0e9e9;
    padding: 120px 20px 170px 20px;
    background-image: url('gallery_collage.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    animation: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#galeria h2 {
    margin-bottom: 30px;
    font-size: 3em;
    color: #7a5c61;
    text-align: center;
    margin-left: 0;
}


.animated-text-gallery {
    font-size: 1.5em;
    color: #777;
    text-align: center;
    padding: 30px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin: 40px auto 0 auto;
    max-width: 700px;
    animation: fadeInOut 3s infinite alternate;
    background-color: rgba(240, 233, 233, 0.7);
    backdrop-filter: blur(5px);
}

@keyframes fadeInOut {
    0%   { opacity: 0.4; }
    100% { opacity: 1; }
}


/* --- SECCIÓN UBICACIÓN --- */
#location h2 {
    font-size: 2.8em;
    color: #7a5c61;
}

.map-container {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    margin-left: auto;
    margin-right: auto;
    width: 90%; /* MAPA MÁS PEQUEÑO */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


.map-links {
    font-size: 1.1em;
    color: #777;
}

.map-links a {
    color: #a8848a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-links a:hover {
    color: #917277;
    text-decoration: underline;
}



/* --- SECCIÓN PREBODA --- */
#preboda {
    background-color: #f8f8f8;
    padding-top: 80px;
    padding-bottom: 80px;
    background-image: none;
    animation: none;
    overflow: hidden;
}

#preboda h2 {
    font-size: 2.8em;
    color: #7a5c61;
    margin-bottom: 40px;
    text-align: center;
}

.preboda-container {
    display: flex; /* Flexbox container */
    max-width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    align-items: center; /* Centrar verticalmente */
}

.preboda-text {
    flex: 1; /* Mitad izquierda */
    padding: 30px;
    text-align: left; /* Alineación texto izquierda */
}

.preboda-image {
    flex: 1; /* Mitad derecha */
    height: 500px; /* Altura fija, ajustar si necesario */
    overflow: hidden;
    border-radius: 0 10px 10px 0; /* Redondea solo esquinas DERECHAS */
    background-image: url('foto_preboda_section.jpg');
    background-size: cover;
    background-position: center;
    order: 2; /* Mover imagen a la DERECHA con order */
}


.preboda-photo {
    width: 100%;
    height: auto;
    display: block;
}

.preboda-text .map-links {
    text-align: center; /* Centrar links */
}


/* --- SECCIÓN CONFIRMACIÓN ASISTENCIA (RSVP) --- */
#rsvp h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.8em;
    color: #7a5c61;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group select {
    width: calc(100% - 22px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    color: #555;
}

.form-group p {
    font-weight: bold;
    margin-bottom: 15px;
    color: #666;
}

#rsvp-form input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
    cursor: pointer;
}

#rsvp-form label {
    font-weight: normal;
    color: #555;
}

#rsvp-form button {
    background-color: #a8848a;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
}

#rsvp-form button:hover {
    background-color: #917277;
    transform: scale(1.03);
}

#mensaje-confirmacion {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #388e3c;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}


/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 40px 30px;
    background-color: #f0e9e9;
    color: #777;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-footer {
    margin-bottom: 15px;
}

.footer-logo-image {
    max-width: 80px;
    height: auto;
    display: block;
    opacity: 0.8;
    margin-left: auto;
    margin-right: auto; /* CENTRAR LOGO FOOTER */
}


/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */
@media (max-width: 768px) {
    .header-content {
        padding: 80px 20px 60px 20px;
    }

    .header-nav {
        gap: 10px; /* Reducido gap entre links header en móvil vertical */
        margin-top: 20px;
        flex-wrap: wrap; /* Añadido flex-wrap para que los links se envuelvan */
        justify-content: center; /* Centrar los links en móvil vertical */
    }

    .header-nav a {
        font-size: 1em; /* Ligeramente reducido el tamaño de fuente en header móvil */
        padding: 8px 12px; /* Ligeramente reducido el padding en header móvil */
    }

    .section-content {
        padding: 40px 15px;
        margin: 20px auto;
    }

    #galeria {
        padding: 100px 15px 120px 15px; /* Mayor padding Galería en móvil */
    }


    #our-story h2, #nuestra-historia-propia h2, #location h2, #galeria h2, #rsvp h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }

    .story-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }
    .story-photo {
        max-width: 60%;
    }
    .story-column p {
        text-align: left;
        font-size: 1em;
    }

    .timeline-vertical-container {
        padding: 15px;
        gap: 40px;
    }
    .timeline-vertical-item {
        flex-direction: column; /* Timeline vertical en columna en móvil */
        text-align: center; /* Centrar texto timeline en móvil */
        padding: 20px;
    }
     .timeline-vertical-item.reverse { /* Timeline vertical INVERSO en columna en móvil */
        flex-direction: column;
        text-align: center; /* Centrar texto timeline item inverso en móvil */
    }
    .timeline-vertical-image {
        width: 100%; /* Ancho completo imagen timeline móvil */
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 15px;
        margin-left: auto;
        margin-right: auto; /* Centrar imagen timeline móvil */
    }
     .timeline-vertical-content {
        text-align: center; /* Centrar texto timeline movil */
    }

    #location {
        padding: 30px 15px;
        margin: 20px auto;
    }

    #location h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .map-container {
        margin-bottom: 15px;
    }

    #rsvp {
        padding: 30px 20px;
        margin: 20px auto;
    }

     #preboda {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #preboda h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }

    .preboda-container {
        flex-direction: column; /* Volver a vertical en móvil */
    }

    .preboda-text {
        flex: 0; /* Reset flex en móvil */
        padding: 20px;
        text-align: center; /* Centrar texto en movil */
    }

    .preboda-image {
        flex: 0; /* Reset flex imagen movil */
        height: 300px; /* Altura reducida en móvil */
        border-radius: 10px 10px 0 0; /* Redondear top en movil */
        order: 0; /* Reset order imagen movil */
    }

    .site-footer {
        padding: 30px 20px;
    }
    .footer-logo-image {
        max-width: 60px;
    }

    .story-column p,
    .timeline-vertical-content p,
    .preboda-text p { /* Añado también los párrafos de la sección preboda */
        font-size: 1.1em; /* Ligeramente más grande que el 1em actual */
    }
    .animated-text-gallery { /* Para el texto animado de la galería que quizá sea pequeño */
        font-size: 1.3em; /* Ligeramente mayor en móvil */
    }
}
--- END OF FILE style.css ---