/* =============================================================================
 * MENU SAAS — Sitio público (landing y contacto)
 *
 * Hoja independiente del panel y del menú de restaurante: la landing no debe
 * heredar el tema de un restaurante ni los estilos del admin.
 * ============================================================================= */

:root {
    --site-primary: #e11d48;
    --site-primary-dark: #be123c;
    --site-primary-soft: #fff1f2;
    --site-accent: #f59e0b;
    --site-ink: #0f172a;
    --site-muted: #64748b;
    --site-bg: #f8fafc;
    --site-surface: #ffffff;
    --site-border: #e2e8f0;
    --site-radius: 16px;
    --site-radius-sm: 10px;
    --site-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
    --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    font-size: var(--site-font-size, 16px);
}

body.site {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-ink);
    font-family: var(--site-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: var(--site-primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* El ancho y el espaciado los decide la plantilla del portal (etapa 33); los
 * valores de respaldo son los que el sitio usaba antes, así que sin plantilla
 * guardada todo se ve igual. */
.container {
    width: min(var(--site-container, 1120px), 100% - 3rem);
    margin-inline: auto;
}

.section {
    padding: var(--site-section-space, 5rem) 0;
}

.section--alt {
    background: var(--site-surface);
    border-block: 1px solid var(--site-border);
}

.section__head {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: .9rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--site-primary-soft);
    color: var(--site-primary-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
}

.section-lead {
    margin-top: .9rem;
    color: var(--site-muted);
    font-size: 1.05rem;
}

.muted {
    color: var(--site-muted);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--site-ink);
    color: #fff;
    border-radius: 0 0 var(--site-radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* ─────────── Botones ─────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: .93rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(225, 29, 72, .35);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--site-primary);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(225, 29, 72, .8);
}

.btn--primary:hover {
    background: var(--site-primary-dark);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: var(--site-border);
    color: var(--site-ink);
}

.btn--ghost:hover {
    border-color: var(--site-ink);
}

.btn--light {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.btn--light:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.btn--lg {
    padding: .95rem 1.5rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

/* ─────────── Cabecera ─────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--site-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--site-ink);
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.site-brand:hover {
    color: var(--site-ink);
}

.site-brand__mark {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, var(--site-primary), #fb7185);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(225, 29, 72, .9);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: 1rem;
}

.site-nav a {
    padding: .35rem 0;
    color: var(--site-muted);
    font-size: .93rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--site-ink);
    border-bottom-color: var(--site-primary);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
}

.site-nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--site-border);
    border-radius: .7rem;
    background: var(--site-surface);
    cursor: pointer;
}

.site-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--site-ink);
    transition: transform .2s ease, opacity .2s ease;
}

/* ─────────── Hero ─────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(225, 29, 72, .10), transparent 60%),
        radial-gradient(700px 360px at 5% 0%, rgba(245, 158, 11, .10), transparent 55%),
        var(--site-bg);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 3.5rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    padding: .4rem .85rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface);
    color: var(--site-muted);
    font-size: .8rem;
    font-weight: 600;
}

.hero__badge b {
    color: var(--site-primary);
}

.hero__title {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.hero__title em {
    font-style: normal;
    color: var(--site-primary);
}

.hero__lead {
    max-width: 34rem;
    margin-top: 1.2rem;
    color: var(--site-muted);
    font-size: 1.1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.9rem;
}

.hero__note {
    margin-top: 1.1rem;
    color: var(--site-muted);
    font-size: .85rem;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

/* Maqueta de teléfono con la carta del restaurante */
.phone {
    position: relative;
    width: min(300px, 88%);
    padding: 12px;
    border-radius: 34px;
    background: #0b1120;
    box-shadow: 0 40px 80px -36px rgba(15, 23, 42, .6);
}

.phone__screen {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}

.phone__notch {
    width: 96px;
    height: 18px;
    margin: 4px auto 0;
    border-radius: 0 0 12px 12px;
    background: #0b1120;
}

.phone__header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--site-border);
}

.phone__brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 700;
}

.phone__logo {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--site-primary-soft);
    color: var(--site-primary);
    font-size: .85rem;
}

.phone__sub {
    margin-top: .2rem;
    color: var(--site-muted);
    font-size: .7rem;
}

.phone__body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.phone__item {
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .6rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
}

.phone__thumb {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--site-bg);
    font-size: 1.2rem;
}

.phone__lines {
    flex: 1 1 auto;
    min-width: 0;
}

.phone__line {
    height: 8px;
    margin: 4px 0;
    border-radius: 999px;
    background: #e2e8f0;
}

.phone__line--short {
    width: 55%;
}

.phone__line--price {
    width: 28%;
    background: var(--site-primary);
    opacity: .55;
}

.phone__cta {
    margin: 4px 14px 16px;
    padding: .6rem;
    border-radius: 10px;
    background: var(--site-primary);
    color: #fff;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
}

.phone__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--site-shadow);
    font-size: .76rem;
    font-weight: 700;
}

.phone__float--top {
    top: 64px;
    right: -34px;
}

.phone__float--bottom {
    bottom: 56px;
    left: -38px;
}

.phone__float i {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-style: normal;
    font-size: .8rem;
}

/* ─────────── Franja de confianza ─────────── */
.trust {
    border-block: 1px solid var(--site-border);
    background: var(--site-surface);
}

.trust__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
    padding: 1.1rem 0;
}

.trust__item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--site-muted);
    font-size: .86rem;
    font-weight: 600;
}

.trust__item b {
    color: var(--site-ink);
}

.trust__dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #22c55e;
}

/* ─────────── Características ─────────── */
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature {
    padding: 1.6rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-bg);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: #fecdd3;
    box-shadow: var(--site-shadow);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1rem;
    border-radius: .8rem;
    background: var(--site-primary-soft);
    color: var(--site-primary);
}

.feature__title {
    font-size: 1.05rem;
    font-weight: 750;
}

.feature__text {
    margin-top: .5rem;
    color: var(--site-muted);
    font-size: .92rem;
}

/* ─────────── Cómo funciona ─────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.6rem 1.6rem 1.6rem 4.2rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.4rem;
    top: 1.5rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--site-ink);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.step__title {
    font-size: 1rem;
    font-weight: 750;
}

.step__text {
    margin-top: .45rem;
    color: var(--site-muted);
    font-size: .9rem;
}

/* ─────────── Medios de pago ─────────── */
.payments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.paymethod {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.4rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-bg);
}

.paymethod__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.paymethod__title {
    font-size: .98rem;
    font-weight: 750;
}

.paymethod__text {
    color: var(--site-muted);
    font-size: .88rem;
}

.badge {
    flex: 0 0 auto;
    padding: .24rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.badge--ok {
    background: #dcfce7;
    color: #15803d;
}

.badge--warn {
    background: #fef3c7;
    /* #92400e en lugar de #a16207: el par anterior daba 4.42:1 y el texto del
       badge es pequeño (0.68rem), así que no alcanzaba WCAG 2.1 AA. */
    color: #92400e;
}

.badge--info {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ─────────── Restaurantes ─────────── */
.restaurants {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.restaurant {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    transition: transform .18s ease, box-shadow .18s ease;
}

.restaurant:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow);
}

.restaurant__cover {
    height: 96px;
    background: linear-gradient(135deg, #fecdd3, #fde68a);
}

.restaurant__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.3rem;
}

.restaurant__name {
    font-size: 1.02rem;
    font-weight: 750;
}

.restaurant__meta {
    margin-top: .2rem;
    color: var(--site-muted);
    font-size: .8rem;
}

.restaurant__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .6rem;
    color: var(--site-muted);
    font-size: .88rem;
}

.restaurant__link {
    margin-top: auto;
    padding-top: 1rem;
    font-size: .88rem;
    font-weight: 700;
}

/* ─────────── CTA final ─────────── */
.cta {
    padding: 4rem 0;
    background: var(--site-ink);
    color: #fff;
}

.cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta__title {
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    font-weight: 800;
}

.cta__text {
    max-width: 34rem;
    margin-top: .5rem;
    color: #cbd5e1;
}

/* ─────────── Página de contacto ─────────── */
.contact-page {
    padding: 3.5rem 0 5rem;
}

.contact-page__head {
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.contact-page__title {
    font-size: clamp(2rem, 4.6vw, 2.8rem);
    font-weight: 850;
}

.contact-page__lead {
    margin-top: .8rem;
    color: var(--site-muted);
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
    gap: 1.5rem;
}

.contact-card {
    padding: 1.8rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.contact-card__title {
    font-size: 1.1rem;
    font-weight: 750;
}

.contact-card__text {
    margin-top: .35rem;
    color: var(--site-muted);
    font-size: .9rem;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.contact-list__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .65rem;
    background: var(--site-primary-soft);
    color: var(--site-primary);
}

.contact-list__label {
    display: block;
    color: var(--site-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.contact-list__value {
    font-size: .93rem;
    font-weight: 600;
    word-break: break-word;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: .35rem;
}

.form-label {
    font-size: .82rem;
    font-weight: 700;
}

.form-label span {
    color: var(--site-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    background: var(--site-surface);
    color: var(--site-ink);
    font: inherit;
    font-size: .92rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .14);
}

.form-help {
    color: var(--site-muted);
    font-size: .76rem;
}

.form-check {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    color: var(--site-muted);
    font-size: .82rem;
}

.form-check input {
    margin-top: .25rem;
    accent-color: var(--site-primary);
}

/* Trampa anti-spam: invisible para personas, visible para bots */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin-bottom: 1.2rem;
    padding: .85rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--site-radius-sm);
    font-size: .88rem;
}

.alert--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* ─────────── Pie ─────────── */
.site-footer {
    padding: 3.5rem 0 2rem;
    background: #0b1120;
    color: #cbd5e1;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fff;
}

/*
 * CUATRO COLUMNAS, NO TRES.
 * -------------------------
 * La rejilla declaraba `1.4fr repeat(2, 1fr)` (tres pistas) y el pie tiene
 * CUATRO hijos desde que existe la columna «Recursos»: marca, Plataforma, Legal
 * y Recursos. Con tres pistas, el cuarto caía a una segunda fila y dejaba un
 * hueco a la derecha en escritorio. `repeat(3, 1fr)` da una sola fila y reparte
 * el ancho sobrante entre las tres columnas de enlaces.
 */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}

.site-footer__brand .site-brand__mark {
    box-shadow: none;
}

.site-footer__text {
    max-width: 22rem;
    margin-top: .8rem;
    color: #94a3b8;
    font-size: .88rem;
}

.site-footer__title {
    margin-bottom: .8rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer__links {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .88rem;
}

/* Iconos de contacto del pie (Font Awesome, servido en local). Se alinean ópticamente
 * con el texto y no añaden ruido al lector de pantalla: van con aria-hidden y el
 * nombre accesible lo aporta el propio enlace. */
.site-footer__icon {
    width: 1.15em;
    margin-right: .4rem;
    font-size: .95em;
    text-align: center;
    opacity: .75;
}

.site-footer__links a:hover .site-footer__icon,
.site-footer__links a:focus-visible .site-footer__icon {
    opacity: 1;
}

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: #94a3b8;
    font-size: .8rem;
}

/* ─────────── Adaptación ─────────── */
@media (max-width: 980px) {
    .hero__inner,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: -1;
    }

    .features,
    .steps,
    .payments,
    .restaurants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        display: none;
    }

    .site-nav.is-open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        margin: 0;
        padding: 1rem 1.5rem;
        background: var(--site-surface);
        border-bottom: 1px solid var(--site-border);
        box-shadow: var(--site-shadow);
    }

    .site-nav.is-open a {
        padding: .6rem 0;
        border-bottom: 1px solid var(--site-border);
    }

    .site-nav-toggle {
        display: block;
    }

    .site-brand__name {
        display: none;
    }

    .hero {
        padding: 3rem 0 3.5rem;
    }

    .features,
    .steps,
    .payments,
    .restaurants {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .phone__float--top {
        right: -8px;
    }

    .phone__float--bottom {
        left: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}

/* =============================================================================
 * SECCIONES DE PRESENTACIÓN (etapa 13: contenido editable del sitio)
 *
 * Todo lo de aquí abajo se escribe MÓVIL PRIMERO: la base es una sola columna y
 * las rejillas crecen con `auto-fit` o con `min-width`. No se introduce ninguna
 * paleta nueva: sólo se combinan los tokens `--site-*` ya definidos arriba, de
 * modo que un cambio de marca siga siendo un cambio de token.
 * ============================================================================= */

/* ─────────── Chips de confianza (franja bajo el hero) ─────────── */
.trust__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: .84rem;
    font-weight: 600;
}

/* ─────────── Tipos de negocio ─────────── */
.business-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.business-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.business-card:hover {
    transform: translateY(-3px);
    border-color: #fecdd3;
    box-shadow: var(--site-shadow);
}

.business-card__icon {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: .9rem;
    border-radius: .8rem;
    background: var(--site-primary-soft);
    color: var(--site-primary-dark);
}

.business-card__title {
    font-size: 1rem;
    font-weight: 750;
}

.business-card__text {
    margin-top: .45rem;
    color: var(--site-muted);
    font-size: .9rem;
}

/* ─────────── Misión ─────────── */
.mission__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    align-items: start;
}

.mission__text {
    margin-top: 1rem;
    color: var(--site-muted);
    font-size: 1.05rem;
}

.mission__commitments {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Borde izquierdo como acento: separa el compromiso del texto sin sumar color. */
.mission__commitment {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--site-border);
    border-left: 3px solid var(--site-primary);
    border-radius: var(--site-radius-sm);
    background: var(--site-bg);
}

.mission__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: .8rem;
    font-weight: 700;
}

.mission__commitment-title {
    font-size: .98rem;
    font-weight: 750;
}

.mission__commitment-text {
    margin-top: .3rem;
    color: var(--site-muted);
    font-size: .9rem;
}

/* ─────────── Cómo funciona: pasos dentro de <ol> ─────────── */
/* La lista ordenada aporta semántica; la numeración visible la pinta `.step`. */
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps--four {
    grid-template-columns: 1fr;
}

/* ─────────── Estilos y plantillas ─────────── */
.templates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.template-group__title {
    margin-bottom: .85rem;
    color: var(--site-muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-chip {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .65rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    background: var(--site-surface);
    color: var(--site-ink);
    font-size: .84rem;
    font-weight: 600;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.template-chip:hover,
.template-chip:focus-within {
    transform: translateY(-2px);
    border-color: var(--site-primary);
    box-shadow: var(--site-shadow);
}

/* Miniatura dibujada sólo con CSS: ni imágenes ni iframes (cero peticiones). */
.template-chip__preview {
    display: grid;
    align-content: start;
    gap: 5px;
    height: 84px;
    padding: .6rem;
    border: 1px solid var(--site-border);
    border-radius: .5rem;
    background: var(--site-bg);
}

.template-chip__bar {
    height: 6px;
    border-radius: 999px;
    background: var(--site-border);
}

.template-chip__bar--title {
    width: 72%;
    background: var(--site-primary);
    opacity: .55;
}

.template-chip__bar--short {
    width: 48%;
}

.template-chip__bar--price {
    width: 32%;
    background: var(--site-primary);
    opacity: .35;
}

/* Variantes de maqueta: dan sensación de "varias cartas" sin recursos extra. */
.template-chip:nth-child(3n+2) .template-chip__bar--title {
    width: 45%;
}

.template-chip:nth-child(3n+2) .template-chip__preview {
    border-left: 4px solid var(--site-primary);
}

.template-chip:nth-child(3n+3) .template-chip__preview {
    border-radius: .5rem .5rem 1.4rem 1.4rem;
}

/* Las plantillas PDF simulan una hoja: fondo blanco y margen superior. */
.template-chip__preview--pdf {
    height: 84px;
    border-radius: .3rem;
    background:
        linear-gradient(180deg, var(--site-primary-soft) 0 14px, var(--site-surface) 14px),
        var(--site-surface);
}

.template-chip__label {
    overflow-wrap: anywhere;
}

/* ─────────── Estado vacío de una sección ─────────── */
.section-lead--center {
    text-align: center;
}

/* ─────────── Cierre (CTA) ─────────── */
.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

/* ─────────── Pie: datos y navegación ─────────── */
.site-footer__nav {
    min-width: 0;
}

.site-footer__data {
    color: #94a3b8;
}

/* Foco visible para los enlaces del sitio (los botones ya tienen el suyo). */
.site-nav a:focus-visible,
.site-footer a:focus-visible,
.restaurant__link:focus-visible {
    outline: 3px solid rgba(225, 29, 72, .45);
    outline-offset: 3px;
    border-radius: var(--site-radius-sm);
}

.site-footer a:focus-visible {
    outline-color: rgba(255, 255, 255, .65);
}

/* ─────────── Adaptación de lo nuevo ─────────── */
@media (min-width: 761px) {
    .business-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .templates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.2rem;
    }

    .steps--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    .business-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mission__inner {
        grid-template-columns: 1.05fr .95fr;
        gap: 3rem;
        align-items: center;
    }

    .steps--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Sin desplazamientos: el estado se comunica con borde y sombra. */
    .business-card:hover,
    .template-chip:hover,
    .template-chip:focus-within {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   VARIANTES DE LA PLANTILLA DEL PORTAL (etapa 33)
   ═══════════════════════════════════════════════════════════════
 *
 * El editor del panel elige estructura y el layout escribe atributos `data-site-*` en
 * `<body>`. Aquí se reacciona a esos atributos: es la forma de tener variantes sin
 * duplicar hojas ni generar HTML distinto por plantilla.
 *
 * Los valores por defecto (sin atributo o valor desconocido) son los que el sitio ya
 * tenía, así que una instalación sin plantilla guardada no cambia de aspecto.
 */

/* ── Tipografía de títulos ── */
body[data-site-layout] :is(.hero__title, .section__title, .site-brand) {
    font-family: var(--site-font-heading, inherit);
}

/* ── Cabecera ── */
body[data-site-header="solid"] .site-header {
    background: var(--site-surface, #fff);
    backdrop-filter: none;
}

body[data-site-header="transparent"] .site-header {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

/* ── Bloque principal centrado ── */
body[data-site-hero="centered"] .hero__inner,
body[data-site-layout="centered"] .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

body[data-site-hero="centered"] .hero__lead,
body[data-site-layout="centered"] .hero__lead {
    margin-inline: auto;
}

body[data-site-hero="centered"] .hero__actions,
body[data-site-layout="centered"] .hero__actions {
    justify-content: center;
}

/* ── Banner: bloque ancho, sin columna de imagen ── */
body[data-site-hero="banner"] .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding-block: 2rem;
}

/* ── Sin imagen destacada ── */
body[data-site-hero-image="off"] .hero__visual,
body[data-site-layout="minimal"] .hero__visual {
    display: none;
}

body[data-site-hero-image="off"] .hero__inner,
body[data-site-layout="minimal"] .hero__inner {
    grid-template-columns: 1fr;
}

/* Minimal: se apoya en superficie plana, sin el degradado de la portada. */
body[data-site-layout="minimal"] .hero {
    background: var(--site-surface, #fff);
    color: var(--site-ink, #0f172a);
    border-bottom: 1px solid var(--site-border, #e2e8f0);
}

/* ── Tarjetas ── */
body[data-site-cards="outline"] :is(.feature-card, .card) {
    border: 1px solid var(--site-border, #e2e8f0);
    box-shadow: none;
}

body[data-site-cards="flat"] :is(.feature-card, .card) {
    background: var(--site-bg, #f8fafc);
    box-shadow: none;
}

/* ── Botones ── */
body[data-site-buttons="soft"] .btn--primary {
    background: var(--site-primary-soft, #fff1f2);
    color: var(--site-primary-dark, #9f1239);
    border-color: transparent;
}

body[data-site-buttons="outline"] .btn--primary {
    background: transparent;
    color: var(--site-primary, #be123c);
    border: 1px solid currentColor;
}

/* ── Movimiento ── */
body[data-site-animations="off"] *,
body[data-site-animations="off"] *::before,
body[data-site-animations="off"] *::after {
    transition: none !important;
    animation: none !important;
}

/* Quien pide reducir movimiento manda sobre la plantilla. */
@media (prefers-reduced-motion: reduce) {
    body[data-site-layout] *,
    body[data-site-layout] *::before,
    body[data-site-layout] *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   TOKENS DE COLOR POR COMPONENTE (esquema de color del portal)
   ═══════════════════════════════════════════════════════════════
 *
 * `/site-colors.css` define, además de los colores de marca, los tokens de cada grupo:
 *
 *   --site-nav-*        barra de navegación (fondo, texto, borde)
 *   --site-card-*       tarjetas de contenido (fondo, borde)
 *   --site-btn-primary-* y --site-btn-secondary-*   botones
 *   --site-link         enlaces de texto
 *   --site-bg / --site-surface / --site-border / --site-ink / --site-muted
 *
 * Aquí se conectan esos tokens a los componentes reales. Cada regla lleva su valor de
 * respaldo: si la hoja de color no llegara (instalación sin la etapa 32/35), el sitio
 * sigue viéndose como antes en lugar de quedar sin colores.
 */

/* ── Navegación ── */
.site-header {
    background: var(--site-nav-bg, rgba(255, 255, 255, .88));
    border-bottom: 1px solid var(--site-nav-border, var(--site-border, #e2e8f0));
    color: var(--site-nav-text, var(--site-ink, #0f172a));
}

.site-header a,
.site-nav a,
.site-brand {
    color: var(--site-nav-text, var(--site-ink, #0f172a));
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--site-btn-primary-bg, var(--site-primary, #be123c));
}

/* ── Tarjetas ── */
.card,
.feature-card {
    background: var(--site-card-bg, var(--site-surface, #fff));
    border: 1px solid var(--site-card-border, var(--site-border, #e2e8f0));
}

/* Las variantes de forma de la plantilla (etapa 33) siguen mandando sobre el borde. */
body[data-site-cards="flat"] :is(.card, .feature-card) {
    border-color: transparent;
}

/* ── Botones ── */
.btn--primary {
    background: var(--site-btn-primary-bg, var(--site-primary, #be123c));
    color: var(--site-btn-primary-text, #fff);
}

.btn--primary:hover {
    filter: brightness(.94);
}

.btn--ghost,
.btn--light {
    background: var(--site-btn-secondary-bg, #fff);
    color: var(--site-btn-secondary-text, var(--site-ink, #0f172a));
    border: 1px solid var(--site-card-border, var(--site-border, #e2e8f0));
}

/* ── Enlaces de texto ── */
.site a:not(.btn):not(.site-brand):not(.site-nav a) {
    color: var(--site-link, var(--site-primary, #be123c));
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: .18em;
}

.site a:not(.btn):not(.site-brand):not(.site-nav a):hover {
    color: var(--site-link-hover, var(--site-primary-dark, #9f1239));
    text-decoration-color: currentColor;
}
/* ═══════════════════════════════════════════════════════════════
   FORMA FINA: BORDES, ESQUINAS Y SOMBRAS (etapa 36)
   ═══════════════════════════════════════════════════════════════
 *
 * El COLOR del borde lo pone el esquema de color (`--site-border`,
 * `--site-card-border`); aquí solo se usa el ANCHO, el ESTILO y el RADIO, que son de la
 * plantilla. Así se puede cambiar el grosor sin tocar el color y al revés.
 *
 * Los radios por componente heredan el global cuando el administrador no fija uno, de
 * modo que las plantillas ya guardadas no cambian de aspecto.
 */
.site a:not(.btn),
.site p,
.site li {
    /* Sin efecto por sí solo: documenta que el texto base no define borde. */
    text-underline-offset: .18em;
}

/* Tarjetas y superficies */
.card,
.feature-card {
    border-width: var(--site-border-width, 1px);
    border-style: var(--site-border-style, solid);
    border-radius: var(--site-radius-cards, var(--site-radius, 16px));
    box-shadow: var(--site-shadow, 0 18px 40px -24px rgba(15, 23, 42, .35));
}

/* Botones */
.btn {
    border-radius: var(--site-radius-buttons, var(--site-radius-sm, 10px));
    border-width: var(--site-border-width, 1px);
    border-style: var(--site-border-style, solid);
}

/* Campos de formulario del portal (contacto, reservas…) */
.site input:not([type="checkbox"]):not([type="radio"]),
.site select,
.site textarea {
    border-radius: var(--site-radius-inputs, var(--site-radius-sm, 10px));
    border-width: var(--site-border-width, 1px);
    border-style: var(--site-border-style, solid);
    border-color: var(--site-border, #e2e8f0);
}

/* Cabecera: mismo ancho y estilo de borde que el resto. */
.site-header {
    border-bottom-width: var(--site-border-width, 1px);
    border-bottom-style: var(--site-border-style, solid);
}