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

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

    overflow-x: hidden;
}

@media screen and (max-width: 800px) {
    .mobile-half-screen{
        height: auto;
        padding: 200px 0 0;
    }
    
    .mobile-half-screen:last-child{
        padding-bottom: 200px;
    }
}

.snap-container {
    overflow-y: auto;
}

.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: 1200px) {
    .top-right, .bottom-right, .top-left, .bottom-left{
        display: none;
    }
}

.menu{
    position: sticky;
    inset: 0 0 auto;

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

    padding: 1rem;

    gap: 1rem;

    z-index: 3;
}

.landing-menu{
    position: fixed;
}

.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;
}

.page{
    margin: 2rem 0;
}

.page-container{
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
}

.page-container .page{
    flex-grow: 1;

    display: flex;
    flex-direction: column;
}

.page .container{
    flex-grow: 1;
}

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

    .page{
        margin-top: 0;
    }
}

@media screen and (max-width: 800px) {
    .hide-mobile{
        display: none;
    }
}


.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: 90dvh; */
    height: 100%;
}

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

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

p{
    font-size: clamp(0.8125rem, 0.9vw, 1rem);
}

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

.display{
    white-space: nowrap;
}

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

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

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

.note, .button, .tab{
    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, .ta-center .tab, .ta-center p{
    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, .tab{
    position: relative;
    text-align: center;

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

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

.tab{
    flex-grow: 1;
    flex-shrink: 0;
    white-space: nowrap;

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

    --button-hover: var(--c-font-100);
}

.tab-container{
    display: grid;
    grid-template-columns: repeat(var(--tab-count, 2), 1fr);
    gap: min(2%, 1rem);

    /* width: 100%; */
    min-width: 50%;
    margin-bottom: 1rem;
}

.tab-wrapper {
    display: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.tab-wrapper.active {
    display: block;
    opacity: 1;
}

.button, .tab.active, .tab.active:hover{
    color: white;
    background-color: var(--button-color, var(--c-font-500));
}

.button:hover, .tab: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(400px, 100%), 1fr));
    gap: .5rem;
}

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

.loading__icon{
    width: 1.1rem;
    height: 1.1rem;
    display: none;
    vertical-align: bottom;
    line-height: 0;
    transform-origin: center;
    padding-bottom: 4px;

    animation: spin 0.8s linear infinite;
}

.loading .loading__icon{ display: inline-block; }

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.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;
}

.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;
}

.hero .texts__container{
    margin-bottom: 15%;
}

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

    flex-grow: 1;
}

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

    object-fit: contain;
    object-position: center bottom;
    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{
    position: relative;
    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'],
input[type='password'],
input[type='file'],
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; */
}

.error,
.errorlist {
    margin-top: 0.5rem;
    color: var(--c-accent-red);
    font-size: 0.8rem;
    list-style: none;
    padding-left: 0;
}

.errorlist li + li {
    margin-top: 0.25rem;
}

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

#assistance-form{
    padding-bottom: 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 */
}

.tooltip-wrapper {
    overflow: visible;
}

.tooltip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.75rem);
    transform: translateX(-50%);
    width: 90%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--c-font-500);
    background-color: white;
    color: var(--c-font-500);
    font-family: inherit;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 5;
}

.tooltip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--c-font-500);
    border-bottom: 1px solid var(--c-font-500);
    background-color: white;
    transform: translateX(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-bubble,
.tooltip-wrapper:focus-within .tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

#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;
    opacity: 0;
    transform: translateY(-10px);
}

*[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;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        animation: none;
    }
}

.open .guest-info{
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease .25s, transform .5s ease .25s;
}

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

.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-legal {
    font-size: 0.5rem;
    opacity: 0.7;
    margin-top: .5rem;
}

@media (orientation: landscape) and (max-height: 600px) {
    .texts__container{
        margin-bottom: 0;
    }

    .texts__container .note:first-child{
        display: none;
    }

    .texts__container .line--v{
            display: none;
    }

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

    .couple{
        --couple-width: 100px;
        --couple-margin: 21px;
    }
}

.wedding-menu{
    border-block: var(--border-size, 1px) solid var(--c-font-500);
    padding: 2rem min(5%, 2rem);
    margin-bottom: 3rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.wedding-menu .note{
    padding: .5rem 0;
}

.wedding-menu .line--v{
    height: 1rem;
}

.wedding-menu-wrapper .tab-wrapper.active{
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-height: 700px) {
    .wedding-menu{
        padding: .75rem min(5%, 2rem);
        margin-bottom: 1.5rem;
    }

    .wedding-menu .line--v{
        margin: 0;
    }
}

#add-to-calendar {
    display: none;
}

.timesheet{
    width: 90%;
}

.timesheet .note{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(500px, 100%);
}

.timesheet .note + .note{
    margin-top: 1rem;
}

.timesheet__line{
    display: block;
    flex-grow: 1;
    border-bottom: var(--border-size) solid var(--c-font-500);
}
