/* Plantilla ITV TELEKOS — hoja única de estilos.
   Marca: variables de :root (o «colores» en config.js). Tema: body[data-tema]. Composición de portada: body[data-hero]. */
:root {
  --fondo: #0d1014;
  --fondo2: #141920;
  --superficie: #1a2029;
  --texto: #f2f4f6;
  --suave: #a7b2be;
  --hero-sub: #d5dde5;
  --borde: #2b3441;
  --acento: #ffb81c;
  --acento-texto: #1a1300;
  --acento2: #ff4b2b;
  --ok: #3ddc97;
  --ok-texto: #04281a;
  --senal: #0f4fa8;
  --wa: #0f7a40;
  --wa-oscuro: #0a5c30;
  --radio: 18px;
  --ancho: 1140px;
  --titulos: "Bahnschrift", "DIN Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, sans-serif;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
body[data-tema="claro"] {
  --fondo: #f4f1ea; --fondo2: #eae5d9; --superficie: #ffffff; --texto: #14181d; --suave: #56616c; --hero-sub: #3a444e; --borde: #d8d1c2;
  --acento: #d9480f; --acento-texto: #ffffff; --acento2: #0b6e4f; --ok: #0b8a5c; --ok-texto: #ffffff;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); color: var(--texto); background: var(--fondo); line-height: 1.6; font-size: 17px; overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--acento); }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-style: italic; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.8rem); font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }
.hueco { border: 1px dashed var(--acento); color: var(--acento); border-radius: 6px; padding: 0 6px; font: 600 .8em/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-style: normal; text-transform: none; letter-spacing: 0; }
.intro { color: var(--suave); max-width: 58ch; font-size: 1.08rem; }
.nota-sim { font-size: .88rem; color: var(--suave); }
.vacio { color: var(--suave); padding: 12px 0; }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); margin-bottom: 8px; }
.etiqueta { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--acento); color: var(--acento-texto); border-radius: 6px; padding: 3px 10px; margin-bottom: 12px; }
.franja { height: 10px; background: repeating-linear-gradient(-45deg, var(--acento) 0 12px, #0a0a0a 12px 24px); }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: var(--acento-texto); font: 800 1.05rem/1 var(--titulos); display: inline-grid; place-items: center; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

/* Cabecera y navegación */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--fondo); border-bottom: 1px solid var(--borde); }
.demo-banda { background: #000; color: var(--acento); text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; }
.barra { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.marca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.marca::before { content: ""; flex: none; width: 10px; height: 28px; background: var(--acento); transform: skewX(-14deg); }
.marca img { max-height: 40px; width: auto; }
.marca-nombre { font: italic 800 1.3rem/1 var(--titulos); font-stretch: 85%; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burger { flex: none; width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; background: none; border: 2px solid var(--borde); border-radius: 12px; cursor: pointer; }
.burger i { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--fondo2); border-bottom: 1px solid var(--borde); padding: 6px 16px 14px; max-height: calc(100vh - 110px); overflow-y: auto; box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
.menu.abierto { display: flex; animation: baja .25s both; }
.menu a { padding: 14px 4px; color: var(--texto); text-decoration: none; font: 700 1.25rem/1.2 var(--titulos); text-transform: uppercase; border-bottom: 1px solid var(--borde); }
.menu a:last-child { border: 0; }
.menu a[aria-current] { color: var(--acento); }
.wa-cab { flex: none; padding: 0 13px; min-height: 48px; }
.wa-cab span { display: none; }
.barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--fondo2); border-top: 1px solid var(--borde); padding-bottom: env(safe-area-inset-bottom); }
.barra-movil a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--suave); text-decoration: none; font-size: .72rem; font-weight: 700; }
.barra-movil a[aria-current] { color: var(--acento); }
.barra-movil a.wa { color: var(--ok); }

/* Botones y fichas */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--acento); color: var(--acento-texto); text-decoration: none; text-align: center; padding: 12px 24px; min-height: 50px; border-radius: 999px; font-weight: 800; border: 2px solid var(--acento); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.boton:active { transform: translateY(0); }
.boton:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.boton.con-flecha::after { content: "→"; transition: transform .2s; }
.boton.con-flecha:hover::after { transform: translateX(5px); }
.boton.secundario { background: transparent; color: var(--texto); border-color: var(--borde); }
.boton.secundario:hover { border-color: var(--acento); }
.boton.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.boton.wa:hover { background: var(--wa-oscuro); border-color: var(--wa-oscuro); }
.boton.grande { min-height: 58px; font-size: 1.08rem; padding-inline: 28px; }
.boton.peligro { color: #ff8f7a; border-color: #ff8f7a; }
.boton.peligro-lleno { background: var(--acento2); border-color: var(--acento2); color: #fff; }
.botones { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.botones .boton { flex: 1 1 230px; }
.chip { background: var(--superficie); border: 1px solid var(--borde); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-weight: 700; font-size: .92rem; cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--acento); }
.chip.on { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }

/* Portada */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 7vw, 88px) 0 0; background: linear-gradient(180deg, var(--fondo2), var(--fondo)); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 85% 20%, rgba(255, 184, 28, .2), transparent 70%); }
.hero.con-foto { color: #fff; --hero-sub: #e6ebf0; }
.hero.con-foto::before { background: linear-gradient(90deg, rgba(8, 10, 13, .93), rgba(8, 10, 13, .5)); }
.hero.con-foto .hero-escena, .hero.con-foto .hero-marca-agua { display: none; }
.hero-marca-agua { position: absolute; z-index: -1; right: -3vw; top: -5vw; font: italic 800 46vw/1 var(--titulos); color: transparent; -webkit-text-stroke: 2px rgba(150, 165, 180, .14); pointer-events: none; user-select: none; }
.hero-grid { display: grid; gap: 20px; align-items: end; }
.hero-grid > * { min-width: 0; }
.sello { display: inline-block; border: 2px solid var(--acento); color: var(--acento); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: .25em; animation: sube .8s both; }
.hero h1 em { font-style: inherit; color: var(--acento); }
.hero-sub { font-size: 1.18rem; color: var(--hero-sub); max-width: 46ch; animation: sube .8s .12s both; }
.hero .botones { animation: sube .8s .24s both; }
.rapidos { margin-top: 22px; animation: sube .8s .36s both; }
.rapidos-titulo { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); margin-bottom: 8px; }
.rapidos-lista { display: flex; gap: 8px; flex-wrap: wrap; }
.hueco-rapido { display: flex; flex-direction: column; min-width: 96px; padding: 8px 14px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; color: var(--texto); text-decoration: none; transition: transform .2s, border-color .2s; }
.hueco-rapido:hover { transform: translateY(-3px); border-color: var(--acento); }
.hueco-rapido small { color: var(--suave); text-transform: capitalize; }
.hueco-rapido strong { font: 800 1.35rem/1.1 var(--titulos); }
.hero-enlaces { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 20px 0 0; }
.hero-enlaces a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto); font-weight: 700; text-underline-offset: 5px; text-decoration-color: var(--acento); }
.hero-escena { justify-self: center; width: min(100%, 640px); margin-bottom: -6px; }
.hero-escena img { width: 100%; animation: llega 1.2s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); }
.carretera { position: relative; height: 30px; background: #06080a; }
.carretera::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: repeating-linear-gradient(90deg, var(--acento) 0 44px, transparent 44px 88px); animation: ruta 1.2s linear infinite; }
body[data-hero="centro"] .hero-texto { text-align: center; }
body[data-hero="centro"] .hero-sub { margin-inline: auto; }
body[data-hero="centro"] .hero .botones, body[data-hero="centro"] .rapidos-lista, body[data-hero="centro"] .hero-enlaces { justify-content: center; }
.cinta { overflow: hidden; background: var(--acento); color: var(--acento-texto); }
.cinta-pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta-pista span { font: italic 800 1.1rem/1 var(--titulos); text-transform: uppercase; white-space: nowrap; padding: 13px 0 11px 26px; }
.cinta-pista span::after { content: "/"; margin-left: 26px; opacity: .45; }

/* Secciones de portada */
.seccion { position: relative; padding: clamp(48px, 8vw, 96px) 0; }
.seccion.oscura, .propuesta { background: var(--fondo2); }
.dos { display: grid; gap: 32px; }
.dos > * { min-width: 0; }
.pasos { display: grid; gap: 28px; margin-top: 32px; }
.pasos li { position: relative; }
.pasos a { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; color: var(--texto); text-decoration: none; }
.pasos .gran { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-texto); font: italic 800 1.9rem/1 var(--titulos); position: relative; z-index: 1; transition: transform .3s; }
.pasos a:hover .gran { transform: scale(1.08) rotate(-8deg); }
.pasos h3 { margin: 6px 0 2px; font-size: 1.3rem; }
.pasos p { margin: 0; color: var(--suave); }
.pasos li:not(:last-child)::before { content: ""; position: absolute; left: 30px; top: 64px; bottom: -28px; width: 4px; background: repeating-linear-gradient(180deg, var(--borde) 0 10px, transparent 10px 20px); }
.lista-dato li { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--borde); }
.lista-dato li span { flex: 1; min-width: 0; }
.lista-dato li strong { text-align: right; }
.lista-dato .ico { color: var(--acento); width: 26px; height: 26px; }
.lista-dato.panel { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 6px 20px; }
.lista-dato.panel li:last-child { border: 0; }
.senal { background: var(--senal); color: #fff; border-radius: 22px; padding: 7px; box-shadow: 0 24px 44px rgba(0, 0, 0, .4); transform: rotate(-1.2deg); }
.senal-dentro { border: 3px solid #fff; border-radius: 16px; padding: clamp(18px, 4vw, 30px); }
.senal small { display: block; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.senal strong { display: block; font: 800 clamp(1.5rem, 5vw, 2.2rem)/1.15 var(--titulos); margin: 6px 0 12px; }
.senal p { margin: 0 0 .4em; }
.senal .hueco { color: #ffd76a; border-color: #ffd76a; }
.usos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.usos li { border: 1px solid var(--ok); color: var(--ok); font-weight: 700; font-size: .9rem; padding: 5px 12px; border-radius: 999px; }
.propuesta > .franja { position: absolute; top: 0; left: 0; right: 0; }
.funciones { display: grid; gap: 18px; margin-top: 40px; border-top: 1px solid var(--borde); padding-top: 32px; }
.funciones li { display: flex; gap: 14px; }
.funciones h3 { margin-bottom: .15em; }
.funciones p { margin: 0; color: var(--suave); font-size: .95rem; }

/* Conversación de demostración */
.chat { background: var(--superficie); border: 2px dashed var(--acento); border-radius: var(--radio); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat.chico { margin: 14px 0; padding: 12px; font-size: .94rem; }
.chat-aviso { font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--acento); margin: 0 0 4px; }
.chat-hilo { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; animation: sube .35s both; }
.msg .quien { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.msg.c { align-self: flex-end; background: #2f3a48; color: #fff; border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--acento); color: var(--acento-texto); border-bottom-left-radius: 4px; }
.chat-accion { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-height: 76px; justify-content: flex-end; }
.chat-pista { font-size: .78rem; color: var(--suave); }
.respuesta { max-width: 88%; text-align: left; min-height: 48px; padding: 10px 16px; background: transparent; border: 2px solid var(--ok); color: var(--ok); border-radius: 16px 16px 4px 16px; font-weight: 700; cursor: pointer; animation: late 1.8s ease-in-out infinite; }
.respuesta:hover { background: var(--ok); color: var(--ok-texto); }
.escribiendo { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--acento); border-radius: 16px 16px 16px 4px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--acento-texto); animation: punto 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
.chat-pie { font-size: .86rem; color: var(--suave); margin: 12px 0 0; }
.wa-caja { background: var(--superficie); border: 1px solid var(--borde); border-left: 6px solid var(--wa); border-radius: var(--radio); padding: clamp(18px, 4vw, 30px); margin-block: 8px 56px; display: grid; gap: 22px; scroll-margin-top: 112px; }
.wa-caja > * { min-width: 0; }
.wa-caja h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.wa-previa { border: 1px solid var(--borde); border-radius: 14px; padding: 14px 16px; background: var(--fondo); }
.wa-previa-titulo { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); margin-bottom: 6px; }
.wa-texto { font-weight: 600; margin-bottom: .6em; }
.wa-previa .nota-sim { margin: 0; }

/* Contacto y pie */
.contacto-vias { display: grid; gap: 14px; margin-block: 24px; }
.via { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; color: var(--texto); text-decoration: none; transition: transform .2s, border-color .2s; }
.via > .ico { grid-row: span 2; width: 34px; height: 34px; color: var(--acento); }
.via strong, .via > span { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.via strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.via > span { font: 700 1.25rem/1.3 var(--titulos); }
a.via[href]:hover { transform: translateY(-3px); border-color: var(--acento); }
.via.wa { border-color: var(--wa); }
.via.wa > .ico { color: var(--ok); }
.pie { background: #080a0d; color: #a7b2be; font-size: .92rem; padding-bottom: 96px; }
.pie a { color: #dfe5ea; }
.pie .marca-nombre { color: #fff; display: block; margin-bottom: 10px; }
.pie-grid { display: grid; gap: 26px; padding-top: 36px; }
.pie-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; align-content: start; }
.pie-menu a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.pie-menu a:hover { color: var(--acento); }

/* Páginas interiores */
.cabecera-pagina { position: relative; padding: clamp(30px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(70% 120% at 90% 0%, rgba(255, 184, 28, .14), transparent 70%), var(--fondo2); }
.cabecera-pagina::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--acento) 0 12px, #0a0a0a 12px 24px); }
.cabecera-pagina h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); margin-bottom: .2em; }
.cierre { padding: clamp(36px, 6vw, 72px) 0; text-align: center; }
.cierre .botones { justify-content: center; max-width: 620px; margin-inline: auto; }
.precios { padding-block: 28px 8px; }
.tabs-veh { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-veh { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--borde); background: var(--superficie); font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.tab-veh:hover { border-color: var(--acento); }
.tab-veh.on { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.panel-precio { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: clamp(20px, 4vw, 40px); animation: sube .4s both; }
.panel-precio h2 { color: var(--acento); }
.lista-precio { margin-bottom: 24px; }
.lista-precio li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--borde); font-size: 1.1rem; }
.lista-precio strong { font: 800 1.5rem/1.2 var(--titulos); text-align: right; }
.servicios { display: grid; gap: 22px; margin-top: 24px; counter-reset: s; }
.servicios li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.servicios li::before { content: "0" counter(s); grid-row: span 2; font: italic 800 2.4rem/1 var(--titulos); color: transparent; -webkit-text-stroke: 1.5px var(--acento); }
.servicios h3 { margin: 0; }
.servicios p { color: var(--suave); margin: 0; }
.faq { padding-block: 28px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 2px 18px; }
.faq details[open] { border-color: var(--acento); }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; }
.faq details p { color: var(--suave); }

/* Calendario y reserva */
.progreso { height: 8px; background: var(--borde); border-radius: 99px; overflow: hidden; max-width: 420px; margin-top: 18px; }
.progreso div { height: 100%; width: 0; background: var(--acento); transition: width .4s; }
.progreso-txt { font-size: .86rem; font-weight: 700; color: var(--suave); margin: 6px 0 0; }
.reserva { display: grid; gap: 24px; padding-block: 30px 32px; }
.reserva > * { min-width: 0; }
.paso { margin-bottom: 34px; scroll-margin-top: 112px; }
.paso h2, .resumen-caja h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }
.paso.hecho .num { background: var(--ok); color: var(--ok-texto); }
.opciones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opciones.lista { grid-template-columns: 1fr; }
.opcion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--superficie); border: 2px solid var(--borde); border-radius: var(--radio); padding: 16px 10px; min-height: 92px; cursor: pointer; font-weight: 700; transition: border-color .2s, transform .2s, background .2s; }
.opcion:hover { transform: translateY(-2px); border-color: var(--suave); }
.opcion.on { border-color: var(--acento); background: rgba(255, 184, 28, .12); }
.opcion .ico { width: 32px; height: 32px; color: var(--acento); }
.opcion.fila { align-items: flex-start; text-align: left; min-height: 68px; padding: 14px 18px; }
.opcion small { display: block; font-weight: 400; color: var(--suave); }
.cal { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-titulo { font: 800 1.3rem/1.2 var(--titulos); text-transform: capitalize; text-align: center; }
.cal-nav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde); background: var(--fondo); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color .2s; }
.cal-nav:hover { border-color: var(--acento); }
.cal-herr { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.cal-rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .74rem; font-weight: 800; color: var(--suave); padding: 4px 0; }
.cal-dia { aspect-ratio: 1; min-height: 44px; background: var(--fondo); border: 1px solid transparent; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; transition: background .2s, transform .15s, border-color .2s; }
.cal-rejilla.semana .cal-dia { aspect-ratio: auto; min-height: 68px; }
.cal-dia:hover:not(:disabled) { border-color: var(--acento); }
.cal-dia:disabled { opacity: .28; cursor: not-allowed; }
.cal-dia.fuera { opacity: .5; }
.cal-dia.hoy { border-color: var(--acento2); }
.cal-dia.sel { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); transform: scale(1.06); }
.cal-n { font-weight: 700; }
.cal-pts { display: flex; gap: 2px; height: 7px; }
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--suave); }
.punto.pendiente { background: #ffb81c; }
.punto.confirmada { background: #3ddc97; }
.punto.completada { background: #6aa6ff; }
.punto.cancelada { background: #ff6b52; }
.cal-dia.sel .punto { box-shadow: 0 0 0 1px #000; }
.panel-horas { margin-top: 18px; animation: sube .35s both; }
.dia-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.dia-elegido { font-weight: 700; }
.huecos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.hueco-h { min-height: 50px; border-radius: 12px; border: 2px solid var(--borde); background: var(--superficie); font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.hueco-h:hover:not(:disabled) { border-color: var(--acento); }
.hueco-h.on { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.hueco-h.no { opacity: .4; cursor: not-allowed; }
.hueco-h small { display: block; font-size: .66rem; font-weight: 600; }
.resumen-caja { background: var(--superficie); border: 1px solid var(--borde); border-top: 6px solid var(--acento); border-radius: var(--radio); padding: 20px; scroll-margin-top: 112px; }
.resumen { margin: 0 0 16px; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--borde); }
.resumen dt { color: var(--suave); }
.resumen dd { font-weight: 700; text-align: right; }
.resumen em { color: var(--suave); font-weight: 400; }
#confirmar { width: 100%; }
.confirmacion { max-width: 720px; animation: sube .5s both; }
.confirmacion:focus { outline: none; }
.ticket { border: 2px dashed var(--acento); border-radius: var(--radio); padding: 20px; margin-bottom: 16px; }
.ticket small { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.ticket strong { display: block; font: 800 2.4rem/1.1 var(--titulos); color: var(--acento); }
.ticket p { margin: 8px 0 0; font-weight: 600; }

/* Gestión de citas */
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .9rem; color: var(--suave); }
.leyenda .punto { margin-right: 4px; }
.gestion { padding-block: 26px 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; min-height: 48px; border-radius: 12px; border: 2px solid var(--borde); background: var(--superficie); font-weight: 800; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.gestion-grid { margin-bottom: 40px; }
.gestion-grid[data-vista="agenda"] .g-cal { display: none; }
.gestion-grid[data-vista="cal"] .g-agenda { display: none; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtros:empty { display: none; }
.agenda-dia { font-size: 1.05rem; margin: 20px 0 8px; color: var(--acento); text-transform: uppercase; }
.agenda-lista { display: grid; gap: 8px; }
#agenda { margin-bottom: 18px; }
.cita { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--superficie); border: 1px solid var(--borde); border-left-width: 6px; border-radius: 14px; padding: 12px 14px; min-height: 68px; cursor: pointer; transition: transform .15s, border-color .2s; }
.cita:hover { transform: translateX(4px); }
.cita.pendiente { border-left-color: #ffb81c; }
.cita.confirmada { border-left-color: #3ddc97; }
.cita.completada { border-left-color: #6aa6ff; }
.cita.cancelada { border-left-color: #ff6b52; opacity: .65; }
.cita-hora { font: 800 1.35rem/1 var(--titulos); }
.cita-cuerpo { flex: 1; min-width: 0; }
.cita-cuerpo strong, .cita-cuerpo small { display: block; }
.cita-cuerpo small { color: var(--suave); }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge.pendiente { background: #ffb81c; color: #1a1300; }
.badge.confirmada { background: #3ddc97; color: #04281a; }
.badge.completada { background: #6aa6ff; color: #04152e; }
.badge.cancelada { background: #ff6b52; color: #2a0700; }
dialog { background: var(--fondo2); color: var(--texto); border: 1px solid var(--borde); border-radius: var(--radio); padding: 0; width: min(100% - 24px, 540px); max-height: 92vh; overflow: auto; }
dialog[open] { animation: sube .25s both; }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.dlg-cuerpo { padding: 22px; position: relative; }
.dlg-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: var(--fondo); cursor: pointer; }
.dlg-cuerpo h2 { font-size: 1.6rem; margin-bottom: .3em; padding-right: 48px; }
.dlg-cuerpo .botones .boton { flex-basis: 100%; }
.aviso-flotante { position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 20px); background: var(--ok); color: var(--ok-texto); font-weight: 700; padding: 12px 20px; border-radius: 12px; width: max-content; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40; margin: 0; }
.aviso-flotante.ver { opacity: 1; transform: translate(-50%, 0); }

/* Checklist */
.check-grid { display: grid; gap: 24px; padding-block: 28px 8px; }
.check-grid > * { min-width: 0; }
.gauge-caja { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; text-align: center; align-self: start; }
.gauge { position: relative; max-width: 260px; margin: 0 auto; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge svg path:nth-child(2) { transition: stroke-dasharray .5s, stroke .3s; }
.gauge strong { position: absolute; left: 0; right: 0; bottom: 0; font: 800 2.4rem/1 var(--titulos); }
.gauge.completo strong { color: var(--ok); }
.gauge.completo svg path:nth-child(2) { stroke: var(--ok); }
.progreso-check { font-weight: 700; margin: 10px 0 4px; }
.grupo-check { border: 1px solid var(--borde); border-radius: var(--radio); padding: 8px 16px 10px; margin: 0 0 16px; min-width: 0; }
.grupo-check legend { font: 800 1.1rem/1 var(--titulos); text-transform: uppercase; color: var(--acento); padding: 0 8px; }
.check { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-height: 54px; cursor: pointer; border-bottom: 1px solid var(--borde); }
.check:last-child { border: 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.caja { flex: none; width: 30px; height: 30px; border: 2px solid var(--suave); border-radius: 9px; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.check input:checked + .caja { background: var(--ok); border-color: var(--ok); transform: scale(1.08); }
.check input:checked + .caja::after { content: ""; width: 7px; height: 13px; border: solid var(--ok-texto); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:checked ~ span:last-child { color: var(--suave); text-decoration: line-through; }
.check input:focus-visible + .caja { outline: 3px solid var(--acento); outline-offset: 3px; }

/* Legales */
.legal { max-width: 75ch; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; text-transform: none; font-stretch: normal; }

/* Movimiento */
@keyframes sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes baja { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes llega { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes ruta { to { background-position-x: -88px; } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes late { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, .16); } }
@keyframes punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.anima .revela { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.anima .revela.visto { opacity: 1; transform: none; }
.anima .pasos li:nth-child(2) { transition-delay: .12s; }
.anima .pasos li:nth-child(3) { transition-delay: .24s; }
.anima .senal.visto { transform: rotate(-1.2deg); }

@media (min-width: 480px) {
  .wa-cab { padding: 0 18px; }
  .wa-cab span { display: inline; }
}
@media (min-width: 760px) {
  .dos { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .pasos a { grid-template-columns: 1fr; row-gap: 12px; }
  .pasos .gran { grid-row: auto; }
  .pasos li:not(:last-child)::before { left: 64px; right: -28px; top: 30px; bottom: auto; width: auto; height: 4px; background: repeating-linear-gradient(90deg, var(--borde) 0 10px, transparent 10px 20px); }
  .funciones { grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
  .contacto-vias { grid-template-columns: repeat(3, 1fr); }
  .opciones { grid-template-columns: repeat(3, 1fr); }
  .opciones.lista { grid-template-columns: 1fr; }
  .wa-caja { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .check-grid { grid-template-columns: 300px 1fr; }
  .gauge-caja { position: sticky; top: 120px; }
  .tabs { display: none; }
  .gestion-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
  .gestion-grid > * { min-width: 0; }
  .gestion-grid[data-vista] .g-cal, .gestion-grid[data-vista] .g-agenda { display: block; }
  .reserva { grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
  .reserva.hecha { grid-template-columns: 1fr; }
  .reserva-lado { position: sticky; top: 120px; }
  .pie-grid { grid-template-columns: 1.1fr 1fr 1.4fr; gap: 40px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 32px; }
  body[data-hero="centro"] .hero-grid { grid-template-columns: 1fr; }
  .funciones { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .funciones li { flex-direction: column; }
  .burger, .barra-movil { display: none; }
  .barra { gap: 22px; }
  .marca { flex: none; }
  .menu, .menu.abierto { display: flex; position: static; flex-direction: row; gap: 20px; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; animation: none; }
  .menu a { border: 0; padding: 6px 0; font: 600 .95rem/1.2 var(--fuente); text-transform: none; border-bottom: 2px solid transparent; }
  .menu a:hover, .menu a[aria-current] { border-bottom-color: var(--acento); }
  .pie { padding-bottom: 36px; }
  .aviso-flotante { bottom: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
