/* ══════════════════════════════════════════════════════════════
   NORDENTAL · style.css
   Sistema de diseño + estilos por sección
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   1 · TOKENS / VARIABLES
   ────────────────────────────────────────────── */
:root {
  /* Color (exacto del manual de marca) */
  --color-accent:  #FF8300;   /* Naranja acento: CTAs, hero display, links activos */
  --color-bg:      #FFFFFF;   /* Fondo principal */
  --color-text:    #121212;   /* Texto, casi negro — NUNCA #000 */
  --color-muted:   #8E8E93;   /* Texto secundario, labels, micro-copy */
  --color-surface: #F5F5F5;   /* Superficies suaves para cards/secciones */
  --color-line:    #E0E0E0;   /* Separadores */
  --color-line-soft:#F0F0F0;  /* Borde inferior del nav */

  /* Tipografía */
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  /* Sin serif en el sitio: el "display" es el mismo Plus Jakarta, peso liviano */
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espaciado de secciones */
  --section-pad: 160px;       /* desktop */
  --container-pad: 24px;      /* mobile */
  --container-max: 1280px;

  /* Radios */
  --radius-card: 24px;
  --radius-pill: 9999px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s var(--ease);
  --t-med:  0.4s var(--ease);

  /* Nav */
  --nav-h: 76px;
}

/* ──────────────────────────────────────────────
   2 · RESET
   ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis maneja el smooth scroll; desactivamos el nativo cuando está activo */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

/* Títulos grandes: palabras enteras + líneas balanceadas, nunca partidas */
h1, h2, .title-display,
.hero__title, .manifiesto__title, .section-head__title,
.especialidades__title, .tecnologia__title, .equipo__title,
.sucursales__title, .contacto__title, .dif-head__title {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: balance;
  white-space: normal;
}

::selection { background: var(--color-accent); color: #fff; }

/* ──────────────────────────────────────────────
   3 · LAYOUT / UTILIDADES
   ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: 80px; }   /* mobile base; se sobreescribe en desktop */

/* Eyebrow (label uppercase naranja) */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* (Ex serif) — ahora Plus Jakarta upright, sin italic, sin serif */
.serif-italic { font-family: var(--font-sans); font-style: normal; font-weight: 500; }

/* Estrella/sparkle de marca — reemplaza la numeración de especialidades.
   Usa mask + currentColor para heredar color y transiciones de cada contexto. */
.esp-star { display: inline-block; width: 1em; height: 1em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6 6 12 0 12C6 12 12 18 12 24C12 18 18 12 24 12C18 12 12 6 12 0Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6 6 12 0 12C6 12 12 18 12 24C12 18 18 12 24 12C18 12 12 6 12 0Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -0.12em; }

/* ──────────────────────────────────────────────
   4 · BOTONES
   ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

/* Pill naranja (primario) */
.btn--pill {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
}
.btn--pill:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px -8px rgba(255, 131, 0, 0.45);
}
.btn--pill .btn__arrow { transition: transform var(--t-fast); }
.btn--pill:hover .btn__arrow { transform: translateX(3px); }

/* Pill outline (secundario) */
.btn--outline {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn--outline:hover {
  background: var(--color-text);
  color: #fff;
}
.btn--outline .btn__arrow { transition: transform var(--t-fast); }
.btn--outline:hover .btn__arrow { transform: translateX(3px); }

/* Pill línea (NUEVO primario): fondo blanco + borde negro, hover invierte */
.btn--line {
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  font-weight: 500;
}
.btn--line:hover { background: var(--color-text); color: #fff; }
.btn--line .btn__arrow { transition: transform var(--t-fast); }
.btn--line:hover .btn__arrow { transform: translateX(3px); }

/* Link texto secundario: subrayado, hover naranja */
.btn--text {
  padding: 0; background: none; color: var(--color-text);
  font-weight: 400; font-size: 14px;
  border-bottom: 1px solid currentColor; border-radius: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn--text:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* Pill sólido blanco (sobre imagen) */
.btn--solid {
  padding: 16px 32px; border-radius: var(--radius-pill);
  background: var(--color-accent); color: #fff; font-weight: 500;
}
.btn--solid:hover { transform: scale(1.02); box-shadow: 0 10px 28px -8px rgba(255,131,0,0.5); }
.btn--solid .btn__arrow { transition: transform var(--t-fast); }
.btn--solid:hover .btn__arrow { transform: translateX(3px); }

/* Link texto claro (sobre imagen) */
.btn--text-light {
  padding: 0; background: none; color: #fff; border-radius: 0;
  font-weight: 400; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn--text-light:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ──────────────────────────────────────────────
   5 · NAV — floating glass oscuro centrado
   ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  max-width: 90vw;
  padding: 10px 16px;
  background: rgba(18, 18, 18, 0.75);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: box-shadow var(--t-med);
}
/* Scroll > 80px: mantiene glass oscuro, sombra más marcada */
.nav.is-scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }

.nav__logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
}
.nav__logo-img { height: 28px; width: auto; display: block; transition: transform var(--t-fast); }
.nav__logo:hover .nav__logo-img { transform: scale(1.02); }
@media (max-width: 768px) { .nav__logo-img { height: 24px; } }

.nav__menu { display: flex; align-items: center; gap: 4px; }

.nav__link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.nav__cta { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nav__cta:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Overlay mobile full-screen */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 18, 18, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }
.nav__overlay-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  color: #fff;
  padding: 12px 0;
}
.nav__overlay-link:hover { color: var(--color-accent); }
.nav__overlay-cta {
  margin-top: 24px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  padding: 16px 32px;
  border-radius: 9999px;
}

/* ── Dropdown de Especialidades ── */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.dropdown-chevron { width: 9px; height: 6px; transition: transform 0.3s var(--ease); }
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
/* puente invisible para no perder el hover entre trigger y menú */
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px; padding: 12px;
  background: rgba(18, 18, 18, 0.85);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.3s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0s;
}
.nav-dropdown-item {
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; color: rgba(255, 255, 255, 0.85);
  font-weight: 400; font-size: 14px; transition: background 0.25s ease, color 0.25s ease;
}
.dropdown-number { font-size: 11px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.05em; }
.dropdown-name { letter-spacing: -0.005em; }
.nav-dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-dropdown-item:hover .dropdown-number { color: var(--color-accent); }
.nav-dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 8px 12px; }
.nav-dropdown-all {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 10px; color: #fff;
  font-weight: 500; font-size: 13px; letter-spacing: -0.005em;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-dropdown-all svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.nav-dropdown-all:hover { background: rgba(255, 131, 0, 0.15); color: var(--color-accent); }
.nav-dropdown-all:hover svg { transform: translateX(3px); }

/* ──────────────────────────────────────────────
   6 · ANIMACIONES (helpers base)
   ────────────────────────────────────────────── */
/* reveal-blur: SplitType + GSAP lo animan en animations.js.
   Estado inicial via CSS evita flash de contenido sin animar. */
.reveal-blur { } /* el estado inicial lo setea GSAP tras el split */

/* fade-up genérico (lo toma animations.js con [data-fade]) */
[data-fade] { will-change: transform, opacity; }

/* Animaciones diferenciadas por sección (IntersectionObserver → .in-view) */
.reveal-up { opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

.reveal-fade { opacity: 0; transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1); }
.reveal-fade.in-view { opacity: 1; }

.reveal-scale { opacity: 0; transform: scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 1.1s cubic-bezier(0.22,1,0.36,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* Respeta usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ──────────────────────────────────────────────
   7 · RESPONSIVE — NAV
   ────────────────────────────────────────────── */
@media (min-width: 1025px) {
  .section { padding-block: var(--section-pad); }
}

@media (min-width: 1024px) {
  :root { --container-pad: 80px; }
}

/* Tablet + mobile: ocultar menú centro y CTA, mostrar burger */
@media (max-width: 860px) {
  .nav { width: 92vw; justify-content: space-between; padding: 8px 8px 8px 8px; }
  .nav__menu { display: none; }
  .nav__cta  { display: none; }
  .nav__burger { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   SECCIONES DEL HOME
   ══════════════════════════════════════════════════════════════ */

/* Padding vertical compartido: 100px mobile → 160px desktop */
.manifiesto, .especialidades, .tecnologia,
.resenas, .equipo, .sucursales, .contacto { padding-block: 100px; }
@media (min-width: 1025px) {
  .manifiesto, .especialidades, .tecnologia,
  .resenas, .equipo, .sucursales, .contacto { padding-block: 160px; }
}

/* Header de sección reutilizable */
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head__title { margin-top: 24px; font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.2; color: var(--color-text); }
.section-head__sub { margin-top: 16px; font-weight: 400; font-size: 17px; color: var(--color-muted); }
@media (min-width: 1025px) { .section-head { margin-bottom: 80px; } }

/* Link de texto con acento naranja */
.link-accent {
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color var(--t-fast);
}
.link-accent:hover { text-decoration-color: var(--color-accent); }

/* Focus visible global (accesibilidad + acento) */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px;
}

/* ───────────────── 1 · HERO (panel imagen + titular blanco) ───────────────── */
.hero { background: var(--color-bg); }
.hero__panel {
  position: relative;
  margin: 16px;
  height: calc(100vh - 32px);
  min-height: 600px;
  border-radius: 32px;
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; }
.hero__overlay { position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(18,18,18,0.6) 0%, rgba(18,18,18,0.15) 40%, transparent 68%); }
.hero__content { position: absolute; left: 0; bottom: 0; z-index: 2;
  width: 100%; max-width: 820px; padding: 32px; }
.hero__eyebrow { color: rgba(255,255,255,0.85); letter-spacing: 0.2em; }
.hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 110px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 16px;
  white-space: normal;
}
.hero__cta { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.hero__intro { display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-top: 48px; }
.hero__col { font-weight: 400; font-size: 16px; line-height: 1.6; color: rgba(18,18,18,0.7); }

@media (min-width: 768px) {
  .hero__content { padding: 56px; }
  .hero__intro { grid-template-columns: 1fr 1fr; gap: 64px; }
}
@media (min-width: 1024px) {
  .hero__panel { margin: 20px; height: calc(100vh - 40px); }
}

/* ───────────────── 2 · MANIFIESTO ───────────────── */
.manifiesto { position: relative; overflow: visible; background: var(--color-bg);
  padding-top: 120px; padding-bottom: 180px; }
@media (min-width: 1025px) { .manifiesto { padding-top: 200px; padding-bottom: 280px; } }
.manifiesto__isotipo { position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 400px; max-width: 90%; height: auto;
  opacity: 0.06; z-index: 0; pointer-events: none; }
.manifiesto__inner { position: relative; z-index: 1; max-width: 1100px;
  margin-inline: auto; text-align: center; }
.manifiesto__title { margin-top: 24px; font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--color-accent); max-width: 1200px; margin-inline: auto;
  overflow-wrap: normal; }
.manifiesto__sub { margin-top: 32px; font-weight: 400; font-size: 18px;
  color: var(--color-muted); line-height: 1.6; max-width: 580px; margin-inline: auto; }
.manifiesto__cta { margin-top: 48px; display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap; }
.manifiesto__cta .btn { padding: 16px 32px; }
@media (min-width: 768px) { .manifiesto__isotipo { width: 800px; } }

/* ───────────────── 3 · DIFERENCIALES (cards fondo gris + flecha glass) ───────────────── */
.diferenciales { background: var(--color-bg); padding-bottom: 100px; }
@media (min-width: 1025px) { .diferenciales { padding-bottom: 160px; } }
.dif-head { margin-bottom: 64px; max-width: 900px; }
.dif-head__title { font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text); }
.dif-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.dif-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border-radius: 24px;
  padding: 24px 24px 88px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-med), background var(--t-med);
}
.dif-card:hover { background: var(--color-surface-hover); transform: translateY(-6px); }
.dif-card__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; }
.dif-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dif-card__eyebrow { margin-top: 32px; font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); }
.dif-card__title { margin-top: 12px; font-weight: 600; font-size: 22px; color: var(--color-text); }
.dif-card__text { margin-top: 12px; font-weight: 400; font-size: 15px;
  color: var(--color-muted); line-height: 1.6; }
/* Flecha glass en la esquina inferior derecha */
.dif-card__arrow {
  position: absolute; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dif-card__arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.dif-card:hover .dif-card__arrow { background: rgba(255, 255, 255, 0.85); transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.dif-card:hover .dif-card__arrow svg { transform: translate(3px, -3px); }
@media (min-width: 768px) { .dif-grid { grid-template-columns: repeat(3, 1fr); } }

/* ───────────────── 4 · ESPECIALIDADES (split tabs + preview) ───────────────── */
.especialidades-section { background: var(--color-bg); padding: 100px 0; overflow: hidden; }
@media (min-width: 1025px) { .especialidades-section { padding: 160px 0; } }

/* Header */
.especialidades-header { margin-bottom: 64px; }
@media (min-width: 1025px) { .especialidades-header { margin-bottom: 96px; } }
.especialidades-header .eyebrow { display: inline-block; margin-bottom: 24px; letter-spacing: 0.18em; }
.especialidades-header .section-title {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-text); max-width: 900px; margin-bottom: 48px; text-wrap: balance; }
.especialidades-header .header-columns { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 880px; }
.especialidades-header .header-text { font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--color-muted); }
@media (min-width: 768px) { .especialidades-header .header-columns { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Split layout */
.especialidades-split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1025px) { .especialidades-split { grid-template-columns: 380px 1fr; gap: 80px; min-height: 560px; } }

/* Tabs (columna izquierda) */
.especialidades-tabs { display: flex; flex-direction: column; gap: 4px; position: relative; }
.tab-item {
  display: grid; grid-template-columns: 48px 1fr 16px; align-items: center; gap: 16px;
  background: transparent; border: none; border-bottom: 1px solid rgba(18,18,18,0.08);
  padding: 24px 16px; margin-inline: -16px; cursor: pointer; text-align: left; position: relative;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease; }
.tab-item:hover { padding-left: 24px; }
.tab-item.active { background: rgba(255, 131, 0, 0.1); border-radius: 16px; border-bottom-color: transparent; }
.tab-item.active:hover { padding-left: 16px; }
.tab-number { font-weight: 400; font-size: 16px; color: var(--color-muted); transition: color 0.4s ease; }
.tab-name { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; color: var(--color-text); transition: color 0.4s ease, font-weight 0.4s ease; }
.tab-indicator { width: 16px; height: 16px; position: relative; opacity: 0;
  transform: translateX(-8px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.tab-indicator::before { content: ""; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; background: var(--color-accent); border-radius: 9999px; transform: translate(-50%, -50%); }
.tab-item.active .tab-number { color: var(--color-accent); }
.tab-item.active .tab-name { font-weight: 600; }
.tab-item.active .tab-indicator { opacity: 1; transform: translateX(0); }

/* Preview (columna derecha) */
.especialidades-preview { position: relative; width: 100%; min-height: 520px; }
@media (min-width: 1025px) { .especialidades-preview { min-height: 560px; } }
.preview-panel { position: absolute; top: 0; left: 0; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.5s; }
.preview-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1) 0.1s, transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.1s, visibility 0s linear 0s; }

.preview-image { width: 100%; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  background: var(--color-surface); position: relative; }
.preview-image img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.preview-panel.active .preview-image img { animation: subtleZoom 8s ease-out forwards; }
@keyframes subtleZoom { from { transform: scale(1); } to { transform: scale(1.04); } }
.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--color-muted); }

.preview-content { display: flex; flex-direction: column; gap: 24px; max-width: 560px; padding-top: 16px; }
.preview-description { font-weight: 400; font-size: 17px; line-height: 1.6; color: rgba(18,18,18,0.85); letter-spacing: -0.005em; }
.preview-cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: transparent; border: 1px solid rgba(18,18,18,0.15); padding: 12px 24px; border-radius: 9999px;
  font-weight: 500; font-size: 14px; color: var(--color-text); letter-spacing: -0.005em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
              transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.preview-cta svg { width: 26px; height: 26px; padding: 6px; box-sizing: border-box; flex-shrink: 0;
  background: var(--color-accent); color: #fff; border-radius: 9999px;
  transition: transform 0.35s var(--ease); }
.preview-cta { padding-right: 8px; } /* el disco compensa el padding derecho */
.preview-cta:hover { background: var(--color-text); color: #fff; border-color: var(--color-text);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18,18,18,0.12); }
.preview-cta:hover svg { transform: translate(3px, -3px); }

@media (max-width: 1024px) { .tab-name { font-size: 18px; } }
@media (max-width: 768px) {
  /* Estrella con aire respecto al borde + contenida dentro del fondo naranja activo:
     sacamos el margin negativo y damos padding lateral (antes: 24−16+0 = 8px del viewport). */
  .tab-item { padding: 20px 16px; margin-inline: 0; }
  .tab-item:hover, .tab-item.active:hover { padding-left: 16px; }
  .tab-name { font-size: 16px; }
}

/* ───────────────── 5 · TECNOLOGÍA (ultra minimal) ───────────────── */
.tecnologia-section { background: var(--color-bg); padding: 100px 0; }
@media (min-width: 1025px) { .tecnologia-section { padding: 160px 0; } }
.tecnologia-header { margin-bottom: 48px; }
@media (min-width: 1025px) { .tecnologia-header { margin-bottom: 80px; } }
.tecnologia-title { font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-text); margin: 0 0 48px; max-width: 800px; text-align: left; text-wrap: balance; }
.tecnologia-columns { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 880px; }
@media (min-width: 768px) { .tecnologia-columns { grid-template-columns: 1fr 1fr; gap: 64px; } }
.tecnologia-text { font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--color-muted); margin: 0; }
.tecnologia-image-wrapper { width: 100%; max-width: 480px; margin-inline: auto;
  aspect-ratio: 1 / 1; border-radius: 40px; overflow: hidden; position: relative; }
@media (min-width: 768px) { .tecnologia-image-wrapper { max-width: 760px; aspect-ratio: 1 / 1; border-radius: 100px; } }
.tecnologia-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ───────────────── 6 · RESEÑAS (carousel glass) ───────────────── */
.resenas-section { background: var(--color-bg); padding: 100px 0; overflow: hidden; }
@media (min-width: 1025px) { .resenas-section { padding: 160px 0; } }
.resenas-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
@media (min-width: 1025px) { .resenas-header { margin-bottom: 80px; } }
.resenas-header .section-title { font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--color-text); margin: 0 0 16px; text-wrap: balance; }
.resenas-subtitle { font-weight: 400; font-size: 17px; color: var(--color-muted); margin: 0; }

.resenas-carousel-wrapper { position: relative; width: 100%; margin-bottom: 64px; }
.resenas-carousel {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: var(--container-pad);
  padding: 8px var(--container-pad);
  margin-inline: calc(-1 * var(--container-pad));
  scrollbar-width: none; -ms-overflow-style: none;
}
.resenas-carousel::-webkit-scrollbar { display: none; }

.resena-card {
  flex: 0 0 85%; min-width: 85%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(18,18,18,0.04), 0 8px 24px rgba(18,18,18,0.06);
  border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
@media (min-width: 769px) { .resena-card { flex-basis: calc((100% - 24px) / 2); min-width: calc((100% - 24px) / 2); padding: 32px; } }
@media (min-width: 1025px) { .resena-card { flex-basis: calc((100% - 48px) / 3); min-width: calc((100% - 48px) / 3); } }
.resena-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(18,18,18,0.04), 0 16px 40px rgba(18,18,18,0.08); }

.resena-stars { display: flex; gap: 4px; color: var(--color-accent); }
.resena-stars svg { width: 16px; height: 16px; }
.resena-text { font-weight: 400; font-size: 15px; line-height: 1.65; color: var(--color-text);
  margin: 0; letter-spacing: -0.005em; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.resena-card--placeholder .resena-text { color: var(--color-muted); }
.resena-footer { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(18,18,18,0.06); }
.resena-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 9999px;
  background: rgba(255,131,0,0.12); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.resena-avatar svg { width: 20px; height: 20px; }

/* Flechas de navegación del carousel — afuera del wrapper, con halo blanco */
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border-radius: 9999px;
  background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(18,18,18,0.06);
  box-shadow: 0 0 0 8px rgba(255,255,255,.6), 0 0 0 16px rgba(255,255,255,.3), 0 6px 20px rgba(18,18,18,.08);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: rgba(18,18,18,0.55); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow:hover { background: #fff; color: var(--color-text);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 0 8px rgba(255,255,255,.6), 0 0 0 16px rgba(255,255,255,.3), 0 8px 24px rgba(18,18,18,.12); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.98); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.carousel-arrow-left { left: -24px; }
.carousel-arrow-right { right: -24px; }
@media (max-width: 1024px) {
  .carousel-arrow-left { left: -16px; }
  .carousel-arrow-right { right: -16px; }
}
@media (max-width: 768px) {
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow-left { left: 4px; }
  .carousel-arrow-right { right: 4px; }
}
.resena-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resena-name { font-weight: 600; font-size: 14px; color: var(--color-text); }
.resena-meta { font-weight: 400; font-size: 12px; color: var(--color-muted); }

.carousel-fade { position: absolute; top: 0; bottom: 0; width: var(--container-pad); pointer-events: none; z-index: 2; }
.carousel-fade-left { left: 0; background: linear-gradient(to right, var(--color-bg) 0%, rgba(255,255,255,0) 100%); }
.carousel-fade-right { right: 0; background: linear-gradient(to left, var(--color-bg) 0%, rgba(255,255,255,0) 100%); }

.resenas-cta { text-align: center; margin-top: 16px; }
.google-reviews-link { display: inline-block; font-weight: 400; font-size: 14px; color: var(--color-muted);
  border-bottom: 1px solid rgba(142,142,147,0.3); padding-bottom: 4px; letter-spacing: -0.005em;
  transition: color 0.3s ease, border-color 0.3s ease; }
.google-reviews-link:hover { color: var(--color-text); border-bottom-color: var(--color-text); }

/* ───────────────── 7 · EQUIPO (imagen ancha + overlay) ───────────────── */
.equipo-section { background: var(--color-bg); padding: 100px 0; }
@media (min-width: 1025px) { .equipo-section { padding: 160px 0; } }
.equipo-header { max-width: 880px; margin: 0 0 48px; }
@media (min-width: 1025px) { .equipo-header { margin-bottom: 80px; } }
.equipo-header .section-title { font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-text); margin: 0 0 32px; max-width: 720px; text-wrap: balance; }
.equipo-subtitle { font-weight: 400; font-size: 17px; line-height: 1.6;
  color: var(--color-muted); max-width: 560px; margin: 0; }
.equipo-card { position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 20px; overflow: hidden; background: var(--color-surface); }
@media (min-width: 768px) { .equipo-card { aspect-ratio: 16 / 9; border-radius: 32px; } }
.equipo-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.equipo-overlay { position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  display: flex; align-items: flex-end; padding: 24px;
  background: linear-gradient(to top, rgba(18,18,18,0.7) 0%, rgba(18,18,18,0.4) 40%, rgba(18,18,18,0) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); }
@media (min-width: 768px) { .equipo-overlay { height: 45%; padding: 48px; } }
.equipo-overlay-content { display: flex; flex-direction: column; gap: 8px; max-width: 600px; }
.equipo-eyebrow-small { font-weight: 500; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); }
.equipo-title-small { font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(20px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -0.01em; color: #fff; margin: 0; }

/* Equipo — cover de revista (texto superpuesto sobre la foto) */
.equipo-header .eyebrow { display: inline-block; margin-bottom: 20px; letter-spacing: 0.18em; }
.team-section__pullquote { font-family: var(--font-sans); font-weight: 400; font-style: normal;
  font-size: 17px; line-height: 1.6; color: var(--color-muted); margin: 24px 0 0; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 1025px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.team-card { position: relative; }
.team-card__image-wrapper { position: relative; width: 100%; aspect-ratio: 5 / 7;
  border-radius: 6px; overflow: hidden; background: var(--color-surface); }
.team-card__image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; filter: saturate(0.9); transition: transform 500ms ease; }
.team-card:hover .team-card__image-wrapper img { transform: scale(1.04); }

/* Zoom específico Dr. Dino: recorta el elemento oscuro superior sin desbordar */
.team-card__image-wrapper img.team-card__image--zoom-in { transform: scale(1.15); transform-origin: center 65%; }
.team-card:hover .team-card__image-wrapper img.team-card__image--zoom-in { transform: scale(1.2); }

/* Antonella: más zoom y subir la cara (quedaba muy abajo en el encuadre) */
.team-card__image-wrapper img[src*="dra-antonella-attis"] { transform: scale(1.2); transform-origin: center 62%; }
.team-card:hover .team-card__image-wrapper img[src*="dra-antonella-attis"] { transform: scale(1.26); transform-origin: center 62%; }

/* Dr. Dino: corrido a la izquierda para centrarlo y sacar el objeto negro del borde */
.team-card__image-wrapper img[src*="drdinonueva"] { object-position: 60% top; }

/* CAPA B — blur real en la franja inferior (detrás del gradient) */
.team-card__blur-strip { position: absolute; bottom: 0; left: 0; right: 0; height: 30%; z-index: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  mask-image: linear-gradient(to top, #000 40%, transparent 100%); }
/* CAPA A — gradient neutro (sin color), más chico y minimal */
.team-card__gradient-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to top,
    rgba(18,18,18,0.8) 0%, rgba(18,18,18,0.5) 16%, rgba(18,18,18,0.2) 30%, rgba(18,18,18,0) 44%); }
.team-card__text-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 24px 24px; z-index: 3; }
.team-card__role { font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  display: block; margin-bottom: 8px; }
.team-card__name { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: #fff;
  line-height: 1.2; margin: 0; }
/* Mobile: gradient más opaco para legibilidad del texto blanco */
@media (max-width: 599px) {
  .team-card__gradient-overlay { background: linear-gradient(to top,
    rgba(18,18,18,0.88) 0%, rgba(18,18,18,0.6) 20%, rgba(18,18,18,0.25) 36%, rgba(18,18,18,0) 50%); }
}

/* ───────────────── 8 · SUCURSALES (split + mapa único) ───────────────── */
.sucursales-section { background: var(--color-bg); padding: 100px 0; }
@media (min-width: 1025px) { .sucursales-section { padding: 160px 0; } }
.sucursales-split { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: start; }
@media (min-width: 1025px) { .sucursales-split { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.sucursales-content { display: flex; flex-direction: column; }
.sucursales-content .eyebrow { margin-bottom: 24px; letter-spacing: 0.18em; }
.sucursales-content .section-title { font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--color-text); margin: 0 0 24px; text-wrap: balance; }
.sucursales-description { font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--color-muted); margin: 0 0 48px; max-width: 440px; }
.sucursales-selector { display: flex; flex-direction: column; gap: 12px; }
.sucursal-option { display: flex; flex-direction: column; gap: 20px; position: relative;
  background: var(--color-bg); border: 1px solid rgba(18,18,18,0.1); border-radius: 20px;
  padding: 24px; text-align: left; cursor: pointer;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.sucursal-option:hover { border-color: rgba(18,18,18,0.2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,18,18,0.04); }
.sucursal-option.active { border-color: var(--color-text); background: #FAFAFA; }
.sucursal-option.active::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 3px; background: var(--color-accent); border-radius: 0 3px 3px 0; }
.sucursal-info { display: flex; flex-direction: column; gap: 6px; }
.sucursal-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--color-text); }
.sucursal-address { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.sucursal-hours { margin-top: 4px; font-weight: 400; font-size: 13px; color: rgba(18,18,18,0.6); }
.sucursal-cta { align-self: flex-start; font-weight: 500; font-size: 13px; color: var(--color-accent);
  padding: 8px 16px; border: 1px solid rgba(255,131,0,0.3); border-radius: 9999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.sucursal-cta:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.sucursales-map-wrapper { position: static; }
@media (min-width: 1025px) { .sucursales-map-wrapper { position: sticky; top: 120px; } }
.sucursales-map { width: 100%; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  background: var(--color-surface); border: 1px solid rgba(18,18,18,0.08); }
@media (min-width: 1025px) { .sucursales-map { aspect-ratio: 4 / 5; } }
.sucursales-map iframe { width: 100%; height: 100%; border: 0; display: block;
  filter: saturate(0.85) contrast(0.95); transition: opacity 0.3s ease; }

/* ───────────────── 9 · CONTACTO ───────────────── */
.contacto { background: var(--color-bg); }
.contacto__inner { max-width: 880px; margin-inline: auto; padding-inline: var(--container-pad); }
.contacto__title { margin-top: 24px; font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-text); text-align: center; }
.contacto__lead { margin-top: 24px; font-weight: 400; font-size: 17px;
  color: var(--color-muted); max-width: 520px; margin-inline: auto; }
:root { accent-color: var(--color-accent); }
.contact-form { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 720px; margin: 64px auto 0; }
@media (min-width: 768px) { .contact-form { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
.form-field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.form-field.full-width { grid-column: 1 / -1; }
.form-field label { order: -1; font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-muted); transition: color 0.3s ease; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: transparent; border: none; border-radius: 0;
  border-bottom: 1px solid rgba(18,18,18,0.15); padding: 12px 0;
  font-family: var(--font-sans); font-weight: 400; font-size: 16px; color: var(--color-text); outline: none;
  transition: border-bottom-color 0.3s ease, border-bottom-width 0.3s ease; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(18,18,18,0.3); }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-bottom-color: rgba(18,18,18,0.4); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-bottom-color: var(--color-accent); border-bottom-width: 2px; padding-bottom: 11px; }
.form-field:focus-within label { color: var(--color-accent); }
.form-field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background-repeat: no-repeat; background-position: right 0 center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FF8300' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-field select:invalid { color: rgba(18,18,18,0.3); }
.form-submit-wrapper { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.form-submit { display: inline-flex; align-items: center; gap: 8px; background: var(--color-text); color: #fff;
  border: none; padding: 16px 40px; border-radius: 9999px; font-family: var(--font-sans); font-weight: 500;
  font-size: 15px; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.form-submit svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.form-submit:hover { background: var(--color-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,131,0,0.25); }
.form-submit:hover svg { transform: translateX(4px); }
.form-submit:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.form-disclaimer { font-weight: 400; font-size: 12px; color: var(--color-muted); text-align: center; }

/* ───────────────── 10 · FOOTER (card gris tipo Mustela) ───────────────── */
.footer { background: var(--color-bg); color: var(--color-text); padding: 40px 16px 16px; }
@media (min-width: 768px) { .footer { padding: 80px 24px 24px; } }
.footer-card { position: relative; overflow: hidden; max-width: 1440px; margin: 0 auto;
  background: var(--color-surface); border-radius: 24px; padding: 56px 0 32px; }
@media (min-width: 768px) { .footer-card { border-radius: 32px; padding: 80px 0 40px; } }
.footer__inner { position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr; gap: 48px; margin-bottom: 48px; }
@media (min-width: 1025px) { .footer__inner { margin-bottom: 56px; } }
.footer__logo { height: 32px; width: auto; }
.footer__tagline { margin-top: 24px; font-size: 20px; color: var(--color-muted); }
.footer__heading { font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-text); }
.footer__links { list-style: none; margin-top: 24px; display: flex;
  flex-direction: column; gap: 12px; }
.footer__links a, .footer__links span { font-weight: 400; font-size: 14px; color: var(--color-muted);
  transition: color var(--t-fast); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.footer__sublabel { font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text); margin-top: 12px; }
.footer__sublabel:first-child { margin-top: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 9999px; border: 1px solid rgba(18,18,18,0.12);
  color: var(--color-muted); transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.footer-social-link:hover { color: var(--color-accent); border-color: var(--color-accent); background: rgba(255,131,0,0.06); }
.footer-social-link svg { width: 19px; height: 19px; display: block; }
.footer__divider { position: relative; height: 1px; background: var(--color-border); margin-top: 40px; }
.footer__divider::before { content: ""; position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px; background: var(--color-accent); }
.footer__bottom { position: relative; z-index: 1; display: flex; flex-direction: column;
  gap: 16px; padding: 32px 0; }
.footer__bottom span { font-weight: 400; font-size: 13px; color: var(--color-muted); }
.footer__wordmark { position: absolute; bottom: -0.12em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-sans); font-style: normal; font-weight: 700;
  font-size: clamp(110px, 22vw, 360px); color: rgba(18, 18, 18, 0.03);
  white-space: nowrap; line-height: 0.85; letter-spacing: -0.02em;
  z-index: 0; pointer-events: none; user-select: none; }
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1025px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  .footer__col--brand { grid-column: span 1; }
}

/* Link "Cómo llegar" → sucursales */
.footer-link-locations { color: var(--color-accent) !important; font-weight: 500 !important; margin-top: 8px; }
.footer-link-locations:hover { color: var(--color-text) !important; }

/* ════════════════════ Botón flotante de WhatsApp ════════════════════ */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 9999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.3s ease, background 0.3s ease; }
.floating-whatsapp.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-whatsapp svg { width: 28px; height: 28px; transition: transform 0.3s ease; }
.floating-whatsapp:hover { background: #1ebd5a; box-shadow: 0 12px 32px rgba(37,211,102,0.5);
  transform: translateY(-2px) scale(1.05); }
.floating-whatsapp:hover svg { transform: scale(1.1); }
.floating-whatsapp:active { transform: translateY(0) scale(0.98); }
.floating-whatsapp.visible::before {
  content: ''; position: absolute; inset: 0; border-radius: 9999px;
  background: rgba(37,211,102,0.4); z-index: -1; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 768px) {
  .floating-whatsapp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .floating-whatsapp svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .floating-whatsapp.visible::before { animation: none; } }

/* ═══════════════════════════════════════════════════════════════════
   FIXES RESPONSIVE MOBILE — home (index.html) + helper compartido
   Saltos de línea condicionales (<br class="br-mobile">) + reducción de
   tamaño + encuadre de hero, grid de equipo y footer.
   Sin tocar desktop: los <br> quedan display:none en desktop.
   Requiere que animations.js use SplitType SIN 'lines' (si no, los <br>
   se pierden). Helper .br-mobile también usado en nosotros.html.
   ═══════════════════════════════════════════════════════════════════ */

/* Helper: salto de línea solo en mobile, invisible en desktop */
.br-mobile { display: none; }

@media (max-width: 768px) {
  .br-mobile { display: inline; }

  /* FIX 1 · Hero: imagen mobile dedicada (9:16) + altura ampliada del banner.
     La nueva imagen ya está pensada para vertical → object-position center. */
  .hero__panel { height: auto; min-height: 92vh; max-height: 100vh; aspect-ratio: auto; }
  .hero__img { object-position: center center; }

  /* FIX 2 · Manifiesto mobile: titular compacto (3 líneas) centrado sobre el
     isotipo del diente. Padding amplio para que el isotipo respire arriba y
     abajo entre las secciones vecinas (antes 100/100 quedaba muy pegado). */
  .manifiesto { padding-top: 170px; padding-bottom: 190px; }
  .manifiesto__inner { display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; }
  .manifiesto__isotipo { width: 90%; max-width: 380px; }
  .manifiesto__title { font-size: clamp(20px, 5.8vw, 23px); line-height: 1.25;
    text-align: center; max-width: 340px; margin: 0 auto; }
  .manifiesto__sub { font-size: clamp(13px, 3.3vw, 15px); line-height: 1.5; color: #8E8E93;
    text-align: center; max-width: 320px; margin: 24px auto 0; }

  /* FIX 4 · Reseñas: título un toque más grande, subtítulo mucho más chico */
  .resenas-header .section-title { font-size: clamp(28px, 7.2vw, 40px); line-height: 1.18; }
  .resenas-subtitle { font-size: clamp(10px, 2.9vw, 12px); line-height: 1.4; }

  /* FIX 5 · Especialidades: título */
  .especialidades-header .section-title { font-size: clamp(24px, 6.2vw, 34px); line-height: 1.18; }

  /* FIX 6 · Contacto: título */
  .contacto__title { font-size: clamp(26px, 7vw, 36px); line-height: 1.2; }

  /* FIX 7 · Equipo: grid 2×2 en mobile (evita scroll de 4 cards apiladas) */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .team-card__role { font-size: 9px; }
  .team-card__name { font-size: 15px; line-height: 1.15; }
  .team-card__text-overlay { padding: 16px 12px 12px; }

  /* FIX 8 · Footer wordmark: compactar para que no se corte ni desalinee */
  .footer__wordmark { font-size: clamp(60px, 20vw, 120px); letter-spacing: -0.05em;
    white-space: nowrap; text-align: center; line-height: 1; padding: 0 16px; }

  /* FIX 3 · Especialidades: acordeón inline en mobile.
     js/especialidades.js reubica cada .preview-panel como hermano debajo de su .tab-item. */
  .especialidades-split { display: block; }
  .especialidades-preview { display: none; }
  .especialidades-tabs { gap: 0; }
  .especialidades-tabs .preview-panel {
    position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    display: block; max-height: 0; overflow: hidden; padding: 0;
    transition: max-height 0.45s ease, padding 0.45s ease; }
  .especialidades-tabs .preview-panel.active { max-height: 2400px; padding: 8px 0 28px; }
  .especialidades-tabs .preview-panel .preview-content { padding-top: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   Modal de contacto de sucursal
   ══════════════════════════════════════════════════════════════ */
.contacto-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.contacto-modal[hidden] { display: none; }
.contacto-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.3s ease;
}
.contacto-modal.is-open .contacto-modal__overlay { opacity: 1; }
.contacto-modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: #FFFFFF; border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  text-align: left;
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.contacto-modal.is-open .contacto-modal__card { opacity: 1; transform: scale(1); }
.contacto-modal__card:focus { outline: none; }
.contacto-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: var(--color-surface);
  color: var(--color-text); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.contacto-modal__close:hover { background: var(--color-accent); color: #fff; }
.contacto-modal__close svg { width: 18px; height: 18px; }
.contacto-modal__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 8px;
}
.contacto-modal__sucursal {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--color-text); margin: 0 0 24px;
}
.contacto-modal__phones { list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 14px; }
.contacto-modal__phone-row { display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.contacto-modal__phone {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 600;
  color: var(--color-accent); text-decoration: none;
}
.contacto-modal__phone:hover { text-decoration: underline; }
.contacto-modal__phone-tag { flex-shrink: 0; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted);
  white-space: nowrap; }
.contacto-modal__phone-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255, 131, 0, 0.12);
  color: var(--color-accent);
}
.contacto-modal__phone-icon svg { width: 20px; height: 20px; }
.contacto-modal__hours {
  font-size: 15px; line-height: 1.6; color: var(--color-muted); margin: 0;
}
.contacto-modal__hours strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 520px) {
  .contacto-modal__card { padding: 32px 24px; }
  .contacto-modal__phone { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .contacto-modal__overlay,
  .contacto-modal__card { transition: none; }
}

/* Prótesis y Rehabilitación: bajar el encuadre de la imagen para que el centro
   (rostro/manos del odontólogo) quede visible en los marcos 16/10 (home preview
   y bloque mobile). Solo cambia object-position, no la altura ni posición del marco. */
.esp-block-image img[src*="rehabilitacionnueva"],
.preview-image img[src*="rehabilitacionnueva"] { object-position: center 38%; }
