/* Pantalla pública de turnos.
   Misma base que el sitio: style-base.css (patron2, ShakyHand, café / rosa / morado / verde)
   y las tarjetas de sacar-turno.css / turno-confirmado.css. */

.turnos-board,
.turnos-board *,
.turnos-board *::before,
.turnos-board *::after {
    box-sizing: border-box;
}

body.turnos-board {
    margin: 0;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
    background-image: url(../img/patron2.png);
    background-repeat: repeat;
    background-size: 150px;
}

.turnos-display-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Barra como .ctn-header del sitio: café, logo, sombra. */
.turnos-board header.turnos-header {
    position: relative;
    top: auto;
    width: 100%;
    z-index: 2;
    background-color: var(--cafe);
    box-shadow: 0 0 20px black;
    border-bottom: 4px solid var(--verde);
}

.header-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.board-logo {
    height: 70px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.text-logo {
    display: none;
    font-family: var(--FF), Arial, sans-serif;
    font-size: 22px;
    color: var(--verde);
    letter-spacing: 1px;
    background: white;
    padding: 8px 10px;
    border-radius: 8px;
}

.titles {
    min-width: 0;
}

.titles h1 {
    margin: 0;
    font-family: var(--FF), Arial, sans-serif;
    font-size: 1.5rem;
    font-size: clamp(1.35rem, 5vw, 2rem);
    color: var(--verde);
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
    overflow-wrap: anywhere;
}

.titles h2 {
    margin: 4px 0 0;
    font-family: 'ShakyHandL', Arial, sans-serif;
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.time-section {
    min-width: 0;
    max-width: 100%;
    color: white;
}

.current-time {
    font-family: var(--FF), Arial, sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: white;
    letter-spacing: 1px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.current-date {
    margin-top: 4px;
    font-family: 'ShakyHandL', Arial, sans-serif;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 1px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.turnos-main {
    flex: 1;
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    width: 100%;
    padding: 16px 16px 92px;
}

.turno-unificado-container {
    width: 100%;
    max-width: 640px;
}

/* Tarjeta blanca del sitio (sacar-turno / turno confirmado). */
.turno-actual,
.sin-turnos-mensaje {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 22px 16px 26px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--morado);
    animation: aparecer 0.6s ease-out;
}

.turno-actual.venta {
    border-color: var(--rosa);
}

.turno-actual.alquiler {
    border-color: var(--verde);
}

.turno-actual.devolucion {
    border-color: var(--morado);
}

.turno-etiqueta {
    margin: 0 0 8px;
    font-family: 'ShakyHandL', Arial, sans-serif;
    font-size: 16px;
    color: #666;
    letter-spacing: 1px;
}

.turno-etiqueta + .turno-asesora {
    margin-top: 0;
}

.turno-numero-grande {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 10px 8px;
    border-radius: 20px;
    font-family: var(--FF), Arial, sans-serif;
    font-size: 4.5rem;
    font-size: clamp(4rem, 22vw, 6.5rem);
    font-weight: bold;
    line-height: 1;
    letter-spacing: 2px;
    color: white;
    background: var(--morado);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

.turno-numero-grande.venta {
    background: var(--rosa);
}

.turno-numero-grande.alquiler {
    background: var(--verde);
    color: var(--cafe);
    text-shadow: none;
}

.turno-numero-grande.devolucion {
    background: var(--morado);
}

.turno-tipo-info {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 8px 16px;
    border-radius: 15px;
    font-family: var(--FF), Arial, sans-serif;
    font-size: 1.35rem;
    font-size: clamp(1.15rem, 4.2vw, 1.6rem);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.2;
    color: white;
    background: var(--morado);
    overflow-wrap: anywhere;
}

.turno-actual.venta .turno-tipo-info {
    background: var(--rosa);
    color: white;
}

.turno-actual.alquiler .turno-tipo-info {
    background: var(--verde);
    color: var(--cafe);
}

.turno-actual.devolucion .turno-tipo-info {
    background: var(--morado);
    color: white;
}

.turno-asesora {
    margin: 8px 0 0;
    padding: 14px 16px;
    border-radius: 15px;
    border: 2px solid var(--verde);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--FF), Arial, sans-serif;
    font-size: 1.7rem;
    font-size: clamp(1.45rem, 5.2vw, 2.15rem);
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.15;
    color: var(--cafe);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.mensaje-principal {
    margin: 0;
    font-family: var(--FF), Arial, sans-serif;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--morado);
    overflow-wrap: anywhere;
}

.mensaje-secundario {
    margin: 14px 0 0;
    font-family: 'ShakyHandL', Arial, sans-serif;
    font-size: clamp(1rem, 3.6vw, 1.35rem);
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #666;
    overflow-wrap: anywhere;
}

@keyframes aparecer {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 650px) {
    body.turnos-board {
        background-size: 155px;
    }

    .turnos-board header.turnos-header {
        position: relative;
    }

    .header-content {
        padding: 14px 24px;
    }

    .board-logo {
        height: 80px;
        max-width: 130px;
    }
}

@media (min-width: 800px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .logo-section {
        justify-content: flex-start;
        flex: 1 1 auto;
    }

    .time-section {
        flex: 0 1 46%;
        text-align: right;
    }

    .turnos-main {
        padding: 28px 28px 96px;
    }

    .turno-actual,
    .sin-turnos-mensaje {
        padding: 36px 32px 40px;
    }

    .turno-numero-grande {
        font-size: clamp(5.5rem, 12vw, 8rem);
        padding: 16px 12px;
    }

    .turno-asesora {
        font-size: clamp(1.8rem, 3.5vw, 2.6rem);
        padding: 16px 20px;
    }
}

@media (min-width: 1100px) {
    body.turnos-board {
        background-size: 160px;
    }

    .turnos-board header.turnos-header {
        position: relative;
    }

    .header-content {
        padding: 16px 36px;
    }

    .board-logo {
        height: 90px;
        max-width: 150px;
    }

    .titles h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .titles h2 {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .current-time {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }

    .current-date {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    .turno-unificado-container {
        max-width: 920px;
    }

    .turnos-main {
        padding: 40px 48px 80px;
    }

    .turno-actual,
    .sin-turnos-mensaje {
        padding: 48px 48px 52px;
        border-radius: 25px;
    }

    .turno-etiqueta {
        font-size: 20px;
    }

    .turno-numero-grande {
        font-size: clamp(8rem, 14vw, 11.5rem);
        padding: 18px 16px;
        margin-bottom: 22px;
        border-radius: 25px;
    }

    .turno-tipo-info {
        font-size: 2rem;
        padding: 12px 22px;
        margin-bottom: 26px;
    }

    .turno-asesora {
        font-size: clamp(2.2rem, 4vw, 3.25rem);
        padding: 18px 24px;
        letter-spacing: 2px;
    }

    .mensaje-principal {
        font-size: 3.25rem;
    }

    .mensaje-secundario {
        font-size: 1.6rem;
    }
}

/* Aviso a pantalla completa cuando llaman un turno distinto. */
.turno-flash {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 108px;
    background-color: var(--cafe);
    background-image: url(../img/patron2.png);
    background-repeat: repeat;
    background-size: 150px;
}

.turno-flash[hidden] {
    display: none !important;
}

.turno-flash-card {
    width: min(1100px, 100%);
}

.turno-flash .turno-actual {
    padding: 28px 18px 32px;
    animation: aparecer 0.35s ease-out;
}

.turno-flash .turno-numero-grande {
    font-size: clamp(5.5rem, 24vw, 13rem);
    margin-bottom: 18px;
    padding: 12px 8px;
}

.turno-flash .turno-tipo-info {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    margin-bottom: 22px;
}

.turno-flash .turno-asesora {
    font-size: clamp(1.8rem, 5vw, 3.4rem);
}

.boton-sonido {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 18px;
    border: 3px solid white;
    border-radius: 999px;
    background: var(--morado);
    color: white;
    font-family: var(--FF), Arial, sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.boton-sonido-icono {
    font-size: 1.6rem;
    line-height: 1;
}

.boton-sonido.activo {
    background: var(--verde);
    color: var(--cafe);
}

.boton-sonido.pendiente {
    box-shadow: 0 0 0 4px var(--verde), 0 8px 24px rgba(0, 0, 0, 0.35);
}

#audio-turno-precargado {
    display: none;
}

@media (min-width: 800px) {
    .turno-flash {
        padding: 40px 40px 120px;
        background-size: 160px;
    }

    .turno-flash .turno-actual {
        padding: 48px 40px 56px;
    }

    .boton-sonido {
        right: 28px;
        bottom: 28px;
        min-height: 72px;
        padding: 12px 22px;
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .turno-actual,
    .sin-turnos-mensaje,
    .turno-flash .turno-actual {
        animation: none;
    }
}
