/* ============================================
   NOVA DENTAL STUDIO — Estilos principales
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--dark {
  background: var(--color-primary-deep);
  color: #fff;
}
.section--alt { background: var(--color-surface-alt); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 58ch;
  line-height: var(--lh-body);
}
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

.section__head { margin-bottom: var(--space-xl); }
.section__head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.skip:focus {
  left: var(--gutter);
  top: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(247, 251, 251, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  padding-block: 0.7rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand span { font-weight: 400; color: var(--color-muted); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav__links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: var(--space-sm); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  position: relative;
  transition: background 0.2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-background);
  padding: 6rem var(--gutter) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--color-border);
}
.menu .btn { margin-top: var(--space-md); }

/* ============================================
   HERO — el escaneo
   ============================================ */
.hero {
  position: relative;
  padding-top: calc(var(--space-3xl) + 1rem);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(184, 236, 231, 0.5) 0%, rgba(247, 251, 251, 0) 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-primary);
}
.hero__text { max-width: 52ch; margin-bottom: .8rem; color: var(--color-muted); }
.hero__text--dos { margin-bottom: var(--space-lg); }
.hero__cifras-tit {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .7rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
/* Estadísticas: tres celdas con divisor fino */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.stat {
  padding: 1.1rem 1.25rem;
  border-left: 1px solid var(--color-border);
}
.stat:first-child { border-left: 0; }

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  min-height: 2.6em;
}
.stat dd {
  display: flex;
  align-items: baseline;
  gap: 0.18rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd i {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-secondary);
}

/* Marco del héroe con línea de escaneo */
.hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  background: linear-gradient(160deg, #0d4f5c 0%, #66c7c5 60%, #b8ece7 100%);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  box-shadow: 0 0 22px 3px rgba(184, 236, 231, 0.75);
  animation: scan 5.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: 4%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 96%; opacity: 1; }
  60% { opacity: 0; }
}
.hero__tag {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  background: rgba(4, 34, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 0 rgba(102, 199, 197, 0.7);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(102, 199, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 199, 197, 0); }
}

/* ============================================
   BARRA DE CONFIANZA
   ============================================ */
.trust {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-md);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.trust svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* ============================================
   DIFERENCIALES (con imagen)
   ============================================ */
.diff {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-xl);
  align-items: center;
}
.diff__media { aspect-ratio: 3 / 4; }
.diff__list { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.diff__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.diff__item:last-child { border-bottom: 0; padding-bottom: 0; }
.diff__item b {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  padding-top: 0.35rem;
}
.diff__item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.diff__item p { font-size: var(--fs-small); color: var(--color-muted); margin-bottom: .6rem; }
.diff__item p:last-child { margin-bottom: 0; }

/* ============================================
   TECNOLOGÍA (oscuro)
   ============================================ */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech__cell {
  background: var(--color-primary-deep);
  padding: var(--space-lg);
  transition: background 0.4s var(--ease);
}
.tech__cell:hover { background: var(--color-primary-dark); }
.tech__cell svg {
  width: 30px;
  height: 30px;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}
.tech__cell h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.tech__cell p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: .7rem;
}
.tech__cell p:last-child { margin-bottom: 0; }
.tech__media {
  margin-top: var(--space-xl);
  aspect-ratio: 21 / 9;
}

/* ============================================
   PROCESO — lista vertical
   ============================================ */
.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--color-border); }
.step__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-secondary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.step p { font-size: var(--fs-small); color: var(--color-muted); max-width: 60ch; margin-bottom: .6rem; }
.step p:last-child { margin-bottom: 0; }

/* ============================================
   INSTALACIONES / GALERÍA
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
  aspect-ratio: 16 / 9;
}
.gallery .frame:first-child { grid-row: span 2; }

/* ============================================
   TESTIMONIOS
   ============================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.quote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.quote__stars { display: flex; gap: 3px; color: var(--color-secondary); }
.quote__stars svg { width: 15px; height: 15px; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 400;
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.quote figcaption img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent);
}
.quote figcaption b { display: block; font-size: 0.92rem; }
.quote figcaption span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); }
.faq__list { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 1.35rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--color-primary); }
.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.faq__icon::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.faq__a p { color: var(--color-muted); font-size: 0.96rem; max-width: 62ch; margin-bottom: .8rem; }
.faq__a p:last-child { padding-bottom: 1.4rem; margin-bottom: 0; }

/* ============================================
   CONTACTO
   ============================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}
.contact__data { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.contact__data li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
}
.contact__data svg { width: 20px; height: 20px; color: var(--color-secondary); }
.contact__data b { display: block; font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.contact__data span { font-size: 0.98rem; }
.contact__data a { transition: color 0.3s var(--ease); border-bottom: 1px solid rgba(255,255,255,0.22); }
.contact__data a:hover { color: var(--color-secondary); border-color: var(--color-secondary); }

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem 0.85rem 0.9rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease),
    background 0.3s var(--ease);
}
.wa.is-visible { transform: translateY(0); opacity: 1; }
.wa:hover { background: #1eb955; }
.wa svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer .brand { color: #fff; }
.footer .brand span { color: rgba(255, 255, 255, 0.5); }
.footer p { font-size: var(--fs-small); margin-top: var(--space-md); max-width: 38ch; }
.footer p + p { margin-top: .6rem; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}
.footer ul { display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: 0.82rem;
}
.footer__bottom a { color: var(--color-secondary); }

/* ============================================
   ANIMACIÓN DE ENTRADA
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__scan { display: none; }
}

/* ============================================
   AÑADIDOS
   ============================================ */
.wrap--fino { max-width: 860px; }
.lead--fuerte {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  max-width: 60ch;
}
.section--dark .lead--fuerte { color: #fff; border-top-color: rgba(255,255,255,.18); }
