/* Pantalla de acceso y validación de invitaciones. */
/* Ocultar invitación hasta validar la clave */
body:not(.lizberto-unlocked) .main-header,
body:not(.lizberto-unlocked) main,
body:not(.lizberto-unlocked) .main-footer {
    display: none !important;
}

body:not(.lizberto-unlocked) {
    min-height: 100vh;
}

/* Pantalla de acceso */
#lizberto-gate {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    box-sizing: border-box;

    background-image:
        linear-gradient(
            rgba(248, 245, 240, 0.68),
            rgba(248, 245, 240, 0.68)
        ),
        url("../images/puerta-acceso.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #514239;
    font-family: var(--font-body);
}

body.lizberto-unlocked #lizberto-gate {
    display: none;
}

/* Tarjeta central */
.lizberto-gate-card {
    width: min(100%, 440px);
    padding: 44px 34px;
    box-sizing: border-box;
    text-align: center;

    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(232, 221, 210, 0.8);
    border-radius: 16px;

    box-shadow: 0 12px 45px rgba(55, 45, 35, 0.12);
}

/* Nombres de los novios */
.lizberto-gate-card h1 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-dress-dark);
    margin: 12px 0 20px;
}

/* Textos */
.lizberto-gate-card p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.8;
    color: #514239;
}

/* Etiqueta de la clave */
.lizberto-gate-card label {
    display: block;
    text-align: left;
    margin: 24px 0 8px;

    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #514239;
}

/* Campo de clave */
.lizberto-gate-card input {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;

    border: 1px solid #cbb9aa;
    border-radius: 8px;
    background: #fffdf9;

    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dress-dark);
    text-align: center;
    letter-spacing: 0.08em;
}

.lizberto-gate-card input:focus {
    outline: 2px solid #8A8E69;
    outline-offset: 2px;
}

/* Botones */
/* Botón Ver mi invitación */
#lizberto-gate-submit {
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    padding: 13px 20px;

    background: #8A8E69;
    color: white;

    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
}

.lizberto-gate-card button {
    width: 100%;
    margin-top: 16px;
}

.lizberto-gate-card button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Mensajes de validación */
#lizberto-gate-message {
    min-height: 1.5em;
    color: #a13e38;
    font-size: 0.85rem;
}

/* Botón para cambiar invitación */
/* Botón discreto para cambiar invitación */
#lizberto-switch {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto;
    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;

    background: rgba(20, 20, 20, 0.30);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    color: #F6EFE5;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;

    cursor: pointer;

    transition: background 0.3s ease;
}

#lizberto-switch::before {
    content: "↻";
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

#lizberto-switch:hover {
    background: rgba(20, 20, 20, 0.55);
}

#lizberto-switch:focus-visible {
    outline: 2px solid #F6EFE5;
    outline-offset: 3px;
}

body.lizberto-unlocked #lizberto-switch {
    display: none !important;
}

[data-ceremony-event][hidden] {
    display: none !important;
}

/* Adaptación móvil */
@media (max-width: 600px) {
    #lizberto-gate {
        padding: 24px 18px;
        background-position: center;
    }

    .lizberto-gate-card {
        padding: 34px 24px;
    }
    .lizberto-gate-logo {
    display: block;
    width: 200px;
    max-width: 85%;
    height: auto;
    margin: 0 auto 24px;

    transform: translateX(7px);
}

@media (max-width: 600px) {
    .lizberto-gate-logo {
        width: 185px;
        margin-bottom: 20px;
    }
}
/* Fecha de la pantalla de acceso */
#lizberto-gate .lizberto-gate-date {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A8E69;

    margin: 0 0 26px;
    line-height: 1.6;
}

#lizberto-gate .lizberto-gate-welcome {
    font-size: 0.85rem;
    line-height: 1.7;
}

}
