/* Lumen Dental — demo sector salud (14-jul-2026)
   Estética: LIGHT total, marfil + azul cielo + coral suave. Fraunces + Inter.
   Aire, curvas grandes, sombras difusas — lo opuesto a la obsidiana de la 360. */

/* ---------- fuentes ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #faf7f2;
  --bg-2: #f1ebe1;
  --ink: #23303a;
  --ink-soft: #5d6b76;
  --sky: #7ec8e3;
  --sky-deep: #3d9dc4;
  --coral: #f0926f;
  --white: #ffffff;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --r-lg: 32px;
  --r-md: 22px;
  --shadow: 0 24px 60px -28px rgba(35, 48, 58, .22);
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sky); color: var(--ink); }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* halo de luz ambiente */
.halo {
  position: fixed; inset: -20vh -20vw auto auto;
  width: 70vw; height: 70vh;
  background:
    radial-gradient(closest-side, rgba(126, 200, 227, .28), transparent 70%);
  filter: blur(40px);
  pointer-events: none; z-index: 0;
}

/* ---------- tipografía base ---------- */
.kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky-deep); font-weight: 600; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 420; line-height: 1.04; }
h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--sky-deep); }
h3 { font-size: 24px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background .35s, color .35s;
}
.btn-solid { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--sky-deep); transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid rgba(35,48,58,.25); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky-deep); color: var(--sky-deep); transform: translateY(-3px); }
.btn-lg { padding: 20px 38px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 34px;
  padding: 18px var(--pad);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(250, 247, 242, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(35,48,58,.07);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo {
  font-family: var(--serif); font-size: 23px; font-weight: 550; letter-spacing: -.01em;
  margin-right: auto;
}
.nav-logo i { font-style: normal; color: var(--coral); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color .3s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sky-deep); border-radius: 2px; transition: width .35s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 12px 24px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; transition: background .3s, transform .3s;
}
.nav-cta:hover { background: var(--sky-deep); transform: translateY(-2px); }
.burger { display: none; }

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu-list li a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); padding: 10px 0;
}
.menu-list small { font-family: var(--sans); font-size: 13px; color: var(--sky-deep); }
.menu-foot { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }
.menu-foot a { color: var(--sky-deep); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(110px, 16vh, 160px) var(--pad) 60px;
}
.hero-title {
  font-size: clamp(58px, 9.6vw, 128px);
  font-weight: 380;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 6px 0 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line i {
  display: block; font-style: normal;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(2) i { animation-delay: .12s; }
.hero-title .line:nth-child(3) i { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title .line i { animation: none; transform: none; } }
.hero-sub { max-width: 46ch; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 42px; }
.hero-proof { display: flex; gap: clamp(24px, 4vw, 56px); }
.hero-proof b {
  display: block; font-family: var(--serif); font-size: 30px; font-weight: 500;
  color: var(--sky-deep);
}
.hero-proof span { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-media video {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
  box-shadow: var(--shadow);
}
.hero-media-tag {
  position: absolute; bottom: 18px; right: 18px;
  font-size: 11px; letter-spacing: .08em; color: var(--ink-soft);
  background: rgba(250,247,242,.85); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(35,48,58,.1); padding: 18px 0; }
.marquee-track {
  display: flex; gap: 34px; width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--serif); font-size: 19px; color: var(--ink-soft); white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- manifiesto ---------- */
.manifesto { min-height: 165vh; position: relative; }
.manifesto-sticky {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 var(--pad);
}
.manifesto-text {
  max-width: 21ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 5.4vw, 62px); line-height: 1.22;
}
.manifesto-text .w { color: rgba(35,48,58,.16); transition: color .35s; }
.manifesto-text .w.lit { color: var(--ink); }

/* ---------- tratamientos ---------- */
.treat { padding: clamp(70px, 12vh, 130px) var(--pad); }
.treat-head { max-width: 640px; margin-bottom: 54px; }
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.tcard {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 10px 40px -20px rgba(35,48,58,.18);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.tcard-media { aspect-ratio: 4 / 3.4; overflow: hidden; }
.tcard-media video { width: 100%; height: 100%; object-fit: cover; }
.tcard-body { padding: 26px 26px 24px; }
.tcard-body > span { font-size: 12px; letter-spacing: .18em; color: var(--sky-deep); font-weight: 600; }
.tcard-body h3 { margin: 8px 0 10px; }
.tcard-body p { font-size: 15px; color: var(--ink-soft); }
.tcard-body footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(35,48,58,.08);
  font-size: 14px;
}
.tcard-body footer b { color: var(--ink); }
.tcard-body footer a { color: var(--sky-deep); font-weight: 600; transition: transform .3s; display: inline-block; }
.tcard-body footer a:hover { transform: translateX(4px); }
.treat-more { text-align: center; margin-top: 46px; }

/* ---------- pieza 3D ---------- */
.gem {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(30px, 4vw, 70px);
  padding: clamp(70px, 12vh, 130px) var(--pad);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.gem-stage { position: relative; aspect-ratio: 1; }
.gem-stage canvas { width: 100%; height: 100%; cursor: grab; }
.gem-stage canvas:active { cursor: grabbing; }
.gem-hint {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .14em; color: var(--ink-soft);
}
.gem-list { margin-top: 22px; display: grid; gap: 12px; }
.gem-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.gem-list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--coral);
}

/* ---------- clínica ---------- */
.place {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center;
  gap: clamp(30px, 4vw, 70px);
  padding: clamp(70px, 12vh, 130px) var(--pad);
}
.place-media video {
  width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.place-stats { display: flex; gap: clamp(24px, 3.5vw, 52px); margin: 34px 0 36px; }
.place-stats b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--sky-deep); }
.place-stats span { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }

/* ---------- opiniones ---------- */
.quotes { padding: clamp(70px, 12vh, 130px) var(--pad); background: var(--bg-2); }
.quotes-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); margin-top: 40px; }
.quotes blockquote {
  background: var(--white); border-radius: var(--r-md); padding: 32px 30px;
  box-shadow: 0 10px 40px -22px rgba(35,48,58,.16);
}
.quotes blockquote p { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.quotes blockquote footer { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { padding: clamp(70px, 12vh, 140px) var(--pad); }
.cta-panel {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(50px, 9vw, 100px) var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(126,200,227,.35), transparent 70%);
  pointer-events: none;
}
.cta-panel .kicker { color: var(--sky); }
.cta-panel h2 em { color: var(--sky); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0 22px; position: relative; }
.cta-panel .btn-solid { background: var(--sky); color: var(--ink); }
.cta-panel .btn-solid:hover { background: var(--white); }
.cta-panel .btn-ghost { border-color: rgba(250,247,242,.35); color: var(--bg); }
.cta-panel .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.cta-note { font-size: 13.5px; color: rgba(250,247,242,.65); position: relative; }

/* ---------- footer ---------- */
.footer { padding: 70px var(--pad) 34px; border-top: 1px solid rgba(35,48,58,.09); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(26px, 4vw, 60px); margin-bottom: 54px;
}
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 550; }
.footer-logo i { font-style: normal; color: var(--coral); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky-deep); margin-bottom: 16px;
}
.footer-col li { font-size: 14.5px; color: var(--ink-soft); padding: 4px 0; }
.footer-col a:hover { color: var(--sky-deep); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid rgba(35,48,58,.08);
  font-size: 13px; color: var(--ink-soft);
}
.footer-legal a:hover { color: var(--sky-deep); }

/* ---------- páginas interiores ---------- */
.page-hero { padding: clamp(140px, 22vh, 210px) var(--pad) clamp(40px, 7vh, 70px); max-width: 900px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 400; letter-spacing: -.015em; margin: 8px 0 20px; }
.page-hero p { color: var(--ink-soft); font-size: 18px; max-width: 52ch; }

.tlist { padding: 30px var(--pad) clamp(70px, 10vh, 110px); display: grid; gap: clamp(18px, 2.4vw, 28px); }
.trow {
  display: grid; grid-template-columns: 90px 1.1fr 1.6fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: center;
  background: var(--white); border-radius: var(--r-md); padding: 30px clamp(20px, 3vw, 40px);
  box-shadow: 0 8px 34px -20px rgba(35,48,58,.16);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.trow:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trow > span { font-family: var(--serif); font-size: 30px; color: var(--sky); }
.trow h3 { font-size: 26px; }
.trow small { display: block; margin-top: 6px; font-size: 13px; color: var(--coral); font-weight: 600; letter-spacing: .04em; }
.trow p { font-size: 15px; color: var(--ink-soft); }
.trow b { font-family: var(--serif); font-size: 20px; white-space: nowrap; }

.team { padding: 30px var(--pad) clamp(70px, 10vh, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.tmember { background: var(--white); border-radius: var(--r-md); padding: 34px 30px; box-shadow: 0 8px 34px -20px rgba(35,48,58,.16); }
.tmember .avatar {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; color: var(--white);
  background: linear-gradient(135deg, var(--sky-deep), var(--sky));
  margin-bottom: 20px;
}
.tmember:nth-child(2) .avatar { background: linear-gradient(135deg, var(--coral), #f6b99e); }
.tmember:nth-child(3) .avatar { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); }
.tmember h3 { font-size: 23px; }
.tmember small { color: var(--sky-deep); font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.tmember p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }

.facts { padding: 0 var(--pad) clamp(70px, 10vh, 110px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { background: var(--bg-2); border-radius: var(--r-md); padding: 30px; }
.fact b { display: block; font-family: var(--serif); font-size: 36px; color: var(--sky-deep); }
.fact span { font-size: 13.5px; color: var(--ink-soft); }

/* contacto */
.contact { padding: 30px var(--pad) clamp(70px, 10vh, 110px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 70px); align-items: start; }
.cform { background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.cform label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); display: grid; gap: 8px; }
.cform input, .cform select, .cform textarea {
  font: 500 16px var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid rgba(35,48,58,.12); border-radius: 14px;
  padding: 14px 16px; outline: none; transition: border-color .3s; width: 100%;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--sky-deep); }
.cform button { border: 0; cursor: pointer; font-family: var(--sans); }
.form-ok { text-align: center; padding: 40px 10px; }
.form-ok b { font-family: var(--serif); font-size: 28px; display: block; margin-bottom: 10px; }
.cinfo { display: grid; gap: 22px; }
.cinfo-card { background: var(--bg-2); border-radius: var(--r-md); padding: 30px; }
.cinfo-card h3 { font-size: 20px; margin-bottom: 10px; }
.cinfo-card p, .cinfo-card li { font-size: 15px; color: var(--ink-soft); }
.cinfo-card a { color: var(--sky-deep); font-weight: 600; }

/* legal */
.legal-body { padding: 10px var(--pad) clamp(70px, 10vh, 110px); max-width: 760px; color: var(--ink-soft); display: grid; gap: 16px; }
.legal-body h2 { font-size: 26px; margin-top: 18px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .treat-grid, .quotes-row, .team { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .trow { grid-template-columns: 60px 1fr auto; }
  .trow p { display: none; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .burger {
    display: block; position: relative;
    width: 46px; height: 46px; border: 1.5px solid rgba(35,48,58,.2); border-radius: 50%;
    background: transparent; cursor: pointer; z-index: 61;
  }
  .burger i {
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 2px; margin: -1px 0 0 -9px;
    background: var(--ink); border-radius: 2px;
    transition: transform .35s; display: block;
  }
  .burger i:first-child { transform: translateY(-3px); }
  .burger i:last-child { transform: translateY(3px); }
  .burger.active i:first-child { transform: rotate(45deg); }
  .burger.active i:last-child { transform: rotate(-45deg); }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .hero-media { order: -1; max-width: 420px; }
  .hero-media video { aspect-ratio: 4 / 3.6; }
  .gem { grid-template-columns: 1fr; }
  .gem-stage { max-width: 420px; margin: 0 auto; }
  .place { grid-template-columns: 1fr; }
  .place-media { max-width: 460px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .treat-grid, .quotes-row, .team, .facts { grid-template-columns: 1fr; }
  .trow { grid-template-columns: 1fr; gap: 10px; }
  .trow > span { font-size: 22px; }
  .hero-proof { flex-wrap: wrap; gap: 20px; }
  .place-stats { flex-wrap: wrap; }
}
