:root {
    --gold: #c6a674;
    --background: #101010;
    --card: #1c1c1c;
    --text: #f5f0e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100dvh;
}

.container {
    max-width: 460px;
    margin: auto;
    padding: 20px;
}

.languages {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.languages button {
    background: transparent;
    border: 1px solid #66543a;
    border-radius: 6px;
    color: var(--gold);
    padding: 8px 12px;
    cursor: pointer;
}

.languages button.active {
    background: var(--gold);
    color: #101010;
}

header {
    text-align: center;
    margin: 15px 0 25px;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

header p {
    color: #c6bba7;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

.review {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg,#d9bc8b,#ac8954);
    color: #15110b;
    border-radius: 15px;
    padding: 20px 10px;
    margin-bottom: 18px;
}

.stars {
    font-size: 29px;
    letter-spacing: 5px;
}

.review strong {
    font-size: 18px;
}

.review small {
    font-size: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
}

.tile {
    background: var(--card);
    border: 1px solid #66543a;
    border-radius: 12px;
    min-height: 100px;
    padding: 15px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 12px;
    transition: transform .15s, background .15s;
}

.tile svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.tile:active, .review:active {
    transform: scale(.96);
}

.tile:hover {
    background: #28231c;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #55452f;
    text-align: center;
    color: #b9a78a;
    font-size: 12px;
}

footer small {
    color: #837b70;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Dynamic administration settings */

[hidden] {
    display: none !important;
}

body {
    background: var(--background);
    color: var(--text);
}

.tile {
    background: var(--card);
    color: var(--text);
    border-color: color-mix(
        in srgb, var(--gold) 30%, transparent
    );
}

.tile svg {
    color: var(--gold);
}

.review {
    background: linear-gradient(
        135deg,
        var(--gold),
        color-mix(in srgb, var(--gold) 75%, black)
    );
}

.languages button {
    border-color: var(--gold);
    color: var(--gold);
}

.languages button.active {
    background: var(--gold);
    color: var(--background);
}

footer {
    color: var(--text);
}


/* Ventana publica de horarios */

#hours-dialog {
    background: var(--background, #101010);
    color: var(--text, #f5f0e8);
    border: 1px solid var(--gold, #c6a674);
    border-radius: 22px;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 85dvh;
    padding: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

#hours-dialog::backdrop {
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(5px);
}

.hours-modal {
    position: relative;
    padding: 25px 20px;
    text-align: center;
}

.hours-clock {
    width: 48px;
    height: 48px;
    color: var(--gold, #c6a674);
    margin: 10px auto;
}

#hours-title {
    color: var(--gold, #c6a674);
    font-size: 1.5rem;
    margin: 10px 0 16px;
}

.hours-close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 0;
    background: transparent;
    color: var(--gold, #c6a674);
    font-size: 30px;
    cursor: pointer;
}

#hours-status {
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 5px;
}

#hours-status.is-open {
    color: #62b77b;
}

#hours-status.is-closed {
    color: #e57373;
}

#hours-next,
#hours-special {
    font-size: .85rem;
    opacity: .8;
    margin: 10px 0 18px;
}

.hours-public-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 10px;
    border-bottom: 1px solid rgba(198,166,116,.12);
    font-size: .9rem;
}

.hours-public-row.today {
    background: var(--card, #1c1c1c);
    color: var(--gold, #c6a674);
    border-radius: 8px;
    font-weight: 600;
}

.hours-public-times {
    text-align: right;
    white-space: pre-line;
}

#hours-close {
    width: 100%;
    border: 1px solid var(--gold, #c6a674);
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    background: transparent;
    color: var(--gold, #c6a674);
    font-size: 1rem;
    cursor: pointer;
}



/* =====================================
   NFC COMPACT DESIGN
   ===================================== */

/* Eliminar mensaje superior duplicado */
header [data-text="welcome"] {
    display: none !important;
}

/* Boton de resenas compacto */
#reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    min-height: 0;
    padding: 11px 9px;
    margin-top: 8px;
    margin-bottom: 12px;
    border-radius: 12px;
    line-height: 1.2;
}

#reviews .stars {
    font-size: 15px;
    margin: 0;
    letter-spacing: 1px;
}

#reviews strong {
    font-size: 15px;
    margin: 0;
}

#reviews small {
    font-size: 10px;
    margin: 0;
}

/* Pantallas de movil */
@media (max-width: 600px) {

    main.container {
        padding-top: 8px;
        padding-bottom: 12px;
    }

    main.container header {
        margin-top: 0;
        margin-bottom: 5px;
        padding-top: 0;
        padding-bottom: 0;
    }

    main.container header img.logo {
        width: 92px;
        height: 92px;
        object-fit: contain;
        margin-top: 0;
        margin-bottom: 3px;
    }

    .languages {
        margin-top: 0;
        margin-bottom: 5px;
    }

    #links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    #links > a {
        min-width: 0;
        min-height: 76px;
        height: auto;
        aspect-ratio: auto;
        padding: 9px 3px;
        gap: 5px;
        font-size: 12px;
        line-height: 1.2;
        border-radius: 12px;
    }

    #links > a svg {
        width: 27px;
        height: 27px;
        flex-shrink: 0;
    }

    main.container footer {
        margin-top: 13px;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 12px;
    }

    main.container footer p {
        margin: 4px 0;
    }

}

/* Moviles con poca altura */
@media (max-width: 600px) and (max-height: 730px) {

    main.container header img.logo {
        width: 72px;
        height: 72px;
    }

    #links {
        gap: 6px;
    }

    #links > a {
        min-height: 66px;
        padding: 6px 3px;
    }

    #links > a svg {
        width: 23px;
        height: 23px;
    }

    #reviews {
        padding: 9px 6px;
        margin-bottom: 8px;
    }

}

/* =====================================
   PANTALLA DE BIENVENIDA
   ===================================== */

#nfc-intro[hidden] {
    display: none !important;
}

#nfc-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--background, #101010);
    color: var(--text, #f5f0e8);
    padding: 30px;
    text-align: center;
    opacity: 1;
    transition: opacity .25s ease;
}

#nfc-intro.nfc-intro-out {
    opacity: 0;
    pointer-events: none;
}

.nfc-intro-content {
    width: 100%;
    max-width: 360px;
    animation: nfc-intro-appear .6s ease both;
}

.nfc-intro-logo {
    display: block;
    width: 145px;
    height: 145px;
    object-fit: contain;
    margin: 0 auto 25px;
}

.nfc-intro-line {
    width: 65px;
    height: 1px;
    background: var(--gold, #c6a674);
    margin: 0 auto 25px;
}

#nfc-intro-title {
    font-size: clamp(22px, 5.5vw, 29px);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 18px;
}

.nfc-intro-stars {
    color: var(--gold, #c6a674);
    font-size: 23px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

#nfc-intro-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 290px;
    opacity: .8;
}

.nfc-intro-progress {
    width: 150px;
    height: 2px;
    background: rgba(198,166,116,.2);
    border-radius: 3px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.nfc-intro-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gold, #c6a674);
    transform-origin: left;
    animation: nfc-intro-progress 1.75s linear both;
}

#nfc-intro-skip {
    background: transparent;
    border: 0;
    color: var(--gold, #c6a674);
    font-size: 12px;
    cursor: pointer;
    padding: 10px 20px;
}

@keyframes nfc-intro-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nfc-intro-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {

    #nfc-intro,
    .nfc-intro-content,
    .nfc-intro-progress span {
        animation: none;
        transition: none;
    }

}


/* NFC FINAL RESPONSIVE START */

/* BIENVENIDA */

.nfc-intro-logo {
    width: min(230px, 62vw, 35vh) !important;
    height: min(230px, 62vw, 35vh) !important;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    margin: 0 auto 22px;
}

.nfc-intro-progress span {
    animation-duration: 3.75s;
}

#nfc-intro-title {
    font-size: clamp(22px, 6vw, 30px);
}

#nfc-intro-description {
    font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
    .nfc-intro-progress span {
        animation: none;
    }
}

/* LOGOTIPO PRINCIPAL */

main.container header img.logo {
    width: 150px;
    height: 150px;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
}

/* BOTON RESEÑAS */

#reviews {
    padding: 9px 7px;
    min-height: 0;
    margin: 3px 0 8px;
    gap: 4px 8px;
}

#reviews .stars {
    font-size: 14px;
    line-height: 1.1;
}

#reviews strong {
    font-size: 14px;
    line-height: 1.2;
}

#reviews small {
    font-size: 10px;
}

/* OCULTAR AGRADECIMIENTO DUPLICADO */

header [data-text="welcome"] {
    display: none !important;
}

/* ADAPTACION A MOVILES */

@media (max-width: 600px) {

    main.container {

        --mobile-logo: clamp(88px, 20vh, 150px);
        --mobile-tile: clamp(60px, 11vh, 94px);
        --mobile-gap: clamp(5px, 1vh, 10px);

        --mobile-logo: clamp(88px, 20svh, 150px);
        --mobile-tile: clamp(60px, 11svh, 94px);
        --mobile-gap: clamp(5px, 1svh, 10px);

        box-sizing: border-box;
        padding: 5px 12px 8px;
        margin: 0 auto;
        width: 100%;

        display: flex;
        flex-direction: column;
        gap: 0;

        min-height: 0;
    }

    main.container .languages {
        margin-top: 0;
        margin-bottom: 3px;
        padding: 0;
    }

    main.container header {
        margin: 0 0 5px;
        padding: 0;
    }

    main.container header img.logo {

        width: var(--mobile-logo) !important;
        height: var(--mobile-logo) !important;

        display: block;
        object-fit: contain;
        margin: 0 auto;
    }

    #links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--mobile-gap);
        margin: 0;
        padding: 0;
    }

    #links > a {

        box-sizing: border-box;
        min-width: 0;
        min-height: var(--mobile-tile);
        height: auto;
        aspect-ratio: auto;

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

        padding: 7px 3px;
        margin: 0;
        gap: 5px;

        font-size: 12px;
        line-height: 1.15;
        text-align: center;
        border-radius: 12px;
    }

    #links > a svg {
        width: clamp(23px, 4vh, 32px);
        height: clamp(23px, 4vh, 32px);
        flex-shrink: 0;
        margin: 0;
    }

    main.container footer {
        margin: 9px 0 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.3;
    }

    main.container footer p {
        margin: 3px 0;
    }

    main.container footer small {
        font-size: 10px;
    }
}

/* PANTALLAS ESPECIALMENTE PEQUEÑAS */

@media (max-width: 600px) and (max-height: 650px) {

    main.container {
        --mobile-logo: 88px;
        --mobile-tile: 60px;
        --mobile-gap: 5px;
        padding-top: 3px;
    }

    #links > a {
        padding: 5px 3px;
        gap: 3px;
        font-size: 11px;
    }

    #links > a svg {
        width: 23px;
        height: 23px;
    }

    #reviews {
        padding: 7px 5px;
        margin-bottom: 6px;
    }

    main.container footer {
        margin-top: 6px;
    }
}

/* NFC FINAL RESPONSIVE END */

