.full-screen{
    position: relative;
    height: 100vh;
}

.full-screen.scroll{
    height: auto;
    min-height: 100vh;
}

@media screen and (max-width: 800px) {
    .mobile-half-screen{
        max-height: 50vh;
    }
}

.top-left, .top-right, .bottom-left, .bottom-right{
    position: fixed;
    z-index: 4;
}

.top-left, .top-right{
    top: 1rem;
}

.bottom-left, .bottom-right{
    bottom: 1rem;
}

.top-left, .bottom-left{
    left: 1rem;
    text-align: left;
}

.top-right, .bottom-right{
    right: 1rem;
    text-align: right;
}

@media screen and (max-width: 1100px) {
    .top-right, .bottom-right, .top-left, .bottom-left{
        display: none;
    }
}

.menu{
    position: fixed;
    inset: 1rem 1rem auto;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 1rem;

    z-index: 3;
}

.menu li{
    flex-grow: 1;
    max-width: 175px;
}

.menu__button{
    text-wrap: nowrap;
    text-align: center;

    padding: .25rem .5rem;
    flex-grow: 1;

    background-color: var(--c-font-50);
    cursor: pointer;

    transition: background-color .3s ease;
}

@media screen and (max-width: 1100px) {
    .menu{
        gap: .5rem;
    }
}

.menu__button:hover{
    background-color: var(--c-font-100);
}

.container{
    position: relative;

    /* padding: var(--section-padding-block) var(--section-padding-inline); */
    width: calc(100% - 2rem);
    margin: 0 auto;
    max-width: var(--max-width);
}

.full-screen .container{
    /* height: 90vh; */
    height: 100%;
}

.full-screen.scroll .container{
    min-height: 100vh;
}

.center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

p{
    font-size: 1rem;
}

.display, .title{
    font-family: var(--ff-title);
    font-size: clamp(1.75rem, 6vw, 5rem);
    font-weight: 700;
}

.title{
    font-size: clamp(1.25rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: .25em;
}

.subtitle, .note, .countdown, .button{
    font-family: var(--ff-subtitle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subtitle{
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
}

.note, .button{
    font-size: clamp(0.65rem, 2vw, 0.85rem);
}

.ta-center .display, .ta-center .title, .ta-center .subtitle, .ta-center .note, .ta-center .countdown, .ta-center .button{
    text-align: center;
}

a.note{
    cursor: pointer;
    transition: background-color .3s ease;
}

a.note:hover{
    background-color: var(--c-font-50);
}

.row + .note{
    margin-top: 1.5rem;
}

.text-with-slash{
    white-space: nowrap;
}

@media screen and (min-width: 450px) {
    .text-with-slash::before{
        content: '- ';
    }
}

@media screen and (max-width: 450px) {
    .mobile-break{
        display: block;
    }
}


.button{
    position: relative;
    text-align: center;

    color: white;
    background-color: var(--button-color, var(--c-font-500));

    padding: .5rem 1rem;
    cursor: pointer;

    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.button:hover{
    background-color: var(--button-hover, var(--c-accent-blue));
}

.button:disabled, .button.disabled{
    pointer-events: none;
    background-color: var(--c-font-100);
}

.button.clear{
    color: var(--button-color, var(--c-font-500));
    border: var(--border-size) solid var(--button-color, var(--c-font-500));
    background-color: white;
}

.button.clear:hover{
    color: var(--button-hover, var(--c-accent-blue-m));
    border-color: var(--button-hover, var(--c-accent-blue-m));
    background-color: var(--button-hover-clear, var(--c-accent-blue-l));
}

.button.danger:hover{
    --button-hover: var(--c-accent-red);
    --button-hover-clear: var(--c-accent-red-l);
}

.button.dark{
    --button-hover: var(--c-font-500);
    --button-hover-clear: var(--c-font-100);
}

/* .button.wip::after{
    content: 'Sin confirmar';

    position: absolute;
    top: calc(100% + .5rem);
    left: 50%;
    transform: translateX(-50%);

    font-size: .5rem;
    white-space: nowrap;
    padding: .25em .5em; 

    background-color: var(--c-accent-blue);

    display: flex;
    justify-content: center;
    align-items: center;
} */

#complaint-button{
    overflow: hidden;
}

#complaint-button::after{
    content: 'Ya te gustaría';
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--c-font-500);
    background-color: var(--c-font-100);

    transform: translateY(100%);
    transition: transform .3s ease;
}

#complaint-button.active{
    pointer-events: none;
    cursor: not-allowed;
}

#complaint-button.active::after{
    transform: translateY(0);
}

.line--h + .button, .line--v + .button-container{
    margin-top: 2rem;
}

.button-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: .5rem;
}

.button-container .button{
    width: 100%;
}

.uppercase{
    text-transform: uppercase;
}

.line--h, .line--v{
    display: block; 
    background-color: var(--c-font-500);
    margin: .5rem 0;
}

.line--h{
    height: 1px; 
    width: 100%;
}

.line--v{
    width: 1px; 
    height: 2rem;
}

.line--h + .note{
    padding: 0 1rem;
}

.note + .line--h{
    margin-top: .25rem;
}

.parallax{
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.parallax__bkg{
    position: absolute;
    inset: 0;
    
    background-image: var(--parallax-bkg);

    background-attachment: fixed;
    background-position: center bottom;
    background-repeat:repeat-x;
    background-size: var(--max-width);
    min-height: 200px;
    z-index: 0;

    width: 100%;
}

.perspective{
    perspective: 1000px;
}

.hero .container{
    padding: 0;
}

.hero{
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;

    padding: 0;
}

.texts__container{
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;

    margin-bottom: 15%;
}

.images__container{
    position: relative;
    width: 100%;

    flex-grow: 1;
}

.couple{
    --couple-width: 225px;
    --couple-margin: 30px;

    object-fit: contain;
    height: auto;
    min-height: 100px;
    width: var(--couple-width);
    z-index: 1;

    position: absolute;
    inset: auto calc(50% - ((var(--couple-width) + var(--couple-margin)) / 2)) 0;
}

.building-container{
    position: absolute;
    inset: 0;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.building-gradient{
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gradient{
    position: relative;

    width: 100%;
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
}

.gradient::before, .gradient::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: 1;
}

.gradient::before{
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .5) 10%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%);
}

.gradient::after{
    background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .5) 90%, rgba(255, 255, 255, 1) 100%);
}

.building{
    /* object-fit: contain; */
    object-position: center bottom;
    opacity: .9;

    max-height: 60%;
    height: 100%;
    max-width: 1500px;
    width: auto;
}

.full-screen.landing::after{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
}

.assistance-form .container{
    padding: 6rem 0;
}

@media screen and ( max-width: 500px ) {
    .assistance-form .container{
        padding: 4rem 0 3rem;
    }
}

form{
    width: 100%; 
    max-width: 700px;
    min-height: 0;
}

label{
    font-size: .65rem;
    font-weight: 500;
}

.row{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.field:not(.num){
    min-width: min(300px, 100%);
}

input[type='text']{
    border: var(--border-size) solid var(--c-font-500);
}

/* --- ESTILOS GENERALES DE INPUTS --- */
input[type='text'],
input[type='number'],
input[type='email'],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    background-color: transparent;
    border: var(--border-size, 1px) solid var(--c-font-500);
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box; /* Importante para que no se salgan */
}

input[type='text']::placeholder,
input[type='number']::placeholder,
input[type='email']::placeholder,
textarea::placeholder,
select::placeholder{
    opacity: .5;
}

span.required{
    color: var(--c-accent-red);
}

textarea {
    resize: vertical; /* Permite estirar solo hacia abajo */
}

.help {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
    font-weight: normal;
    hyphens: auto;
    /* font-style: italic; */
}

#assistance-form, #plus-one-form, #transport-options, .button-checkbox-container + .note{
    margin-top: 1rem;
}

.row + .row{
    margin-top: .5rem;
}

.field-checkbox{
    margin-top: 2rem;
}

/* --- ESTILOS PARA CHECKBOX Y RADIO TIPO BOTÓN --- */
.button-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%; /* Asegura que ocupen el ancho disponible */
}

.btn-check-wrapper {
    white-space: nowrap;
    min-width: 48%;

    position: relative;
    flex: 1; /* Hace que ambos botones tengan el mismo ancho */
}

#children-container .btn-check-wrapper:last-child{
    width: 100%;
    flex-basis: 100%;
    flex-grow: 1;
}

/* Ocultamos el checkbox Y el radio real de Django */
.btn-check-wrapper input[type="checkbox"],
.btn-check-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Estilizamos el label para que parezca un botón */
.btn-check-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid var(--c-font-500);
    color: var(--c-font-500);
    font-family: var(--ff-subtitle);
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-sizing: border-box; /* Importante para bordes */
}

.btn-check-wrapper input[type="radio"]:checked + .button, 
.btn-check-wrapper input[type="checkbox"]:checked + .button{
    color: white;
    border-color: var(--c-accent-blue);
    background-color: var(--c-accent-blue);
}

.btn-check-wrapper input[type="radio"]:checked + .button.danger, 
.btn-check-wrapper input[type="checkbox"]:checked + .button.danger{
    color: white;
    border-color: var(--c-accent-red);
    background-color: var(--c-accent-red);
}

.btn-check-wrapper input[type="radio"]:checked + .button.dark, 
.btn-check-wrapper input[type="checkbox"]:checked + .button.dark{
    color: white;
    border-color: var(--c-font-500);
    background-color: var(--c-font-500);
}

/* --- ESTILOS PARA RADIO BUTTONS (PARADAS DE BUS) --- */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Django suele renderizar los radios dentro de <li> o <div> */
.radio-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.radio-options li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ajuste específico para hijos input corto */
.input-short {
    max-width: 80px;
    text-align: center;
}

#guest-info{
    min-height: 0;
}

*[class$="__wrapper"]{
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;

    transition: 1s ease grid-template-rows;
}

*[class$="__wrapper"].open{
    grid-template-rows: 1fr;
}

/* Animación simple para aparecer secciones */
.fade-in-section {
    animation: fadeIn 0.5s ease-in-out;
}

#guest-info{
    opacity: 0;
}

.open #guest-info {
    animation: fadeIn .5s ease .25s 1 normal both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}