/* ============================================================================
   LA MILPA · ESTILOS COMENTADOS PARA MODIFICACIONES EN CLASE
   1. Usa Ctrl+F y escribe: BOTÓN CERRAR, BOTÓN HACER PEDIDO, FOOTER,
      HEADER, CULTURA GASTRONÓMICA, VENTANA DETALLE, MODO DÍA o MODO NOCHE.
   2. Cambia color = texto; background = fondo; padding = espacio interno;
      margin/gap = separaciones; border-radius = redondez; width = ancho;
      transition = suavidad de la animación.
   3. css/sitio.css se carga primero; css/tema-premium.css se carga DESPUÉS.
      Si dos reglas tienen especificidad equivalente, la última prevalece.
   4. Este archivo NO controla compras, autenticación ni MySQL; solo apariencia.
   ============================================================================ */


    /* Tipografías con alternativas locales: CSS y página funcionales sin CDN de fuentes. */
    
    :root {
        --ink: #0d0907;
        --panel: #15100d;
        --panel2: #20140e;
        --gold: #e8a951;
        --gold-light: #ffce86;
        --line: rgba(222, 166, 92, 0.36);
        --cream: #fff8ed;
        --muted: #d2c4b4;
        --serif: "Playfair Display", Georgia, serif;
        --sans: "DM Sans", Arial, sans-serif;
    }
    
    * {
        box-sizing: border-box;
    }
    
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 104px;
    }
    
    body {
        margin: 0;
        background: #0d0907;
        color: var(--cream);
        font-family: var(--sans);
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden;
    }
    
    button,
input,
select,
textarea {
        font: inherit;
    }
    
    button {
        cursor: pointer;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
    
    img {
        max-width: 100%;
        display: block;
    }
    
    .contenedor {
        width: min(1360px, calc(100% - 72px));
        margin: auto;
    }
    
    .skip-link {
        position: absolute;
        top: -100px;
        left: 10px;
        z-index: 10000;
        background: #fff;
        color: #000;
        padding: 12px;
    }
    
    .skip-link:focus {
        top: 8px;
    }
    
    :focus-visible {
        outline: 3px solid var(--gold-light);
        outline-offset: 3px;
    }
    
    h1,
h2,
h3,
p {
        margin-top: 0;
    }
    
    h1,
h2,
h3 {
        font-family: var(--serif);
        font-weight: 500;
        line-height: 1.12;
    }
    
    h2 {
        font-size: clamp(40px, 5.5vw, 76px);
    }
    
    h2 em,
h1 em {
        color: var(--gold);
        font-style: normal;
    }
    
    .eyebrow,
.modal-kicker {
        font-size: 12px;
        letter-spacing: 0.27em;
        color: var(--gold-light);
        font-weight: 700;
    }
    
    .texto-secundario {
        color: #b6a99c;
        font-size: 13px;
    }
    
    .seccion {
        padding: 110px 0;
        scroll-margin-top: 85px;
    }
    
    .cabecera {
        position: fixed !important;
        inset: 0 0 auto !important;
        z-index: 9999 !important;
        transform: none !important;
        animation: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 94px;
        padding: 13px clamp(18px, 4vw, 68px);
        display: flex;
        align-items: center;
        gap: 24px;
        background: linear-gradient(180deg, rgba(12, 8, 6, 0.97), rgba(13, 8, 6, 0.87));
        border-bottom: 1px solid rgba(235, 181, 105, 0.2);
        backdrop-filter: blur(18px);
        box-shadow: 0 8px 35px #0008;
    }
    
    .cabecera-oculta {
        transform: none !important;
    }
    
    .marca {
        width: 76px;
        height: 76px;
        flex: none;
        position: relative;
    }
    
    .marca img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #f3e8d9;
        box-shadow: 0 0 0 5px #422516,
        0 6px 20px #0008;
    }
    
    .navegacion {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(13px, 2.5vw, 42px);
        flex: 1;
        border: 1px solid rgba(231, 179, 107, 0.24);
        border-radius: 12px;
        padding: 16px 14px;
        background: #100d0ab8;
    }
    
    .navegacion a {
        font-size: 14px;
        color: #f4e8dc;
        position: relative;
        white-space: nowrap;
        transition: color 0.2s;
    }
    
    .navegacion a:hover,
.navegacion a.activo {
        color: var(--gold-light);
    }
    
    .navegacion a.activo:after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gold);
    }
    
    .acciones-cabecera {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .enlace-cuenta,
.enlace-texto {
        border: 0;
        background: transparent;
        color: var(--gold-light);
        white-space: nowrap;
    }
    
    .menu-movil {
        display: none;
    }
    
    .boton {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 52px;
        padding: 13px 25px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14px;
        border: 1px solid var(--line);
        transition: transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
        text-align: center;
    }
    
    .boton:hover {
        transform: translateY(-2px);
    }
    
    .boton.dorado {
        background: linear-gradient(145deg, #f4bc73, #ce8641);
        color: #1b0e07;
        border-color: #e9aa5c;
        box-shadow: 0 9px 26px #0007;
    }
    
    .boton.dorado:hover {
        box-shadow: 0 14px 30px #000a;
        background: linear-gradient(145deg, #ffd091, #db9651);
    }
    
    .boton.contorno {
        background: #100b09c9;
        color: #fff3e7;
        border-color: #b87c39;
    }
    
    .boton-carrito {
        white-space: nowrap;
    }
    
    .boton-carrito span {
        display: grid;
        place-items: center;
        background: #1b1009;
        color: var(--gold-light);
        border-radius: 50%;
        min-width: 23px;
        height: 23px;
    }
    
    .hero {
        min-height: 790px;
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        align-items: center;
        gap: 20px;
        padding: 155px clamp(24px, 5vw, 85px) 70px;
        background: linear-gradient(
            90deg,
            rgba(5, 3, 2, 0.93) 0%,
            rgba(9, 5, 3, 0.73) 43%,
            rgba(8, 4, 2, 0.36) 75%,
            rgba(7, 4, 2, 0.82) 100%
        ),
        url("../assets/hero-food.jpg") center center/cover no-repeat;
    }
    
    .hero-capa {
        pointer-events: none;
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, #0d0907 0%, transparent 22%);
    }
    
    .hero-contenido {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 820px;
        margin: 0;
    }
    
    .hero h1 {
        font-size: clamp(53px, 6.8vw, 108px);
        letter-spacing: -0.04em;
        line-height: 1.04;
        margin: 20px 0 24px;
        text-shadow: 0 5px 22px #0008;
    }
    
    .hero-sub {
        max-width: 550px;
        color: #f0e3d6;
        font-size: clamp(17px, 1.5vw, 22px);
    }
    
    .grupo-botones {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin: 30px 0 45px;
    }
    
    .hero-signature {
        display: flex;
        align-items: center;
        gap: 16px;
        color: #ead5bd;
        font-size: 14px;
    }
    
    .hero-signature > span {
        font-size: 38px;
        color: var(--gold);
    }
    
    .hero-signature strong {
        font-weight: 500;
        color: #fff;
    }
    
    .hero-lateral {
        z-index: 2;
        position: relative;
        background: rgba(12, 8, 6, 0.84);
        border: 1px solid rgba(239, 178, 96, 0.43);
        border-radius: 17px;
        padding: 20px;
        box-shadow: 0 30px 70px #000a;
        backdrop-filter: blur(14px);
    }
    
    .sidebar-caption {
        display: flex;
        justify-content: space-between;
        letter-spacing: 0.16em;
        font-size: 11px;
        color: #f0bd78;
        margin-bottom: 15px;
    }
    
    .hero-categorias {
        display: grid;
        gap: 9px;
    }
    
    .hero-categoria {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        text-align: left;
        color: #fff7ef;
        background: linear-gradient(110deg, #25160f, #120d0a);
        border: 1px solid #77503088;
        border-radius: 11px;
        padding: 11px;
        transition: transform 0.2s,
        border-color 0.2s,
        background 0.2s;
    }
    
    .hero-categoria:hover {
        transform: translateX(-4px);
        border-color: var(--gold);
        background: #3c2417;
    }
    
    .hero-categoria .espacio-imagen {
        width: 60px;
        height: 58px;
        flex: none;
        background: linear-gradient(140deg, #54321d, #20120c);
        border-radius: 7px;
    }
    
    .hero-categoria:nth-child(1) .espacio-imagen {
        background: url("../assets/comida-1.jpg") center/cover;
    }
    
    .hero-categoria:nth-child(2) .espacio-imagen {
        background: url("../assets/platillo-107.jpg") center/cover;
    }
    
    .hero-categoria:nth-child(3) .espacio-imagen {
        background: url("../assets/platillo-113.jpg") center/cover;
    }
    
    .hero-categoria:nth-child(4) .espacio-imagen {
        background: url("../assets/platillo-119.jpg") center/cover;
    }
    
    .hero-categoria:nth-child(5) .espacio-imagen {
        background: url("../assets/platillo-125.jpg") center/cover;
    }
    
    .hero-cat-icon {
        display: none;
    }
    
    .hero-cat-copy {
        display: grid;
        gap: 0;
        flex: 1;
    }
    
    .hero-cat-copy strong {
        font-family: var(--serif);
        font-size: 20px;
        font-weight: 500;
    }
    
    .hero-cat-copy small {
        font-size: 11px;
        color: #c5b3a3;
    }
    
    .hero-cat-arrow {
        color: var(--gold);
        font-size: 27px;
    }
    
    .instagram {
        display: flex;
        gap: 10px;
        align-items: center;
        border-top: 1px solid #7c542f88;
        margin-top: 17px;
        padding-top: 16px;
        font-size: 12px;
    }
    
    .instagram strong {
        display: block;
        color: var(--gold-light);
    }
    
    .instagram-icon {
        font-size: 28px;
        color: var(--gold);
    }
    
    .historia-seccion {
        background: linear-gradient(90deg, #120c08 0%, #21140c 60%, #130b07 100%);
        position: relative;
    }
    
    .historia-grid {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        align-items: center;
        gap: clamp(32px, 6vw, 95px);
    }
    
    .historia-foto {
        min-height: 540px;
        background: linear-gradient(0deg, #0b06044a, #0b060400),
        url("../assets/story-room.jpg") center/cover;
        border-radius: 16px;
        border: 1px solid #b88a4d66;
        box-shadow: 0 20px 50px #0009;
        position: relative;
    }
    
    .ornamento {
        position: absolute;
        left: 24px;
        bottom: 25px;
        background: #120b08c9;
        padding: 16px 24px;
        border-left: 2px solid var(--gold);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .ornamento-sol,
.ornamento-maiz {
        font-size: 30px;
        color: var(--gold);
    }
    
    .ornamento small {
        letter-spacing: 0.12em;
    }
    
    .historia-texto p:not(.eyebrow) {
        color: #d7c7b7;
        font-size: 18px;
    }
    
    .historia-texto .boton {
        margin-top: 15px;
    }
    
    .menu-seccion {
        background: radial-gradient(ellipse at 50% 0%, #3c2315 0%, #0d0907 55%);
    }
    
    .encabezado-seccion {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 36px;
    }
    
    .encabezado-seccion h2 {
        margin-bottom: 14px;
    }
    
    .encabezado-seccion > p:last-child {
        color: #d4c5b8;
    }
    
    .categorias {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border: 1px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
        background: #120d0a;
        margin: 20px 0 30px;
    }
    
    .categorias button {
        border: 0;
        border-right: 1px solid #b77a3b45;
        color: #f2e7dc;
        background: transparent;
        min-height: 80px;
        padding: 18px 8px;
        font-weight: 600;
        transition: background 0.2s;
    }
    
    .categorias button:last-child {
        border-right: 0;
    }
    
    .categorias button:hover,
.categorias button.activo {
        background: linear-gradient(145deg, #68401e, #2d1b0e);
        color: #ffdc9b;
        box-shadow: inset 0 -3px var(--gold);
    }
    
    .aviso-horario {
        font-size: 13px;
        color: #d8b58b;
    }
    
    .rejilla {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
    }
    
    .card-platillo {
        overflow: hidden;
        border-radius: 13px;
        border: 1px solid #a6794866;
        background: linear-gradient(160deg, #1c130e, #0e0b09);
        box-shadow: 0 10px 26px #0005;
        transition: transform 0.25s,
        border-color 0.25s;
    }
    
    .card-platillo:hover {
        transform: translateY(-6px);
        border-color: #e2aa63;
    }
    
    .card-foto {
        height: 225px;
        overflow: hidden;
        background: linear-gradient(135deg, #6c4226, #24140d);
    }
    
    .card-imagen {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    
    .card-platillo:hover .card-imagen {
        transform: scale(1.05);
    }
    
    .card-foto.sin-foto {
        position: relative;
    }
    
    .card-foto.sin-foto:after {
        content: "Fotografía próximamente";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #e3b579;
        font-family: var(--serif);
    }
    
    .card-foto.sin-foto img {
        display: none;
    }
    
    .card-cuerpo {
        padding: 22px;
        display: flex;
        flex-direction: column;
        min-height: 220px;
    }
    
    .card-titulo {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        border-bottom: 1px solid #ac7b4255;
        padding-bottom: 12px;
        margin-bottom: 10px;
    }
    
    .card-titulo h3 {
        font-size: 22px;
        margin: 0;
    }
    
    .card-titulo strong {
        font-size: 20px;
        color: var(--gold-light);
        white-space: nowrap;
    }
    
    .card-cuerpo > p {
        color: #d0bfb0;
        font-size: 14px;
        flex: 1;
    }
    
    .card-cuerpo > .boton {
        align-self: center;
        min-width: 165px;
        min-height: 43px;
        padding: 9px 20px;
        color: var(--gold-light);
        border-color: #ba8348;
    }
    
    .reservas-seccion {
        background: linear-gradient(100deg, #24160e, #0c0806);
    }
    
    .reservas-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 70px;
        align-items: center;
    }
    
    .reservas-grid > div > p {
        max-width: 450px;
        color: #d4c3b0;
    }
    
    .form-reserva {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        background: #100b09;
        border: 1px solid var(--line);
        padding: 35px;
        border-radius: 18px;
        box-shadow: 0 20px 60px #0006;
    }
    
    .form-reserva .boton,
.form-reserva .form-mensaje {
        grid-column: 1/-1;
    }
    
    label {
        display: grid;
        gap: 8px;
        color: #f1ddc6;
        font-size: 14px;
    }
    
    input,
select,
textarea {
        min-height: 48px;
        padding: 11px 14px;
        color: #fff5e8;
        background: #130d09;
        border: 1px solid #95693f8c;
        border-radius: 9px;
        outline: none;
        width: 100%;
    }
    
    input:focus,
select:focus,
textarea:focus {
        border-color: #f4b66c;
        box-shadow: 0 0 0 3px #e8a95125;
    }
    
    input::placeholder,
textarea::placeholder {
        color: #a79a8e;
    }
    
    .form-mensaje {
        font-size: 13px;
        color: #f5c989;
    }
    
    .pie {
        padding: 65px 0;
        background: #0a0705;
        border-top: 1px solid #a6733c66;
    }
    
    .pie-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: 40px;
    }
    
    .pie img {
        width: 95px;
        border-radius: 50%;
        margin-bottom: 15px;
    }
    
    .pie h3 {
        font-size: 20px;
        color: var(--gold-light);
    }
    
    .pie p,
.pie a {
        font-size: 14px;
        color: #c8b7a5;
        display: block;
        margin: 7px 0;
    }
    
    .pie a:hover {
        color: var(--gold);
    }
    
    .contacto-premium {
        padding: 70px 0;
        background: #1a100b;
    }
    
    .contacto-premium-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 70px;
    }
    
    .contacto-premium h2 {
        font-size: 45px;
    }
    
    .contacto-premium p {
        color: #d1bfb0;
    }
    
    .contacto-premium-redes {
        padding: 35px;
        border: 1px solid var(--line);
        border-radius: 16px;
    }
    
    .contacto-premium-redes h3 {
        font-size: 30px;
    }
    
    .contacto-premium-redes a {
        color: var(--gold-light);
    }
    
    .modal {
        color: #fff4e9;
        background: radial-gradient(ellipse at top right, #342014, #100c09 70%);
        border: 1px solid #b57d3c;
        border-radius: 22px;
        padding: clamp(26px, 4vw, 50px);
        width: min(1000px, calc(100vw - 32px));
        max-height: 88dvh;
        box-shadow: 0 40px 120px #000e;
        position: fixed;
        overflow-y: auto;
    }
    
    .modal::backdrop {
        background: #080503d9;
        backdrop-filter: blur(11px);
    }
    
    .modal[open] {
        animation: modalIn 0.25s ease-out;
    }

    @keyframes modalIn {
        from {
            opacity: 0;
            transform: translateY(16px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
    
    .modal .cerrar {
        position: absolute;
        right: 17px;
        top: 16px;
        width: 40px;
        height: 40px;
        border: 1px solid #ad7b46;
        border-radius: 50%;
        background: #25180f;
        color: #fff;
        font-size: 26px;
        display: grid;
        place-items: center;
        z-index: 2;
    }
    
    .modal h2 {
        font-size: clamp(34px, 4vw, 58px);
        margin: 12px 0 18px;
    }
    
    .modal-overline,
.modal-kicker {
        font-size: 11px;
        letter-spacing: 0.22em;
        color: var(--gold-light);
    }
    
    .detalle-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .detalle-grid > img {
        width: 100%;
        height: 470px;
        object-fit: cover;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: linear-gradient(140deg, #59351e, #21120b);
    }
    
    .detalle-contenido {
        display: grid;
        gap: 12px;
    }
    
    .detalle-contenido h2 {
        margin: 0;
    }
    
    .detalle-contenido p {
        color: #d9c5b1;
    }
    
    .precio-grande {
        color: var(--gold-light);
        font-size: 34px;
    }
    
    .detalle-contenido textarea {
        resize: vertical;
    }
    
    .modal-carrito {
        width: min(1050px, calc(100vw - 30px));
    }
    
    .modal-carrito h2 {
        font-size: 44px;
    }
    
    .modal-lead {
        color: #d1beac;
    }
    
    .pasos-pedido {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 15px 0;
        margin: 20px 0;
        color: #bba48b;
        font-size: 12px;
    }
    
    .paso-activo {
        color: var(--gold-light);
    }
    
    .linea-carrito {
        display: flex;
        gap: 16px;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #9b6b3d55;
    }
    
    .linea-carrito img {
        width: 85px;
        height: 78px;
        object-fit: cover;
        border-radius: 9px;
        background: #4c2b17;
    }
    
    .linea-carrito img.sin-imagen {
        background: #4c2b17;
    }
    
    .linea-carrito > div:nth-child(2) {
        flex: 1;
    }
    
    .linea-carrito button {
        background: #26180e;
        border: 1px solid #a47744;
        color: #f3cb91;
        border-radius: 7px;
        min-width: 33px;
        min-height: 34px;
    }
    
    .carrito-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 18px 0 24px;
        padding: 16px 20px;
        background: #4a2c153d;
        border: 1px solid #b07d43;
        border-radius: 10px;
        font-size: 23px;
    }
    
    .carrito-total strong {
        color: var(--gold-light);
        font-size: 30px;
    }
    
    .campos-dobles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    
    #form-pedido {
        display: grid;
        gap: 16px;
    }
    
    .pago-opciones {
        border: 0;
        padding: 0;
        margin: 8px 0 0;
    }
    
    .pago-opciones legend {
        font-family: var(--serif);
        font-size: 27px;
        padding: 0 0 15px;
    }
    
    .pago-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .pago-tile {
        position: relative;
        min-height: 135px;
        padding: 16px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-align: center;
        border: 1px solid #785838;
        border-radius: 12px;
        background: #120e0b;
        cursor: pointer;
    }
    
    .pago-tile:has(input:checked) {
        background: linear-gradient(145deg, #654020, #28180f);
        border-color: #f1b35f;
        box-shadow: inset 0 0 0 1px #d29b57;
    }
    
    .pago-tile input {
        position: absolute;
        top: 9px;
        left: 9px;
        width: 16px;
        height: 16px;
        min-height: 16px;
        accent-color: var(--gold);
    }
    
    .pago-icon {
        font-size: 29px;
        color: var(--gold-light);
    }
    
    .pago-tile strong {
        font-size: 14px;
    }
    
    .pago-tile small {
        font-size: 10px;
        color: #c4b4a4;
    }
    
    .modal-login {
        width: min(550px, calc(100vw - 30px));
        text-align: center;
        background: linear-gradient(#120c09e8, #0c0907f7),
        url("../assets/login-food.jpg") center/cover;
    }
    
    .modal-login > img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #f6e8d8;
        margin: 0 auto 18px;
        box-shadow: 0 0 0 8px #5c351e;
    }
    
    .modal-login h2 {
        font-size: 45px;
    }
    
    .modal-login > p {
        color: #d6c8ba;
    }
    
    .modal-login form {
        display: grid;
        gap: 15px;
        text-align: left;
        margin: 26px 0;
    }
    
    .modal-login .boton {
        width: 100%;
    }
    
    .modal-login .admin-link {
        display: block;
        margin-top: 18px;
        color: #ad947b;
        font-size: 12px;
    }

    @media (max-width: 1150px) {
        
        .cabecera {
            gap: 15px;
            padding-inline: 18px;
        }
        
        .navegacion {
            gap: 14px;
        }
        
        .acciones-cabecera .enlace-cuenta {
            display: none;
        }
        
        .hero {
            grid-template-columns: 1fr 320px;
            padding-inline: 30px;
        }
        
        .hero h1 {
            font-size: clamp(52px, 6vw, 75px);
        }
        
        .rejilla {
            gap: 16px;
        }
        
        .card-titulo h3 {
            font-size: 19px;
        }
    }

    @media (max-width: 850px) {
        
        .cabecera {
            min-height: 76px;
            padding: 8px 18px;
        }
        
        .marca {
            width: 58px;
            height: 58px;
        }
        
        .menu-movil {
            display: block;
            margin-left: auto;
            background: #21140c;
            border: 1px solid var(--line);
            color: #ffdfa7;
            border-radius: 8px;
            padding: 9px 14px;
        }
        
        .navegacion {
            display: none;
            position: absolute;
            top: 76px;
            left: 12px;
            right: 12px;
            background: #150d09;
            flex-direction: column;
            align-items: stretch;
            padding: 15px;
            border: 1px solid #c38b4d;
        }
        
        .navegacion.abierta,
    .navegacion.mostrar,
    .navegacion[aria-hidden="false"] {
            display: flex;
        }
        
        .navegacion a {
            padding: 8px;
        }
        
        .navegacion a.activo:after {
            bottom: 0;
        }
        
        .acciones-cabecera {
            gap: 0;
        }
        
        .boton-carrito {
            min-height: 43px;
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .hero {
            grid-template-columns: 1fr;
            gap: 35px;
            padding: 140px 24px 65px;
            min-height: unset;
            background-position: 65% center;
        }
        
        .hero h1 {
            font-size: clamp(49px, 10vw, 78px);
        }
        
        .hero-lateral {
            max-width: 700px;
            width: 100%;
        }
        
        .hero-categorias {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .historia-grid,
    .reservas-grid {
            grid-template-columns: 1fr;
            gap: 35px;
        }
        
        .historia-foto {
            min-height: 400px;
        }
        
        .rejilla {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        
        .pie-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .contacto-premium-grid {
            grid-template-columns: 1fr;
        }
        
        .detalle-grid {
            gap: 20px;
        }
    }

    @media (max-width: 570px) {
        
        html {
            scroll-padding-top: 85px;
        }
        
        .contenedor {
            width: calc(100% - 34px);
        }
        
        .seccion {
            padding: 70px 0;
        }
        
        .cabecera {
            padding: 7px 12px;
            gap: 8px;
        }
        
        .marca {
            width: 53px;
            height: 53px;
        }
        
        .menu-movil {
            font-size: 12px;
        }
        
        .boton-carrito {
            font-size: 0;
            gap: 5px;
        }
        
        .boton-carrito span {
            font-size: 12px;
        }
        
        .hero {
            padding: 120px 18px 50px;
        }
        
        .hero h1 {
            font-size: clamp(45px, 11vw, 67px);
        }
        
        .hero-sub {
            font-size: 16px;
        }
        
        .grupo-botones {
            gap: 10px;
        }
        
        .grupo-botones .boton {
            flex: 1;
            padding: 12px 8px;
            font-size: 13px;
        }
        
        .hero-categorias {
            grid-template-columns: 1fr;
        }
        
        .hero-lateral {
            padding: 14px;
        }
        
        .historia-foto {
            min-height: 310px;
        }
        
        .historia-texto p:not(.eyebrow) {
            font-size: 16px;
        }
        
        .categorias {
            display: flex;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        
        .categorias button {
            min-width: 128px;
            min-height: 64px;
        }
        
        .rejilla {
            grid-template-columns: 1fr;
            gap: 18px;
        }
        
        .card-foto {
            height: 230px;
        }
        
        .card-cuerpo {
            min-height: unset;
        }
        
        .card-titulo h3 {
            font-size: 22px;
        }
        
        .reservas-grid {
            gap: 20px;
        }
        
        .form-reserva {
            padding: 18px;
            grid-template-columns: 1fr;
        }
        
        .pie-grid {
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }
        
        .contacto-premium h2 {
            font-size: 38px;
        }
        
        .modal {
            width: calc(100vw - 16px);
            padding: 60px 18px 22px;
            max-height: 93dvh;
            border-radius: 15px;
        }
        
        .modal h2 {
            font-size: 35px;
        }
        
        .detalle-grid {
            grid-template-columns: 1fr;
        }
        
        .detalle-grid > img {
            height: 220px;
        }
        
        .campos-dobles {
            grid-template-columns: 1fr;
        }
        
        .pago-grid {
            gap: 7px;
        }
        
        .pago-tile {
            padding: 13px 5px;
            min-height: 120px;
        }
        
        .pago-tile small {
            font-size: 9px;
        }
        
        .pasos-pedido {
            font-size: 10px;
        }
        
        .linea-carrito img {
            width: 58px;
            height: 58px;
        }
        
        .modal-login > img {
            width: 96px;
            height: 96px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        
        html {
            scroll-behavior: auto;
        }
        
        *,
    *:before,
    *:after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
    /* ============================================================
   LA MILPA · LOGIN Y CHECKOUT · REFERENCIAS DEL USUARIO
   Diseño de componentes original, no imagen plana.
   ============================================================ */
    
    .sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    
    .marca {
        width: 94px;
        height: 94px;
    }
    
    .cabecera {
        min-height: 110px;
    }
    
    .marca img {
        box-shadow: 0 0 0 6px #422516,
        0 10px 24px #000b;
    }
    
    .modal-login {
        width: min(670px, calc(100vw - 28px));
        padding: 38px clamp(26px, 4vw, 60px) 28px;
        background: radial-gradient(circle at 50% 5%, #281509 0%, #0b0908 52%, #080706 100%);
        border: 1px solid #c58b42;
        border-radius: 22px;
        text-align: center;
        box-shadow: 0 38px 130px #000e;
        max-height: 92dvh;
    }
    
    .modal-login::backdrop {
        background: linear-gradient(90deg, #070403a6, #120a05b9),
        url("../assets/login-food.jpg") center/cover;
        backdrop-filter: blur(5px);
    }
    
    .login-emblema {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin: 0 0 18px;
    }
    
    .modal-login .login-emblema img {
        width: 178px;
        height: 178px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #fff5e8;
        box-shadow: 0 0 0 12px #291406,
        0 15px 28px #0009;
        margin: 0;
    }
    
    .emblema-rama {
        color: #ad7336;
        font-size: 68px;
        font-family: Georgia, serif;
        transform: rotate(-25deg);
        opacity: 0.75;
    }
    
    .emblema-rama:last-child {
        transform: scaleX(-1) rotate(-25deg);
    }
    
    .modal-login h2 {
        font-size: clamp(43px, 4.5vw, 63px);
        letter-spacing: -0.045em;
        margin: 18px 0 5px;
    }
    
    .modal-login h2 em {
        font-style: normal;
        color: #e9a857;
    }
    
    .modal-login .login-sub {
        font-size: 17px;
        line-height: 1.5;
        color: #ddd2c8;
        margin: 0;
    }
    
    .modal-login form {
        margin: 23px 0 0;
        gap: 14px;
    }
    
    .modal-login .login-campo {
        display: flex;
        align-items: center;
        position: relative;
        height: 63px;
        border: 1px solid #ae7c41;
        border-radius: 11px;
        background: #090a0af2;
        padding: 0 17px;
    }
    
    .modal-login .login-campo:focus-within {
        border-color: #ffcb7d;
        box-shadow: 0 0 0 3px #d7974033;
    }
    
    .login-campo .campo-icono {
        font-size: 26px;
        color: #f3b65e;
        width: 37px;
        flex: none;
        text-align: left;
    }
    
    .modal-login .login-campo input {
        background: transparent;
        border: 0;
        box-shadow: none;
        outline: none;
        height: 100%;
        min-height: 0;
        padding: 0 9px;
        color: white;
        font-size: 17px;
    }
    
    .modal-login .login-campo input:focus {
        box-shadow: none;
        border: 0;
    }
    
    .modal-login .ver-clave {
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 22px;
        min-width: 36px;
        min-height: 40px;
    }
    
    .login-opciones {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 2px 0 4px;
    }
    
    .login-opciones .recordar {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #eee5da;
        white-space: nowrap;
    }
    
    .recordar input {
        width: 20px;
        height: 20px;
        min-height: 20px;
        accent-color: #dda65f;
    }
    
    .link-auxiliar {
        background: transparent;
        border: 0;
        color: #f2b65f;
        padding: 4px 0;
        font-size: 14px;
    }
    
    .login-submit {
        width: 100%;
        min-height: 65px !important;
        font-size: 17px !important;
        display: flex;
        justify-content: center;
        gap: 25px;
        border-radius: 10px;
    }
    
    .login-submit span {
        font-size: 24px;
        font-weight: 400;
    }
    
    .login-registro {
        margin: 23px 0 0 !important;
        color: #f1e8de !important;
    }
    
    .login-registro .enlace-texto {
        text-decoration: underline;
        text-underline-offset: 4px;
        color: #f2b65f;
        font-size: 16px;
    }
    
    .modal-login .admin-link {
        margin-top: 20px;
        opacity: 0.6;
    }
    
    .modal-carrito {
        width: min(1150px, calc(100vw - 26px));
        padding: 0;
        max-height: 92dvh;
        border: 1px solid #b17c41;
        border-radius: 18px;
        background: #0d0c0b;
        overflow: auto;
    }
    
    .modal-carrito::backdrop {
        background: #030202d9;
        backdrop-filter: blur(9px);
    }
    
    .modal-carrito > .cerrar {
        z-index: 5;
        right: 15px;
        top: 14px;
        background: #1c1410;
    }
    
    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr 1.05fr;
        min-height: 660px;
    }
    
    .checkout-resumen,
.checkout-pago {
        padding: clamp(24px, 3vw, 40px);
    }
    
    .checkout-resumen {
        border-right: 1px solid #4b382a;
        background: linear-gradient(150deg, #11100e, #090908);
    }
    
    .checkout-pago {
        background: radial-gradient(ellipse at 100% 0%, #2a1a10, #0b0b0a 60%);
    }
    
    .modal-carrito h2 {
        font-size: clamp(32px, 3vw, 47px);
        line-height: 1.12;
        margin: 7px 0 14px;
    }
    
    .checkout-count {
        display: inline-grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font: 700 17px var(--sans);
        color: #150e09;
        background: #e6a95d;
        vertical-align: middle;
    }
    
    .modal-carrito .modal-lead {
        font-size: 14px;
        color: #cdbeb0;
    }
    
    .checkout-items {
        min-height: 200px;
        margin: 20px 0 15px;
    }
    
    .checkout-items .linea-carrito {
        display: grid;
        grid-template-columns: 85px minmax(0, 1fr) auto;
        gap: 15px;
        align-items: center;
        padding: 16px 0;
    }
    
    .checkout-items .linea-carrito img {
        width: 85px;
        height: 85px;
        border: 1px solid #6b482b;
    }
    
    .checkout-items .linea-carrito > div:nth-child(2) {
        display: grid;
        gap: 5px;
    }
    
    .checkout-items .linea-carrito strong {
        font-size: 15px;
        font-weight: 500;
    }
    
    .checkout-items .linea-carrito small {
        color: #e8ac62;
        font-size: 15px;
    }
    
    .checkout-items .linea-carrito > div:last-child {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .checkout-items .linea-carrito button {
        width: 30px;
        min-width: 30px;
        height: 34px;
        background: #1c1814;
    }
    
    .checkout-desglose {
        padding: 19px 0;
        border-top: 1px solid #65472c;
        border-bottom: 1px solid #65472c;
    }
    
    .checkout-desglose > div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: #d9cec2;
        margin: 7px 0;
    }
    
    .checkout-desglose strong {
        font-weight: 500;
    }
    
    .modal-carrito .carrito-total {
        border: 0;
        background: transparent;
        padding: 12px 0 0;
        margin: 0;
        font-size: 24px;
        color: #e7aa61;
    }
    
    .modal-carrito .carrito-total strong {
        font-size: 30px;
    }
    
    .checkout-pago form {
        display: grid;
        gap: 19px;
    }
    
    .checkout-pago .pago-grid,
.checkout-pago .entrega-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    
    .checkout-pago .pago-tile,
.checkout-pago .entrega-tile {
        min-width: 0;
        min-height: 96px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        text-align: center;
        padding: 10px 6px;
        border: 1px solid #554437;
        border-radius: 11px;
        background: #11100e;
        color: #eee3d7;
        cursor: pointer;
        transition: background 0.2s,
        border-color 0.2s;
    }
    
    .checkout-pago .pago-tile:has(input:checked),
.checkout-pago .entrega-tile:has(input:checked) {
        border-color: #edb160;
        background: linear-gradient(145deg, #513117, #23180f);
        color: #ffcd82;
        box-shadow: inset 0 0 0 1px #bc8749;
    }
    
    .checkout-pago .pago-tile input,
.checkout-pago .entrega-tile input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        inset: 0;
        margin: 0;
        cursor: pointer;
    }
    
    .checkout-pago .pago-tile:focus-within,
.checkout-pago .entrega-tile:focus-within {
        outline: 2px solid #ffd79b;
        outline-offset: 3px;
    }
    
    .checkout-pago .pago-icon,
.checkout-pago .entrega-tile > span {
        font-size: 27px;
        line-height: 1.2;
        color: #e7b16d;
    }
    
    .checkout-pago .pago-tile strong,
.checkout-pago .entrega-tile strong {
        font-weight: 500;
        font-size: 13px;
    }
    
    .checkout-seguridad {
        margin: -8px 0 0;
        color: #c7b9aa;
        font-size: 12px;
        line-height: 1.5;
    }
    
    .entrega-opciones {
        border: 0;
        border-top: 1px solid #58412e;
        padding: 17px 0 0;
        margin: 0;
        min-width: 0;
    }
    
    .entrega-opciones legend {
        font-family: var(--serif);
        font-size: 24px;
        color: #fff2df;
        padding: 0 0 13px;
    }
    
    .checkout-aviso-acceso {
        padding: 16px;
        background: #3c2917;
        border: 1px solid #e7a65d;
        border-radius: 11px;
        display: grid;
        gap: 8px;
    }
    
    .checkout-aviso-acceso[hidden],
#campo-nombre[hidden],
#campo-direccion[hidden] {
        display: none !important;
    }
    
    .checkout-aviso-acceso > span {
        color: #f7c985;
        font-size: 22px;
    }
    
    .checkout-aviso-acceso p {
        margin: 0;
        font-size: 13px;
    }
    
    .checkout-aviso-acceso .boton {
        min-height: 39px;
        justify-self: start;
    }
    
    .checkout-nombre {
        font-size: 13px;
    }
    
    .checkout-confirmar {
        min-height: 64px !important;
        width: 100%;
        font-size: 16px !important;
        display: flex;
        justify-content: space-between;
    }
    
    .checkout-confirmar:disabled {
        opacity: 0.48;
        cursor: not-allowed;
        transform: none;
    }
    
    .aviso-cuenta-inicial {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 9998;
        width: min(490px, calc(100vw - 30px));
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 19px 42px 19px 18px;
        background: linear-gradient(120deg, #2c1b11, #110d0b);
        border: 1px solid #c18c50;
        border-radius: 15px;
        box-shadow: 0 15px 60px #000c;
        color: #fff4e9;
        animation: avisoEntrada 0.5s ease both;
    }
    
    .aviso-cuenta-inicial[hidden] {
        display: none;
    }
    
    .aviso-cuenta-inicial .aviso-icono {
        font-size: 28px;
        color: #f1b76e;
    }
    
    .aviso-cuenta-inicial strong {
        font-family: var(--serif);
        font-size: 18px;
    }
    
    .aviso-cuenta-inicial p {
        margin: 3px 0 0;
        color: #dbcabb;
        font-size: 12px;
        line-height: 1.45;
    }
    
    .aviso-acceso {
        flex: none;
        border: 1px solid #d7a05d;
        color: #ffd195;
        background: #1c120b;
        border-radius: 8px;
        padding: 9px;
        font-size: 12px;
    }
    
    .aviso-cerrar {
        position: absolute;
        right: 8px;
        top: 6px;
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 22px;
    }

    @keyframes avisoEntrada {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    @media (max-width: 850px) {
        
        .marca {
            width: 76px;
            height: 76px;
        }
        
        .cabecera {
            min-height: 88px;
        }
        
        .navegacion {
            top: 88px;
        }
        
        .checkout-layout {
            grid-template-columns: 1fr;
        }
        
        .checkout-resumen {
            border-right: 0;
            border-bottom: 1px solid #4b382a;
        }
        
        .checkout-items {
            min-height: 0;
        }
        
        .modal-carrito {
            max-width: 650px;
        }
    }

    @media (max-width: 570px) {
        
        .marca {
            width: 65px;
            height: 65px;
        }
        
        .cabecera {
            min-height: 78px;
        }
        
        .navegacion {
            top: 78px;
        }
        
        .modal-login {
            padding: 42px 19px 24px;
        }
        
        .modal-login .login-emblema img {
            width: 120px;
            height: 120px;
        }
        
        .emblema-rama {
            font-size: 35px;
        }
        
        .login-emblema {
            gap: 12px;
        }
        
        .modal-login h2 {
            font-size: 40px;
        }
        
        .modal-login .login-sub {
            font-size: 14px;
        }
        
        .modal-login .login-campo {
            height: 56px;
        }
        
        .login-opciones {
            font-size: 12px;
        }
        
        .link-auxiliar {
            font-size: 12px;
        }
        
        .checkout-resumen,
    .checkout-pago {
            padding: 25px 17px;
        }
        
        .checkout-items .linea-carrito {
            grid-template-columns: 60px minmax(0, 1fr);
            gap: 9px;
        }
        
        .checkout-items .linea-carrito img {
            width: 60px;
            height: 65px;
        }
        
        .checkout-items .linea-carrito > div:last-child {
            grid-column: 2;
        }
        
        .checkout-pago .pago-grid,
    .checkout-pago .entrega-grid {
            gap: 6px;
        }
        
        .checkout-pago .pago-tile,
    .checkout-pago .entrega-tile {
            min-height: 87px;
            padding: 9px 4px;
        }
        
        .checkout-pago .pago-tile strong,
    .checkout-pago .entrega-tile strong {
            font-size: 11px;
        }
        
        .aviso-cuenta-inicial {
            right: 15px;
            bottom: 15px;
            flex-wrap: wrap;
            padding: 15px 36px 15px 14px;
        }
        
        .aviso-acceso {
            margin-left: 38px;
        }
    }
    /* ===== Ajustes responsive integrales: navegación, modales, tarjetas ===== */
    
    :root {
        --alto-cabecera: 110px;
    }
    
    html {
        scroll-padding-top: calc(var(--alto-cabecera) + 16px);
    }
    
    body {
        min-width: 0;
    }
    
    main,
section,
footer,
.contenedor,
.hero-contenido,
.historia-grid,
.reservas-grid,
.contacto-premium-grid,
.checkout-layout,
.checkout-resumen,
.checkout-pago {
        min-width: 0;
    }
    
    img,
video,
svg {
        max-width: 100%;
    }
    
    h1,
h2,
h3,
p,
a,
button,
label {
        overflow-wrap: break-word;
    }
    
    input,
textarea,
select {
        max-width: 100%;
        min-width: 0;
    }
    
    .cabecera {
        width: 100%;
        max-width: 100vw;
    }
    
    .navegacion {
        min-width: 0;
    }
    
    .hero {
        isolation: isolate;
    }
    
    .hero-contenido,
.hero-lateral {
        min-width: 0;
    }
    
    .rejilla {
        min-width: 0;
    }
    
    .card-platillo {
        min-width: 0;
    }
    
    .card-titulo {
        min-width: 0;
    }
    
    .card-titulo h3 {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    
    .modal {
        box-sizing: border-box;
        overscroll-behavior: contain;
        overflow-x: hidden;
        overflow-y: auto;
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 24px);
        scrollbar-gutter: stable;
    }
    
    .modal[open] {
        position: fixed;
    }
    
    .modal .cerrar {
        position: sticky;
        float: right;
        top: 0;
        right: 0;
        z-index: 10;
        flex-shrink: 0;
    }
    
    .modal-login .cerrar,
.modal-carrito .cerrar {
        position: sticky;
        float: right;
        top: 10px;
        margin-right: 8px;
    }
    
    .checkout-layout {
        min-width: 0;
    }
    
    .checkout-resumen,
.checkout-pago {
        min-width: 0;
    }
    
    .checkout-items .linea-carrito {
        min-width: 0;
    }
    
    .checkout-items .linea-carrito > div:nth-child(2) {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    
    .checkout-pago fieldset {
        min-width: 0;
    }
    
    .checkout-pago .pago-grid,
.checkout-pago .entrega-grid {
        min-width: 0;
    }
    
    .checkout-pago .pago-tile,
.checkout-pago .entrega-tile {
        min-width: 0;
    }
    
    .checkout-pago .pago-tile strong,
.checkout-pago .entrega-tile strong {
        overflow-wrap: anywhere;
    }
    
    .modal-login .login-campo input {
        min-width: 0;
        flex: 1;
    }
    
    .modal-login .login-opciones {
        flex-wrap: wrap;
    }
    
    .modal-login .login-opciones > * {
        max-width: 100%;
    }
    
    .aviso-cuenta-inicial {
        max-height: min(45dvh, 340px);
        overflow: auto;
    }

    @media (max-width: 1050px) {
        
        :root {
            --alto-cabecera: 90px;
        }
        
        .cabecera {
            min-height: 90px;
        }
        
        .marca {
            width: 72px;
            height: 72px;
        }
        
        .acciones-cabecera .enlace-cuenta {
            display: none;
        }
        
        .hero {
            grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
        }
        
        .hero h1 {
            font-size: clamp(45px, 6.4vw, 76px);
        }
        
        .checkout-layout {
            grid-template-columns: 1fr;
        }
        
        .checkout-resumen {
            border-right: 0;
            border-bottom: 1px solid #4b382a;
        }
        
        .modal-carrito {
            max-width: 680px;
        }
    }

    @media (max-width: 850px) {
        
        :root {
            --alto-cabecera: 80px;
        }
        
        .cabecera {
            min-height: 80px;
            gap: 10px;
        }
        
        .marca {
            width: 62px;
            height: 62px;
        }
        
        .menu-movil {
            display: block;
            min-height: 44px;
            min-width: 55px;
        }
        
        .navegacion {
            top: 80px;
            max-height: calc(100dvh - 90px);
            overflow-y: auto;
            box-shadow: 0 18px 38px #000b;
        }
        
        .navegacion a {
            min-height: 44px;
            display: flex;
            align-items: center;
        }
        
        .hero {
            grid-template-columns: 1fr;
        }
        
        .hero-lateral {
            max-width: 100%;
        }
        
        .hero-contenido {
            max-width: 100%;
        }
        
        .historia-grid,
    .reservas-grid,
    .contacto-premium-grid {
            grid-template-columns: minmax(0, 1fr);
        }
        
        .detalle-grid {
            grid-template-columns: minmax(0, 1fr);
        }
        
        .detalle-grid > img {
            height: clamp(200px, 42vw, 340px);
        }
    }

    @media (max-width: 600px) {
        
        :root {
            --alto-cabecera: 74px;
        }
        
        .cabecera {
            min-height: 74px;
            padding: 6px 10px;
        }
        
        .marca {
            width: 56px;
            height: 56px;
        }
        
        .navegacion {
            top: 74px;
        }
        
        .acciones-cabecera {
            min-width: 0;
        }
        
        .boton-carrito {
            padding: 8px 10px;
            min-height: 44px;
            max-width: 122px;
        }
        
        .hero {
            padding: 120px 16px 45px;
            background-position: 58% center;
        }
        
        .hero h1 {
            font-size: clamp(39px, 10.5vw, 62px);
            letter-spacing: -0.035em;
        }
        
        .hero-signature {
            flex-wrap: wrap;
        }
        
        .hero-categorias {
            grid-template-columns: 1fr;
        }
        
        .contenedor {
            width: calc(100% - 30px);
        }
        
        .rejilla {
            grid-template-columns: minmax(0, 1fr);
        }
        
        .categorias {
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scroll-snap-type: x proximity;
        }
        
        .categorias button {
            scroll-snap-align: start;
            min-width: 126px;
        }
        
        .form-reserva {
            grid-template-columns: minmax(0, 1fr);
        }
        
        .pie-grid {
            grid-template-columns: minmax(0, 1fr);
        }
        
        .modal {
            max-width: calc(100vw - 12px);
            width: calc(100vw - 12px);
            max-height: calc(100dvh - 12px);
            padding: 54px 15px 18px;
            border-radius: 14px;
        }
        
        .modal-login {
            padding: 46px 18px 20px;
        }
        
        .modal-login .login-emblema img {
            width: 105px;
            height: 105px;
        }
        
        .modal-login .login-campo {
            height: 54px;
            padding-inline: 10px;
        }
        
        .modal-login .login-campo input {
            font-size: 16px;
        }
        
        .modal-login h2 {
            font-size: clamp(33px, 9vw, 44px);
        }
        
        .modal-login .login-opciones {
            align-items: flex-start;
            gap: 8px;
        }
        
        .checkout-layout {
            display: block;
        }
        
        .modal-carrito {
            padding: 0;
        }
        
        .checkout-resumen,
    .checkout-pago {
            padding: 22px 14px;
        }
        
        .checkout-pago .pago-grid,
    .checkout-pago .entrega-grid {
            gap: 6px;
        }
        
        .checkout-pago .pago-tile,
    .checkout-pago .entrega-tile {
            min-height: 88px;
            padding: 9px 4px;
        }
        
        .checkout-pago .pago-icon,
    .checkout-pago .entrega-tile > span {
            font-size: 22px;
        }
        
        .checkout-pago .pago-tile strong,
    .checkout-pago .entrega-tile strong {
            font-size: 11px;
        }
        
        .checkout-items .linea-carrito {
            grid-template-columns: 62px minmax(0, 1fr);
        }
        
        .checkout-items .linea-carrito img {
            width: 62px;
            height: 64px;
        }
        
        .checkout-items .linea-carrito > div:last-child {
            grid-column: 2;
            justify-self: start;
        }
        
        .checkout-confirmar {
            gap: 10px;
            min-width: 0;
        }
        
        .checkout-confirmar span {
            white-space: nowrap;
        }
        
        .aviso-cuenta-inicial {
            bottom: 12px;
            right: 12px;
            max-width: calc(100vw - 24px);
            width: calc(100vw - 24px);
        }
    }

    @media (max-width: 360px) {
        
        .marca {
            width: 48px;
            height: 48px;
        }
        
        .menu-movil {
            padding: 7px 9px;
        }
        
        .hero h1 {
            font-size: 38px;
        }
        
        .grupo-botones {
            flex-direction: column;
        }
        
        .grupo-botones .boton {
            width: 100%;
        }
        
        .checkout-pago .pago-tile strong,
    .checkout-pago .entrega-tile strong {
            font-size: 10px;
        }
        
        .modal-login .emblema-rama {
            display: none;
        }
        
        .login-opciones {
            flex-direction: column;
        }
    }

    @media (max-height: 600px) {
        
        .modal {
            max-height: calc(100dvh - 8px);
        }
        
        .modal-login .login-emblema img {
            width: 70px;
            height: 70px;
        }
        
        .modal-login {
            padding-top: 30px;
        }
        
        .modal-login h2 {
            margin: 6px 0;
        }
        
        .modal-login form {
            margin-top: 10px;
        }
        
        .aviso-cuenta-inicial {
            max-height: 45dvh;
        }
    }
    /* Ver platillo: siempre visible, información accesible incluso sin inventario */
    
    .card-platillo .boton.contorno {
        cursor: pointer;
        min-height: 46px;
    }
    
    .card-platillo .boton.contorno:focus-visible {
        outline: 3px solid #ffcd88;
        outline-offset: 3px;
    }
    
    .detalle-disponibilidad {
        color: #e7bd86;
        font-size: 14px;
        line-height: 1.5;
        margin: 4px 0;
    }
    
    .detalle-disponibilidad:empty {
        display: none;
    }
    
    #detalle-agregar:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }
    
    #detalle-imagen[hidden] {
        display: none;
    }
    
    .modal-platillo .detalle-grid:has(#detalle-imagen[hidden]) {
        grid-template-columns: 1fr;
        max-width: 610px;
        margin: auto;
    }
    /* Acabados discretos: no se altera la distribución aprobada. */
    
    :root {
        scroll-behavior: smooth;
    }
    
    .card-platillo,
.hero-categoria,
.pago-tile,
.entrega-tile {
        transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        
        .card-platillo:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 38px #0007;
        }
        
        .hero-categoria:hover {
            transform: translateX(4px);
        }
        
        .card-platillo .card-imagen {
            transition: transform 0.7s ease;
        }
        
        .card-platillo:hover .card-imagen {
            transform: scale(1.045);
        }
    }
    
    .boton:focus-visible,
a:focus-visible,
button:focus-visible {
        outline: 3px solid #ffd391;
        outline-offset: 3px;
    }
    
    .milpa-mapa {
        width: min(1140px, calc(100% - 32px));
        margin: 34px auto 58px;
        border: 1px solid #b98242;
        border-radius: 18px;
        overflow: hidden;
        background: #0e0b09;
        box-shadow: 0 20px 50px #0007;
    }
    
    .milpa-mapa-encabezado {
        padding: 23px clamp(17px, 4vw, 36px);
    }
    
    .milpa-mapa-encabezado span {
        color: #e5ad65;
        letter-spacing: 0.16em;
        font-size: 12px;
    }
    
    .milpa-mapa-encabezado p {
        font-size: 13px;
        color: #d5c2ae;
        margin: 10px 0 0;
    }
    
    .milpa-mapa iframe {
        display: block;
        width: 100%;
        height: clamp(280px, 36vw, 430px);
        border: 0;
        filter: grayscale(0.65) sepia(0.28) contrast(1.03);
    }
    
    .milpa-mapa-abrir {
        display: block;
        padding: 17px 25px;
        color: #ffd391;
        text-align: center;
        text-decoration: none;
        border-top: 1px solid #5b402a;
    }
    
    .contacto-premium-redes a {
        display: block;
        margin: 12px 0;
    }

    @media (max-width: 600px) {
        
        .milpa-mapa {
            margin: 20px auto 35px;
        }
        
        .milpa-mapa iframe {
            height: 310px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        
        *,
    *::before,
    *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    /* LA MILPA · Edición editorial: movimiento elegante y fotografías de la carta */
    
    .progreso-lectura {
        position: fixed;
        z-index: 10001;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        pointer-events: none;
        background: linear-gradient(90deg, #96612e, #ffe0a2, #c78d4d) left center/var(--avance, 0%) 100%
        no-repeat;
        box-shadow: 0 1px 9px #dfab64a0;
    }
    
    .cabecera.cabecera-desplazada {
        border-bottom-color: rgba(245, 192, 112, 0.46) !important;
        box-shadow: 0 15px 40px #0009 !important;
    }
    
    .hero-categoria {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-height: 84px;
        gap: 13px !important;
        background: linear-gradient(105deg, #25170f, #120d0a) !important;
        transition: background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease !important;
    }
    
    .hero-categoria::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(103deg, transparent 10%, #ab6e2c12 70%, transparent);
        opacity: 0;
        transform: translateX(-40%);
        transition: opacity 0.3s,
        transform 0.6s;
        pointer-events: none;
    }
    
    .hero-categoria:hover::before {
        opacity: 1;
        transform: translateX(30%);
    }
    
    .hero-categoria .espacio-imagen {
        position: relative;
        z-index: 1;
        width: 72px !important;
        height: 69px !important;
        aspect-ratio: 1.06;
        overflow: hidden;
        border: 1px solid #d3a96f5e;
        border-radius: 9px !important;
        flex: none;
        background: linear-gradient(#26160f, #26160f) !important;
        transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.5s ease;
        box-shadow: 0 5px 18px #0007;
    }
    
    .hero-categoria .espacio-imagen::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg, transparent 30%, #160d0880);
    }
    
    .hero-categoria:nth-child(1) .espacio-imagen {
        background-image: linear-gradient(#21120b26, #21120b26),
        url("https://res.cloudinary.com/dnrhcpdur/image/upload/v1792976273/Desayuno_mexicano_r%C3%BAstico_a_la_luz_de_velas_pubf0u.png"),
        url("../assets/platillo-107.jpg") !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .hero-categoria:nth-child(2) .espacio-imagen {
        background-image: linear-gradient(#21120b18, #21120b18),
        url("https://res.cloudinary.com/dnrhcpdur/image/upload/v1792976883/Pollo_con_mole_y_arroz_mexicano_m7eofv.png"),
        url("../assets/platillo-101.jpg") !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .hero-categoria:nth-child(3) .espacio-imagen {
        background-image: linear-gradient(#21120b18, #21120b18),
        url("https://res.cloudinary.com/dnrhcpdur/image/upload/v1792977022/Cena_mexicana_con_quesadillas_y_guacamole_t4evpa.png"),
        url("../assets/platillo-113.jpg") !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .hero-categoria:nth-child(4) .espacio-imagen {
        background-image: linear-gradient(#21120b18, #21120b18),
        url("https://res.cloudinary.com/dnrhcpdur/image/upload/v1792977080/Flan_con_fresas_y_canela_en_mesa_r%C3%BAstica_m5xfoh.png"),
        url("../assets/platillo-119.jpg") !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .hero-categoria:nth-child(5) .espacio-imagen {
        background-image: linear-gradient(#21120b18, #21120b18),
        url("https://res.cloudinary.com/dnrhcpdur/image/upload/v1792977219/Caf%C3%A9_y_t%C3%A9_entre_barro_y_canela_qeeo5c.png"),
        url("../assets/platillo-125.jpg") !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .hero-categoria .hero-cat-copy {
        position: relative;
        z-index: 1;
        gap: 2px;
    }
    
    .hero-categoria .categoria-num {
        color: #e5ab65 !important;
        letter-spacing: 0.14em;
        font-size: 9px !important;
        line-height: 1.4;
    }
    
    .hero-categoria .hero-cat-copy strong {
        font-size: clamp(16px, 1.8vw, 22px);
        letter-spacing: -0.025em;
    }
    
    .hero-categoria .hero-cat-arrow {
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
        color: #f0bd7a;
    }

    @media (hover: hover) and (pointer: fine) {
        
        .hero-categoria:hover {
            transform: translateX(5px) !important;
            border-color: #efba79 !important;
            box-shadow: 0 12px 25px #0006,
            0 0 0 1px #efba7930 inset;
        }
        
        .hero-categoria:hover .espacio-imagen {
            transform: scale(1.055) rotate(-1deg);
            filter: saturate(1.16);
        }
        
        .hero-categoria:hover .hero-cat-arrow {
            transform: translate(3px, -3px);
        }
    }
    
    .categorias button {
        position: relative;
        overflow: hidden;
        transition: background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease !important;
    }
    
    .categorias button::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 2px;
        transform: translateX(-50%);
        background: #ffd49b;
        transition: width 0.4s ease;
    }
    
    .categorias button:hover::after,
.categorias button.activo::after {
        width: 80%;
    }
    
    .card-platillo {
        position: relative;
        isolation: isolate;
        will-change: auto;
        transition: transform 0.46s cubic-bezier(0.2, 0.85, 0.2, 1),
        border-color 0.35s,
        box-shadow 0.46s !important;
    }
    
    .card-foto {
        position: relative;
    }
    
    .card-foto::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 65%, #130a0563),
        linear-gradient(110deg, transparent 35%, #f5cf8620 55%, transparent 73%);
        opacity: 0.55;
        transition: opacity 0.6s ease;
    }
    
    .card-imagen {
        transition: transform 0.75s cubic-bezier(0.15, 0.75, 0.2, 1),
        filter 0.65s ease !important;
    }
    
    .card-platillo .card-titulo strong {
        transition: color 0.25s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        
        .card-platillo:hover {
            transform: translateY(-10px) !important;
            box-shadow: 0 28px 65px #000b,
            0 0 0 1px #eac08c38 !important;
        }
        
        .card-platillo:hover .card-imagen {
            transform: scale(1.095) !important;
            filter: saturate(1.12) contrast(1.05);
        }
        
        .card-platillo:hover .card-foto::after {
            opacity: 0.15;
        }
        
        .card-platillo:hover .card-titulo strong {
            color: #ffdc9c;
        }
    }
    
    .boton {
        position: relative;
        overflow: hidden;
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        background 0.35s ease !important;
    }
    
    .boton::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        transform: translateX(-130%) skewX(-23deg);
        background: linear-gradient(90deg, transparent, #fff6c936, transparent);
        transition: transform 0.7s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        
        .boton:not(:disabled):hover {
            transform: translateY(-3px);
        }
        
        .boton:not(:disabled):hover::before {
            transform: translateX(130%) skewX(-23deg);
        }
    }
    
    .hero h1 {
        animation: milpaTitulo 1.05s cubic-bezier(0.22, 0.75, 0.2, 1) both;
    }
    
    .hero-sub {
        animation: milpaTitulo 1.1s 0.15s cubic-bezier(0.22, 0.75, 0.2, 1) both;
    }
    
    .hero .grupo-botones {
        animation: milpaTitulo 1.15s 0.25s cubic-bezier(0.22, 0.75, 0.2, 1) both;
    }
    
    .hero-lateral {
        animation: milpaTitulo 1.1s 0.2s cubic-bezier(0.22, 0.75, 0.2, 1) both;
    }

    @keyframes milpaTitulo {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .movimiento-elegante .revelar {
        opacity: 0;
        transform: translateY(29px);
        transition: opacity 0.85s cubic-bezier(0.2, 0.75, 0.2, 1),
        transform 0.85s cubic-bezier(0.2, 0.75, 0.2, 1);
        transition-delay: var(--desfase, 0ms);
    }
    
    .movimiento-elegante .revelar.revelado {
        opacity: 1;
        transform: translateY(0);
    }
    
    .movimiento-elegante .card-platillo.revelar.revelado {
        transition: opacity 0.8s ease,
        transform 0.65s cubic-bezier(0.2, 0.85, 0.2, 1),
        box-shadow 0.35s,
        border-color 0.35s;
    }
    /* Pago: sin introducir números de tarjeta en un formulario no conectado a una pasarela */
    
    .modal-pago {
        width: min(980px, calc(100vw - 26px));
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .pago-marco {
        display: grid;
        grid-template-columns: minmax(265px, 0.85fr) minmax(320px, 1.15fr);
        min-height: 560px;
    }
    
    .pago-intro {
        position: relative;
        padding: clamp(28px, 4vw, 47px);
        background: radial-gradient(ellipse at 15% 2%, #87502562, transparent 67%),
        linear-gradient(155deg, #3b2215, #150e0a 83%);
        border-right: 1px solid #80563782;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    
    .pago-intro::after {
        content: "✳";
        position: absolute;
        bottom: -90px;
        right: -20px;
        font-size: 270px;
        line-height: 1;
        color: #f9bf6a0b;
        pointer-events: none;
    }
    
    .pago-intro > *,
.pago-datos > * {
        position: relative;
        z-index: 1;
    }
    
    .sello-pago {
        display: grid;
        place-items: center;
        width: 57px;
        height: 57px;
        margin-bottom: 27px;
        border: 1px solid #dda862;
        border-radius: 50%;
        color: #edbd76;
        font-size: 35px;
    }
    
    .pago-intro h2 {
        font-size: clamp(35px, 4.3vw, 60px);
        letter-spacing: -0.04em;
    }
    
    .pago-intro > p:not(.modal-kicker) {
        color: #dfc8b1;
        font-size: 14px;
        max-width: 310px;
        line-height: 1.7;
    }
    
    .pago-total-card {
        border-top: 1px solid #b7865180;
        margin-top: 22px;
        padding-top: 20px;
        display: grid;
        gap: 3px;
    }
    
    .pago-total-card span,
.pago-total-card small {
        color: #e4c29e;
        font-size: 12px;
    }
    
    .pago-total-card strong {
        font-family: var(--serif);
        font-weight: 500;
        font-size: clamp(33px, 4vw, 51px);
        color: #fbd18c;
    }
    
    .pago-sello-bajo {
        font-size: 10px;
        letter-spacing: 0.22em;
        color: #bb8b5c;
        margin-top: 45px;
    }
    
    .pago-datos {
        padding: clamp(26px, 4vw, 48px) clamp(21px, 4vw, 45px) 34px;
        background: linear-gradient(145deg, #1d140e, #0f0b08);
    }
    
    .pago-datos h3 {
        font-family: var(--serif);
        font-size: clamp(28px, 3.5vw, 38px);
        font-weight: 500;
        margin: 10px 0 22px;
    }
    
    #form-pago-datos {
        display: grid;
        gap: 14px;
    }
    
    .pago-campos-dobles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    #form-pago-datos label {
        font-size: 13px;
        gap: 6px;
    }
    
    #form-pago-datos input {
        min-height: 46px;
    }
    
    .dato-opcional {
        font-size: 11px;
        color: #a89179;
    }
    
    .pago-eleccion {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 12px 14px;
        border: 1px solid #9d724968;
        border-radius: 10px;
        background: #2a1a1180;
    }
    
    .pago-eleccion span {
        color: #dbc3a6;
        font-size: 12px;
        margin-right: auto;
    }
    
    .pago-eleccion strong {
        color: #f7c68b;
        font-size: 13px;
    }
    
    .pago-cambiar {
        border: 0;
        background: transparent;
        color: #ecc28e;
        font-size: 12px;
        text-decoration: underline;
        text-underline-offset: 3px;
        padding: 5px;
    }
    
    .pago-detalle-efectivo[hidden],
.pago-detalle-tarjeta[hidden] {
        display: none !important;
    }
    
    .pago-cambio,
.pago-nota {
        font-size: 12px;
        line-height: 1.6;
        color: #d3b797;
        margin: 7px 0 0;
    }
    
    .pago-nota {
        padding: 10px 12px;
        border-left: 2px solid #dda862;
        background: #3f271652;
    }
    
    .pago-acciones {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .pago-acciones .boton {
        font-size: 13px;
        padding: 10px 15px;
        min-height: 46px;
    }
    
    #pago-finalizar:disabled {
        opacity: 0.6;
        cursor: progress;
    }
    
    .modal-exito {
        text-align: center;
        width: min(540px, calc(100vw - 24px));
        padding: 45px 25px !important;
    }
    
    .modal-exito .boton {
        margin: 20px auto 0;
    }
    
    .modal-exito > p:not(.modal-kicker) {
        color: #d8c6af;
    }
    
    .exito-emblema {
        font-size: 58px;
        color: #ebbd73;
    }
    
    .exito-folio {
        padding: 17px;
        border: 1px solid #bd8b5463;
        border-radius: 10px;
        margin: 25px auto 0;
    }
    
    .exito-folio strong {
        display: block;
        font-family: var(--serif);
        font-size: 28px;
        color: #ffe0a3;
    }

    @media (max-width: 760px) {
        
        .modal-pago {
            overflow-y: auto !important;
            max-height: calc(100dvh - 20px) !important;
        }
        
        .pago-marco {
            grid-template-columns: 1fr;
        }
        
        .pago-intro {
            padding: 25px 23px 18px;
            border-right: 0;
            border-bottom: 1px solid #80563782;
        }
        
        .pago-intro .sello-pago,
    .pago-sello-bajo {
            display: none;
        }
        
        .pago-intro h2 {
            font-size: 32px;
            margin: 10px 0;
        }
        
        .pago-intro > p:not(.modal-kicker) {
            display: none;
        }
        
        .pago-total-card {
            padding-top: 8px;
            margin-top: 5px;
        }
        
        .pago-total-card strong {
            font-size: 34px;
        }
        
        .pago-datos {
            padding: 23px;
        }
        
        .pago-datos h3 {
            font-size: 28px;
            margin: 4px 0 13px;
        }
    }

    @media (max-width: 460px) {
        
        .pago-campos-dobles {
            grid-template-columns: 1fr;
        }
        
        .pago-acciones .boton {
            width: 100%;
        }
        
        .pago-marco {
            min-height: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        
        .movimiento-elegante .revelar {
            opacity: 1 !important;
            transform: none !important;
        }
        
        .hero h1,
    .hero-sub,
    .hero .grupo-botones,
    .hero-lateral {
            animation: none !important;
        }
        
        .card-platillo:hover,
    .hero-categoria:hover {
            transform: none !important;
        }
    }
    /* Acceso a cuenta integrado al menú en tablet y móvil; sin revelar rutas internas. */
    
    .enlace-acceso-menu {
        display: none;
        background: transparent;
        color: #ffe0a0;
        border: 1px solid #ae77418a;
        border-radius: 8px;
        padding: 10px 15px;
        font-size: 14px;
        text-align: left;
        min-height: 42px;
        cursor: pointer;
    }
    
    .enlace-acceso-menu span {
        float: right;
        transition: transform 0.2s ease;
    }
    
    .enlace-acceso-menu:hover span {
        transform: translate(3px, -3px);
    }

    @media (max-width: 1050px) {
        
        .enlace-acceso-menu {
            display: block;
        }
    }

    @media (max-width: 850px) {
        
        .enlace-acceso-menu {
            width: 100%;
        }
    }
    /* Pulido visual: superficies cálidas y estados interactivos. */
    
    :root {
        --milpa-ease: cubic-bezier(0.22, 1, 0.36, 1);
        --milpa-halo: 0 0 0 3px rgb(232 169 81 / 14%);
    }
    
    ::selection {
        background: #e8a951;
        color: #1b0e07;
    }
    
    .hero-lateral {
        background: linear-gradient(155deg, rgb(44 28 18 / 94%), rgb(13 9 7 / 94%));
        box-shadow: inset 0 1px rgb(255 222 170 / 9%),
        0 24px 65px #0009;
    }
    
    .form-reserva {
        border-color: rgb(232 169 81 / 38%);
        box-shadow: inset 0 1px rgb(255 222 170 / 8%),
        0 20px 50px #0004;
    }
    
    .card-platillo {
        box-shadow: inset 0 1px rgb(255 222 170 / 7%),
        0 12px 30px #0005;
        transition: transform 0.35s var(--milpa-ease),
        border-color 0.3s ease,
        box-shadow 0.35s ease;
    }
    
    .card-platillo:focus-within {
        border-color: var(--gold-light);
        box-shadow: var(--milpa-halo),
        0 16px 40px #0007;
    }
    
    .boton,
.hero-categoria,
.categorias button,
.cerrar {
        transition: background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.3s ease,
        transform 0.3s var(--milpa-ease);
    }
    
    .hero-cat-arrow,
.grupo-botones .boton > span {
        transition: transform 0.3s var(--milpa-ease);
    }
    
    input,
select,
textarea {
        transition: border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
    }
    
    input:focus-visible,
select:focus-visible,
textarea:focus-visible {
        border-color: var(--gold-light);
        box-shadow: var(--milpa-halo);
    }
    
    .card-platillo h3 {
        text-wrap: balance;
    }
    
    .modal::backdrop {
        background: rgb(6 4 3 / 78%);
        backdrop-filter: blur(7px);
    }

    @media (hover: hover) and (pointer: fine) {
        
        .card-platillo:hover {
            box-shadow: inset 0 1px rgb(255 222 170 / 12%),
            0 20px 44px #0008;
        }
        
        .hero-categoria:hover .hero-cat-arrow {
            transform: translate(3px, -3px);
        }
        
        .grupo-botones .boton:hover > span {
            transform: translateX(4px);
        }
        
        .boton.dorado:hover {
            box-shadow: 0 12px 30px rgb(209 143 65 / 22%);
        }
        
        .pie a:hover,
    .contacto-premium-redes a:hover {
            color: var(--gold-light);
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        
        .modal[open] {
            animation: milpa-apertura 0.32s var(--milpa-ease) both;
        }
        
        .modal[open]::backdrop {
            animation: milpa-velo 0.25s ease both;
        }
        
        .exito-emblema {
            animation: milpa-sello 0.55s var(--milpa-ease) both;
        }
    }

    @keyframes milpa-apertura {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.985);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes milpa-velo {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes milpa-sello {
        from {
            opacity: 0;
            transform: scale(0.85) rotate(-8deg);
        }
        to {
            opacity: 1;
            transform: scale(1) rotate(0);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        
        html {
            scroll-behavior: auto !important;
        }
        
        *,
    *::before,
    *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    /* ═══ La Milpa: carta editorial, historia y pedido guiado ═══ */
    
    [hidden] {
        display: none !important;
    }
    
    .menu-herramientas {
        display: flex;
        gap: 14px;
        align-items: stretch;
        margin: 32px 0 10px;
    }
    
    .menu-busqueda {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 12px;
        padding: 0 18px;
        border: 1px solid #9d70424d;
        border-radius: 12px;
        background: #17100c;
    }
    
    .menu-busqueda > span[aria-hidden] {
        font-size: 30px;
        color: #e9b775;
    }
    
    .menu-busqueda input {
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 17px 0;
        color: #fff7eb;
        box-shadow: none;
    }
    
    .menu-busqueda:focus-within {
        outline: 2px solid #efc489;
        outline-offset: 3px;
    }
    
    .menu-busqueda input:focus-visible {
        outline: none;
        box-shadow: none;
    }
    
    .menu-favoritos {
        padding: 14px 20px;
        border: 1px solid #9d70426b;
        border-radius: 12px;
        background: #20160f;
        color: #f7d7ab;
        white-space: nowrap;
    }
    
    .menu-favoritos[aria-pressed="true"] {
        background: #edc087;
        color: #26170e;
        border-color: #edc087;
    }
    
    .menu-favoritos span {
        display: inline-grid;
        place-items: center;
        min-width: 25px;
        height: 25px;
        margin-left: 8px;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-size: 12px;
    }
    
    .menu-ayuda,
.menu-resultados {
        color: #c5af97;
        font-size: 13px;
    }
    
    .categorias {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    
    .menu-resultados {
        margin: 0 0 22px;
        letter-spacing: 0.04em;
    }
    
    .menu-vacio {
        grid-column: 1 / -1;
        padding: 55px 25px;
        text-align: center;
        border: 1px dashed #a4754870;
        border-radius: 18px;
    }
    
    .menu-vacio h3 {
        font-size: 30px;
    }
    
    .menu-vacio p {
        color: #ccb59b;
    }
    
    .card-platillo {
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        border-color: #b58c5c3b;
        background: linear-gradient(150deg, #261c14, #17100c 70%);
    }
    
    .card-platillo .card-foto {
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 10px 10px 0;
        border-radius: 13px;
    }
    
    .card-platillo .card-imagen {
        height: 100%;
    }
    
    .card-etiqueta {
        position: absolute;
        left: 14px;
        bottom: 14px;
        z-index: 2;
        border: 1px solid #fff2df35;
        background: #170f0cd9;
        backdrop-filter: blur(8px);
        border-radius: 30px;
        padding: 6px 13px;
        color: #fff4e3;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    
    .card-favorito {
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 3;
        width: 44px;
        height: 44px;
        border: 1px solid #ffedcf66;
        border-radius: 50%;
        color: #fff5e7;
        background: #1c120dd9;
        font: 27px/1 var(--sans);
        backdrop-filter: blur(8px);
        transition: background 0.2s,
        transform 0.2s;
    }
    
    .card-favorito[aria-pressed="true"] {
        background: #f0c28b;
        color: #4a2515;
        border-color: #f0c28b;
    }
    
    .card-platillo .card-cuerpo {
        padding: 23px 24px 24px;
        flex: 1;
        min-height: 0;
    }
    
    .card-platillo .card-titulo {
        border: 0;
        padding: 0;
        margin: 0 0 12px;
    }
    
    .card-platillo .card-titulo h3 {
        color: #fff0d9;
        font-size: clamp(23px, 2vw, 29px);
        line-height: 1.18;
    }
    
    .card-platillo .card-cuerpo > p {
        color: #c9b7a2;
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 16px;
    }
    
    .card-estado {
        display: block;
        color: #bc9d7a;
        font-size: 11px;
        margin: 0 0 16px;
    }
    
    .card-pie {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid #c3986233;
        padding-top: 18px;
    }
    
    .card-importe {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    
    .card-importe strong {
        font-family: var(--serif);
        font-size: 29px;
        font-weight: 500;
        color: #f3c88e;
    }
    
    .card-importe small {
        font-size: 10px;
        color: #bba086;
        letter-spacing: 0.08em;
    }
    
    .card-pie .boton {
        font-size: 12px;
        padding: 10px 13px;
        min-height: 44px;
        border-radius: 8px;
        background: #e8ba7d;
        border-color: #e8ba7d;
        color: #26160c;
    }
    
    .historia-texto h2 {
        font-size: clamp(36px, 4.4vw, 64px);
    }
    
    .historia-texto > p:not(.eyebrow) {
        max-width: 540px;
    }
    
    .historia-sello {
        position: absolute;
        left: 24px;
        bottom: 24px;
        width: 144px;
        height: 144px;
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 5px;
        border-radius: 50%;
        background: #f0d7b4;
        color: #4c2b18;
        border: 6px double #70472d;
        box-shadow: 0 8px 30px #0005;
        transform: rotate(-8deg);
    }
    
    .historia-sello > span {
        font-size: 40px;
        line-height: 1;
    }
    
    .historia-sello small {
        font-size: 10px;
        text-align: center;
        letter-spacing: 0.15em;
    }
    
    .historia-firma {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 28px;
        font-size: 13px;
        color: #c8ab89;
    }
    
    .historia-firma > span:first-child {
        color: #e5b674;
        font-size: 36px;
    }
    
    .historia-firma strong {
        font-weight: 500;
        color: #f0dbc1;
    }
    
    .modal-historia {
        width: min(880px, calc(100vw - 24px));
        padding: 0 !important;
        border-radius: 20px;
        background: #18100b;
    }
    
    .relato-portada {
        height: 240px;
        position: relative;
    }
    
    .relato-portada img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .relato-portada::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, #18100b, transparent 85%);
    }
    
    .relato-portada .eyebrow {
        position: absolute;
        z-index: 1;
        left: 40px;
        bottom: 0;
        margin: 0;
    }
    
    .relato-contenido {
        padding: 28px 40px 42px;
    }
    
    .relato-contenido h2 {
        font-size: clamp(36px, 5vw, 64px);
    }
    
    .relato-entrada {
        max-width: 660px;
        font-size: 18px;
        color: #deccb4;
    }
    
    .relato-capitulos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
        margin: 34px 0;
    }
    
    .relato-capitulos article {
        border-top: 1px solid #b7864d88;
        padding-top: 17px;
    }
    
    .relato-capitulos article > span {
        font-size: 10px;
        color: #d6a76f;
        letter-spacing: 0.12em;
    }
    
    .relato-capitulos h3 {
        font-size: 24px;
        margin: 14px 0;
    }
    
    .relato-capitulos p {
        color: #bfae9b;
        font-size: 14px;
        line-height: 1.8;
    }
    
    .relato-contenido blockquote {
        margin: 30px 0;
        padding: 18px 0 18px 22px;
        border-left: 2px solid #e2b575;
        color: #eed0a4;
        font: italic 26px/1.4 var(--serif);
    }
    
    .datos-entrega,
.direccion-campos {
        min-width: 0;
        margin: 14px 0 0;
        padding: 20px 0 0;
        border: 0;
        border-top: 1px solid #be94594d;
    }
    
    .datos-entrega legend,
.direccion-campos legend {
        padding: 0 12px 0 0;
        color: #f5d3a4;
        font-weight: 600;
        font-size: 16px;
    }
    
    .datos-entrega label {
        margin-top: 12px;
    }
    
    .datos-entrega input,
.datos-entrega textarea {
        width: 100%;
        min-width: 0;
    }
    
    .datos-entrega input[readonly] {
        color: #bfa78a;
        background: #1c130e;
    }
    
    .datos-entrega > small,
.entrega-aclaracion {
        font-size: 12px;
        color: #c6ae92;
        line-height: 1.6;
    }
    
    .entrega-doble {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 12px;
    }
    
    .entrega-aclaracion {
        padding: 12px;
        background: #d9a36212;
        border-left: 2px solid #c89655;
        margin: 16px 0;
    }
    
    .resumen-entrega {
        padding: 15px 17px;
        margin-bottom: 20px;
        border: 1px solid #ad824e55;
        border-radius: 10px;
        background: #30201466;
        color: #ddc3a2;
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }
    
    .modal-cuenta {
        width: min(520px, calc(100vw - 24px));
    }
    
    .modal-cuenta .enlace-texto {
        display: block;
        margin-top: 20px;
        padding: 12px 0;
    }
    
    .modal-cuenta #cuenta-nombre {
        font-size: 21px;
        color: #f2cc96;
        margin-bottom: 5px;
    }
    
    #cuenta-correo {
        overflow-wrap: anywhere;
    }
    
    .aviso-cuenta-inicial {
        left: max(18px, env(safe-area-inset-left));
        right: auto;
        bottom: max(18px, env(safe-area-inset-bottom));
        width: min(340px, calc(100vw - 36px));
        padding: 20px 34px 18px 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        border: 1px solid #c7965488;
        border-radius: 16px;
        background: linear-gradient(135deg, #302016f5, #160e0bf5);
        box-shadow: 0 16px 50px #0007;
        backdrop-filter: blur(16px);
    }
    
    .aviso-cuenta-inicial .aviso-icono {
        display: none;
    }
    
    .aviso-cuenta-inicial strong {
        font-family: var(--serif);
        font-size: 19px;
        color: #f6d8b0;
        line-height: 1.3;
    }
    
    .aviso-cuenta-inicial p {
        font-size: 12px;
        line-height: 1.6;
        color: #d0bda6;
        margin: 8px 0 0;
    }
    
    .aviso-cuenta-inicial .aviso-acceso {
        justify-self: start;
        padding: 8px 12px;
        min-height: 40px;
        margin: 0;
        border-radius: 7px;
        font-size: 12px;
    }
    
    .aviso-cuenta-inicial .aviso-cerrar {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }

    @media (hover: hover) and (pointer: fine) {
        
        .card-platillo:hover {
            transform: translateY(-6px) !important;
        }
        
        .card-platillo:hover .card-imagen {
            transform: scale(1.045) !important;
        }
        
        .card-favorito:hover {
            transform: scale(1.08);
            background: #eac18b;
            color: #3d2517;
        }
        
        .card-pie .boton:hover {
            color: #241408;
            background: #f9d5a5;
        }
    }

    @media (max-width: 850px) {
        
        .menu-herramientas {
            flex-wrap: wrap;
        }
        
        .menu-busqueda {
            flex-basis: 100%;
        }
        
        .categorias {
            display: flex;
            overflow-x: auto;
        }
        
        .categorias button {
            flex: 1 0 125px;
        }
        
        .relato-capitulos {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .relato-contenido {
            padding: 24px;
        }
        
        .relato-portada .eyebrow {
            left: 24px;
        }
    }

    @media (max-width: 520px) {
        
        .card-platillo .card-cuerpo {
            padding: 20px;
        }
        
        .entrega-doble {
            grid-template-columns: 1fr;
            gap: 0;
        }
        
        .aviso-cuenta-inicial {
            width: min(310px, calc(100vw - 24px));
            left: 12px;
            bottom: max(12px, env(safe-area-inset-bottom));
            padding: 15px 32px 14px 16px;
        }
        
        .aviso-cuenta-inicial strong {
            font-size: 17px;
        }
        
        .relato-portada {
            height: 180px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        
        .card-platillo:hover,
    .card-platillo:hover .card-imagen,
    .card-favorito:hover {
            transform: none !important;
        }
    }
    /* Mantener todos los datos accesibles incluso en pantallas de poca altura. */
    
    .modal.modal-pago {
        overflow-y: auto !important;
    }
    
    #reserva-mensaje:not(:empty) {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    #reserva-mensaje > span {
        flex-basis: 100%;
    }
    
    #reserva-mensaje .boton {
        font-size: 12px;
        min-height: 42px;
    }
    /* Cuenta y lealtad: beneficios explicados antes del registro. */
    
    .beneficios-cuenta {
        background: radial-gradient(ellipse at 90% 10%, #5b39172e, transparent 55%), #15100c;
        border-top: 1px solid #b38b5538;
    }
    
    .beneficios-encabezado {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
        align-items: end;
        gap: 60px;
        margin-bottom: 38px;
    }
    
    .beneficios-encabezado h2 {
        font-size: clamp(36px, 4.6vw, 65px);
        margin-bottom: 0;
    }
    
    .beneficios-encabezado > p {
        max-width: 490px;
        margin: 0;
        color: #d1bfa9;
        line-height: 1.85;
    }
    
    .beneficios-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
    
    .beneficios-grid article {
        padding: 28px;
        border: 1px solid #bb925b40;
        border-radius: 16px;
        background: linear-gradient(135deg, #2a2016, #1a130e);
    }
    
    .beneficio-icono {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid #c8985a88;
        color: #f5cb93;
        font-size: 27px;
        margin-bottom: 22px;
    }
    
    .beneficios-grid .eyebrow {
        font-size: 10px;
        letter-spacing: 0.16em;
    }
    
    .beneficios-grid h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .beneficios-grid article > p:last-child {
        color: #c5b39e;
        font-size: 14px;
        line-height: 1.8;
        margin: 0;
    }
    
    .lealtad-tarjeta {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr) 165px;
        align-items: center;
        gap: 30px;
        margin-top: 24px;
        padding: 35px;
        background: #edcfaa;
        color: #402916;
        border-radius: 18px;
    }
    
    .lealtad-tarjeta .eyebrow {
        color: #78451f;
        font-size: 10px;
    }
    
    .lealtad-tarjeta h3 {
        font-size: 32px;
        margin: 0 0 14px;
    }
    
    .lealtad-tarjeta p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .lealtad-cifra,
.lealtad-descuento {
        display: grid;
        gap: 8px;
        justify-items: center;
        text-align: center;
    }
    
    .lealtad-cifra > strong {
        font: 82px/1 var(--serif);
    }
    
    .lealtad-cifra > span,
.lealtad-descuento > span {
        font-size: 10px;
        letter-spacing: 0.15em;
    }
    
    .lealtad-descuento > strong {
        font: 72px/1 var(--serif);
        white-space: nowrap;
    }
    
    .lealtad-descuento strong span {
        font-size: 35px;
    }
    
    .lealtad-tarjeta .lealtad-nota {
        font-size: 12px;
        color: #725236;
        margin-bottom: 0;
    }
    
    .beneficios-acciones {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 28px;
    }
    
    .beneficios-acciones > span {
        font-size: 12px;
        color: #c3ab8d;
    }
    
    .login-motivo:not(:empty) {
        padding: 13px 15px;
        background: #d4a06117;
        border-left: 2px solid #d6aa6b;
        color: #f2d4b0;
        font-size: 13px;
        line-height: 1.65;
        text-align: left;
        margin: 16px 0;
    }
    
    .login-motivo:empty,
#favoritos-mensaje:empty {
        display: none;
    }
    
    .enlace-beneficios {
        padding: 10px;
        font-size: 13px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    
    .menu-ayuda a {
        color: #f4ce99;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    @media (max-width: 900px) {
        
        .beneficios-encabezado {
            grid-template-columns: 1fr;
            gap: 22px;
        }
        
        .beneficios-grid {
            grid-template-columns: 1fr;
        }
        
        .lealtad-tarjeta {
            grid-template-columns: 95px minmax(0, 1fr);
            padding: 25px;
            gap: 22px;
        }
        
        .lealtad-descuento {
            grid-column: 1 / -1;
            border-top: 1px solid #79553055;
            padding-top: 22px;
        }
    }

    @media (max-width: 480px) {
        
        .lealtad-tarjeta {
            grid-template-columns: 1fr;
        }
        
        .lealtad-cifra {
            justify-items: start;
            text-align: left;
        }
        
        .beneficios-acciones .boton {
            width: 100%;
        }
    }
    /* Bienvenida cinematográfica: el encuadre completo se conserva en móvil y escritorio. */
    
    html.bienvenida-abierta {
        overflow: hidden;
    }
    
    .bienvenida-abierta .aviso-cuenta-inicial {
        visibility: hidden;
    }
    
    .bienvenida {
        box-sizing: border-box;
        width: min(1060px, calc(100vw - 32px));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 0;
        margin: auto;
        overflow: auto;
        overscroll-behavior: contain;
        color: #fff0da;
        background: #130e0a;
        border: 1px solid #b88a4f99;
        border-radius: 22px;
        box-shadow: 0 35px 120px #000b;
    }
    
    .bienvenida::backdrop {
        background: #080503eb;
        backdrop-filter: blur(14px);
    }
    
    .bienvenida-cabecera {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 19px 28px;
        border-bottom: 1px solid #c7975730;
    }
    
    .bienvenida-marca {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .bienvenida-marca img {
        border-radius: 50%;
        border: 1px solid #d7b485;
        object-fit: cover;
    }
    
    .bienvenida-marca > span {
        font-family: var(--serif);
        font-size: 19px;
        letter-spacing: 0.08em;
    }
    
    .bienvenida-marca small {
        display: block;
        font: 8px/1.8 var(--sans);
        letter-spacing: 0.24em;
        color: #ba9d77;
    }
    
    .bienvenida-saltar {
        background: transparent;
        border: 0;
        color: #dcc3a4;
        font-size: 12px;
        padding: 10px 0 10px 10px;
    }
    
    .bienvenida-saltar span {
        font-size: 23px;
        margin-left: 9px;
        vertical-align: middle;
    }
    
    .bienvenida-titular {
        padding: 21px 28px 19px;
        text-align: center;
        background: radial-gradient(ellipse at top, #78512626, transparent 75%);
    }
    
    .bienvenida-titular > p {
        margin: 0 0 9px;
        color: #cba772;
        font-size: 9px;
        letter-spacing: 0.3em;
    }
    
    .bienvenida-titular h2 {
        font-size: clamp(25px, 3.7vw, 43px);
        margin: 0;
        font-weight: 400;
    }
    
    .bienvenida-titular em {
        color: #eac38f;
    }
    
    .bienvenida-pantalla {
        margin: 0 20px;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
        border: 1px solid #b78a493b;
    }
    
    .bienvenida-pantalla video {
        display: block;
        width: 100%;
        max-height: 54dvh;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        background: #000;
    }
    
    .bienvenida-pie {
        padding: 20px 28px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    
    .bienvenida-pie p {
        margin: 0;
        font-size: 13px;
        color: #e1c5a3;
    }
    
    .bienvenida-pie #bienvenida-estado {
        color: #aa947c;
        font-size: 11px;
        margin-top: 5px;
        max-width: 360px;
    }
    
    .bienvenida-controles {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bienvenida-control,
.bienvenida-entrar {
        border-radius: 8px;
        min-height: 44px;
        padding: 10px 13px;
        font-size: 12px;
        cursor: pointer;
        transition: background 0.2s,
        color 0.2s;
    }
    
    .bienvenida-control {
        border: 1px solid #94704466;
        color: #e7c69c;
        background: #241b13;
    }
    
    .bienvenida-entrar {
        border: 1px solid #edc48d;
        color: #30200e;
        background: #edc48d;
        font-weight: 700;
        white-space: nowrap;
    }
    
    .bienvenida-entrar span {
        margin-left: 10px;
    }
    
    .bienvenida-control:hover {
        background: #3c2c1d;
    }
    
    .bienvenida-entrar:hover {
        background: #ffdbad;
    }
    
    .volver-bienvenida {
        display: block;
        background: transparent;
        border: 0;
        color: #dec39f;
        font-size: 12px;
        padding: 10px 0;
        margin: -23px 0 22px;
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    @media (max-width: 760px) {
        
        .bienvenida-pie {
            flex-direction: column;
            align-items: stretch;
        }
        
        .bienvenida-controles {
            justify-content: space-between;
        }
        
        .bienvenida-control {
            flex: 1;
        }
        
        .bienvenida-entrar {
            flex: 1 0 100%;
        }
    }

    @media (max-width: 480px) {
        
        .bienvenida {
            border-radius: 15px;
        }
        
        .bienvenida-cabecera {
            padding: 13px 16px;
        }
        
        .bienvenida-marca > span {
            font-size: 15px;
        }
        
        .bienvenida-marca img {
            width: 35px;
            height: 35px;
        }
        
        .bienvenida-saltar {
            font-size: 10px;
        }
        
        .bienvenida-titular {
            padding: 22px 16px;
        }
        
        .bienvenida-pantalla {
            margin: 0 10px;
        }
        
        .bienvenida-pie {
            padding: 17px;
            gap: 15px;
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        
        .bienvenida[open] {
            animation: bienvenida-entrada 0.45s ease both;
        }

        @keyframes bienvenida-entrada {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
    /* Acabado de cuenta: todos los campos mantienen la misma paleta artesanal. */
    
    .modal-login #form-login {
        color-scheme: dark;
    }
    
    .modal-login #registro-nombre {
        display: flex;
        flex-direction: column;
        gap: 9px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .03em;
        line-height: 1.4;
        color: #f0d5aa;
        text-align: left;
    }
    
    .modal-login #registro-nombre input,
.modal-login #form-login .login-campo input,
.modal-login #form-login input[name="email"],
.modal-login #form-login input[name="password"] {
        color: #fff5e9 !important;
        -webkit-text-fill-color: #fff5e9 !important;
        caret-color: #efba72;
        background: #1b120e !important;
        border-radius: 8px;
        color-scheme: dark;
        font-family: inherit;
    }
    
    .modal-login #form-login .login-campo input {
        background: transparent !important;
    }
    
    .modal-login #registro-nombre input {
        display: block;
        width: 100%;
        min-height: 58px;
        padding: 13px 17px;
        border: 1px solid #af7d42;
        box-shadow: inset 0 1px 2px #0003;
        font-size: 16px;
        transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }
    
    .modal-login #registro-nombre input:focus {
        outline: 0;
        border-color: #ffd18e;
        box-shadow: 0 0 0 3px #f0b96c3b, inset 0 1px 2px #0003;
    }
    
    .modal-login #registro-nombre input::placeholder,
.modal-login .login-campo input::placeholder {
        color: #bfae9a;
        opacity: 1;
    }
    
    .modal-login #form-login input:-webkit-autofill,
.modal-login #form-login input:-webkit-autofill:hover,
.modal-login #form-login input:-webkit-autofill:focus,
.modal-login #form-login input:autofill {
        -webkit-box-shadow: 0 0 0 1000px #1b120e inset !important;
        box-shadow: 0 0 0 1000px #1b120e inset !important;
        -webkit-text-fill-color: #fff5e9 !important;
        caret-color: #efba72 !important;
        border-radius: 8px;
    }

    @media (prefers-reduced-motion: reduce) {
        
        .modal-login #registro-nombre input {
            transition: none;
        }
    }
