/* ============================================================
   Nuevo Norte Digital — Sistema de diseño
   Tema: blanco cálido + cian + azul marino. Motivo: estrella polar / norte.
   Tipografía: Fraunces (display, carácter humano) + Hanken Grotesk (texto).
   ============================================================ */

:root {
  /* Color */
  --bg:        #F4F8FB;
  --bg-warm:   #FBFCFD;
  --paper:     #FFFFFF;
  --ink:       #08182B;
  --ink-soft:  #41576C;
  --ink-faint: #6E839A;

  --cyan:      #07C4DA;
  --cyan-deep: #088FB0;
  --cyan-ink:  #064E63;
  --azure:     #1577DA;
  --tint:      #E2F7FB;
  --tint-2:    #EAF3FC;

  --line:      #D9E5EF;
  --line-soft: #E9F0F6;

  --star:      #F6B53C; /* destello cálido del norte, uso puntual */

  /* Tipografía */
  --display: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 3rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.6vw, 4.4rem);
  --step-5:  clamp(3rem, 2.1rem + 4.4vw, 6rem);

  /* Espacio / forma */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pad:  clamp(1.15rem, 4vw, 2rem);
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(8,24,43,.05), 0 2px 8px rgba(8,24,43,.04);
  --shadow:    0 10px 30px -12px rgba(8,24,43,.22), 0 2px 8px rgba(8,24,43,.05);
  --shadow-lg: 0 30px 70px -28px rgba(7,78,99,.4);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* Fondo atmosférico: malla de gradientes cian + grano sutil */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 50% at 82% -8%, rgba(7,196,218,.18), transparent 60%),
    radial-gradient(48% 42% at 6% 4%, rgba(21,119,218,.12), transparent 58%),
    radial-gradient(70% 60% at 50% 116%, rgba(7,196,218,.10), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--pad), 760px); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 540; line-height: 1.04; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: var(--step-5); font-weight: 560; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.01em; }
h4 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
p { color: var(--ink-soft); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; font-weight: 400; }
strong { color: var(--ink); font-weight: 700; }
em { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--step--1);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--cyan); display: inline-block;
}
.eyebrow.center::before { display: none; }

.serif-accent { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--cyan-deep); }
.underline-cyan { background: linear-gradient(transparent 62%, rgba(7,196,218,.34) 0); padding: 0 .05em; }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 100px;
  font-weight: 700; font-size: var(--step-0); letter-spacing: -.01em;
  border: 1.5px solid transparent; background: var(--bg-btn); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --bg-btn: linear-gradient(135deg, var(--cyan) 0%, var(--azure) 100%);
  color: #fff; box-shadow: 0 8px 22px -10px rgba(7,196,218,.7);
}
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(7,196,218,.85); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--cyan); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }
.btn svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--cyan-deep);
  transition: gap .2s var(--ease);
}
.text-link:hover { gap: .7rem; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(244,248,251,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(244,248,251,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark-logo { width: auto; height: 30px; border-radius: 0; }
.mark-logo--inv { filter: brightness(0) invert(1); }
.brand small { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; color: var(--ink-faint); text-transform: uppercase; display: block; line-height: 1; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: 100px; font-weight: 600; font-size: var(--step--1);
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(7,196,218,.1); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); padding: 5rem 1.4rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 60;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: .85rem 1rem; font-size: var(--step-0); border-radius: 12px; }
  .nav-toggle { display: inline-flex; z-index: 70; }
  .nav-cta .btn { display: none; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(8,24,43,.4); opacity: 0; visibility: hidden; transition: .3s; z-index: 55; }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { max-width: 40ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero-trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero-trust .ht { display: flex; align-items: center; gap: .55rem; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.hero-trust .ht svg { width: 18px; height: 18px; color: var(--cyan-deep); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
}

/* Tarjeta visual del hero: mockup de carta digital en móvil */
.phone {
  position: relative; width: min(100%, 320px); margin-inline: auto;
  aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 42px;
  padding: 12px; box-shadow: var(--shadow-lg);
  rotate: 3deg;
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 46%; height: 24px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; background: var(--paper); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { background: linear-gradient(135deg, var(--cyan) 0%, var(--azure) 100%); color: #fff; padding: 2.2rem 1.1rem 1rem; }
.phone-top h5 { font-family: var(--display); font-size: 1.3rem; font-weight: 560; }
.phone-top span { font-size: .68rem; opacity: .9; letter-spacing: .1em; text-transform: uppercase; }
.phone-body { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.dish { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-bottom: .65rem; border-bottom: 1px dashed var(--line); }
.dish b { font-family: var(--display); font-weight: 540; font-size: .95rem; color: var(--ink); }
.dish small { display: block; color: var(--ink-faint); font-size: .68rem; font-weight: 500; }
.dish .price { font-weight: 700; color: var(--cyan-deep); font-size: .9rem; white-space: nowrap; }
.dish .sold { font-size: .6rem; background: var(--tint); color: var(--cyan-ink); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.float-badge {
  position: absolute; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 14px; padding: .6rem .85rem; display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700;
}
.float-badge svg { width: 20px; height: 20px; }
.float-badge.fb-1 { top: 8%; left: -6%; rotate: -5deg; }
.float-badge.fb-2 { bottom: 12%; right: -8%; rotate: 4deg; }
@media (max-width: 480px) { .float-badge { display: none; } }

/* Miniaturas por plato + edición en vivo (dedo que pulsa "Agotado") */
.phone .dish { align-items: center; }
.dish-main { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1; }
.dish-thumb { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 1.15rem; background: var(--tint); border: 1px solid var(--line-soft); }

.demo-dish { position: relative; }
.demo-dish .live-sold { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
/* Sin animación: muestra precio fijo, oculta dedo/ripple */
.demo-dish .live-sold { display: none; }
.tap-finger, .tap-ripple { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .demo-dish .dish-main { animation: hfDim 6s var(--ease) infinite; }
  .demo-dish .live-price { animation: hfPrice 6s var(--ease) infinite; }
  .demo-dish .live-sold { display: inline-block; animation: hfSold 6s var(--ease) infinite; }
  .tap-finger {
    display: block; position: absolute; right: -2px; top: 50%; font-size: 1.45rem;
    pointer-events: none; filter: drop-shadow(0 3px 5px rgba(8,24,43,.28));
    transform: translate(8px, 14px); opacity: 0; animation: hfFinger 6s var(--ease) infinite;
  }
  .tap-ripple {
    display: block; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    border-radius: 50%; background: var(--cyan); pointer-events: none; opacity: 0; animation: hfRipple 6s var(--ease) infinite;
  }
}
@keyframes hfPrice { 0%,34% { opacity: 1; } 42%,86% { opacity: 0; } 94%,100% { opacity: 1; } }
@keyframes hfSold  { 0%,34% { opacity: 0; } 42%,86% { opacity: 1; } 94%,100% { opacity: 0; } }
@keyframes hfDim   { 0%,38% { opacity: 1; } 50%,82% { opacity: .5; } 94%,100% { opacity: 1; } }
@keyframes hfFinger {
  0%,16% { opacity: 0; transform: translate(8px, 14px) scale(1); }
  26%,38% { opacity: 1; transform: translate(0, 2px) scale(1); }
  42% { opacity: 1; transform: translate(0, 2px) scale(.78); }
  48%,58% { opacity: 1; transform: translate(0, 2px) scale(1); }
  72%,100% { opacity: 0; transform: translate(8px, 14px) scale(1); }
}
@keyframes hfRipple {
  0%,40% { opacity: 0; transform: scale(.2); }
  43% { opacity: .55; transform: scale(.5); }
  58% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* Dos escenas dentro del móvil: carta <-> web genérica (crossfade en bucle) */
.phone-screen { position: relative; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); opacity: 0; }
.scene-carta { opacity: 1; }

/* Escena web genérica */
.scene-web { padding: 0; }
.web-top { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); }
.web-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--cyan), var(--azure)); flex: none; }
.web-brand { font-family: var(--display); font-weight: 560; font-size: .92rem; color: var(--ink); }
.web-nav { width: 16px; height: 5px; border-radius: 3px; background: var(--line); }
.web-nav.first { margin-left: auto; }
.web-hero { position: relative; height: 120px; margin: .9rem 1rem 0; border-radius: 14px; background: linear-gradient(135deg, var(--tint), var(--tint-2)); display: grid; place-items: center; overflow: hidden; }
.web-emoji { position: absolute; font-size: 2.7rem; opacity: 0; }
.web-saved { position: absolute; top: .55rem; right: .55rem; display: inline-flex; align-items: center; gap: .25rem; background: rgba(255,255,255,.95); color: var(--cyan-deep); font-size: .58rem; font-weight: 700; padding: .2rem .5rem; border-radius: 100px; box-shadow: var(--shadow-sm); opacity: 0; }
.web-body { padding: 1rem; }
.web-title { position: relative; min-height: 2.5em; margin-bottom: .8rem; }
.web-typed { font-family: var(--display); font-weight: 560; font-size: 1.18rem; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
.web-line { display: block; height: 9px; border-radius: 5px; background: var(--line-soft); margin-bottom: .5rem; }
.web-line.l1 { width: 92%; } .web-line.l2 { width: 68%; }
.web-btn { display: inline-block; margin-top: .8rem; padding: .5rem 1.1rem; border-radius: 100px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; transition: background .35s var(--ease); }
.web-btn.on { background: var(--cyan-deep); }

/* Imagen del hero que el cliente cambia */
.web-emoji-live { position: absolute; font-size: 2.7rem; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.web-emoji-live.swapping { opacity: 0; transform: scale(.5); }

/* Señales de "el cliente está editando" (encendidas por JS) */
.edit-ring { position: absolute; border: 2px dashed var(--cyan); border-radius: 10px; opacity: 0; pointer-events: none; box-shadow: 0 0 0 4px rgba(7,196,218,.1); transition: opacity .25s var(--ease); }
.ring-txt { inset: -6px -8px; }
.ring-img { inset: -3px; border-radius: 14px; }
.edit-ring.on { opacity: 1; }
.edit-tag { position: absolute; top: -11px; left: -4px; transform: translateY(-100%); white-space: nowrap; background: var(--cyan); color: #fff; font-size: .56rem; font-weight: 700; letter-spacing: .01em; padding: .2rem .5rem; border-radius: 7px; opacity: 0; pointer-events: none; box-shadow: var(--shadow-sm); transition: opacity .25s var(--ease); }
.tag-img { top: 6px; left: 6px; transform: none; }
.edit-tag.on { opacity: 1; }
.type-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--cyan-deep); opacity: 0; }
.type-caret.on { animation: caretBlink 1s steps(1) infinite; }
.web-saved { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.web-saved.on { opacity: 1; transform: none; }

/* Solo el crossfade de escenas es CSS; el tecleo lo gestiona JS (main.js) */
@media (prefers-reduced-motion: no-preference) {
  .scene-carta { animation: hfSceneA 14s var(--ease) infinite; }
  .scene-web   { animation: hfSceneB 14s var(--ease) infinite; }
}

@keyframes hfSceneA { 0%,46% { opacity: 1; } 50%,96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hfSceneB { 0%,46% { opacity: 0; } 50%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes caretBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(7,196,218,.5); }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .7rem 0 1rem; }
.section-head p { font-size: var(--step-1); }

/* Icono en círculo */
.icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--tint); color: var(--cyan-deep); margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Valor / feature */
.feature h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.feature p { font-size: var(--step-0); }

/* ---------- Pasos numerados ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  background: var(--ink); color: #fff;
}
.step:nth-child(odd) .num { background: linear-gradient(135deg, var(--cyan), var(--azure)); }
.step .num::before { content: counter(step); }
.step h4 { margin-bottom: .25rem; }
.step p { font-size: var(--step-0); }

/* ---------- Catálogo plantillas ---------- */
.tpl-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tpl-thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.tpl-thumb .tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: rgba(255,255,255,.92); color: var(--cyan-ink); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 100px; }
.tpl-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tpl-body h3 { font-size: var(--step-1); }
.tpl-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.price-from { font-size: var(--step--1); color: var(--ink-faint); font-weight: 600; }
.price-from b { display: block; font-size: var(--step-1); color: var(--ink); font-family: var(--display); font-weight: 560; }

/* miniaturas decorativas (sin imágenes externas) */
.thumb-resto { background: linear-gradient(135deg, #08182B, #064E63); }
.thumb-tienda { background: linear-gradient(135deg, #07C4DA, #1577DA); }
.thumb-servicio { background: linear-gradient(135deg, #0892B3, #08182B); }
.thumb-resto .mini, .thumb-tienda .mini, .thumb-servicio .mini { color: #fff; text-align: center; font-family: var(--display); font-size: 1.4rem; opacity: .96; padding: 1rem; }
.thumb-resto .mini span, .thumb-tienda .mini span, .thumb-servicio .mini span { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .8; margin-top: .3rem; }

/* ---------- Barra de filtros ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.filter-bar button {
  padding: .6rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); transition: .2s;
}
.filter-bar button:hover { border-color: var(--cyan); color: var(--ink); }
.filter-bar button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Precios ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--cyan); box-shadow: var(--shadow); }
.plan.featured::before { content: "Más elegido"; position: absolute; top: -12px; left: 50%; translate: -50% 0; background: linear-gradient(135deg, var(--cyan), var(--azure)); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 100px; }
.plan h3 { font-size: var(--step-1); }
.plan .price { font-family: var(--display); font-size: var(--step-3); font-weight: 560; color: var(--ink); margin: .4rem 0; line-height: 1; }
.plan .price span { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--ink-faint); }
.plan .desc { font-size: var(--step--1); color: var(--ink-soft); min-height: 2.6em; }
.plan ul.checks { display: grid; gap: .6rem; margin: 1.3rem 0; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: var(--step-0); color: var(--ink-soft); align-items: start; }
.checks li svg { width: 19px; height: 19px; color: var(--cyan-deep); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.toggle-bill { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 4px; gap: 2px; margin-bottom: 2.2rem; }
.toggle-bill button { padding: .55rem 1.1rem; border-radius: 100px; border: 0; background: transparent; font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); transition: .2s; }
.toggle-bill button.active { background: var(--ink); color: #fff; }
.toggle-bill .save { font-size: .62rem; background: var(--star); color: #4a2e00; padding: 1px 6px; border-radius: 6px; margin-left: .4rem; }

/* ---------- Bloque destacado / banda ---------- */
.band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(7,196,218,.35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(21,119,218,.3), transparent 60%); }
.band > * { position: relative; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.78); }
.band .eyebrow { color: var(--cyan); }
.band .eyebrow::before { background: var(--cyan); }

/* ---------- Ficha de plantilla ---------- */
.ficha-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 940px) { .ficha-grid { grid-template-columns: 1fr; } }
.ficha-demo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.config { position: sticky; top: 90px; }
.opt-group { margin-bottom: 1.4rem; }
.opt-group > label { display: block; font-weight: 700; font-size: var(--step--1); margin-bottom: .6rem; color: var(--ink); }
.opt {
  display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: .5rem;
}
.opt:hover { border-color: var(--cyan); }
.opt input { margin-top: .25rem; accent-color: var(--azure); width: 18px; height: 18px; flex: none; }
.opt input:checked ~ .opt-text b { color: var(--cyan-deep); }
.opt:has(input:checked) { border-color: var(--cyan); background: var(--tint); }
.opt-text { font-size: var(--step--1); line-height: 1.4; }
.opt-text b { display: block; font-size: var(--step-0); color: var(--ink); }
.opt-text .opt-price { color: var(--cyan-deep); font-weight: 700; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; border-top: 1.5px solid var(--line); margin-top: .5rem; }
.total-row .t-label { font-weight: 700; }
.total-row .t-val { font-family: var(--display); font-size: var(--step-2); font-weight: 560; }
.total-sub { font-size: var(--step--1); color: var(--ink-faint); text-align: right; margin-top: -.5rem; margin-bottom: 1rem; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field .hint { font-size: .78rem; color: var(--ink-faint); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(7,196,218,.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-note { font-size: var(--step--1); color: var(--ink-faint); display: flex; gap: .5rem; align-items: flex-start; }
.form-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--cyan-deep); }
.form-ok { display: none; padding: 1.2rem 1.4rem; background: var(--tint); border: 1px solid var(--cyan); border-radius: 14px; color: var(--cyan-ink); font-weight: 600; }
.form-ok.show { display: block; }

/* chips de selección múltiple */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 100px; font-size: var(--step--1); font-weight: 600; cursor: pointer; transition: .2s; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--cyan); background: var(--tint); color: var(--cyan-ink); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font-weight: 700; font-size: var(--step-1); cursor: pointer; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: .3s; }
.faq summary .ic::before { content: "+"; font-size: 1.2rem; color: var(--cyan-deep); line-height: 1; }
.faq[open] summary .ic { background: var(--cyan); border-color: var(--cyan); rotate: 135deg; }
.faq[open] summary .ic::before { color: #fff; }
.faq-body { padding-bottom: 1.3rem; }
.faq-body p { font-size: var(--step-0); }

/* ---------- Prueba social ---------- */
.quote { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; font-weight: 460; color: var(--ink); }
.quote-by { margin-top: 1.2rem; display: flex; align-items: center; gap: .8rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--azure)); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--display); flex: none; }
.quote-by b { display: block; }
.quote-by span { font-size: var(--step--1); color: var(--ink-faint); }

/* ---------- Migas / page-head ---------- */
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: var(--step--1); color: var(--ink-faint); margin-bottom: 1.2rem; font-weight: 600; }
.crumbs a:hover { color: var(--cyan-deep); }
.crumbs span { opacity: .5; }

/* ---------- Tabla legal / prosa ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: var(--step-1); margin: 1.8rem 0 .6rem; }
.prose p, .prose li { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin: .6rem 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--cyan-deep); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(7,196,218,.4); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.callout { background: var(--tint-2); border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; font-size: var(--step--1); color: var(--ink-soft); margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: clamp(3rem, 7vw, 6rem); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.footer-about p { color: rgba(255,255,255,.6); font-size: var(--step--1); margin-top: 1rem; max-width: 30ch; }
.footer-col h5 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; padding: .35rem 0; color: rgba(255,255,255,.72); font-size: var(--step--1); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--step--1); color: rgba(255,255,255,.5); }
.footer-bottom .badges { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom .badges span { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom svg { width: 15px; height: 15px; color: var(--cyan); }

/* ---------- Banner cookies ---------- */
.cookie-bar {
  position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; z-index: 80;
  width: min(100% - 2rem, 720px); background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-radius: 18px; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  transform: translate(-50%, 150%); transition: transform .5s var(--ease);
}
.cookie-bar.show { transform: translate(-50%, 0); }
.cookie-bar p { font-size: var(--step--1); flex: 1 1 280px; margin: 0; }
.cookie-bar p a { color: var(--cyan-deep); text-decoration: underline; }
.cookie-bar .ck-actions { display: flex; gap: .6rem; }
.cookie-bar .btn { padding: .6rem 1.1rem; font-size: var(--step--1); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-faint); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem,5vw,4rem); }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--tint); color: var(--cyan-ink); font-size: var(--step--1); font-weight: 700; padding: .35rem .8rem; border-radius: 100px; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list .t { background: var(--tint-2); color: var(--cyan-ink); font-size: var(--step--1); font-weight: 600; padding: .3rem .75rem; border-radius: 100px; }

/* ---------- Animaciones de entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: rise .8s var(--ease) forwards; }
[data-delay="1"] { animation-delay: .08s; }
[data-delay="2"] { animation-delay: .16s; }
[data-delay="3"] { animation-delay: .24s; }
[data-delay="4"] { animation-delay: .32s; }
[data-delay="5"] { animation-delay: .4s; }

/* Carga del hero (sin esperar al observer) */
.hero .reveal { animation: rise .9s var(--ease) forwards; }
