/* Hecho por MoKo Studios · https://moko-studios.com */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url('../fuentes/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fuentes/manrope-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('../fuentes/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --tinta: #231F20;
  --carbon: #353132;
  --fondo: #FAF8F4;
  --papel: #FFFFFF;
  --crema: #F3EEE4;
  --linea: #E4DED3;
  --suave: #5C5557;
  --verde: #107544;
  --verde-oscuro: #0B5A33;
  --verde-claro: #DCF3E6;
  --morado: #5B34D6;
  --morado-claro: #ECE6FF;
  --rojo: #C2362F;
  --fuente-titulo: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --fuente-texto: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 14px;
  --ancho: 1160px;
  --margen: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: var(--fuente-texto); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--morado); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--fuente-titulo); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
mark { background: linear-gradient(transparent 55%, var(--morado-claro) 55%); color: inherit; padding: 0 .1em; }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--fondo); padding: 8px 14px; border-radius: 8px; }
.saltar:focus { top: 10px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: min(100% - var(--margen) * 2, var(--ancho)); margin-inline: auto; }
.seccion { padding-block: clamp(56px, 8vw, 96px); }
.seccion--papel { background: var(--crema); }
.seccion--sin-arriba { padding-top: 0; }
.encabezado { max-width: 640px; margin-bottom: 28px; }
.encabezado p { color: var(--suave); margin: 0; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--tinta); color: var(--fondo); transition: background .15s, color .15s, border-color .15s;
}
.boton:hover { background: var(--carbon); }
.boton[disabled] { opacity: .6; cursor: progress; }
.boton--tinta { background: var(--tinta); color: var(--fondo); }
.boton--whatsapp { background: var(--verde); color: #fff; }
.boton--whatsapp:hover { background: var(--verde-oscuro); }
.boton--borde { background: transparent; color: inherit; border-color: currentColor; }
.boton--borde:hover { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.boton--chico { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.boton--bloque { width: 100%; }
.boton-texto { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; }
.enlace { font-size: .92rem; color: var(--suave); text-underline-offset: 3px; }
.enlace:hover { color: var(--tinta); }
.icono { flex-shrink: 0; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .95); border-bottom: 1px solid var(--linea); backdrop-filter: blur(6px); }
.cabecera__interior { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.cabecera__marca { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.cabecera__marca span { font-weight: 700; font-size: .95rem; color: var(--suave); }
.cabecera__nav { display: flex; gap: 4px; margin-left: auto; }
.cabecera__nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.cabecera__nav a:hover, .cabecera__nav a[aria-current] { background: var(--crema); }

/* Menú del teléfono */
.menu-movil { display: none; position: relative; }
.menu-movil summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linea); background: var(--papel); }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil__icono, .menu-movil__icono::before, .menu-movil__icono::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--tinta); transition: transform .25s ease, opacity .2s; }
.menu-movil__icono { position: relative; }
.menu-movil__icono::before, .menu-movil__icono::after { content: ''; position: absolute; left: 0; }
.menu-movil__icono::before { top: -6px; }
.menu-movil__icono::after { top: 6px; }
.menu-movil[open] .menu-movil__icono { background: transparent; }
.menu-movil[open] .menu-movil__icono::before { transform: translateY(6px) rotate(45deg); }
.menu-movil[open] .menu-movil__icono::after { transform: translateY(-6px) rotate(-45deg); }
.menu-movil__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(260px, calc(100vw - 2 * var(--margen))); display: grid; padding: 8px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 18px 40px rgba(26, 20, 22, .16); }
.menu-movil__panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.menu-movil__panel a:hover, .menu-movil__panel a[aria-current] { background: var(--crema); }
.menu-movil[open] .menu-movil__panel { animation: abrir-menu .18s ease-out; }
@keyframes abrir-menu { from { opacity: 0; transform: translateY(-6px); } }

/* Portada */
.portada { background: var(--tinta); color: var(--fondo); padding-block: clamp(32px, 5vw, 56px) clamp(44px, 7vw, 80px); }
.portada__logo { position: relative; width: min(100%, 620px); aspect-ratio: 807 / 406; margin: 0 0 clamp(24px, 4vw, 40px) -1.5%; }
.portada__logo img, .portada__logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portada__logo canvas { opacity: 0; transition: opacity .4s; }
.portada__logo.es-ascii canvas { opacity: 1; }
.portada__logo.es-ascii img { opacity: 0; }
.portada__interior { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.portada__texto { font-size: 1.15rem; color: #CFC8CA; max-width: 56ch; }
.portada__texto strong { color: #fff; font-weight: 700; }
.portada__datos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .98rem; color: #CFC8CA; }
.portada__datos li { padding-left: 14px; border-left: 3px solid #B9A6FF; }
.portada__datos strong { color: #fff; }
.boton--claro { background: var(--fondo); color: var(--tinta); }
.boton--claro:hover { background: #fff; }
.intro { padding-block: clamp(36px, 6vw, 64px) clamp(28px, 4vw, 40px); background: var(--crema); border-bottom: 1px solid var(--linea); margin-bottom: clamp(36px, 5vw, 56px); }
.intro__saludo { font-weight: 700; color: var(--morado); margin-bottom: .6em; }
.intro__texto { font-size: 1.15rem; color: var(--suave); max-width: 60ch; margin: 0; }
.seccion--lila { background: #F1EDFB; }
.seccion--blanca { background: var(--papel); border-block: 1px solid var(--linea); }

/* Titulares */
.ceja { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--morado); margin-bottom: 14px; }
.ceja::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.titular { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.titular em { display: inline; font-style: normal; font-weight: 300; font-stretch: 75%; letter-spacing: -.02em; color: var(--morado); }
.titular--grande { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
.llamado .titular em { color: #C9BBFF; }
.productos-moko { font-family: var(--fuente-titulo); font-weight: 800; font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; color: var(--suave); margin: 0 0 12px; }

.lema { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .96; letter-spacing: -.045em; max-width: none; margin-bottom: .35em; }
.lema > span { display: block; white-space: nowrap; }
.lema__fuerte { font-weight: 800; }
.lema__fino { font-weight: 300; font-stretch: 100%; letter-spacing: -.04em; color: #BDB6B8; margin-top: .2em; }
.lema__acento { font-weight: 700; color: #B9A6FF; font-size: .93em; letter-spacing: -.04em; }
.lema__trazo { display: inline-block; padding-bottom: .1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 44' preserveAspectRatio='none'%3E%3Cpath d='M6 24c118-16 252-22 392-12s236 10 356-6' fill='none' stroke='%235B34D6' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M40 36c160-10 330-12 520-4' fill='none' stroke='%235B34D6' stroke-width='5' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") left bottom / 104% .38em no-repeat; }
.lema__codigo { display: flex !important; align-items: center; font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: .7em; font-weight: 700; letter-spacing: -.05em; line-height: 1.15; color: #fff; }
.lema__llave { color: #B9A6FF; font-weight: 400; }
.lema__cursor { display: inline-block; width: .52em; height: .92em; margin-left: .12em; background: #B9A6FF; animation: parpadeo 1.1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
/* Precios */
.filtros { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtros.es-activo { display: flex; }
.filtros button { border: 1px solid var(--linea); background: var(--papel); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.filtros button:hover { border-color: var(--tinta); }
.filtros button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); }
.grupo { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--linea); }
.grupo:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.grupo__cabeza { margin-bottom: 18px; }
.grupo__cabeza h3 { font-size: 1.5rem; margin-bottom: .2em; }
.grupo__cabeza p { color: var(--suave); margin: 0; }
.grupo__cabeza a { color: var(--tinta); font-weight: 700; text-underline-offset: 3px; }
.rejilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.producto { position: relative; display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px 20px 20px; }
.producto--destacado { border: 2px solid var(--tinta); }
.rejilla-productos, .rejilla-combos { perspective: 1200px; }
.combo { position: relative; }
.producto, .combo { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease, border-color .2s; }
.producto .precio strong, .combo .precio strong { display: inline-block; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transform-origin: left bottom; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Sin JavaScript queda un levantón simple; con JavaScript la tarjeta sigue al mouse. */
  .producto:hover, .combo:hover { transform: translateY(-8px); box-shadow: 0 22px 44px -14px rgba(26, 20, 22, .3); }
  .producto.inclinada, .combo.inclinada {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-12px) scale(1.035);
    box-shadow: 0 34px 60px -18px rgba(46, 26, 122, .38); z-index: 2;
    transition: transform .14s ease-out, box-shadow .4s ease, border-color .2s;
  }
  .producto::after, .combo::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .7), rgba(185, 166, 255, .18) 30%, transparent 60%);
    mix-blend-mode: soft-light;
  }
  .inclinada::after { opacity: 1; }
  .inclinada .precio strong { transform: scale(1.12) rotate(-2deg); }
}
.producto__sello { position: absolute; top: -12px; left: 18px; background: var(--tinta); color: var(--fondo); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.producto h4 { margin-bottom: .25em; }
.producto > p { color: var(--suave); font-size: .97rem; }
.producto__incluye summary { display: none; }
.deslizar { display: none; }
.producto__nota { font-size: .85rem !important; background: var(--crema); padding: 8px 10px; border-radius: 8px; }
.producto__acciones { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; justify-items: center; }
.precio { margin: 0 0 .6em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.precio strong { font-family: var(--fuente-titulo); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.precio__desde { font-size: .9rem; color: var(--suave); font-weight: 600; }
.precio s { color: var(--suave); font-size: 1.05rem; }
.lista-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; font-size: .95rem; }
.lista-check li { display: flex; gap: 8px; }
.lista-check .icono { color: var(--verde); margin-top: 3px; }

/* Combos */
.rejilla-combos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.combo { display: flex; flex-direction: column; background: var(--papel); border: 2px dashed var(--morado); border-radius: var(--radio); padding: 22px 20px; }
.combo > p:first-of-type { color: var(--suave); }
.combo .lista-check { margin-bottom: 1.2em; }
.combo .precio { margin-top: auto; margin-bottom: 0; }
.combo__ahorro { color: var(--verde); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }

/* Trabajos, pasos y preguntas */
.vitrina { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.vitrina__item { display: flex; flex-direction: column; gap: 6px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px; text-decoration: none; transition: border-color .15s; }
.vitrina__item:hover { border-color: var(--tinta); }
.vitrina__logo { display: grid; place-items: center; height: 110px; background: var(--fondo); border-radius: 10px; margin-bottom: 8px; padding: 16px 24px; }
.vitrina__logo img { max-height: 64px; width: auto; max-width: 100%; }
.vitrina__nombre { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.2rem; }
.vitrina__texto { color: var(--suave); font-size: .95rem; }
.vitrina__ir { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.vitrina__item:hover .vitrina__ir { text-decoration: underline; text-underline-offset: 3px; }
.vitrina__mas { margin: 20px 0 0; color: var(--suave); max-width: 70ch; }
.pasos { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; font-size: 1.05rem; }
.pasos li::marker { font-family: var(--fuente-titulo); font-weight: 800; color: var(--morado); }
.contenedor--angosto { width: min(100% - var(--margen) * 2, 780px); }
.encabezado--centro { text-align: center; margin-inline: auto; margin-bottom: 36px; }
.preguntas { border-top: 1px solid var(--linea); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: '+'; flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--crema); font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform .25s ease, background .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); background: var(--morado-claro); }
.preguntas summary:hover::after { background: var(--morado-claro); }
.preguntas details p { margin: 0; padding: 0 4px 18px; color: var(--suave); max-width: 64ch; }
.llamado { background: #2E1A7A; color: var(--fondo); padding-block: clamp(48px, 7vw, 80px); }
.llamado p { color: #DCD4FA; max-width: 52ch; }
.llamado--centro .contenedor { text-align: center; }
.llamado--centro .titular--grande { margin-inline: auto; max-width: 18ch; }
.llamado--centro .titular em { display: block; }
.llamado--centro p { margin-inline: auto; }
.llamado--centro .acciones { justify-content: center; }
/* Trazo hecho a mano bajo la palabra clave del llamado. */
.subrayado { white-space: nowrap; padding-bottom: .08em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-6 62-7 96-4s68 4 98-3' fill='none' stroke='%23C9BBFF' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .32em no-repeat; }
.llamado .boton--borde:hover { background: var(--fondo); color: var(--tinta); border-color: var(--fondo); }

/* Sistemas MoKo */
.sistemas { display: grid; gap: 20px; }
.sistema { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(20px, 3vw, 36px); align-items: start; }
.sistema__tipo { font-weight: 700; color: var(--morado); margin-bottom: .3em; }
.sistema h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .1em; }
.sistema__info > p:not(.precio):not(.sistema__tipo):not(.combo__ahorro) { color: var(--suave); }
.sistema__formulario { background: var(--fondo); }
.sistema__formulario .formulario > .boton--whatsapp { margin-top: -4px; }
.aviso-suave { background: var(--crema); border-radius: var(--radio); padding: clamp(20px, 3vw, 32px); }
.aviso-suave p { max-width: 70ch; }

/* Contacto y formularios */
.contacto { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(20px, 3vw, 28px); }
.tarjeta h3 { font-size: 1.25rem; }
.directo { display: grid; gap: 12px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radio); background: var(--tinta); color: var(--fondo); }
.directo h2 { font-size: 1.5rem; margin: 0; }
.directo p { margin: 0; color: #CFC8CA; }
.directo__enlace { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.directo__enlace:hover { background: rgba(255, 255, 255, .08); }
.formulario { display: grid; gap: 16px; }
.formulario h3 { margin: 0; }
.formulario--2 { grid-template-columns: 1fr 1fr; }
.formulario--2 .campo--ancho, .formulario--2 .aviso, .formulario--2 .formulario__acciones { grid-column: 1 / -1; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: .92rem; }
.campo__req { color: var(--rojo); }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; color: var(--tinta); background: var(--papel); border: 1.5px solid #CFC7BB; border-radius: 10px; padding: 11px 13px; min-height: 48px; }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 3px var(--morado-claro); }
.campo--error input, .campo--error select, .campo--error textarea { border-color: var(--rojo); }
.campo__ayuda { margin: 0; font-size: .85rem; color: var(--suave); }
.campo__mensaje { margin: 0; font-size: .88rem; color: var(--rojo); font-weight: 600; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aviso { border-radius: 10px; padding: 12px 16px; margin: 0; font-weight: 600; }
.aviso--error { background: #FBE4E2; color: #8A1F19; }
.formulario__acciones { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.exito { text-align: center; padding: 16px 4px; display: grid; gap: 10px; justify-items: center; }
.exito h2, .exito h3 { font-size: 1.4rem; margin: 0; }
.exito p { margin: 0; color: var(--suave); }
.exito__icono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-claro); color: var(--verde); }
.girador { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: currentColor; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Legal y 404 */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.error-404 { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: var(--margen); }
.error-404__codigo { font-family: var(--fuente-titulo); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: .9; margin: 20px 0 0; color: var(--morado); }

/* Pie */
.pie { background: var(--tinta); color: #CFC8CA; padding-top: 56px; }
.pie__rejilla { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 32px; }
.pie__rejilla p { max-width: 36ch; margin-top: 16px; }
.pie__rejilla > :not(:first-child) { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pie h2 { font-family: var(--fuente-texto); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.pie a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pie a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pie__base { margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.whatsapp-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.whatsapp-flotante:hover { background: var(--verde-oscuro); }

@media (max-width: 900px) {
  .portada__interior, .dos-columnas, .sistema, .contacto { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__rejilla > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cabecera__interior { gap: 10px; min-height: 62px; }
  .cabecera__nav { display: none; }
  .cabecera__cotizar { margin-left: auto; }
  .menu-movil { display: block; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 560px) {
  .formulario--2 { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr; }
  .filtros { gap: 6px; }
  .filtros button { padding: 7px 13px; font-size: .88rem; }
}
@media (max-width: 640px) {
  /* En teléfono cada grupo es una fila que se desliza; si no, un grupo ocupaba varias pantallas. */
  /* La tarjeta del medio queda centrada y se asoma un pedazo de la anterior y de la siguiente.
     overflow-y: hidden evita que la fila se mueva para arriba o abajo al intentar bajar la página. */
  .rejilla-productos, .rejilla-combos {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--margen) * -1); padding: 16px 12vw 14px;
    scrollbar-width: none; align-items: flex-start; touch-action: pan-x pan-y;
  }
  .rejilla-productos::-webkit-scrollbar, .rejilla-combos::-webkit-scrollbar { display: none; }
  .producto, .combo { flex: 0 0 76vw; scroll-snap-align: center; scroll-snap-stop: always; }
  .producto { padding: 18px 16px 16px; }
  .producto h4 { font-size: 1.1rem; }
  .precio strong { font-size: 1.7rem; }
  .producto > p { font-size: .93rem; margin-bottom: .7em; }
  .producto__incluye { margin-bottom: 10px; }
  .producto__incluye summary { display: list-item; cursor: pointer; font-weight: 700; font-size: .92rem; padding: 6px 0; }
  .producto__incluye .lista-check { margin: 6px 0 4px; }
  .deslizar { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: var(--morado); }
  .grupo { padding-top: 22px; margin-top: 22px; }
  .grupo__cabeza { margin-bottom: 4px; }
  .grupo__cabeza h3 { font-size: 1.3rem; }
  .portada__datos { gap: 10px; font-size: .92rem; }
}
/* Al deslizar en el teléfono las tarjetas giran en 3D como una vitrina: la del frente derecha,
   las de los lados más chicas, giradas y en penumbra. */
@supports (animation-timeline: view(inline)) {
  @media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
    .rejilla-productos, .rejilla-combos { perspective: 700px; }
    .rejilla-productos > .producto, .rejilla-combos > .combo {
      animation: pasar linear both;
      animation-timeline: view(inline);
    }
  }
}
@keyframes pasar {
  /* El giro sale del borde que mira al centro, así la tarjeta que se asoma sigue a la vista. */
  0% { transform-origin: 0% 55%; transform: rotateY(-34deg) rotateZ(4deg) scale(.86); opacity: .5; }
  44%, 56% { transform-origin: 50% 55%; transform: none; opacity: 1; }
  100% { transform-origin: 100% 55%; transform: rotateY(34deg) rotateZ(-4deg) scale(.86); opacity: .5; }
}
/* En computadora las tarjetas entran girando hacia el frente al aparecer.
   Se animan translate/scale/rotate (no transform) para no pisar la inclinación del mouse. */
@supports (animation-timeline: view()) {
  @media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
    .rejilla-productos > .producto, .rejilla-combos > .combo { animation: aparecer linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
@keyframes aparecer { from { translate: 0 80px; scale: .9; rotate: x 24deg; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lema__cursor { animation: none; }
  html { scroll-behavior: auto; }
  .girador { animation-duration: 2s; }
}
@media print {
  .cabecera, .whatsapp-flotante, .filtros, .producto__acciones { display: none; }
}
