:root {
    --color-primary: #ffffff;
    --color-secondary: #d63131;
    --color-background: #0c0c0c;
    --color-muted: #b5b5b5;
    --font-all: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-all);
    color: var(--color-primary);
    background: var(--color-background);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* PÁGINA PRINCIPAL */

.contact-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.8rem, 2vh, 1.5rem);

    min-height: 100svh;
    padding: 2rem 5%;

    background:
        linear-gradient(
            rgba(0,0,0,.75),
            rgba(0,0,0,.9)
        ),
        url('/imgs-local/background-mobil-01.jpg');

    background-size: cover;
    background-position: center;
}

/* VOLVER */

.btn-back {
    position: absolute;
    top: 1.5rem;
    left: 2rem;

    display: flex;
    align-items: center;
    gap: 0.7rem;

    font-size: 0.85rem;
    color: var(--color-muted);
}

.btn-back:hover {
    color: var(--color-secondary);
}

/* CABECERA */

.contact-header {
    text-align: center;
}

.brand-logo {
    width: clamp(70px, 11vh, 120px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
}

.contact-header h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.contact-header h1 span {
    color: var(--color-secondary);
}

.contact-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

/* CONTENEDOR DE TARJETAS */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;

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

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.5rem;
    border: 1px solid #ffffff20;
    border-radius: 20px;

    background: rgba(15,15,15,.92);
    backdrop-filter: blur(12px);
}

/* CABECERAS DE TARJETAS */

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 52px;
    height: 52px;
    border-radius: 16px;

    background: #d6313125;
    color: var(--color-secondary);
    font-size: 1.6rem;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.card-header p {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0.3rem 0 0;
}

/* MAPA */

.location-map {
    display: block;
    width: 100%;
    height: clamp(150px, 24vh, 270px);
    border: none;
    border-radius: 14px;
}

.btn-maps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    align-self: center;
    padding: 0.8rem 1.5rem;

    border-radius: 30px;
    background: var(--color-secondary);

    font-size: 0.9rem;
    font-weight: 600;
}

.btn-maps:hover {
    background: #b92323;
}

/* CONTACTO */

.contact-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0.8rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 0.8rem;
    background: #171717;
    border: 1px solid #ffffff08;
    border-radius: 14px;

    transition: background 0.2s, border-color 0.2s;
}

.contact-option:hover {
    background: #222222;
    border-color: var(--color-secondary);
}

.option-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 48px;
    height: 48px;
    border-radius: 14px;

    background: #d6313120;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.option-info {
    flex: 1;
    min-width: 0;
}

.option-info h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.option-info p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.option-action {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-secondary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* HORARIOS */

.opening-hours {
    text-align: center;
}

.opening-hours h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.opening-hours h2 i {
    color: var(--color-secondary);
    margin-right: 0.4rem;
}

.opening-hours p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.hours-times {
    display: inline-flex;
    align-items: center;

    border: 1px solid #d6313170;
    border-radius: 30px;
    padding: 0.5rem 0;

    font-size: 0.9rem;
    font-weight: 500;
}

.hours-times span {
    padding: 0 1.3rem;
}

.hours-times span:first-child {
    border-right: 1px solid var(--color-secondary);
}

.opening-hours small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.75rem;
}:root {
    --color-primary: #ffffff;
    --color-secondary: #d63131;
    --color-background: #0c0c0c;
    --color-muted: #b5b5b5;
    --font-all: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-all);
    color: var(--color-primary);
    background: var(--color-background);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* PÁGINA PRINCIPAL */

.contact-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.8rem, 2vh, 1.5rem);

    min-height: 100svh;
    padding: 2rem 5%;

    background:
        linear-gradient(
            rgba(0,0,0,.75),
            rgba(0,0,0,.9)
        ),
        url('/imgs-local/background-mobil-01.jpg');

    background-size: cover;
    background-position: center;
}

/* VOLVER */

.btn-back {
    position: absolute;
    top: 1.5rem;
    left: 2rem;

    display: flex;
    align-items: center;
    gap: 0.7rem;

    font-size: 0.85rem;
    color: var(--color-muted);
}

.btn-back:hover {
    color: var(--color-secondary);
}

/* CABECERA */

.contact-header {
    text-align: center;
}

.brand-logo {
    width: clamp(70px, 11vh, 120px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
}

.contact-header h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.contact-header h1 span {
    color: var(--color-secondary);
}

.contact-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

/* CONTENEDOR DE TARJETAS */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;

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

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.5rem;
    border: 1px solid #ffffff20;
    border-radius: 20px;

    background: rgba(15,15,15,.92);
    backdrop-filter: blur(12px);
}

/* CABECERAS DE TARJETAS */

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 52px;
    height: 52px;
    border-radius: 16px;

    background: #d6313125;
    color: var(--color-secondary);
    font-size: 1.6rem;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.card-header p {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0.3rem 0 0;
}

/* MAPA */

.location-map {
    display: block;
    width: 100%;
    height: clamp(150px, 24vh, 270px);
    border: none;
    border-radius: 14px;
}

.btn-maps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    align-self: center;
    padding: 0.8rem 1.5rem;

    border-radius: 30px;
    background: var(--color-secondary);

    font-size: 0.9rem;
    font-weight: 600;
}

.btn-maps:hover {
    background: #b92323;
}

/* CONTACTO */

.contact-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0.8rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 0.8rem;
    background: #171717;
    border: 1px solid #ffffff08;
    border-radius: 14px;

    transition: background 0.2s, border-color 0.2s;
}

.contact-option:hover {
    background: #222222;
    border-color: var(--color-secondary);
}

.option-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 48px;
    height: 48px;
    border-radius: 14px;

    background: #d6313120;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.option-info {
    flex: 1;
    min-width: 0;
}

.option-info h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.option-info p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.option-action {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-secondary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* HORARIOS */

.opening-hours {
    text-align: center;
}

.opening-hours h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.opening-hours h2 i {
    color: var(--color-secondary);
    margin-right: 0.4rem;
}

.opening-hours p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.hours-times {
    display: inline-flex;
    align-items: center;

    border: 1px solid #d6313170;
    border-radius: 30px;
    padding: 0.5rem 0;

    font-size: 0.9rem;
    font-weight: 500;
}

.hours-times span {
    padding: 0 1.3rem;
}

.hours-times span:first-child {
    border-right: 1px solid var(--color-secondary);
}

.opening-hours small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.75rem;
}

/* ESTADO DEL LOCAL */

.estado-local {
    --estado-color: #b5b5b5;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0.8rem 1.2rem;

    border: 1px solid var(--estado-color);
    border-radius: 14px;

    background: color-mix(
        in srgb,
        var(--estado-color) 10%,
        #101010
    );

    box-sizing: border-box;
}

.estado-local > i {
    color: var(--estado-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.estado-info strong {
    color: var(--estado-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.estado-info p {
    color: #dddddd;
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
}

/* DIFERENTES ESTADOS */

.estado-local.abierto {
    --estado-color: #4ade80;
}

.estado-local.abre-pronto {
    --estado-color: #facc15;
}

.estado-local.cierra-pronto {
    --estado-color: #fb923c;
}

.estado-local.cerrado {
    --estado-color: #f87171;
}

.estado-local.cierre-especial {
    --estado-color: #f87171;
}

.estado-local.sin-conexion {
    --estado-color: #b5b5b5;
}

/* PRÓXIMAS EXCEPCIONES */

.proximas-excepciones[hidden] {
    display: none !important;
}

.proximas-excepciones {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;

    background: #141414;
    border: 1px solid #ffffff15;
    border-radius: 14px;
}

.proximas-excepciones h2 {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.proximas-excepciones h2 i {
    color: #facc15;
    margin-right: 0.4rem;
}

#lista-proximas-excepciones {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.aviso-excepcion {
    padding: 0.8rem 1rem;
    background: #ffffff05;
    border-left: 3px solid #facc15;
    border-radius: 8px;
}

.aviso-excepcion.cierre {
    border-left-color: #f87171;
}

.aviso-excepcion.apertura {
    border-left-color: #4ade80;
}

.aviso-excepcion strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.aviso-excepcion p {
    font-size: 0.8rem;
    color: #b5b5b5;
    margin: 0.3rem 0 0;
}

.aviso-excepcion.cierre .aviso-tipo {
    color: #f87171;
}

.aviso-excepcion.apertura .aviso-tipo {
    color: #4ade80;
}

@media (max-width: 768px) {

    .contact-page {
        justify-content: flex-start;
        padding: 1rem;
        gap: 0.8rem;
    }

    /* VOLVER */

    .btn-back {
        top: 1rem;
        left: 1rem;
        width: 38px;
        height: 38px;

        justify-content: center;
        border: 1px solid #ffffff25;
        border-radius: 50%;
        background: #151515;
    }

    .btn-back span {
        display: none;
    }

    /* CABECERA */

    .brand-logo {
        width: 80px;
    }

    .contact-header h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        margin: 0.5rem 0;
    }

    .contact-header p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin: 0;
    }

    /* TARJETAS */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-card {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 16px;
    }

    .card-header {
        gap: 0.7rem;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .card-header h2 {
        font-size: 1rem;
    }

    .card-header p {
        font-size: 0.75rem;
    }

    /* MAPA */

    .location-map {
        height: 150px;
        border-radius: 12px;
    }

    .btn-maps {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.7rem 0.5rem;
    }

    /* CONTACTO */

    .contact-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .contact-option {
        flex-direction: column;
        justify-content: center;
        text-align: center;

        background: transparent;
        border: none;
        padding: 0.4rem 0;
        gap: 0.5rem;
    }

    .option-icon {
        width: 48px;
        height: 48px;
    }

    .option-info,
    .option-action {
        display: none;
    }

    .contact-option::after {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .contact-option:nth-child(1)::after {
        content: 'Llamar';
    }

    .contact-option:nth-child(2)::after {
        content: 'WhatsApp';
    }

    .contact-option:nth-child(3)::after {
        content: 'Email';
    }

    /* HORARIOS */

    .opening-hours {
        padding: 0.5rem 0;
    }

    .opening-hours h2 {
        font-size: 1rem;
    }

    .opening-hours p {
        font-size: 0.8rem;
    }

    .hours-times {
        font-size: 0.8rem;
    }

    .hours-times span {
        padding: 0 0.8rem;
    }

    .opening-hours small {
        font-size: 0.7rem;
    }

    /* ESTADO DEL LOCAL EN MÓVIL */

    .estado-local {
        justify-content: flex-start;
        padding: 0.7rem 0.9rem;
        gap: 0.8rem;
        border-radius: 12px;
    }

    .estado-local > i {
        font-size: 1.3rem;
    }

    .estado-info strong {
        font-size: 0.85rem;
    }

    .estado-info p {
        font-size: 0.7rem;
    }

}