/* ========================================
   HOME PAGE STYLES - Francisco & Iuliana
   ========================================
   
   Este archivo contiene todos los estilos específicos de la página home.html
   Organizados por secciones para facilitar el mantenimiento.
   
   Estructura:
   - Imports y configuración base
   - Contenedores principales
   - Tipografía y textos
   - Imágenes y galerías
   - Botones y elementos interactivos
   - Footer
   - Responsive design
   ======================================== */

/* ========================================
   IMPORTS Y CONFIGURACIÓN BASE
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Display:wght@400;500;700&family=Italiana&display=swap');

/* ========================================
   CONFIGURACIÓN GENERAL DEL BODY
   ======================================== */

body {
    font-family: 'DM Serif Display', serif;
    background: linear-gradient(to bottom, #FFFEEF 0%, #FFFEEF 100vh, #FFFFFF 100vh, #FFFFFF 100%);
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Asegurar que no haya scroll horizontal */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ========================================
   CONTENEDORES PRINCIPALES
   ======================================== */

.full-screen-containerx {
    padding: 10% 0;
    background-color: #FFFEEF;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    z-index: 999;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    box-sizing: border-box;
    margin-top: 80px;
    /* Espacio para el header */
}

/* ========================================
   TIPOGRAFÍA Y TEXTOS
   ======================================== */

.wedding-title {
    font-family: 'Italiana', serif !important;
    color: #F20E0E;
    font-size: 25vw;
    word-spacing: 0.5vw;
    letter-spacing: -1vw;
    line-height: 0.5;
    z-index: 9998;
    max-width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.text-blockprese {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0em;
    color: #F20E0E;
    line-height: 1;
    font-weight: 100;
    margin: 0% 2% 0% 2%;
    text-align: left;

}

.text-blockprese-cuatro {
    font-family: 'DM Serif Display', serif;
    font-size: 5rem;
    letter-spacing: 0em;
    color: #F20E0E;
    line-height: 1;
    font-weight: 100;
    margin: 0% 2% 0% 2%;

}

.text-blocky {
    width: 50%;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0em;
    line-height: 1;
    font-weight: 100;
    margin: 15% -10% 5% 35%;
    padding: 5px 10px;
    border: 1px solid black;
    /* Marco fino negro */
    padding: 5px 10px;

}

.texto-intro {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: red;
    margin-bottom: 1rem;
    max-width: 20%;
    text-align: left;
    line-height: 1;
    margin: 10% 70% 10% 0%;
}

.text-blockx {
    font-size: 3rem;
    width: 3%;
    /* Opcional, permite que se adapte */
    line-height: 2rem;
    margin-bottom: -10%;
    color: #F20E0E !important;
    margin-left: 2%;

}

h2 {
    color: #F20E0E !important;
}

/* ========================================
   CONTENEDORES DE IMÁGENES
   ======================================== */

.contenedor-imagenes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20%;
}

.contenedor-imagenes2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10%;
    margin-top: 10%;
}

.contenedor-imagenes3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* dos columnas */
    justify-items: center;
    align-items: flex-start;
    gap: 3% 1%;
    /* espacio vertical 3%, horizontal 1% */
    row-gap: 1%;
    /* espacio específico entre filas */
}

.imagen-con-pie3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    /* ajusta el ancho dentro de cada columna */
    margin-bottom: 2%;
}


/* Grid 2x2 específico para el bloque de Cristina */
.contenedor-cristina {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 1%;
    margin-top: 5%;
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    align-items: center;
}

.imagen-cristina {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2%;
}

/* Contenedor para fila de imágenes */
.image-row {
    display: flex;
    justify-content: center;
    /* centra las imágenes en el contenedor */
    gap: 4%;
    /* espacio entre imágenes */
    margin: 8% auto;
    /* margen superior/inferior general */
}

.image-row img {
    width: 35%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Contenedor dual para dos imágenes lado a lado */
.image-block-dual {
    display: flex;
    align-items: flex-start;
    gap: 2%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.image-left {
    position: relative;
    width: 50%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.image-right {
    position: relative;
    width: 25%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.image-left img,
.image-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Grid 2 columnas para las fotos adicionales */
.contenedor-fotos-adicionales {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3%;
    margin-top: 5%;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.imagen-adicional {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2%;
}

.imagen-adicional img {
    width: 100%;
    height: auto;
}

.imagen-con-pie {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 20%;
}

.imagen-con-pie2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 15%;
    margin-bottom: 2%;
}

.imagen-con-pie6 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 10%;
}

/* ========================================
   ELEMENTOS DE IMAGEN
   ======================================== */

/* Regla general para todas las imágenes - 20% más pequeñas en PC */
img {
    transform: scale(0.8);
    transform-origin: center;
}

/* Excepción: imágenes en contenedor-imagenes y contenedor-imagenes2 mantienen scale 1 */
.contenedor-imagenes img,
.contenedor-imagenes2 img {
    transform: scale(1);
}

/* Excepción: imagen bizarre de Violeta mantiene scale 1 */
.bizarre-image {
    transform: scale(1);
}

.imagen-pequena-con-margen {
    width: 100%;
    height: auto;
    margin-top: 5%;
    margin-bottom: 0;
}

.imagen-pequena-con-margen2 {
    width: 100%;
    height: auto;
    margin-top: 5%;
    margin-bottom: 0;
}

/* ========================================
   PIES DE FOTO
   ======================================== */

.pie-de-foto {
    text-align: left;
    font-size: 0.7rem;
    color: #555;
    margin-top: 0%;
    padding-left: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0vw;
    line-height: 1.2;
    font-weight: 100;
    color: #F20E0E;
}

.pie-de-foto2 {
    text-align: left;
    font-size: 1rem;
    color: #555;
    margin-top: 0%;
    padding-left: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0vw;
    line-height: 1.2;
    font-weight: 100;
    color: #F20E0E;
}

.pie-de-foto4 {
    position: absolute;
    top: 0;
    left: 100%;
    /* Esto lo coloca justo al final de la imagen */
    padding-left: 10px;
    font-size: 0.7rem;
    line-height: 0.7rem;
    color: #333;
    z-index: 9991;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    /* Evita que el texto se rompa en varias líneas */
}

.pie-de-foto5 {
    position: absolute;
    top: 0;
    right: 100%;
    padding-right: 10px;
    text-align: right;
    /* Cambiado de right a left */
    font-size: 0.7rem;
    color: #F20E0E;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    z-index: 3000;
    width: 200px;
    line-height: 0.7rem;
    text-align: right;
}

.pie-de-foto6 {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    position: absolute;
    bottom: 101%;
    left: 10%;
    padding-left: 10px;
    font-size: 0.7rem;
    color: #333;
    z-index: 9991;
    white-space: nowrap;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .full-screen-containerx {
        min-height: 60vh;
        width: 100%;
        margin-top: 80px;
        /* Mantener espacio para el header en móvil */
        padding: 10% 5%;
    }

    .wedding-title {
        font-size: 18vw;
        max-width: 95%;
        z-index: 1;
    }

    .imagen-con-pie {
        width: 35%;
    }

    .image-row {
        margin-top: 20%;
        margin-bottom: 20%;
    }

    .imagen-con-pie2 {
        width: 45%;
        margin-bottom: 4vw;
    }

    .contenedor-cristina {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 3%;
        width: 50%;
        max-width: 50%;
    }

    .imagen-cristina {
        margin-bottom: 3vw;
        margin-top: 0 !important;
        /* Resetear margin-top en móvil */
    }

    /* Responsive para contenedor dual */
    .image-block-dual {
        flex-direction: column;
        gap: 2vw;
    }

    .image-left,
    .image-right {
        width: 100%;
    }

    .contenedor-fotos-adicionales {
        gap: 2%;
        max-width: 100%;
    }

    .imagen-adicional {
        margin-bottom: 3vw;
    }

    /* Restaurar tamaño original de las imágenes en móvil */
    img {
        transform: scale(1);
    }

    .text-blockprese {
        font-size: 0.35rem;
        line-height: 1;
        margin-top: 20%;
        margin-bottom: 20%;
    }

    .text-blocky {
        width: 60%;
        font-size: 0.5rem;
        line-height: 1.1;
    }


    .text-blockprese-cuatro {
        font-size: 2rem;
    }

    .text-blockx {
        font-size: 1rem;
        width: 3%;
        /* Opcional, permite que se adapte */
        line-height: 0.8rem;
        margin-bottom: 0%;
        font-weight: 150;
    }

    .text-block {
        width: 100%;
        font-size: 28.5vw;
        padding: 0px;
        box-sizing: border-box;
        font-family: 'DM Serif Display', serif;
        /* Para títulos elegantes */
        margin: 0% -10% 0% -5%;
        white-space: nowrap;
        /* Evita el salto de línea */
        letter-spacing: -3vw;
        font-weight: 100;
    }

    .texto-intro {
        font-size: 0.5rem;
        max-width: 40%;
        margin: 10% 50% 10% auto;
        line-height: 1;
        text-align: left;
    }

    .pie-de-foto {
        font-size: 0.35rem;
        line-height: 1;
    }

    .pie-de-foto2 {
        font-size: 0.35rem;
    }

    .pie-de-foto4 {
        font-size: 0.3rem;
        padding-left: 2px;
        line-height: 0.3rem;

    }

    .pie-de-foto5 {
        padding-right: 2px;
        font-size: 0.3rem;
        line-height: 0.3rem;
        text-align: right;
    }

    .pie-de-foto6 {
        font-size: 0.3rem;
        line-height: 0.3rem;
        width: 20px;
        padding-right: 2px;

    }

    .contenedor-imagenes2 {
        gap: 2%;
    }
}


.footer {
    background-color: #FFFEF0;
    padding: 40px 20px;
    font-family: 'DM Serif Display', serif;
    color: #F20E0E;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.footer .links {
    display: flex;
    font-family: 'DM Serif Display', serif;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2%;
    width: 100%;
    margin-bottom: 30px;
}

.footer .links a {
    color: #F20E0E;
    font-family: 'DM Serif Display', serif;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer .links a:hover {
    color: #D10A0A;
}

.footer-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 1rem;
}

.footer-table td {
    border: 1px solid #F20E0E;
    padding: 15px;
    text-align: center;
}

.footer-table a {
    color: #F20E0E;
    text-decoration: none;
}

.footer-table a:hover {
    text-decoration: underline;
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: #F20E0E;
    vertical-align: middle;
    margin-right: 8px;
}

/* Móvil: reducir fuentes a 0.5rem */
@media (max-width: 768px) {

    .footer,
    .footer .links a,
    .footer-table,
    .footer-table td,
    .footer-table a {
        font-size: 0.5rem !important;
    }

    .footer-table td {
        padding: 8px;
    }

    .social-icon {
        width: 3vw;
        height: 3vw;
    }
}

.editorial-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    margin: 10% auto;
    gap: 4%;
    width: 100%;

}

.gallery-frame {
    width: 70%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .editorial-gallery {
        margin: 25% auto;
    }
}

/* ========================================
   LENIS SMOOTH SCROLL
   ======================================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}