/* =========================================================
   Tortillería La Real — styles
   Palette pulled from the logo: chile red, maíz yellow,
   naranja, hoja green, cabello brown + talavera blue.
   ========================================================= */
:root {
  --chile: #C8102E;
  --chile-deep: #9E0B22;
  --maiz: #FFC72C;
  --maiz-soft: #FFE08A;
  --naranja: #F26B0F;
  --hoja: #1F7A3A;
  --cafe: #3A1C10;
  --cafe-2: #5A2E1A;
  --talavera: #1C4AA0;
  --rosa: #D6336C;
  --masa: #FFF3D1;
  --ink: #2A140B;
  --white: #FFFFFF;

  --font-display: "Chango", "Arial Black", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: 1.25rem;
  --wrap: min(1240px, 100% - 2 * var(--gutter) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);

  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Crect width='88' height='88' fill='%23FFF3D1'/%3E%3Cg fill='%231C4AA0'%3E%3Cpath d='M44 6c8 10 8 18 0 26-8-8-8-16 0-26zM44 82c-8-10-8-18 0-26 8 8 8 16 0 26zM6 44c10-8 18-8 26 0-8 8-16 8-26 0zM82 44c-10 8-18 8-26 0 8-8 16-8 26 0z'/%3E%3Cpath d='M0 0h14L0 14zM88 0H74l14 14zM0 88h14L0 74zM88 88H74l14-14z'/%3E%3C/g%3E%3Ccircle cx='44' cy='44' r='9' fill='%23FFC72C' stroke='%23F26B0F' stroke-width='3'/%3E%3Cg fill='%23F26B0F'%3E%3Ccircle cx='44' cy='44' r='2.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%231F7A3A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M22 22l8 8M66 22l-8 8M22 66l8-8M66 66l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--masa);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
picture > source { display: none; }
h1, h2, h3, p, li, address, a { overflow-wrap: break-word; }
.hero > *, .casa__inner > *, .jobs__inner > *, .foot__inner > *, .bento > *, .locs__grid > *, .card__body, .loc { min-width: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

/* ---------- language toggle ---------- */
html[data-lang="es"] .en { display: none !important; }
html[data-lang="en"] .es { display: none !important; }

/* ---------- a11y ---------- */
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--cafe); color: var(--maiz); padding: .75rem 1rem; border-radius: 10px; font-weight: 800;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--talavera); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--chile); --fg: var(--white); --edge: var(--chile-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 5px 0 var(--edge);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--yellow { --bg: var(--maiz); --fg: var(--cafe); --edge: #C98F00; }
.btn--ghost {
  --bg: transparent; --fg: var(--cafe); --edge: transparent;
  box-shadow: inset 0 0 0 2.5px var(--cafe);
}
.btn--ghost:hover { --bg: var(--cafe); --fg: var(--maiz); box-shadow: inset 0 0 0 2.5px var(--cafe); }
.btn--ghost:active { box-shadow: inset 0 0 0 2.5px var(--cafe); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }

.eyebrow {
  display: inline-block;
  font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--chile);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--maiz); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--chile-deep); color: var(--maiz);
  overflow: hidden; white-space: nowrap;
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem 0;
}
.ticker__track { display: inline-flex; align-items: center; gap: 1.4rem; animation: ticker 38s linear infinite; padding-left: 1.4rem; }
.ticker__track i { width: 9px; height: 9px; border-radius: 50%; background: var(--maiz); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--masa) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--cafe);
}
.nav__inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); transition: height .35s var(--ease); }
/* logo: always fully inside the bar; the bar is tall at the top of the page and slims down on scroll */
.nav { --nav-h: 104px; }
.nav.is-scrolled { --nav-h: 76px; }
.nav__logo { flex: none; display: inline-flex; align-items: center; height: 100%; min-width: 48px; }
.nav__logo img {
  height: calc(var(--nav-h) - 14px); width: auto; max-width: none;
  filter: drop-shadow(0 3px 0 rgba(58,28,16,.22));
  transition: height .35s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) { .nav__logo:hover img { transform: rotate(-4deg) scale(1.04); } }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 600; padding: .6rem .9rem; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color .18s, color .18s;
}
.nav__links a:hover { background: var(--maiz); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 2px solid var(--cafe);
  background: transparent; cursor: pointer; font: 800 .8rem var(--font-body); min-height: 44px; align-items: center;
}
.lang__opt { padding: .6rem .8rem; line-height: 1; border-radius: 999px; color: var(--cafe); transition: background-color .18s, color .18s; }
html[data-lang="es"] .lang__opt[data-v="es"],
html[data-lang="en"] .lang__opt[data-v="en"] { background: var(--cafe); color: var(--maiz); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cafe); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--cafe); border-radius: 2px; transition: transform .25s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { bottom: 16px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 2px solid var(--cafe); background: var(--maiz); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-menu a { display: block; padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; border-bottom: 1.5px solid rgba(58,28,16,.2); }

/* ---------- hero ---------- */
.hero {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__title {
  font-size: clamp(2.7rem, 5.4vw, 5.1rem);
  color: var(--cafe);
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal; color: var(--chile);
  background: linear-gradient(transparent 62%, var(--maiz) 62%, var(--maiz) 92%, transparent 92%);
  padding-inline: .06em;
}
.hero__lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 34ch; margin-bottom: 2rem; color: var(--cafe-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__facts { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; color: var(--cafe-2); }
.hero__facts strong { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--hoja); }

.hero__plate { position: relative; }
.hero__photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 48% 48% var(--radius) var(--radius) / 36% 36% var(--radius) var(--radius);
  overflow: hidden; background: var(--maiz);
  border: 3px solid var(--cafe);
  box-shadow: 14px 14px 0 var(--chile);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero__plate:hover .hero__photo img { transform: scale(1.08); }
.stamp {
  position: absolute; left: -2.5rem; bottom: 2rem; width: clamp(130px, 13vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.stamp { contain: layout paint; overflow: hidden; border-radius: 50%; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp circle { fill: var(--maiz); stroke: var(--cafe); stroke-width: 3; }
.stamp text { font: 800 12.5px var(--font-body); fill: var(--cafe); }
.stamp__core {
  position: relative; text-align: center; font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1;
  color: var(--chile);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* talavera strip */
.tiles { height: 88px; background: var(--tile); background-size: 88px; border-block: 3px solid var(--cafe); }

/* ---------- section head ---------- */
.section-head { width: var(--wrap); margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 62ch; text-align: center; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--cafe); }
.section-head__note { margin-top: 1rem; color: var(--cafe-2); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; text-align: left; }

/* ---------- menu ---------- */
.menu { padding-block: clamp(4rem, 8vw, 7rem); }
.chips {
  width: var(--wrap); margin: 0 auto 2rem;
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
}
.chips a {
  text-decoration: none; font-weight: 800; font-size: .95rem;
  padding: .6rem 1.05rem; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 2px solid var(--cafe); background: var(--white);
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.chips a:hover { background: var(--cafe); color: var(--maiz); transform: translateY(-2px); }

.bento {
  width: var(--wrap); margin-inline: auto;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.card {
  --c-bg: var(--maiz); --c-fg: var(--cafe); --c-accent: var(--chile);
  position: relative; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-fg);
  border: 3px solid var(--cafe); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 var(--cafe);
}
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--cafe); }
.card__img { margin: 0; overflow: hidden; aspect-ratio: 16 / 11; border-bottom: 3px solid var(--cafe); background: var(--cafe); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__num {
  font-family: var(--font-display); font-size: .95rem; color: var(--c-accent);
  background: var(--c-fg); color: var(--c-bg); align-self: flex-start; padding: .55rem .75rem; line-height: 1; border-radius: 10px;
}
.card h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.card p { font-size: 1rem; opacity: .92; }
.items { display: grid; gap: .1rem; margin-top: auto; padding-top: .3rem; }
.items li {
  display: flex; align-items: center; gap: .6rem; font-weight: 600;
  padding: .45rem 0; border-top: 1.5px dashed color-mix(in srgb, var(--c-fg) 35%, transparent);
}
.items li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex: none; }
.items--row { display: flex; flex-wrap: wrap; gap: .5rem; }
.items--row li { border: 2px solid var(--c-fg); border-radius: 999px; padding: .35rem .9rem; }
.items--row li::before { display: none; }

.card--yellow { --c-bg: var(--maiz); --c-fg: var(--cafe); --c-accent: var(--chile); }
.card--red    { --c-bg: var(--chile); --c-fg: var(--white); --c-accent: var(--maiz); }
.card--brown  { --c-bg: var(--cafe); --c-fg: var(--masa); --c-accent: var(--naranja); }
.card--green  { --c-bg: var(--hoja); --c-fg: var(--white); --c-accent: var(--maiz); }
.card--orange { --c-bg: var(--naranja); --c-fg: var(--cafe); --c-accent: var(--white); }
.card--blue   { --c-bg: var(--talavera); --c-fg: var(--white); --c-accent: var(--maiz); }
.card--pink   { --c-bg: var(--rosa); --c-fg: var(--white); --c-accent: var(--maiz); }
.card--orange .card__num { background: var(--cafe); color: var(--naranja); }

.card--xl { grid-column: span 2; grid-row: span 2; }
.card--xl .card__img { aspect-ratio: 16 / 10; }
.card--xl h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.card--tall { grid-column: span 2; grid-row: span 2; }
.card--tall .card__img { aspect-ratio: 16 / 10; }
.card--wide { grid-column: span 2; flex-direction: row; }
.card--wide > .card__img, .card--wide > .card__duo { flex: 1 1 50%; aspect-ratio: auto; border-bottom: 0; border-right: 3px solid var(--cafe); min-height: 300px; position: relative; }
.card--wide > .card__body { flex: 1 1 50%; }
.card--wide > * { min-width: 0; }
.card--wide .card__img img { position: absolute; inset: 0; }
.card__duo { display: grid; grid-template-columns: 1fr 1fr; }
.card__duo .card__img { aspect-ratio: auto; position: relative; border-right: 3px solid var(--cafe); }
.card__duo .card__img:last-child { border-right: 0; }

.menu__cta { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 3rem; text-align: center; color: var(--cafe-2); font-weight: 600; }

/* ---------- hecho en casa ---------- */
.casa {
  background: #17612F; color: var(--white);
  border-block: 3px solid var(--cafe);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}
.casa__inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.casa h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.2rem; }
.casa__copy > p:last-child { font-size: 1.2rem; max-width: 36ch; opacity: .95; }
.labels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.label {
  background: var(--masa); color: var(--cafe);
  border: 3px solid var(--cafe); border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 8px 8px 0 var(--cafe);
  transform: rotate(-2deg);
  transition: transform .3s var(--ease);
}
.label--tilt { transform: rotate(2.5deg) translateY(1.5rem); }
@media (hover: hover) { .label:hover { transform: rotate(0) translateY(-4px); } }
.label__kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--chile); }
.label h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .35rem 0 .9rem; padding-bottom: .8rem; border-bottom: 6px solid var(--cafe); }
.label__h { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-bottom: .35rem; border-bottom: 1.5px solid var(--cafe); }
.label ol { counter-reset: ing; }
.label li { counter-increment: ing; display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1.5px solid rgba(58,28,16,.25); font-weight: 600; }
.label li::before { content: counter(ing); font-family: var(--font-display); color: var(--chile); min-width: 1ch; }

/* ---------- locations ---------- */
.locs { padding-block: clamp(4rem, 8vw, 7rem); }
.locs .section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.locs__tools { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.locs__status { font-size: .9rem; font-weight: 600; color: var(--cafe-2); min-height: 1.4em; }
.locs__grid {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.loc {
  position: relative; background: var(--white);
  border: 3px solid var(--cafe); border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.loc:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--cafe); }
.loc__n {
  position: absolute; right: 1rem; top: .6rem;
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--maiz);
  -webkit-text-stroke: 2px var(--cafe);
}
.loc h3 { font-size: 1.55rem; color: var(--chile); }
.loc address { font-weight: 600; line-height: 1.4; }
.loc__hours { font-size: .92rem; color: var(--cafe-2); }
.loc__open { font-size: .85rem; font-weight: 800; display: inline-flex; align-items: center; gap: .45rem; min-height: 1.3em; }
.loc__open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.loc__open:empty::before { display: none; }
.loc__open.is-open { color: var(--hoja); }
.loc__open.is-open::before { box-shadow: 0 0 0 0 rgba(31,122,58,.5); animation: pulse 2s infinite; }
.loc__open.is-closed { color: var(--chile); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31,122,58,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,58,0); } }
.loc__dist { font-size: .85rem; font-weight: 800; color: var(--talavera); }
.loc__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .6rem; flex-wrap: wrap; }
.loc__actions a {
  flex: 1 1 auto; text-align: center; text-decoration: none; font-weight: 800; font-size: .9rem;
  padding: .6rem .7rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--cafe);
  transition: background-color .18s, color .18s;
}
.loc__actions a:first-child { background: var(--maiz); }
.loc__actions a:hover { background: var(--cafe); color: var(--maiz); }
.loc--new { background: var(--maiz); }
.loc--new .loc__n { color: var(--white); }
.loc__badge {
  align-self: flex-start; background: var(--chile); color: var(--white);
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .6rem .9rem; line-height: 1; border-radius: 999px; transform: rotate(-3deg);
}
.loc.is-nearest { outline: 4px solid var(--talavera); outline-offset: 3px; }

/* ---------- proceso: de la máquina a tu mesa ---------- */
.proceso { background: var(--cafe); color: var(--masa); padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 9vw, 8rem); }
.proceso__inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.proceso__inner > * { min-width: 0; }
.proceso h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--white); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.steps { display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1.5px dashed rgba(255,243,209,.25); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li > div { min-width: 0; }
.steps__n {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maiz); color: var(--cafe); font-family: var(--font-display); font-size: 1.5rem;
  border: 3px solid var(--masa);
}
.steps h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--maiz); margin: .2rem 0 .3rem; }
.steps p { opacity: .9; max-width: 40ch; }
.proceso__photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; padding-bottom: 2.5rem; }
.proceso__photos figure { margin: 0; border: 3px solid var(--masa); border-radius: var(--radius); overflow: hidden; background: var(--cafe-2); }
.proceso__photos img { width: 100%; height: 100%; object-fit: cover; }
.proceso__main { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 4 / 5; box-shadow: 12px 12px 0 var(--chile); }
.proceso__side { grid-column: 6 / span 7; grid-row: 1; aspect-ratio: 3 / 2; transform: translateY(2.5rem) rotate(2deg); box-shadow: 10px 10px 0 var(--maiz); }
@media (max-width: 900px) {
  .proceso__inner { grid-template-columns: 1fr; }
  .proceso__photos { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 380px) {
  .steps__n { width: 44px; height: 44px; font-size: 1.25rem; }
}
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) {
  .proceso__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- La Reyna ---------- */
.reyna {
  background-color: var(--talavera);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1.5px, transparent 0);
  background-size: 22px 22px;
  color: var(--white);
  border-block: 3px solid var(--cafe);
}
.reyna__inner { width: var(--wrap); margin-inline: auto; padding-block: clamp(3.5rem, 7vw, 5.5rem); display: flex; justify-content: center; text-align: center; }
.reyna__copy { max-width: 46ch; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.reyna h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.reyna p { font-size: 1.15rem; }
.reyna .btn { margin-top: .6rem; }

/* ---------- jobs ---------- */
.jobs { background: var(--maiz); padding-block: clamp(3.5rem, 7vw, 5.5rem); border-bottom: 3px solid var(--cafe); }
.jobs__inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: center; }
.jobs h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--cafe); }
.jobs__en { color: var(--chile); display: block; }
.jobs p { font-weight: 600; color: var(--cafe-2); }

/* ---------- footer ---------- */
.foot { background: var(--cafe); color: var(--masa); padding-block: 3.5rem 2.5rem; }
.foot__inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: auto 1fr 1fr; gap: 2.5rem; align-items: start; }
.foot__inner > picture > img { width: 140px; }
.foot__col { display: flex; flex-direction: column; gap: .5rem; }
.foot__col a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; align-self: flex-start; }
.foot__col a:hover { color: var(--maiz); text-decoration: underline; text-underline-offset: 4px; }
.foot__h { font-family: var(--font-display); font-size: 1.3rem; color: var(--maiz); margin-bottom: .2rem; }
.foot__small { font-size: .9rem; opacity: .8; }
.foot__copy { grid-column: 1 / -1; border-top: 1.5px solid rgba(255,243,209,.2); padding-top: 1.5rem; font-size: .85rem; opacity: .75; }

/* ---------- floating order (mobile) ---------- */
.fab {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  justify-content: center; align-items: center; min-height: 56px;
  background: var(--chile); color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 1.1rem; border-radius: 999px;
  border: 3px solid var(--cafe); box-shadow: 0 5px 0 var(--cafe);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
.fab.is-visible { transform: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl, .card--tall { grid-row: auto; }
  .locs__grid { grid-template-columns: repeat(2, 1fr); }
  .jobs__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: inline-block; }
  .nav { --nav-h: 86px; }
  .nav.is-scrolled { --nav-h: 68px; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn--sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero__plate { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .stamp { left: auto; right: .25rem; bottom: -2.5rem; }
  .casa__inner { grid-template-columns: 1fr; }
  .fab { display: flex; }
  .foot { padding-bottom: 6.5rem; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__inner > picture > img { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--tall, .card--wide { grid-column: auto; }
  .card--wide { flex-direction: column; }
  .card--wide > .card__img { aspect-ratio: 16 / 11; border-right: 0; border-bottom: 3px solid var(--cafe); }
  .card--wide > .card__img, .card--wide > .card__duo { min-height: 0; }
  .card--wide > .card__duo { border-right: 0; border-bottom: 3px solid var(--cafe); aspect-ratio: 16 / 9; }
  .locs__grid { grid-template-columns: 1fr; }
  .locs__tools { align-items: flex-start; }
  .labels { grid-template-columns: 1fr; }
  .label--tilt { transform: rotate(1.5deg); }
  .hero__ctas .btn { flex: 1 1 100%; }
  /* phones: every category visible at once, no sideways swiping */
  .chips { gap: .5rem; justify-content: center; }
  .chips a { font-size: .9rem; padding: .55rem .9rem; }
  .foot__inner { grid-template-columns: 1fr; }
  .tiles { height: 60px; background-size: 60px; }
}


/* ---------- phones: hero title scales to the screen so long words never overflow ---------- */
@media (max-width: 900px) {
  .hero__title { font-size: min(4.2rem, calc((100vw - 2.5rem) / 8.2)); }
  .section-head h2 { font-size: min(4.2rem, calc((100vw - 2.5rem) / 7.6)); }
  .locs .section-head h2 { font-size: min(3.6rem, calc((100vw - 2.5rem) / 9)); }
}

/* ---------- small phones (≤ 380px) ---------- */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .ticker { font-size: .75rem; }
  .nav__inner { gap: .75rem; }
  .nav { --nav-h: 78px; }
  .nav.is-scrolled { --nav-h: 64px; }
  .hero__facts { gap: 1rem 1.5rem; }
  .card__body { padding: 1.15rem 1.1rem 1.3rem; }
  .loc { padding: 1.2rem 1.1rem 1.1rem; }
  .label { padding: 1.2rem 1.05rem 1.3rem; }
  .stamp { width: 112px; }
}

/* ---------- phones in landscape: side-by-side hero, compact chrome ---------- */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) {
  .nav, .nav.is-scrolled { --nav-h: 62px; }
  .hero { grid-template-columns: 1.15fr .85fr; padding-block: 1.75rem 3rem; gap: 1.75rem; align-items: start; }
  .hero__plate { order: 0; max-width: none; }
  .hero__photo { aspect-ratio: 4 / 5; max-height: 72dvh; margin-left: auto; }
  .hero__title { font-size: min(3.4rem, calc((55vw - 2.5rem) / 8.2)); }
  .hero__lede { margin-bottom: 1.25rem; }
  .hero__ctas { margin-bottom: 1.5rem; }
  .hero__ctas .btn { flex: 0 1 auto; }
  .stamp { width: 104px; right: .25rem; bottom: -1.25rem; }
  .mobile-menu a { padding-block: .7rem; font-size: 1.25rem; }
  .labels { grid-template-columns: 1fr 1fr; }
  .locs__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl, .card--tall, .card--wide { grid-column: span 2; }
  .card--wide { flex-direction: row; }
}

/* ---------- tablets portrait: two-column labels & menu ---------- */
@media (min-width: 641px) and (max-width: 900px) {
  .labels { grid-template-columns: 1fr 1fr; }
  .hero__plate { max-width: 560px; }
}

/* ---------- small laptops: keep the nav on one line ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav__inner { gap: 1rem; }
  .nav__links a { padding-inline: .6rem; font-size: .95rem; }
}

/* ---------- large & ultra-wide screens ---------- */
@media (min-width: 1800px) {
  html { font-size: 18px; }
  :root { --wrap: min(1440px, 100% - 4rem); }
}
@media (min-width: 2400px) {
  html { font-size: 20px; }
  :root { --wrap: min(1680px, 100% - 6rem); }
}

/* ---------- touch screens: no sticky hover lifts ---------- */
@media (hover: none) {
  .card:hover, .loc:hover { transform: none; box-shadow: none; }
  .chips a:hover { transform: none; }
  .chips a:hover { background: var(--white); color: inherit; }
  .btn:hover { transform: none; box-shadow: 0 5px 0 var(--edge); }
  .btn--ghost:hover { --bg: transparent; --fg: var(--cafe); box-shadow: inset 0 0 0 2.5px var(--cafe); }
  .card:hover .card__img img, .hero__plate:hover .hero__photo img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
