/* =====================================================
   PORTADA - TORTILLAS DEL ARRIERO
===================================================== */

:root {
    color-scheme: dark;
    --fondo: #0e1210;
    --superficie: #171c19;
    --superficie-clara: #1d2420;
    --verde: #294f3f;
    --verde-claro: #8eb09f;
    --amarillo: #ffc107;
    --amarillo-hover: #ffd044;
    --texto: #f8f5ec;
    --texto-suave: #b8bdb9;
    --borde: rgba(255, 255, 255, 0.11);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fondo);
}

body.inicio {
    min-height: 100vh;
    color: var(--texto);
    background:
        radial-gradient(circle at 8% 12%, rgba(41, 79, 63, 0.38), transparent 30rem),
        radial-gradient(circle at 92% 90%, rgba(255, 193, 7, 0.08), transparent 28rem),
        var(--fondo);
    padding: clamp(16px, 3vw, 42px);
}

a {
    color: inherit;
}

.inicio-wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.inicio-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    min-height: calc(100vh - clamp(32px, 6vw, 84px));
    overflow: hidden;
    background: rgba(23, 28, 25, 0.96);
    border: 1px solid var(--borde);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.inicio-presentacion {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 640px;
    padding: clamp(46px, 6vw, 86px);
    isolation: isolate;
}

.inicio-presentacion::before,
.inicio-presentacion::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.inicio-presentacion::before {
    width: 370px;
    height: 370px;
    right: -150px;
    bottom: -150px;
    border: 1px solid rgba(255, 193, 7, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 193, 7, 0.025),
        0 0 0 110px rgba(255, 193, 7, 0.018);
}

.inicio-presentacion::after {
    inset: 0;
    background:
        linear-gradient(135deg, transparent 65%, rgba(255, 193, 7, 0.04)),
        linear-gradient(25deg, transparent 70%, rgba(41, 79, 63, 0.2));
}

.inicio-etiqueta,
.seccion-etiqueta {
    color: var(--verde-claro);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.inicio-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.inicio-etiqueta::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--amarillo);
}

.inicio-card h1 {
    max-width: 600px;
    margin-bottom: 36px;
    color: var(--amarillo);
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.logo {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin-bottom: 32px;
}

.inicio-instruccion {
    max-width: 440px;
    margin-bottom: 34px;
    color: #e5e7e5;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
}

.btn-ver-carta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 390px);
    min-height: 60px;
    padding: 16px 20px 16px 24px;
    color: #141714;
    background: var(--amarillo);
    border: 2px solid var(--amarillo);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.12);
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn-ver-carta svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.btn-ver-carta:hover,
.btn-ver-carta:focus-visible {
    background: var(--amarillo-hover);
    border-color: var(--amarillo-hover);
    box-shadow: 0 15px 34px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.inicio-datos {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
    border-left: 1px solid var(--borde);
}

.ubicacion-card,
.redes-card {
    border: 1px solid var(--borde);
    border-radius: 20px;
}

.ubicacion-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 420px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    background:
        linear-gradient(160deg, rgba(41, 79, 63, 0.92), rgba(26, 51, 41, 0.94)),
        var(--verde);
}

.ubicacion-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 250px;
    height: 250px;
    border: 34px solid rgba(255, 255, 255, 0.035);
    border-radius: 46% 54% 67% 33% / 55% 40% 60% 45%;
    transform: rotate(24deg);
    pointer-events: none;
}

.seccion-icono {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: var(--amarillo);
    background: rgba(8, 18, 14, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.seccion-icono svg,
.mapa-icono svg,
.red-icono svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ubicacion-contenido {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ubicacion-card .seccion-etiqueta {
    margin: 4px 0 13px;
    color: #c5d9ce;
}

.ubicacion-card h2,
.redes-card h2 {
    color: var(--texto);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.ubicacion-card address {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1rem;
    font-style: normal;
    line-height: 1.6;
}

.ubicacion-descripcion {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.6;
}

.datos-local {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.datos-local div {
    display: grid;
    gap: 3px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 193, 7, 0.7);
}

.datos-local dt {
    color: #c5d9ce;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.datos-local dd {
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.45;
}

.horario-detalle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.estado-local {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.estado-local::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    background: currentColor;
    border-radius: 50%;
}

.estado-abierto {
    color: #bff5cf;
    background: rgba(26, 128, 68, 0.35);
    border-color: rgba(134, 236, 167, 0.34);
}

.estado-cerrado {
    color: #ffd0d0;
    background: rgba(150, 39, 39, 0.34);
    border-color: rgba(255, 144, 144, 0.3);
}

.estado-por-cerrar {
    color: #ffe49b;
    background: rgba(180, 117, 5, 0.35);
    border-color: rgba(255, 205, 86, 0.34);
}

.estado-por-abrir {
    color: #c7e8ff;
    background: rgba(24, 112, 166, 0.34);
    border-color: rgba(126, 205, 255, 0.32);
}

.datos-local a {
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

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

.btn-mapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 9px;
    color: #fff;
    background: rgba(9, 20, 15, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.btn-mapa > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapa-icono {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.google-maps .mapa-icono {
    color: #ffc107;
}

.waze .mapa-icono {
    color: #5cc8f1;
}

.apple-maps .mapa-icono {
    color: #f5f5f5;
}

.btn-mapa:hover,
.btn-mapa:focus-visible {
    background: rgba(9, 20, 15, 0.58);
    border-color: rgba(255, 193, 7, 0.65);
}

.redes-card {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 3vw, 34px);
    background: var(--superficie-clara);
}

.redes-card .seccion-etiqueta {
    margin-bottom: 10px;
}

.redes-card > div > p:last-child {
    margin-top: 10px;
    color: var(--texto-suave);
    font-size: 0.92rem;
    line-height: 1.5;
}

.redes-enlaces {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.red-social {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 70px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--borde);
    border-radius: 14px;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.red-social:hover,
.red-social:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.red-icono {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.instagram .red-icono {
    color: #fff;
    background: linear-gradient(145deg, #833ab4, #fd1d1d 58%, #fcb045);
}

.facebook .red-icono {
    color: #fff;
    background: #1877f2;
}

.whatsapp {
    grid-column: 1 / -1;
}

.whatsapp .red-icono {
    color: #fff;
    background: #25d366;
}

.facebook .red-icono svg,
.whatsapp .red-icono svg {
    fill: currentColor;
    stroke: none;
}

.red-texto {
    min-width: 0;
}

.red-texto strong,
.red-texto small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.red-texto strong {
    color: #fff;
    font-size: 0.9rem;
}

.red-texto small {
    margin-top: 3px;
    color: var(--texto-suave);
    font-size: 0.7rem;
}

.red-flecha {
    color: var(--texto-suave);
    font-size: 1.1rem;
}

@media (max-width: 960px) {
    .inicio-card {
        grid-template-columns: 1fr;
    }

    .inicio-presentacion {
        min-height: auto;
        align-items: center;
        padding: 64px 42px;
        text-align: center;
    }

    .inicio-etiqueta {
        justify-content: center;
    }

    .inicio-card h1 {
        max-width: 700px;
    }

    .inicio-datos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        border-top: 1px solid var(--borde);
        border-left: 0;
    }

    .ubicacion-card {
        min-height: 100%;
    }

    .redes-enlaces {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body.inicio {
        padding: 12px;
    }

    .inicio-card {
        border-radius: 22px;
    }

    .inicio-presentacion {
        padding: 52px 24px;
    }

    .inicio-card h1 {
        margin-bottom: 28px;
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .logo {
        width: min(100%, 210px);
        margin-bottom: 26px;
    }

    .btn-ver-carta {
        width: 100%;
    }

    .inicio-datos {
        grid-template-columns: 1fr;
    }

    .ubicacion-card {
        min-height: auto;
        padding: 28px 22px;
    }

    .mapas-enlaces {
        grid-template-columns: 1fr;
    }

    .btn-mapa {
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 0.92rem;
    }
}

@media (max-width: 410px) {
    .inicio-presentacion {
        padding: 44px 18px;
    }

    .inicio-instruccion {
        font-size: 1rem;
    }

    .ubicacion-card {
        display: block;
    }

    .seccion-icono {
        margin-bottom: 18px;
    }

    .redes-card {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-ver-carta,
    .btn-mapa,
    .red-social {
        transition: none;
    }
}

/* ==========================================
   PRIVACIDAD Y CONSENTIMIENTO
========================================== */

#banner-consentimiento {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

.consentimiento-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    background: #263c32;
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}

.consentimiento-box p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.consentimiento-box a {
    color: #ffc107;
    text-decoration: underline;
}

.consentimiento-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.consentimiento-botones button {
    min-width: 110px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#aceptar-consentimiento {
    background: #ffc107;
    color: #252525;
}

#rechazar-consentimiento {
    background: #5d625f;
    color: #ffffff;
}

@media (max-width: 576px) {
    #banner-consentimiento {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .consentimiento-box {
        padding: 16px;
    }

    .consentimiento-botones button {
        flex: 1;
    }
}

.subtitulo-principal {
    margin-top: 22px;
    margin-bottom: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 500;
    color: #f2f2f2;
    font-weight: bold;
}
