/* =============================================================
   Prótesis Dentales J&CR · estilos
   Arquetipo: Glassmorphism moderno, con los colores del logo
   (el diente en degradé: coral, naranja, amarillo, violeta, turquesa).
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #f7f3ee;
  --bg-2:      #f1ecf6;
  --paper:     #ffffff;
  --ink:       #10232b;
  --ink-soft:  #34474f;
  --ink-mute:  #63757c;
  --line:      rgba(16, 35, 43, .10);

  --violet:    #7b2ff2;
  --magenta:   #c13ad6;
  --coral:     #f2553a;
  --orange:    #f58a1f;
  --yellow:    #f6c432;
  --teal:      #1fb5b4;
  --teal-deep: #0f7f8c;
  --wsp:       #1fae6b;

  --iris: linear-gradient(100deg, #f2553a 0%, #f58a1f 22%, #c13ad6 50%, #7b2ff2 70%, #1fb5b4 100%);

  --glass:        rgba(255, 255, 255, .52);
  --glass-solid:  rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75);
  --shadow:    0 1px 0 rgba(255,255,255,.6) inset, 0 18px 50px -24px rgba(36, 24, 70, .28), 0 4px 14px -6px rgba(16, 35, 43, .08);
  --shadow-lg: 0 30px 80px -30px rgba(60, 30, 120, .38), 0 8px 24px -10px rgba(16, 35, 43, .12);

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", "Segoe UI", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --nav-h: 84px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.iris-text {
  background: var(--iris);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 1rem;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,181,180,.2); }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 4px rgba(123,47,242,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(123,47,242,.05); } }

/* ---------- 3. Vidrio (con respaldo sólido) ---------- */
.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

/* ---------- 4. Degradé animado (mesh) ---------- */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh i {
  position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%;
  filter: blur(70px); opacity: .55; will-change: transform;
}
.mesh .m1 { background: radial-gradient(circle, #b98bff 0%, rgba(185,139,255,0) 65%); top: -18vmax; right: -10vmax; animation: drift1 30s ease-in-out infinite; }
.mesh .m2 { background: radial-gradient(circle, #ffb08a 0%, rgba(255,176,138,0) 65%); top: 10vmax; left: -22vmax; animation: drift2 34s ease-in-out infinite; }
.mesh .m3 { background: radial-gradient(circle, #7fe3df 0%, rgba(127,227,223,0) 65%); bottom: -26vmax; right: 12vmax; animation: drift3 38s ease-in-out infinite; }
.mesh-soft i { opacity: .32; }
@keyframes drift1 { 50% { transform: translate(-8vmax, 6vmax) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(10vmax, -4vmax) scale(1.2); } }
@keyframes drift3 { 50% { transform: translate(-6vmax, -8vmax) scale(1.1); } }

/* ---------- 5. Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.45rem; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(16,35,43,.55); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-dark:hover { --bg: #1b3a45; }
.btn-iris { --fg: #fff; background: var(--iris); background-size: 160% 100%; background-position: 0 50%; transition: background-position .6s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s; box-shadow: 0 14px 34px -16px rgba(123,47,242,.7); }
.btn-iris:hover { background-position: 100% 50%; box-shadow: 0 18px 40px -16px rgba(123,47,242,.8); }
.btn-glass { --fg: var(--ink); background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px -18px rgba(16,35,43,.4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255,255,255,.9); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { --bg: rgba(16,35,43,.05); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-outline-light { --bg: transparent; --fg: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline-light:hover { --bg: rgba(255,255,255,.1); }
.btn-wsp { --bg: var(--wsp); --fg: #fff; }
.btn-wsp:hover { --bg: #18975c; }
.btn-wsp svg { fill: currentColor; stroke: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[hidden] { display: none; }

/* ---------- 6. Navegación ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 60; padding-inline: 1rem; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  width: min(100%, 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem .55rem .5rem .8rem; border-radius: 999px;
  transition: box-shadow .4s, background-color .4s;
}
.nav.is-scrolled .nav-pill { box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(123,47,242,.25)); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1.12rem; letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; color: var(--ink-mute); letter-spacing: .02em; }
.nav-links { position: relative; display: flex; gap: .15rem; }
.nav-links a {
  position: relative; z-index: 1; padding: .55rem .85rem; border-radius: 999px;
  font-family: var(--display); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-ink {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 4px 14px -6px rgba(16,35,43,.2);
  opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s;
}
.nav-ink::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--iris); }
.nav-cta svg { fill: currentColor; stroke: none; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.nav-burger i { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease-out); }
.nav-burger i:first-child { top: 18px; } .nav-burger i:last-child { top: 26px; }
.nav-burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-drawer {
  pointer-events: auto;
  width: min(100%, 520px); margin: .6rem auto 0; border-radius: var(--r-lg); padding: .8rem;
  display: grid; gap: .1rem;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a:not(.btn) { padding: .85rem .9rem; border-radius: 14px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.nav-drawer a:not(.btn):hover { background: rgba(255,255,255,.7); }
.nav-drawer .btn { margin-top: .5rem; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3.2rem) 0 4rem; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6.2vw, 5.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; max-width: 13ch; }
.hero-title .iris-text { display: inline; }
.hero-sub { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust {
  list-style: none; margin: 2.6rem 0 0; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 40rem;
}
.hero-trust li { display: grid; gap: .15rem; }
.hero-trust li + li { border-left: 1px solid var(--line); padding-left: 1rem; }
.hero-trust b { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; display: inline-flex; align-items: baseline; }
.hero-trust .u { font-size: .55em; margin-left: .15em; color: var(--ink-mute); }
.hero-trust .star { font-size: .65em; margin-left: .15em; color: var(--orange); }
.hero-trust small { font-size: .78rem; line-height: 1.3; color: var(--ink-mute); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-photo {
  position: relative; border-radius: 240px 240px var(--r-lg) var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(255,255,255,.8); outline-offset: -1px;
}
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 60%, rgba(16,35,43,.18)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 254px 254px 40px 40px;
  background: var(--iris); opacity: .9; filter: blur(.5px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 3px;
}
.hero-tooth {
  position: absolute; width: 132px; top: -34px; left: -52px; z-index: 3;
  filter: drop-shadow(0 30px 34px rgba(123,47,242,.35)) drop-shadow(0 10px 14px rgba(16,35,43,.18));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-14px) rotate(-4deg); } }
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .8rem; border-radius: 18px; font-size: .9rem; line-height: 1.2; }
.chip strong { display: block; font-family: var(--display); font-weight: 600; font-size: .92rem; }
.chip small { color: var(--ink-mute); font-size: .76rem; }
.chip .stars { color: var(--orange); font-size: .95rem; letter-spacing: .05em; }
.chip-rating { top: 22%; right: -46px; flex-direction: column; align-items: flex-start; gap: .25rem; }
.chip-fast { bottom: 22%; left: -64px; }
.chip-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--coral), var(--orange)); color: #fff; }
.chip-ico svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.chip-work { bottom: -34px; right: -26px; flex-direction: column; align-items: stretch; gap: .45rem; padding: .5rem .5rem .6rem; width: 190px; margin: 0; }
.chip-work img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.chip-work figcaption { font-size: .74rem; color: var(--ink-mute); padding-inline: .3rem; }
.chip-rating { animation: floaty 7s ease-in-out infinite; }
.chip-fast { animation: floaty 8s ease-in-out infinite -2s; }
.chip-work { animation: floaty 9s ease-in-out infinite -4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- 8. Secciones ---------- */
.section { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; isolation: isolate; }
.section > .wrap { position: relative; z-index: 1; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.section-lead { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 40rem; }

/* Urgencias */
.urgent { padding-top: 2rem; }
.urgent-card {
  position: relative; overflow: hidden; border-radius: 36px; color: #eef4f5;
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(123,47,242,.45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(31,181,180,.35), transparent 60%),
    radial-gradient(40% 50% at 60% 110%, rgba(242,85,58,.35), transparent 60%),
    #10232b;
  box-shadow: var(--shadow-lg);
}
.urgent-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--iris); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.urgent-head { max-width: 44rem; }
.urgent-head h2 { color: #fff; }
.urgent-head .iris-text { background: linear-gradient(100deg, #ffb18f, #ffd36e 40%, #e9a2ff 70%, #8ff0ea); -webkit-background-clip: text; background-clip: text; }
.urgent-head > p:last-child { margin-top: 1rem; color: rgba(238,244,245,.78); font-size: 1.1rem; }
.kicker-light { color: rgba(238,244,245,.75); }
.urgent-steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.urgent-steps li { padding: 1.4rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.urgent-steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--iris); font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.urgent-steps h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.urgent-steps p { color: rgba(238,244,245,.72); font-size: .96rem; }
.urgent-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Servicios */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service { position: relative; padding: 1.8rem 1.6rem 1.7rem; border-radius: var(--r-lg); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; margin-bottom: 1.3rem; box-shadow: 0 12px 24px -12px var(--c1); }
.service-ico svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .45rem; }
.service p { color: var(--ink-soft); font-size: .98rem; }
.tag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .72rem; font-weight: 600; font-family: var(--display); letter-spacing: .04em; padding: .3rem .65rem; border-radius: 999px; background: rgba(242,85,58,.1); color: #c23c22; }

/* ---------- 9. Escáner de sonrisa ---------- */
.scanner-section { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.scanner > * { min-width: 0; }
.scanner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.4rem, 3vw, 2.6rem); padding: clamp(1rem, 2vw, 1.4rem); border-radius: 36px; }
.scan-view {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 420px;
  background: radial-gradient(70% 60% at 50% 40%, #2a1a52 0%, #10232b 75%);
  display: grid; place-items: center;
}
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: radial-gradient(80% 70% at 50% 50%, #000 40%, transparent 100%); mask: radial-gradient(80% 70% at 50% 50%, #000 40%, transparent 100%); }
.scan-tooth { position: relative; width: 46%; max-width: 230px; filter: drop-shadow(0 30px 40px rgba(193,58,214,.45)); animation: bob 6s ease-in-out infinite; }
.scan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-photo[hidden], .scan-tooth[hidden] { display: none; }
.scan-corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.85); z-index: 2; }
.scan-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scan-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan-line { position: absolute; left: 6%; right: 6%; top: 8%; height: 3px; border-radius: 3px; z-index: 2; background: var(--iris); box-shadow: 0 0 18px 4px rgba(193,58,214,.55), 0 0 60px 10px rgba(31,181,180,.25); opacity: 0; }
.scan-view.is-scanning .scan-line { opacity: 1; animation: scan 2.2s ease-in-out infinite; }
.scan-view.is-scanning::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(123,47,242,.18), transparent 40%, rgba(31,181,180,.18)); animation: glow 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 91%; } }
@keyframes glow { 50% { opacity: .4; } }
.scan-view.is-done .scan-corner { border-color: #8ff0ea; }
.scan-status {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  padding: .45rem .9rem; border-radius: 999px; white-space: nowrap;
  background: rgba(16,35,43,.62); color: #fff; font-size: .82rem; font-family: var(--display); font-weight: 500;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
}
.scan-panel { padding: clamp(.6rem, 2vw, 1.4rem) clamp(.4rem, 1.5vw, 1rem) clamp(.6rem, 2vw, 1rem) 0; display: flex; flex-direction: column; justify-content: center; }
.scan-progress { height: 6px; border-radius: 6px; background: rgba(16,35,43,.08); overflow: hidden; }
.scan-progress i { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--iris); transition: width .5s var(--ease-out); }
.scan-count { margin: .7rem 0 1.4rem; font-size: .82rem; font-weight: 600; color: var(--ink-mute); letter-spacing: .04em; }
.scan-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.scan-step[hidden] { display: none; }
.scan-step.is-current { animation: stepIn .5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.scan-step legend { padding: 0; margin-bottom: 1.2rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
.scan-step legend small { font-size: .55em; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.opts { display: grid; gap: .7rem; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span {
  display: grid; gap: .1rem; height: 100%; padding: 1rem 1.1rem; border-radius: 18px;
  background: rgba(255,255,255,.7); border: 1.5px solid rgba(16,35,43,.08);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-out), box-shadow .3s;
}
.opt b { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.opt small { color: var(--ink-mute); font-size: .84rem; line-height: 1.35; }
.opt:hover > span { transform: translateY(-2px); border-color: rgba(123,47,242,.35); }
.opt input:checked + span { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(123,47,242,.12), 0 10px 24px -14px rgba(123,47,242,.6); }
.opt input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.upload {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; cursor: pointer;
  border: 2px dashed rgba(123,47,242,.35); background: rgba(255,255,255,.6);
  transition: border-color .25s, background-color .25s;
}
.upload:hover, .upload.is-drag { border-color: var(--violet); background: #fff; }
.upload.has-file { border-style: solid; border-color: var(--teal); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--iris); color: #fff; flex-shrink: 0; }
.upload-ico svg { width: 26px; height: 26px; }
.upload b { display: block; font-family: var(--display); font-weight: 600; }
.upload small { color: var(--ink-mute); font-size: .86rem; }
.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field > span { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.field small { color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid rgba(16,35,43,.12); background: rgba(255,255,255,.85);
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123,47,242,.12); }
.field.has-error input { border-color: var(--coral); }
.privacy { margin-top: 1rem; font-size: .84rem; color: var(--ink-mute); line-height: 1.5; }
.scan-error, .form-error { margin-top: .9rem; color: #c23c22; font-size: .9rem; font-weight: 500; }
.scan-error[hidden], .form-error[hidden] { display: none; }
.scan-nav { display: flex; gap: .7rem; margin-top: 1.6rem; }
.scan-nav .btn-dark, .scan-nav .btn-iris { margin-left: auto; }

.scan-result[hidden] { display: none; }
.scan-result { animation: stepIn .6s var(--ease-out); }
.prio { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--display); }
.prio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.prio.alta { background: rgba(242,85,58,.12); color: #c23c22; }
.prio.media { background: rgba(245,138,31,.14); color: #a85a0c; }
.prio.baja { background: rgba(31,181,180,.14); color: #0d6f7a; }
.res-kicker { margin-top: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.scan-result h3 { margin-top: .35rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.res-seen { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(31,181,180,.1); border-left: 3px solid var(--teal); }
.res-seen[hidden] { display: none; }
.res-seen b, .res-tips b { font-family: var(--display); font-size: .86rem; font-weight: 600; }
.res-seen p { font-size: .96rem; color: var(--ink-soft); }
.res-text { margin-top: 1rem; color: var(--ink-soft); }
.res-time { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .5rem .9rem; border-radius: 16px; background: #fff; font-weight: 500; font-size: .92rem; box-shadow: 0 6px 16px -10px rgba(16,35,43,.3); }
.res-time svg { color: var(--violet); }
.res-tips { margin-top: 1.2rem; }
.res-tips ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.res-tips li { position: relative; padding-left: 1.6rem; font-size: .96rem; color: var(--ink-soft); }
.res-tips li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--iris); transform: rotate(45deg); }
.res-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.res-note { margin-top: 1rem; font-size: .8rem; color: var(--ink-mute); }

/* ---------- 10. Cómo trabajamos ---------- */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: s; position: relative; }
.step { padding: 2rem 1.7rem; border-radius: var(--r-lg); }
.step-n { display: inline-block; font-family: var(--display); font-size: 3rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 1.2rem; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-soft); }
.steps-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; color: var(--ink-soft); font-weight: 500; }
.steps-note svg { color: var(--violet); }

/* ---------- 11. Sonrisas (galería en movimiento) ---------- */
.smiles { padding-bottom: clamp(4rem, 7vw, 6rem); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 1rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: clamp(220px, 24vw, 320px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 30px -18px rgba(16,35,43,.45); transition: transform .45s var(--ease-out); }
.marquee img:hover { transform: scale(1.04); }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }

/* ---------- 12. Historia ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.story-photos { position: relative; padding-bottom: 5rem; }
.story-main { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.story-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-main figcaption, .story-old figcaption { font-size: .8rem; color: var(--ink-mute); }
.story-main figcaption { position: absolute; left: 1rem; top: 1rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink); font-weight: 500; }
.story-old { position: absolute; right: -1.5rem; bottom: 0; width: 58%; margin: 0; padding: .55rem .55rem .7rem; border-radius: 20px; transform: rotate(-3deg); }
.story-old img { border-radius: 14px; filter: sepia(.15); }
.story-old figcaption { margin-top: .45rem; padding-inline: .3rem; }
.story-copy > p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }
.story-copy .section-head { margin-bottom: 1.2rem; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--iris); border-radius: 2px; }
.timeline li { position: relative; display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .55rem 0 .55rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); }
.timeline li:last-child::before { background: var(--violet); }
.timeline b { font-family: var(--display); font-weight: 600; }
.timeline span { color: var(--ink-soft); }
.story-quote { margin-top: 2rem; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; }

/* ---------- 13. Opiniones ---------- */
.reviews-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.8rem; padding: .9rem 1.3rem; border-radius: var(--r-md); }
.rating > b { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.rating .stars { display: block; color: var(--orange); letter-spacing: .08em; }
.rating small { color: var(--ink-mute); font-size: .85rem; }
.reviews-photo { margin: 1.8rem 0 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.reviews-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.review-card { position: relative; padding: clamp(2rem, 4vw, 3.2rem); border-radius: 36px; min-height: 360px; display: grid; }
.quote-mark { position: absolute; top: .4rem; right: 1.8rem; font-family: var(--display); font-size: 9rem; line-height: 1; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; pointer-events: none; }
.review { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s; }
.review.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s; }
.review p { font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 400; line-height: 1.4; letter-spacing: -.015em; max-width: 30ch; }
.review footer { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--iris); color: #fff; font-family: var(--display); font-weight: 700; }
.review strong { display: block; font-family: var(--display); font-weight: 600; }
.review small { color: var(--ink-mute); font-size: .84rem; }
.review-nav { grid-area: 2 / 1; display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; }
.review-dots { display: flex; gap: .45rem; }
.review-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(16,35,43,.18); cursor: pointer; transition: width .4s var(--ease-out), background-color .3s; }
.review-dots button[aria-current="true"] { width: 30px; background: var(--violet); }
.review-arrows { display: flex; gap: .5rem; }
.review-arrows button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.8); cursor: pointer; transition: background-color .25s, transform .3s var(--ease-out); }
.review-arrows button:hover { background: #fff; transform: scale(1.06); }
.link-arrow { display: inline-block; margin-top: 1.2rem; font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--violet); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 14. Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.faq-grid .section-head .btn { margin-top: 1.6rem; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: var(--r-md); padding: 0 1.4rem; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(16,35,43,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310232b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease-out), background-color .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: rgba(123,47,242,.12); }
.faq-item p { padding-bottom: 1.3rem; color: var(--ink-soft); }

/* ---------- 15. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.contact-info { border-radius: 36px; padding: clamp(1.8rem, 4vw, 2.8rem); }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list b { display: block; font-family: var(--display); font-weight: 600; }
.contact-list b a { text-decoration: none; }
.contact-list b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list small { color: var(--ink-mute); font-size: .86rem; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--violet); flex-shrink: 0; box-shadow: 0 6px 16px -10px rgba(16,35,43,.35); }
.hours { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hours-title { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; margin-bottom: .8rem; }
.open-badge { padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.open-badge.is-open { background: rgba(31,174,107,.14); color: #157a4a; }
.open-badge.is-closed { background: rgba(16,35,43,.07); color: var(--ink-mute); }
.hours dl { margin: 0; display: grid; gap: .15rem; }
.hours dl div { display: flex; justify-content: space-between; padding: .35rem .7rem; border-radius: 10px; font-size: .95rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; }
.hours dl div.is-today { background: #fff; box-shadow: 0 4px 14px -8px rgba(16,35,43,.3); }
.hours dl div.is-today dt { color: var(--ink); font-weight: 600; }
.hours-note { margin-top: .7rem; font-size: .86rem; color: var(--ink-mute); }
.socials { display: flex; gap: .6rem; margin-top: 1.6rem; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .3s var(--ease-out), background-color .25s; }
.socials a:hover { transform: translateY(-3px); background: var(--violet); }
.contact-side { display: grid; gap: 1.2rem; grid-template-rows: auto 1fr; }
.contact-form { border-radius: 36px; padding: clamp(1.6rem, 3.5vw, 2.4rem); }
.contact-form h3 { font-size: 1.3rem; }
.contact-form .btn { margin-top: 1.3rem; }
.form-note { margin-top: .8rem; font-size: .82rem; color: var(--ink-mute); text-align: center; }
.map { position: relative; border-radius: 36px; overflow: hidden; min-height: 280px; padding: .5rem; }
.map iframe { width: 100%; height: 100%; min-height: 264px; border: 0; border-radius: 30px; display: block; filter: saturate(.85); }
.map-btn { position: absolute; right: 1.3rem; bottom: 1.3rem; }

/* ---------- 16. Footer ---------- */
.footer { position: relative; padding: 4.5rem 0 2.5rem; background: #0d1d24; color: rgba(238,244,245,.78); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--iris); }
.footer-top { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top img { width: 76px; filter: drop-shadow(0 14px 24px rgba(193,58,214,.35)); }
.footer-claim { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.footer-claim .iris-text { background: linear-gradient(100deg, #ffb18f, #ffd36e 40%, #e9a2ff 70%, #8ff0ea); -webkit-background-clip: text; background-clip: text; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.4rem 0; font-size: .95rem; }
.footer-title { font-family: var(--display); font-weight: 600; color: #fff; margin-bottom: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: .8rem; color: rgba(238,244,245,.5); max-width: 70rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- 17. Iris (chat) ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; transition: bottom .3s var(--ease-out); }
.chat-toggle {
  position: relative; display: flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 18px 40px -16px rgba(60,30,120,.7);
  transition: transform .35s var(--ease-out);
}
.chat-toggle:hover { transform: translateY(-3px); }
.chat-toggle img { width: 44px; height: 44px; padding: 5px; border-radius: 50%; background: #fff; object-fit: contain; }
.chat-toggle-ring { position: absolute; inset: -3px; border-radius: inherit; background: var(--iris); z-index: -1; animation: ring 3s ease-in-out infinite; }
@keyframes ring { 50% { opacity: .55; transform: scale(1.04); } }
.chat.is-open .chat-toggle-label { display: none; }
.chat.is-open .chat-toggle { padding: .45rem; }
.chat-teaser { position: relative; max-width: 260px; padding: .9rem 2.2rem .9rem 1rem; border-radius: 18px 18px 6px 18px; font-size: .92rem; cursor: pointer; animation: stepIn .5s var(--ease-out); }
.chat-teaser[hidden] { display: none; }
.chat-teaser-x { position: absolute; top: .3rem; right: .4rem; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--ink-mute); }
.chat-panel {
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 130px));
  display: none; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: rgba(255,255,255,.9);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) { .chat-panel { background: rgba(255,255,255,.78); } }
.chat.is-open .chat-panel { display: flex; animation: chatIn .45s var(--ease-out); }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem .9rem; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, rgba(242,85,58,.08), rgba(123,47,242,.1), rgba(31,181,180,.1)); }
.iris-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(123,47,242,.35); }
.iris-avatar img { width: 32px; height: 32px; object-fit: contain; }
.chat-who { display: grid; line-height: 1.2; margin-right: auto; }
.chat-who b { font-family: var(--display); font-size: 1.05rem; }
.chat-who small { color: var(--ink-mute); font-size: .78rem; display: flex; align-items: center; gap: .35rem; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--wsp); }
.chat-x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(16,35,43,.06); cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.msg a { color: var(--violet); font-weight: 500; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); opacity: .4; animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-suggest:empty { display: none; }
.chat-suggest button { padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(123,47,242,.3); background: #fff; color: var(--violet); font-size: .84rem; font-weight: 500; cursor: pointer; transition: background-color .25s; }
.chat-suggest button:hover { background: rgba(123,47,242,.08); }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.7); }
.chat-form input { flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid rgba(16,35,43,.12); background: #fff; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--violet); }
.chat-form button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--iris); color: #fff; cursor: pointer; flex-shrink: 0; }
.chat-form button[disabled] { opacity: .5; }
.chat-foot { padding: 0 1rem .7rem; font-size: .72rem; color: var(--ink-mute); text-align: center; background: rgba(255,255,255,.7); }
.chat-foot a { color: var(--violet); }

/* Sello del hosting gratuito (Netlify): el chat sube para no taparlo */
.has-host-badge .chat { bottom: 92px; }
.has-host-badge .chat-panel { height: min(600px, calc(100svh - 200px)); }

/* ---------- 18. Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: .55rem .6rem; font-size: .85rem; }
  .chip-rating { right: -16px; }
  .chip-fast { left: -30px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 76px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 15ch; }
  .hero-visual { width: min(100%, 420px); margin-top: 1.5rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .scanner { grid-template-columns: 1fr; }
  .scan-view { min-height: 0; height: clamp(260px, 70vw, 400px); }
  .scan-panel { padding: .4rem .6rem .8rem; }
  .story-grid, .reviews-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .story-old { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .urgent-steps, .step-list { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .hero-trust li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .nav { inset: 10px 0 auto; padding-inline: .6rem; }
  .brand-text small { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 1.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { width: calc(100% - 40px); }
  .hero-tooth { width: 92px; left: -26px; top: -26px; }
  .chip-rating { right: -18px; top: 16%; }
  .chip-fast { left: -22px; bottom: 26%; }
  .chip-work { width: 150px; right: -20px; bottom: -26px; }
  .service-grid { grid-template-columns: 1fr; }
  .opts-2 { grid-template-columns: 1fr 1fr; }
  .opt > span { padding: .85rem .9rem; }
  .scan-nav .btn { flex: 1; }
  .urgent-card { border-radius: 28px; padding: 1.8rem 1.3rem; }
  .urgent-actions .btn { width: 100%; }
  .story-photos { padding-bottom: 4rem; }
  .story-old { width: 64%; right: -.4rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .review-card { min-height: 420px; padding: 1.8rem 1.4rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat { right: 14px; bottom: 14px; }
  .chat-teaser { display: none; }
  .chat-toggle-label { display: none; }
  .scan-nav .btn { padding-inline: 1rem; }
  .chat-toggle { padding: .4rem; }
  .has-host-badge .chat { bottom: 84px; }
  .has-host-badge .chat-panel { height: min(620px, calc(100svh - 180px)); }
}
@media (max-width: 380px) {
  .opts-2 { grid-template-columns: 1fr; }
}

/* Solo los efectos intrusivos se apagan con «reducir movimiento» */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 140s; }
  .chat-toggle-ring { animation: none; }
}
