/* Catálogo ServiDigitales. Tokens primero; móvil primero. */
:root {
  --fondo-1: #ff6a00;
  --fondo-2: #ffb000;
  --tarjeta-1: #b4590f;
  --tarjeta-2: #6b2f07;
  --crema: #fff7ee;
  --crema-2: #fde9d4;
  --tinta: #2b1606;
  --tinta-suave: #5e3a1f;
  --acento: #c2410c;
  --acento-osc: #9a330a;
  --blanco: #fff;
  --verde: #1f7a3a;
  --ambar: #8a5200;
  --wa: #1fa855;

  --f-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-xs: .78rem; --t-s: .9rem; --t-m: 1rem; --t-l: 1.2rem; --t-xl: 1.6rem;
  --t-h1: clamp(2rem, 6.2vw, 3.6rem);
  --t-h2: clamp(1.6rem, 4vw, 2.3rem);

  --e-1: .5rem; --e-2: 1rem; --e-3: 1.5rem; --e-4: 2.5rem; --e-5: 4rem;
  --r-pill: 999px; --r-card: 28px; --r-m: 16px;
  --sombra: 0 30px 60px -20px rgba(70, 25, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-sans); font-size: var(--t-m); line-height: 1.55; color: var(--tinta); background: var(--crema); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--blanco); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tinta); border-radius: 6px; }

.saltar { position: absolute; left: -999px; top: 0; background: var(--blanco); padding: var(--e-1) var(--e-2); z-index: 10; }
.saltar:focus { left: var(--e-2); top: var(--e-2); }

/* ---------- escenario naranja y tarjeta hero ---------- */
.escenario { background: linear-gradient(135deg, var(--fondo-1), var(--fondo-2)); padding: var(--e-2); }
.hero {
  position: relative; max-width: 1240px; margin: 0 auto; color: var(--blanco);
  background: radial-gradient(120% 90% at 50% 40%, var(--tarjeta-1) 0%, #93460b 55%, var(--tarjeta-2) 100%);
  border-radius: var(--r-card); box-shadow: var(--sombra);
  padding: var(--e-2) var(--e-2) var(--e-3);
  display: grid; gap: var(--e-3);
  grid-template-areas: "barra" "izq" "centro" "der" "abajo";
}

.barra { grid-area: barra; display: flex; align-items: center; justify-content: space-between; gap: var(--e-2); flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.marca img { width: 34px; height: auto; filter: brightness(0) invert(1); }
.menu { order: 3; width: 100%; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  background: rgba(60, 20, 0, .35); border-radius: var(--r-pill); padding: .3rem; }
.menu a { flex: 0 0 auto; text-decoration: none; font-size: var(--t-xs); font-weight: 600; padding: .55rem .9rem; border-radius: var(--r-pill); min-height: 36px; display: inline-flex; align-items: center; }
.menu a[aria-current="page"] { background: var(--blanco); color: var(--tinta); }
.iconos { display: flex; gap: .5rem; }
.icono, .icono-red { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); text-decoration: none; }

.hero-izq { grid-area: izq; }
.flechas { display: flex; gap: .5rem; margin-bottom: var(--e-2); }
.flecha { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(60, 20, 0, .4); color: var(--blanco); cursor: pointer; display: grid; place-items: center; }
.hero h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.01em; max-width: 12ch; }
.hero-texto { font-size: var(--t-s); max-width: 44ch; margin: var(--e-2) 0 var(--e-3); color: #fff3e6; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem;
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-s); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background-color .15s; }
.boton:active { transform: translateY(1px); }
.boton-claro { background: var(--blanco); color: var(--tinta); }
.boton-wa { background: var(--wa); color: var(--blanco); }
@media (hover: hover) {
  .boton-claro:hover { background: var(--crema-2); }
  .boton-wa:hover { background: #178a45; }
  .flecha:hover, .menu a:not([aria-current]):hover { background: rgba(60, 20, 0, .6); }
}

.hero-centro { grid-area: centro; text-align: center; }
/* La foto se funde con la tarjeta: los bordes se desvanecen como en la referencia. */
.hero-foto { width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.hero-foto.cambiando img { opacity: 0; }
.hero-pie { margin: var(--e-2) 0 0; display: grid; gap: .1rem; font-size: var(--t-l); }
.hero-pie span { font-size: var(--t-s); color: #ffe7d1; }

.hero-der { grid-area: der; text-align: center; }
.hero-precio { margin: 0 0 var(--e-2); display: grid; }
.hero-precio .desde, .hero-precio .itbms { font-size: var(--t-s); color: #ffe7d1; }
.hero-precio strong { font-size: var(--t-xl); font-weight: 700; }
.hero-etq { font-size: var(--t-s); margin: 0 0 .6rem; }
.medidas { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.medida { min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: rgba(60, 20, 0, .55); color: var(--blanco); font: 600 var(--t-xs) var(--f-sans); }
.medida[aria-pressed="true"] { background: var(--blanco); color: var(--tinta); }

.hero-abajo { grid-area: abajo; display: flex; align-items: center; justify-content: space-between; gap: var(--e-2); }
.hero-lema { font-size: var(--t-s); text-align: center; color: #ffe7d1; }
.siguiente { width: 72px; height: 72px; border: 0; padding: 0; border-radius: var(--r-m); overflow: hidden; cursor: pointer; background: rgba(60,20,0,.35); }
.siguiente img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .escenario { padding: var(--e-5) var(--e-4); }
  .hero { padding: var(--e-3) var(--e-4) var(--e-3); column-gap: var(--e-3); row-gap: var(--e-2);
    grid-template-columns: 1.1fr 1.2fr .7fr;
    grid-template-areas: "barra barra barra" "izq centro der" "abajo abajo abajo"; align-items: center; }
  .menu { order: 0; width: auto; position: absolute; left: 50%; top: var(--e-3); transform: translateX(-50%); }
  .hero-der { text-align: right; }
  .medidas { justify-content: flex-end; }
  .hero-foto { width: 100%; max-width: 440px; }
  .hero-lema { position: absolute; left: 50%; transform: translateX(-50%); }
  .hero-abajo { position: relative; }
  .siguiente { width: 96px; height: 96px; }
}

/* ---------- secciones ---------- */
.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 var(--e-2); }
.seccion { padding: var(--e-5) 0; }
.seccion h2 { font-size: var(--t-h2); margin-bottom: var(--e-2); }
.intro { max-width: 62ch; color: var(--tinta-suave); margin: 0 0 var(--e-4); }

.grid { display: grid; gap: var(--e-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.tarjeta { background: var(--blanco); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 12px 30px -18px rgba(90, 40, 0, .45); scroll-margin-top: var(--e-2); }
.tarjeta-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tarjeta-cuerpo { padding: var(--e-3); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.linea { margin: 0; font-size: var(--t-xs); font-weight: 700; color: var(--acento); }
.tarjeta h3 { font-size: var(--t-l); }
.desc { margin: 0; font-size: var(--t-s); color: var(--tinta-suave); }
.caract { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.caract li { font-size: var(--t-xs); background: var(--crema); border: 1px solid var(--crema-2); padding: .25rem .6rem; border-radius: var(--r-pill); }
.fila-precio { display: flex; align-items: center; justify-content: space-between; gap: var(--e-1); flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.precio { margin: 0; font-size: var(--t-s); }
.precio strong { font-size: var(--t-l); }
.precio span { color: var(--tinta-suave); font-size: var(--t-xs); }
.disp { font-size: var(--t-xs); font-weight: 700; padding: .25rem .65rem; border-radius: var(--r-pill); }
.disp-disponible { background: #e3f4e8; color: var(--verde); }
.disp-pocas { background: #fff1d6; color: var(--ambar); }
.disp-pedido { background: #f1e7df; color: var(--tinta-suave); }
.opciones { display: grid; grid-template-columns: 1fr 96px; gap: var(--e-1); }
.opciones label { display: grid; gap: .2rem; font-size: var(--t-xs); font-weight: 600; color: var(--tinta-suave); }
.opciones select, .opciones input { min-height: 44px; border: 1.5px solid #e2c9b2; border-radius: 12px; padding: 0 .7rem; font: inherit; font-size: var(--t-s); color: var(--tinta); background: var(--blanco); }
.opciones select:focus-visible, .opciones input:focus-visible { outline: 3px solid var(--acento); outline-offset: 1px; box-shadow: none; }
.tarjeta .boton-wa { width: 100%; }
.tarjeta :focus-visible, .seccion :focus-visible, .pie :focus-visible { outline-color: var(--acento); box-shadow: none; }
.respaldo { grid-column: 1 / -1; }

.seccion-pasos { background: var(--crema-2); }
.pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: var(--e-3); }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 48px 1fr; column-gap: var(--e-2); align-items: start; color: var(--tinta-suave); }
.pasos li::before { content: counter(paso); grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--acento); color: var(--blanco); display: grid; place-items: center; font-weight: 700; font-size: var(--t-l); }
.pasos strong { color: var(--tinta); display: block; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, 1fr); } }

.contacto { display: grid; gap: var(--e-4); }
.contacto p { color: var(--tinta-suave); max-width: 46ch; }
.datos { margin: 0; display: grid; gap: var(--e-2); }
.datos div { border-bottom: 1px solid var(--crema-2); padding-bottom: .7rem; }
.datos dt { font-size: var(--t-xs); font-weight: 700; color: var(--acento); }
.datos dd { margin: .1rem 0 0; }
.datos a { text-decoration-color: #e2b08a; text-underline-offset: 3px; }
@media (min-width: 860px) { .contacto { grid-template-columns: 1fr 1.2fr; } }

.pie { background: var(--tinta); color: #f7e3d1; font-size: var(--t-s); }
.pie-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-1); padding-top: var(--e-3); padding-bottom: var(--e-3); }
.pie p { margin: 0; }
.pie :focus-visible { outline-color: var(--blanco); }

.wa-flotante { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--blanco);
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); z-index: 5; }
@media (hover: hover) { .wa-flotante:hover { background: #178a45; } }
.pie-fila { padding-right: 80px; }
