/* Motor FUSIA WEB — sitio público. Diseño "Azul noche amigable" (2026-11).
   Fondo claro frío, tarjetas blancas redondeadas con sombra suave, fotos con esquinas redondeadas,
   píldoras para filtrar, barra fija arriba (transparente sobre la portada, sólida al bajar).
   Colores de marca y tipografía: los imprime layout.php desde Datos del negocio (tokens_marca()).
     --brand   = color principal (azul noche): barra, pie, bloques oscuros, píldora activa
     --accent  = acento (azul): links, "Ver todo", botón principal
   Mobile-first. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f2f5f9;          /* fondo */
  --paper: #ffffff;       /* tarjetas */
  --soft: #e7ecf4;        /* lugar de foto vacía, fichas */
  --line: #e2e7ef;
  --line-2: #d3dae6;
  --ink: #0e1a2e;         /* texto */
  --ink-2: #5d6a80;       /* texto secundario */
  --ink-3: #8592a8;
  --ok: #15803d; --ok-soft: #e7f6ec;
  --err: #b42318; --err-soft: #fdecea;
  --wa: #25d366; --wa-ink: #05301a;
  /* Valores por si falta el bloque de marca */
  --brand: #0b1426; --brand-2: #1b2a47; --brand-soft: rgba(11, 20, 38, .07); --brand-tx: #0b1426; --on-brand: #ffffff;
  --accent: #2563eb; --accent-fill: #2563eb; --accent-soft: rgba(37, 99, 235, .1); --on-accent: #ffffff;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --r-lg: 24px;
  --header-h: 68px;
  --container: 1120px;
  --sombra: 0 1px 2px rgba(14, 26, 46, .05), 0 6px 20px rgba(14, 26, 46, .06);
  --sombra-alta: 0 14px 34px rgba(14, 26, 46, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- Botones: píldoras ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-red, .btn-gold { background: var(--accent-fill); color: var(--on-accent); }
.btn-red:hover, .btn-gold:hover { box-shadow: 0 6px 18px var(--accent-soft); filter: brightness(1.05); }
.btn-dark, .btn-outline, .btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-dark:hover, .btn-outline:hover, .btn-ghost:hover { border-color: var(--line-2); box-shadow: var(--sombra); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Barra "Sitio en construcción" ---------- */
.demo-bar { background: var(--accent-fill); color: var(--on-accent); font-size: 12px; font-weight: 600; text-align: center; padding: 5px 12px; }

/* ---------- Barra fija arriba ---------- */
/* Arriba de todo es transparente (va sobre la portada o el encabezado oscuro); al bajar se vuelve sólida. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background .2s ease, box-shadow .2s ease; }
.site-header.is-solida, .site-header.is-abierta { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 20px rgba(11, 20, 38, .22); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.logo { height: 38px; width: auto; display: block; }
.logo.logo-txt { height: auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: inherit; }
.logo-txt i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: #fff; color: var(--brand); font-style: normal; font-size: 13px; font-weight: 800; }
.logo-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100vw - 230px); }
.nav-links { display: none; margin-left: auto; gap: 2px; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 600; opacity: .88; transition: background .15s, opacity .15s; }
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav-links a[aria-current="page"] { opacity: 1; background: #fff; color: var(--brand); }
.header-wa { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(11, 20, 38, .25); color: inherit; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-cel { background: var(--brand); color: var(--on-brand); padding: 4px 16px 18px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.menu-cel a { display: block; padding: 13px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-cel a[aria-current="page"] { opacity: .65; }
@media (max-width: 380px) { .header-wa span { display: none; } }
/* Con todas las páginas del plan Completo los links no entran antes de 1180 px: hasta ahí, menú desplegable. */
@media (min-width: 1180px) {
  .nav-links { display: flex; }
  .header-wa { margin-left: 10px; }
  .menu-toggle, .menu-cel { display: none !important; }
  .logo-txt span { max-width: 280px; }
}

/* ---------- Portada del inicio: foto con el título encima ---------- */
.home-hero { position: relative; color: #fff; background: var(--brand); overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 38, .6) 0%, rgba(11, 20, 38, .25) 42%, rgba(11, 20, 38, .86) 100%); }
.home-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding-top: calc(var(--header-h) + 24px); padding-bottom: 64px; }
.home-hero .kicker { font-size: 14px; font-weight: 600; opacity: .9; }
.home-hero h1 { margin-top: 6px; font-size: clamp(34px, 6.4vw, 56px); line-height: 1.04; max-width: 720px; }
.home-hero h1 em { font-style: normal; }
.home-hero.sin-foto .container { min-height: 320px; }
@media (min-width: 900px) { .home-hero .container { min-height: 460px; } }

/* Tarjeta blanca que se monta sobre la portada */
.flota {
  position: relative; z-index: 2; margin-top: -36px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra-alta);
}
.flota-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.flota-ico .icon { width: 22px; height: 22px; }
.flota-txt { min-width: 0; }
.flota-txt b { display: block; font-size: 15px; line-height: 1.3; }
.flota-txt > span { display: block; font-size: 13px; color: var(--ink-2); }
.flota .estado { margin-top: 2px; }
.flota-acc { margin-left: auto; display: flex; gap: 14px; flex: none; }
.flota-acc a { font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) { .flota { flex-wrap: wrap; } .flota-acc { margin-left: 58px; } }

.intro { margin: 22px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 660px; }

/* Píldoras (categorías del inicio y filtros del catálogo) */
.pills, .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.pills::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.pills { margin-top: 16px; }
.pills a, .chip {
  flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pills a:hover, .chip:hover { border-color: var(--line-2); }
.pills a.on, .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- Secciones ---------- */
.section { padding: 44px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section-alt { background: transparent; }
.fila { margin-top: 40px; }
.section-head, .fila-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.section-head h2, .fila-head h2 { font-size: clamp(22px, 3.4vw, 30px); }
.section-head p { color: var(--ink-2); margin-top: 6px; max-width: 600px; }
.fila-head a, .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.link-arrow .icon { width: 16px; height: 16px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; color: var(--accent); }

/* Filas que se deslizan de costado (en celular); en computadora, grilla de 4 */
.tira { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
.tira::-webkit-scrollbar { display: none; }
.tira > * { flex: 0 0 170px; scroll-snap-align: start; }
@media (min-width: 700px) { .tira { margin: 0 -24px; padding: 2px 24px 8px; scroll-padding: 0 24px; } .tira > * { flex-basis: 210px; } }
@media (min-width: 1024px) { .tira { flex-wrap: wrap; overflow: visible; row-gap: 26px; margin: 0; padding: 2px 0 8px; } .tira > * { flex: 0 0 calc((100% - 42px) / 4); } }

/* ---------- Categorías ---------- */
.cat-card { display: block; }
.cat-media { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-media .icon { width: 38%; height: 38%; stroke-width: 1.5; }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-card h3 { margin-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cat-card > span { display: block; font-size: 13px; color: var(--ink-2); }

/* ---------- Productos ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; } }
.prod-card { display: flex; flex-direction: column; min-width: 0; }
.prod-media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--ink-3); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.prod-media .icon { width: 34%; height: 34%; stroke-width: 1.3; opacity: .6; }
#destacados .prod-badge { display: none; } /* en "Lo más pedido" todos son destacados */
.prod-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 11px; font-weight: 700; box-shadow: var(--sombra); }
.prod-body { padding-top: 10px; }
.prod-top { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; color: var(--ink-2); }
.prod-cat { font-weight: 600; }
.prod-brand::before { content: "· "; }
.prod-body h3 { margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: break-word; }
.prod-meta { display: block; font-size: 12px; color: var(--ink-3); }
.prod-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 6px; }
.prod-pres { flex: 1 1 auto; font-size: 13px; color: var(--ink-2); }
.prod-pres:empty { display: none; }
.prod-consultar { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--accent); }
.prod-consultar .icon { width: 15px; height: 15px; transition: transform .15s; }
.prod-consultar:hover .icon { transform: translateX(2px); }

/* ---------- Catálogo ---------- */
.catalog-tools { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); padding: 14px 0 6px; margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sombra); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--ink-3); }
.search .icon { color: var(--ink-2); }
.chips { margin-top: 12px; }
.chips-sub { gap: 6px; margin-top: 2px; }
.chips-sub .chip { height: 34px; padding: 0 14px; font-size: 13px; background: transparent; border-color: transparent; color: var(--ink-2); }
.chips-sub .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chips-tipo .chip { height: 30px; font-size: 12.5px; }
.catalog-count { margin: 8px 0 16px; font-size: 13px; color: var(--ink-2); }
.empty { padding: 40px 24px; text-align: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra); }
.empty h3 { font-size: 20px; }
.empty p { margin: 8px auto 20px; color: var(--ink-2); max-width: 420px; }

/* ---------- Cómo hacer un pedido ---------- */
.pasos { display: grid; gap: 10px; }
.paso { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra); }
.paso-num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.paso h3 { font-size: 16px; font-weight: 700; }
.paso p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 14px; } .paso { padding: 22px; } }

/* Tarjetas de texto (valores, beneficios, pasos de franquicia) */
.features, .steps { display: grid; gap: 12px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } .steps { grid-template-columns: repeat(3, 1fr); } }
.feature, .step { padding: 22px; background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3, .step h3 { margin-top: 14px; font-size: 17px; font-weight: 700; }
.feature p, .step p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.steps { counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 800; }

/* ---------- Bloque oscuro con foto (Nosotros en el inicio) ---------- */
.bloque { display: grid; overflow: hidden; border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); }
.bloque-foto { min-height: 220px; background: var(--brand-2); }
.bloque-foto img { width: 100%; height: 100%; object-fit: cover; }
.bloque-txt { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bloque-txt h2 { font-size: clamp(24px, 3.4vw, 32px); }
.bloque-txt p { opacity: .78; }
.bloque-txt .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--brand); }
@media (min-width: 900px) { .bloque { grid-template-columns: 1fr 1fr; } .bloque-txt { padding: 44px; } }

/* ---------- Banda (franquicias, proveedores, nosotros) ---------- */
.band { display: grid; gap: 20px; padding: 30px 24px; border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); }
.band h2 { font-size: clamp(24px, 3.6vw, 34px); }
.band p { margin-top: 8px; opacity: .78; max-width: 560px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band .btn-red, .band .btn-gold { background: #fff; color: var(--brand); }
.band-dark { background: var(--paper); color: var(--ink); box-shadow: var(--sombra); }
.band-dark p { color: var(--ink-2); opacity: 1; }
.band-dark .btn-red, .band-dark .btn-gold { background: var(--accent-fill); color: var(--on-accent); }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; align-items: center; padding: 44px; } }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(5, 1fr); } }
.brand-tile { display: grid; place-items: center; min-height: 96px; padding: 14px; text-align: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra); font-weight: 700; color: var(--ink-2); }
.brand-tile.has-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.brand-tile.is-placeholder { color: var(--ink-3); font-weight: 600; font-size: 13px; }
/* En el inicio, las marcas van en una fila de fichas */
.brands.brands-fila { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.brands-fila::-webkit-scrollbar { display: none; }
.brands-fila .brand-tile { flex: none; min-height: 52px; padding: 10px 20px; border-radius: 14px; }
.brands-fila .brand-tile.has-logo img { max-height: 32px; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { background: var(--brand); color: var(--on-brand); padding-top: var(--header-h); }
.page-hero .container { padding-top: 34px; padding-bottom: 42px; }
.page-hero .eyebrow { color: inherit; opacity: .7; }
.page-hero h1 { margin-top: 6px; font-size: clamp(30px, 5.4vw, 46px); }
.page-hero p { margin-top: 10px; max-width: 640px; opacity: .78; font-size: 17px; }
@media (min-width: 900px) { .page-hero .container { padding-top: 48px; padding-bottom: 56px; } }

/* ---------- Contenido / prosa ---------- */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.prose h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 6px 0 14px; }
.prose p { color: var(--ink-2); font-size: 16.5px; }
.prose p + p { margin-top: 12px; }
.prose strong, .prose b { color: var(--ink); }
.split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.photo-slot { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px; text-align: center; background: var(--soft); border-radius: var(--r-lg); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.photo-slot .icon { width: 36px; height: 36px; margin: 0 auto 8px; display: block; }

/* ---------- Estado "Abierto / Cerrado" (lo completa main.js) ---------- */
.estado { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado.is-abierto { color: var(--ok); }
.estado.is-cerrado { color: var(--err); }

/* ---------- Empleos ---------- */
.jobs { display: grid; gap: 10px; }
.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--paper); border-radius: var(--r); box-shadow: var(--sombra); }
.job h3 { font-size: 18px; }
.job p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.job-zone { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Formularios ---------- */
.form-card { padding: 22px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sombra); }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.form-card h2 { font-size: 24px; }
.form-card > p { margin-top: 6px; color: var(--ink-2); }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[type="file"] { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.form-note { font-size: 13px; color: var(--ink-2); }
.puestos-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.puestos-field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.puestos-tope { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.puestos { display: flex; flex-wrap: wrap; gap: 8px; }
.puestos .puesto-opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.puesto-opt input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.puesto-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 14px; transition: border-color .15s, background .15s; }
.puesto-opt:hover span { border-color: var(--ink-3); }
.puesto-opt input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.puesto-opt input:checked + span::before { content: "✓"; font-weight: 700; }
.puesto-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.puesto-opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form-status { padding: 12px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 15px; font-weight: 600; }
.form-status.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-status.is-error { background: var(--err-soft); color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; } }
.info-list { display: grid; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 6px 18px; }
.info-list .info-list { box-shadow: none; padding: 0; border-radius: 0; background: transparent; }
.info-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list > .info-item:last-child, .info-list .info-list > .info-item:last-child, .info-list .info-list:empty { border-bottom: 0; }
.info-item .feature-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; }
.info-item h3 { font-size: 15px; font-weight: 700; }
.info-item p, .info-item a { color: var(--ink-2); font-size: 15px; word-break: break-word; }
a.info-item { cursor: pointer; }
a.info-item:hover h3 { color: var(--accent); }
.map { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-lg); margin-bottom: 16px; box-shadow: var(--sombra); }

/* Tarjeta de contacto del inicio: filas dato / valor */
.cont-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 4px 20px; }
.cont-card > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cont-card > div:last-child { border-bottom: 0; }
.cont-card span { color: var(--ink-2); text-align: right; word-break: break-word; }
.cont-card a { color: var(--accent); font-weight: 600; }

/* ---------- Sucursales ---------- */
.suc-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .suc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .suc-grid { grid-template-columns: repeat(3, 1fr); } }
.suc-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.suc-card h3 { font-size: 19px; }
.suc-map { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.photo-slot.suc-map { border-radius: 0; }
.suc-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.suc-info { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.suc-info li { display: flex; gap: 10px; align-items: flex-start; }
.suc-info .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.suc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 56px; background: var(--brand); color: var(--on-brand); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h4 { margin-bottom: 12px; font-size: 13px; font-weight: 700; opacity: .65; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-grid a { opacity: .85; }
.footer-grid a:hover { opacity: 1; }
.footer-brand .logo { height: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; opacity: .72; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; opacity: .85; }
.footer-contact .icon { margin-top: 3px; width: 17px; height: 17px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); opacity: 1; }
.socials a:hover { background: rgba(255, 255, 255, .18); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 18px; padding-bottom: 24px; font-size: 12.5px; opacity: .7; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Aparición suave al bajar (main.js agrega .is-visible) ---------- */
/* Sólo con JavaScript: sin JS el contenido se ve siempre. */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
