:root {
    --chedron: #A7321F;
    --chedron-dark: #862819;
    --chedron-light: #EDD6D2;
    --white: #FFFFFF;
    --text: #505050;
    --font-main: 'Roboto', sans-serif;
    --font-accent: 'Parisienne', cursive;
    --font-serif: 'Noto Serif', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--white);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 24px;
    line-height: 1.5; /* 150% */
    text-align: center;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* Tipografías específicas */
h1, .parisienne {
    font-family: var(--font-accent);
    font-size: 60px;
    line-height: 1.25;
    color: var(--chedron);
    font-weight: 400;
    font-style: normal;

}

h2, .noto-serif {
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.25;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

h3{
    font-size: 26px;
    list-style: 1.25;
    font-weight: 400;
}

.chedron{
    color: var(--chedron);
}







/* Estructura de secciones */
section {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

section.half{
    flex-direction: row;
    gap: 0px;
    align-items: stretch;
}

section.no-padding{
    padding: 0;
}

section.no-padding-top{
    padding-top: 0;
}

section.no-padding-bottom{
    padding-bottom: 0;
}

.half div.section{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 60px;
}


/* banner images */
.banner-full {
    padding: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-full.height-500 {
    height: 500px;
}

.half .section.banner-full {
    height: 655px;
    padding: 0;
    align-self: stretch; /* Se estira al alto del vecino (el texto) */
    display: flex;
}

.half .section.banner-full img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto es MAGIA: rellena el espacio sin estirarse feo */
    display: block;
    object-position: bottom; /* <--- ESTA ES LA CLAVE: Alinea al borde derecho */
}


.banner-full img {
    width: 100%;
    /* height: 100%; */
    display: block;
    height: auto;
}

/* cover */

#cover{
    height: 800px;
}

#cover h1{
    color: var(--white);
    font-size: 80px;
    line-height: 1.25;
    position: absolute;
    top: 100px;
}

#cover img{
    height: 100%;
    object-fit: cover; /* Evita que las fotos se estiren feo */
    display: block;
    object-position: bottom;
}

/* intro */
.intro{
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
}

/* ceremonia & itinerario */
#ceremonia, #recepcion {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

#ceremonia .details, #recepcion .details{
    flex-direction: column;
    gap: 12px;
    display: flex;
    align-items: center;
    width: 290px;
}


/* itinerario */

#itinerary .lines {
    position: absolute;
}

#itinerary .lines div{
    background-color: white;
    height: 445px;
    width: 2px;
    position: relative;
    top: 14px;
    right: 70px;
}

#itinerary .lines .circle{
    width: 15px;
    height: 15px;
    border-radius: 8px;
    left: -77px;
    top: -48px;
}

#itinerary .lines .circle:nth-child(2){
    top: -433px;
}
#itinerary .lines .circle:nth-child(3){
    top: -337px;
}
#itinerary .lines .circle:nth-child(4){
    top: -239px;
}
#itinerary .lines .circle:nth-child(5){
    top: -143px;
}

.itinerary-item span{
    font-weight: 200;
}

.itinerary-item{
    width: 315px;
    display: flex;    
    gap: inherit;
}

.itinerary-item p{
    text-align: left;
}

/* mesa de regalos */
.side-to-side-buttons{
    display: flex; 
    gap: 60px;
    padding: 24px 0;
}

.side-to-side-buttons a{
    width: 150px;
}

.transferencias{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0 0 0;
}

/* no niños */

#no-niños p{
 width: 650px;
}

/* codigo de vestimenta */

.col-2{
    display: flex;
    gap: 80px;
}

#dress-code-gallery, #image-gallery {
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.gallery-main {
    display: flex;
    width: 100%;
    gap: 10px; /* Espacio entre las imágenes */
    padding: 0 10px;
}

.gallery-item {
    flex: 1; /* Esto hace que las 4 midan lo mismo siempre */
    aspect-ratio: 3 / 4; /* Mantiene la proporción vertical tipo dibujo */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las fotos se estiren feo */
    display: block;
}

/* Estilos para las miniaturas de abajo */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.gallery-thumbs img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-thumbs img:hover {
    opacity: 1;
}


/* confirmacion asistencia */
.outline-chedron{
    border: 1px solid;
    border-color:  var(--chedron);
    padding: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.outline-chedron .btn{
    width: 250px;
}

.outline-chedron p{
    width: 720px;
}



/* colors */

.bg-chedron {
    background-color: var(--chedron);
    color: var(--white);
}

.bg-chedron h1, .bg-chedron h2 {
    color: var(--white);
}


/* save the date */
.save-the-date{
    display: flex; 
    gap: 80px;
    align-items: center;
}

.save-the-date div{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.save-the-date .number{
    font-size: 40px;
    line-height: 1.25;
}

.save-the-date .timeframe{
    font-size: 18px;
    line-height: 1.25;
}

.save-the-date .separator{
    background-color: var(--white);
    height: 50px;
    width: 1px;
}



/* bendicion de padres */
.padres{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Placeholders de imágenes e íconos */
.img-placeholder {
    background: #eee;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(167, 50, 31, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px;
    border: 1px solid var(--chedron);
    text-decoration: none;
    transition: 0.3s;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.btn-primary {
    background-color: var(--chedron);
    color: var(--white);
    
}

.btn-secondary {
    background-color: var(--white);
    color: var(--chedron);
}

.btn-primary:hover{
    background-color: var(--chedron-light);
    color: var(--chedron-dark);
}

.btn-secondary:hover{
    background-color: var(--chedron);
    color: white;
    opacity: 0.7;
}

.btn:active{
    background-color: var(--chedron-dark);
    color: white;
    opacity: 1; 
}

.details .btn{
    max-width: 130px;
}

@media screen and (max-width:400px) {
    body {
        font-size: 16px;
    }


    h1, .parisienne {
        font-size: 32px;
    }

    h2, .noto-serif {
        font-size: 20px;
    }

    section {
        padding: 32px 16px;
        display: flex;
        flex-direction: column;
        gap: 20px; /* Espaciado entre elementos */
        align-items: center;
    }
}