/* Fraunces y Archivo cargados desde el HTML */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

:root {
  --teal:      #3a9e9e;
  --teal-dark: #2b7a7a;
  --text:      #1e1e1e;
  --gray:      #666;

  --frances: 'Fraunces', Georgia, serif;
  /* Archivo Light */
  --archivo: 'Archivo', system-ui, sans-serif;
}

body {
  font-family: var(--archivo);
  font-weight: 300;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* ── HEADER ────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color .2s ease, background .2s ease;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle:hover {
  border-color: var(--teal);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav a {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: var(--teal); }

.sep {
  color: #ccc;
  font-size: 14px;
  user-select: none;
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 62px);
  min-height: 500px;
  overflow: hidden;
  background: #d8d8d6;
  border-radius: 16px;
  margin: 0 16px;
  width: calc(100% - 32px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* overlay suave lado izquierdo para leer el texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.50) 0%,
    rgba(255,255,255,0.20) 42%,
    rgba(255,255,255,0)    65%
  );
}

/* bloque de texto */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 0 52px;
  max-width: 620px;
}

/* "ESTUDIO DE ODONTOLOGÍA AVANZADA" */
.eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #7dd8d8;
  margin-bottom: 16px;
}

/* heading principal — Frances Light 51.93pt */
.hero-content h1 {
  font-family: var(--frances);
  font-size: clamp(46px, 4.8vw, 69px);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: 0;
}

/* miedo / vergüenza — italic teal claro para contrastar sobre foto */
.hero-content h1 em {
  font-style: italic;
  color: #7dd8d8;
}

/* subtítulo */
.hero-content p {
  font-family: var(--archivo);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 36px;
}

/* botón pill teal */
.btn-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), #51c5bf);
  color: #fff;
  text-decoration: none;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11pt;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 100px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 14px 34px rgba(58,158,158,.26), inset 0 1px 0 rgba(255,255,255,.25);
  overflow: visible;
  animation: cta-pulse 2.6s ease-in-out infinite;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: -9px -13px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(81,197,191,.34);
  filter: blur(16px);
  opacity: .8;
  animation: cta-glow 2.6s ease-in-out infinite;
}

.btn-cta svg,
.btn-cta-outline svg {
  transition: transform .25s ease;
}

.btn-cta:hover {
  animation: none;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(58,158,158,.34), inset 0 1px 0 rgba(255,255,255,.28);
}

.btn-cta:hover svg,
.btn-cta-outline:hover svg {
  transform: translate(2px, -2px);
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes cta-glow {
  0%, 100% { opacity: .45; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.08); }
}

/* ── MODERNA ───────────────────────────────────── */
.moderna {
  display: grid;
  grid-template-columns: 204px 1fr 204px;
  align-items: center;
  gap: 32px;
  padding: 140px 50px;
  background: #fff;
  overflow: hidden;
}

.moderna-img {
  will-change: transform;
}

.moderna-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.moderna-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.moderna-eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10.93px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

.moderna-heading {
  font-family: var(--frances);
  font-size: clamp(32px, 2.95vw, 43px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--teal);
  letter-spacing: 0;
}

.moderna-heading em {
  font-style: italic;
}

.moderna-sub {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13.23pt;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
}

.moderna-tagline {
  font-family: var(--frances);
  font-size: 14.95pt;
  font-weight: 300;
  font-style: italic;
  color: var(--teal);
}

/* ── CRITERIO ──────────────────────────────────── */
.criterio {
  background: #edece9;
  padding: 60px 200px 72px 300px;
}

.criterio-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 22px;
}
.criterio-sep  { font-size: 7px; color: #555; }
.criterio-active { color: var(--teal); }

.criterio-heading {
  margin-bottom: 40px;
}

.criterio-h1-line1 {
  font-family: var(--frances);
  font-size: clamp(38px, 4.3vw, 61px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--teal);
}

.criterio-h1-line2 {
  font-family: var(--frances);
  font-size: clamp(38px, 4.3vw, 61px);
  font-weight: 300;
  line-height: 1.1;
  color: #2a2a2a;
}

.criterio-h1-line2 em {
  font-style: italic;
  color: var(--teal);
}

.criterio-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.criterio-img {
  border-radius: 14px;
  overflow: hidden;
}

.criterio-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.criterio-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

.criterio-copy p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13.6pt;
  font-weight: 300;
  line-height: 1.3;
  color: #333;
}

.teal        { color: var(--teal); }
strong.teal  { font-weight: 600; }

/* ── ANTES DURANTE DESPUÉS ─────────────────────── */
.antes {
  background: #fff;
  padding: 72px 250px 0;
}

.antes-eyebrow {
  display: block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 14px;
}
.antes-sq { color: var(--teal); font-size: 8px; }

.antes-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(38px, 4.45vw, 64px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--teal);
  margin-bottom: 22px;
}
.antes-heading em {
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

.antes-sub {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
  max-width: 400px;
  margin-bottom: 44px;
}

/* 3 fotos */
.antes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.antes-item { display: flex; flex-direction: column; }

.antes-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.antes-img img {
  width: 100%;
  height: auto;
  display: block;
}

.antes-item h3 {
  font-family: var(--frances);
  font-size: 14pt;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.3;
  margin-bottom: 10px;
}
.antes-item h3 em {
  font-style: italic;
}

.antes-item p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 9.79pt;
  font-weight: 400;
  line-height: 1.65;
  color: #444;
}

/* CTA banner */
.cta-banner {
  background: #141414;
  border-radius: 16px;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-heading {
  font-family: var(--frances);
  font-size: 24pt;
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
}
.cta-heading em {
  font-style: italic;
  color: #fff;
}

.cta-sub {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11.5pt;
  font-weight: 300;
  color: #fff;
}

.btn-cta-outline {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.94);
  color: #141414;
  border: 1px solid rgba(255,255,255,.7);
  text-decoration: none;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 9pt;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(255,255,255,.18);
  animation: cta-pulse 2.6s ease-in-out infinite;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}

.btn-cta-outline::before {
  content: "";
  position: absolute;
  inset: -9px -13px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255,255,255,.34);
  filter: blur(16px);
  opacity: .75;
  animation: cta-glow 2.6s ease-in-out infinite;
}

.btn-cta-outline:hover {
  animation: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(255,255,255,.22);
}

/* ── TESTIMONIOS ───────────────────────────────── */
.testimonios {
  background: #141414;
  padding: 80px 60px 72px;
  text-align: center;
  margin-top: 90px;
}

.test-eyebrow {
  display: inline-block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.test-sq { color: var(--teal); font-size: 8px; }

.test-heading {
  font-family: var(--frances);
  font-size: clamp(36px, 3.7vw, 53px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 52px;
}
.test-heading em { font-style: italic; }

/* slider wrapper */
.test-slider-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 28px;
}

.test-slider { flex: 1; position: relative; }

/* card */
.test-card {
  display: none;
  background: #e4e3de;
  border-radius: 20px;
  padding: 40px 52px 44px;
  text-align: center;
}
.test-card.active { display: block; }

.test-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.test-quote {
  font-family: var(--frances);
  font-size: 60pt;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 0.8;
}

.test-stars {
  font-size: 22px;
  color: #e8b84b;
  letter-spacing: 2px;
  position: absolute;
  top: 0;
  right: 0;
}

.test-card blockquote {
  font-family: var(--frances);
  font-size: 13.5pt;
  font-weight: 300;
  line-height: 1.65;
  color: #2a2a2a;
  font-style: normal;
  margin-bottom: 28px;
  text-align: center;
}

.test-author {
  font-family: var(--frances);
  font-size: 13pt;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
}

/* nav arrows */
.test-nav {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 22px;
  cursor: pointer;
  padding: 8px 12px;
  transition: color .2s;
  flex-shrink: 0;
}
.test-nav:hover { color: #fff; }

/* dots */
.test-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.test-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .25s;
}
.test-dot.active { background: var(--teal); }

/* ── UBICACIÓN ─────────────────────────────────── */
.ubicacion {
  background: #fff;
  padding: 72px 60px 150px;
}

.ubic-info {
  padding-left: 290px;
  margin-bottom: 32px;
}

.ubic-eyebrow {
  display: block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
}
.ubic-sq { color: var(--teal); font-size: 8.8px; }

.ubic-heading {
  font-family: var(--frances);
  font-size: clamp(38px, 4vw, 59px);
  font-weight: 300;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.ubic-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13pt;
  font-weight: 300;
  color: #555;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color .2s;
}
.ubic-address:hover { color: var(--teal); }

/* mapa */
.ubic-map-wrap {
  position: relative;
  width: 100%;
  height: 475px;
  border-radius: 20px;
  overflow: hidden;
}

.ubic-map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* capa transparente que al click abre Google Maps */
.ubic-map-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* ── RESOLUCIONES ──────────────────────────────── */
.resoluciones {
  background: #fff;
  padding: 80px 60px;
}

.res-header {
  text-align: center;
  margin-bottom: 52px;
}

.res-eyebrow {
  display: inline-block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}
.res-sq { color: var(--teal); font-size: 8px; }

.res-heading {
  font-family: var(--frances);
  font-size: clamp(40px, 4.8vw, 69px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 22px;
}
.res-heading em {
  font-style: italic;
}

.res-sub {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12.65pt;
  font-weight: 300;
  line-height: 1.65;
  color: #444;
  max-width: 640px;
  margin: 0 auto;
}

/* grid 3×3 */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.res-card {
  background: #141414;
  border-radius: 12px;
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
}

.res-card h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12.65pt;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.3;
  margin-bottom: 12px;
}
.res-card h3 em {
  font-family: var(--frances);
  font-style: italic;
  font-size: 14.3pt;
  font-weight: 300;
  color: var(--teal);
}

.res-line {
  width: 100%;
  height: 1.5px;
  background: #888;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.res-card p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 9.5pt;
  font-weight: 600;
  line-height: 1.65;
  color: #fff;
}

/* ── ODONTOLOGÍA DIGITAL ───────────────────────── */
.digital {
  background: #edece9;
  padding: 72px 300px;
}

.dig-top {
  margin-bottom: 36px;
}

.dig-heading {
  font-family: var(--frances);
  font-size: clamp(38px, 3.9vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 18px;
}
.dig-heading span {
  color: var(--teal);
}

.dig-sub {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11pt;
  font-weight: 600;
  line-height: 1.7;
  color: #555;
  max-width: 380px;
}

.dig-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.dig-img {
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
}
.dig-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}

/* acordeón */
.dig-accordion {
  background: #141414;
  border-radius: 14px;
  padding: 8px 0;
}

.acc-item { padding: 0 28px; }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0 14px;
  text-align: left;
  gap: 12px;
}

.acc-trigger span:first-child {
  font-family: var(--frances);
  font-size: 12.6pt;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.3;
}

.acc-icon {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
  line-height: 1;
}

.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.acc-item.open .acc-body {
  max-height: 200px;
  padding-bottom: 14px;
}

.acc-body p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10pt;
  font-weight: 400;
  line-height: 1.65;
  color: #fff;
}

.acc-line {
  height: 1px;
  background: rgba(255,255,255,.35);
  margin: 0;
}
.acc-item:last-child .acc-line { display: none; }

/* ── ESPECIALIDADES ────────────────────────────── */
.especialidades {
  background: #1a1a1a;
  border-radius: 20px;
  margin: 12px;
  padding: 52px 48px 60px;
}

.esp-header {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.esp-eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.esp-sq {
  font-size: 9px;
  color: var(--teal);
}

.esp-heading {
  font-family: var(--frances);
  font-size: clamp(38px, 4.1vw, 59px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--teal);
}
.esp-heading em {
  font-style: italic;
  color: #fff;
}

.esp-header-right {
  padding-top: 48px;
}
.esp-header-right p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11.4pt;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  max-width: 260px;
}

/* grid 3×3 */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.esp-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* overlay oscuro base */
.esp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  transition: background .3s ease;
}

/* hover: overlay más claro */
.esp-card:hover .esp-card-overlay {
  background: rgba(0,0,0,.25);
}

.esp-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
}

.esp-card-content h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15.18pt;
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 8px;
  line-height: 1.3;
}
.esp-card-content h3 em {
  font-family: var(--frances);
  font-style: italic;
  font-size: 17.94pt;
  font-weight: 300;
  color: var(--teal);
}

.esp-line {
  width: 104px;
  height: 2px;
  background: #888;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.esp-card-content p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13.2pt;
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
  min-height: 4.5em;
}

/* ── IMAGEN FULL ───────────────────────────────── */
.img-full {
  width: 100%;
  line-height: 0;
}

.img-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FOOTER ────────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding: 40px 60px;
  background: #d9d6d0;
}

/* Tagline izquierda */
.footer-tagline {
  font-family: var(--archivo);
  font-size: 13.1px;
  font-weight: 400;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}

/* Logo centro */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
}

/* Derecha: nav arriba, social abajo */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-nav a {
  font-family: var(--archivo);
  font-size: 9.9px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--teal); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: #888;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.footer-social a:hover { color: var(--teal); }
.footer-social svg { display: block; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-float summary {
  position: relative;
  isolation: isolate;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  list-style: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), #6fe7df 58%, #bffcff);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 42px rgba(58,158,158,.34), 0 0 28px rgba(111,231,223,.48), inset 0 1px 0 rgba(255,255,255,.48);
  animation: whatsapp-blink 2.2s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .25s ease;
}

.whatsapp-float summary::-webkit-details-marker {
  display: none;
}

.whatsapp-float summary::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(111,231,223,.42);
  filter: blur(18px);
  animation: cta-glow 2.2s ease-in-out infinite;
}

.whatsapp-float summary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 52px rgba(58,158,158,.42), 0 0 38px rgba(111,231,223,.66), inset 0 1px 0 rgba(255,255,255,.5);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
}

.whatsapp-options {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: grid;
  gap: 10px;
  min-width: 164px;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.whatsapp-float[open] .whatsapp-options {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--teal-dark);
  border: 1px solid rgba(58,158,158,.24);
  box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 0 20px rgba(111,231,223,.22);
  font-family: var(--archivo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.whatsapp-options a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal-dark), #51c5bf);
  transform: translateX(-3px);
  box-shadow: 0 14px 34px rgba(58,158,158,.28), 0 0 24px rgba(111,231,223,.42);
}

@keyframes whatsapp-blink {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(1.22); }
  55% { filter: brightness(1.34); }
}

/* ── SCROLL REVEAL ─────────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1),
              transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.sr-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1),
              transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.sr-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1),
              transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.sr-fade {
  opacity: 0;
  transition: opacity 1.3s ease;
}
.sr.is-visible,
.sr-left.is-visible,
.sr-right.is-visible,
.sr-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ───────────────────────────── */
@media (max-width: 1024px) {

  /* Header */
  .header { padding: 12px 28px; }
  .nav a { font-size: 9px; letter-spacing: 0.5px; }
  .nav { gap: 6px; }

  /* Hero */
  .hero { margin: 0 10px; width: calc(100% - 20px); }

  /* Moderna */
  .moderna { grid-template-columns: 160px 1fr 160px; padding: 80px 30px; }

  /* Criterio */
  .criterio { padding: 60px 60px 72px; }

  /* Especialidades */
  .especialidades { margin: 8px; }
  .esp-grid { grid-template-columns: repeat(2, 1fr); }

  /* Resoluciones */
  .resoluciones { padding: 80px 40px; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }

  /* Digital */
  .digital { padding: 72px 60px; }

  /* Antes */
  .antes { padding: 72px 60px 0; }

  /* Testimonios */
  .testimonios { padding: 80px 40px 72px; }

  /* Ubicación */
  .ubic-info { padding-left: 60px; }

  /* Footer */
  .footer { padding: 32px 40px; }
  .footer-logo-img { height: 90px; }
}

/* ── MÓVIL (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {

  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 16px;
    gap: 14px;
    text-align: center;
  }
  .logo-img { height: 44px; }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    width: 100%;
  }
  .nav a { font-size: 9.5px; letter-spacing: 0.8px; }
  .sep { display: none; }

  /* Hero */
  .hero {
    margin: 0 8px;
    width: calc(100% - 16px);
    height: 80vh;
    min-height: 420px;
  }
  .hero-content { padding: 32px 24px 40px; max-width: 100%; }
  .hero-content h1 { font-size: 28pt; }
  .hero-content p { font-size: 12pt; }

  /* Moderna */
  .moderna {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 20px;
  }
  .moderna-img--left { order: -1; }
  .moderna-img--right { order: 1; }

  /* Criterio */
  .criterio { padding: 48px 20px 56px; }
  .criterio-body { grid-template-columns: 1fr; gap: 28px; }

  /* Especialidades */
  .especialidades { margin: 6px; border-radius: 14px; }
  .esp-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 20px 0;
    margin-bottom: 20px;
  }
  .esp-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 20px 36px;
  }
  .esp-heading { font-size: 28pt; }
  .esp-card { min-height: 260px; }

  /* Resoluciones */
  .resoluciones { padding: 48px 20px; }
  .res-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Digital */
  .digital { padding: 48px 20px; }
  .dig-body { grid-template-columns: 1fr; gap: 20px; }
  .dig-heading { font-size: 28pt; }

  /* Antes */
  .antes { padding: 48px 20px 0; }
  .antes-grid { grid-template-columns: 1fr; gap: 32px; }
  .antes-heading { font-size: 32pt; }

  /* CTA Banner */
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
    margin: 0 -20px;
    border-radius: 0;
  }
  .cta-heading { font-size: 18pt; white-space: normal; }

  /* Testimonios */
  .testimonios { padding: 60px 20px 48px; margin-top: 48px; }
  .test-heading { font-size: 28pt; }
  .test-card blockquote { font-size: 11pt; }
  .test-slider-wrap { gap: 0; }

  /* Ubicación */
  .ubicacion { padding: 48px 20px 80px; }
  .ubic-info { padding-left: 0; }
  .ubic-heading { font-size: 30pt; }
  .ubic-map-wrap { height: 320px; }

  /* Footer */
  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px;
    text-align: center;
  }
  .footer-right {
    align-items: center;
    gap: 20px;
  }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
  .footer-social { justify-content: center; }
  .footer-logo-img { height: 80px; }
  .footer-tagline { justify-content: center; }
}

/* Responsive refinements */
@media (max-width: 1440px) {
  .criterio { padding: 60px 10vw 72px 14vw; }
  .digital { padding: 72px 14vw; }
  .antes { padding: 72px 12vw 0; }
  .ubic-info { padding-left: 18vw; }
}

@media (max-width: 1024px) {
  .header { padding: 12px 28px; }
  .logo-img { height: 48px; }
  .hero-content { padding: 0 38px; }
  .moderna {
    grid-template-columns: minmax(120px, 160px) 1fr minmax(120px, 160px);
    gap: 24px;
  }
  .criterio-body { gap: 36px; }
  .criterio-copy p { font-size: 12.4pt; }
  .especialidades { padding: 44px 34px 50px; }
  .esp-header { grid-template-columns: 1fr; gap: 18px; }
  .esp-header-right { padding-top: 0; }
  .esp-header-right p { max-width: 560px; }
  .cta-banner { gap: 28px; }
  .cta-heading { white-space: normal; }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: center;
    padding: 12px 18px;
    gap: 16px;
    text-align: left;
  }

  .logo-img { height: 44px; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav {
    position: fixed;
    inset: 69px 12px auto 12px;
    z-index: 20;
    width: auto;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 15px 14px;
    border-radius: 10px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .nav a:hover { background: #f4f4f2; }
  .sep { display: none; }

  .hero {
    height: auto;
    min-height: 420px;
    border-radius: 14px;
  }

  .hero-bg { object-position: 58% center; }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.38)),
                linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,0));
  }

  .hero-content {
    min-height: clamp(420px, 78dvh, 620px);
    padding: 52px 24px 46px;
    max-width: 100%;
    justify-content: flex-end;
  }

  .hero-content h1 {
    font-size: clamp(39px, 10.6vw, 54px);
    max-width: 10ch;
    overflow-wrap: break-word;
  }

  .hero-content p { font-size: clamp(16px, 4.3vw, 19px); }
  .moderna { grid-template-columns: 1fr; }
  .moderna-img--left { display: none; }
  .moderna-img { width: min(100%, 420px); margin: 0 auto; }
  .moderna-text { gap: 14px; }
  .moderna-heading { font-size: clamp(32px, 8.5vw, 42px); }
  .moderna-sub br,
  .moderna-heading br,
  .esp-heading br,
  .res-heading br { display: none; }

  .criterio-breadcrumb {
    flex-wrap: wrap;
    gap: 6px 8px;
    letter-spacing: 1.6px;
    line-height: 1.6;
  }

  .criterio-heading { margin-bottom: 28px; }
  .criterio-copy p { font-size: 12.2pt; line-height: 1.55; }

  .especialidades { padding: 0; }
  .esp-heading { font-size: clamp(33px, 8.8vw, 43px); }
  .esp-card-content p { min-height: 0; font-size: 12pt; }

  .res-header { margin-bottom: 34px; }
  .res-heading { font-size: clamp(34px, 9vw, 44px); }

  .dig-heading { font-size: clamp(34px, 9vw, 44px); }
  .dig-img { min-height: 240px; aspect-ratio: 4 / 3; }
  .acc-item { padding: 0 20px; }

  .antes-heading { font-size: clamp(36px, 9vw, 46px); }
  .antes-img img { width: 100%; }

  .test-heading { font-size: clamp(32px, 8vw, 40px); }
  .test-card { padding: 30px 22px 34px; border-radius: 16px; }
  .test-card blockquote { font-size: 11pt; line-height: 1.55; }
  .test-stars { position: static; font-size: 18px; }
  .test-card-top { align-items: center; justify-content: space-between; }
  .test-nav { padding: 6px; }

  .ubic-heading { font-size: clamp(34px, 9vw, 44px); }
  .ubic-address { font-size: 12pt; }

  .sr-left,
  .sr-right {
    transform: translateY(28px);
  }
}

@media (max-width: 480px) {
  .header { padding: 10px 14px; }
  .logo-img { height: 40px; }
  .nav { inset: 63px 8px auto 8px; border-radius: 14px; }

  .hero {
    margin: 0 6px;
    width: calc(100% - 12px);
    min-height: 390px;
  }

  .hero-content {
    min-height: 390px;
    padding: 42px 18px 34px;
  }

  .eyebrow { font-size: 9px; letter-spacing: 2.2px; }
  .hero-content h1 { font-size: clamp(34px, 11vw, 42px); }

  .btn-cta,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
    padding-inline: 18px;
    font-size: 10pt;
    letter-spacing: 1.5px;
  }

  .moderna,
  .criterio,
  .resoluciones,
  .digital,
  .testimonios,
  .ubicacion {
    padding-inline: 16px;
  }

  .especialidades { margin: 5px; }
  .esp-header,
  .esp-grid { padding-inline: 16px; }
  .esp-card { min-height: 235px; }
  .esp-card-content { padding: 18px; }
  .res-card { padding: 24px 20px 28px; }
  .dig-img { min-height: 210px; }
  .antes { padding: 44px 16px 0; }
  .cta-banner { margin: 0 -16px; padding: 28px 16px; }
  .test-slider-wrap { align-items: stretch; }
  .test-nav { font-size: 18px; }
  .footer { padding: 32px 16px; }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-float summary {
    width: 58px;
    height: 58px;
  }
  .whatsapp-options {
    bottom: 70px;
    min-width: 148px;
  }
  .whatsapp-options a {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
