/* ═══════════════════════════════════════════════════
   MERO LINDO — INDUSTRIAL DARK + AZUL REY
═══════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --black: #0C0A09;
  --black2: #141210;
  --dark: #1C1917;
  --dark2: #292524;
  --stone: #44403C;
  --stone-l: #78716C;
  --text: #A8A29E;
  --text-l: #D6D3D1;
  --white: #FAFAF9;
  /* Azul rey (accent) */
  --gold: #2563EB;
  --gold-l: #3B82F6;
  --gold-d: #1D4ED8;
  --gold-glow: rgba(37, 99, 235, .15);
  --gold-glow2: rgba(37, 99, 235, .06);

  --ff: 'Inter', system-ui, -apple-system, sans-serif;
  --fh: 'Bebas Neue', 'Impact', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --r: 4px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--ff);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--white); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 4px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn i, .btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover i, .btn:hover svg { transform: translate(3px, -3px); }

.btn--gold {
  background: var(--gold);
  color: var(--black);
}
.btn--gold:hover {
  background: var(--gold-l);
  box-shadow: 0 0 40px var(--gold-glow), 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-l);
  border: 1px solid var(--dark2);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ════════════════════════════════════════════════════
   LOADER
════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: flex-end;
}
.loader__bar {
  width: 0%;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transition: width .1s linear;
}
.loader.done {
  pointer-events: none;
  animation: loaderOut .6s var(--ease) .2s forwards;
}
@keyframes loaderOut {
  to { opacity: 0; }
}

/* ════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(12,10,9,.75) 0%, transparent 100%);
  transition: all .4s var(--ease-out);
}
.nav--scrolled {
  background: rgba(12, 10, 9, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, .08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  gap: 40px;
}
.nav__link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-l);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__link:hover {
  color: var(--white);
}
/* Member link especial */
.nav__link--member {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold) !important;
}
.nav__link--member i, .nav__link--member svg { width: 13px; height: 13px; }
.nav__link--member:hover { color: var(--gold-l) !important; }
.nav__link--member::after { background: var(--gold-l) !important; }

/* Prótesis capilar: efecto luminoso que pulsa para que llame la atención */
.nav__link--protesis {
  color: var(--gold-l) !important;
  font-weight: 700;
  animation: protesisGlowText 2.5s ease-in-out infinite;
  transition: color .3s var(--ease);
}
.nav__link--protesis::after { background: var(--gold-l) !important; }
.nav__link--protesis:hover {
  color: var(--white) !important;
  animation: protesisGlowText 1.5s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════
   AUTH / LOGIN — Split Layout
════════════════════════════════════════════════════ */
.auth-body {
  margin: 0;
  min-height: 100vh;
}

.auth {
  display: flex;
  min-height: 100vh;
}

/* ── Panel izquierdo: branding ── */
.auth__brand {
  position: relative;
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
}

.auth__brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(37, 99, 235, .18), transparent 50%),
    linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #0c0a09 100%);
  z-index: 0;
}

.auth__brand-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, .06) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(37, 99, 235, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .6;
}

.auth__brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth__brand-logo img {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
}

.auth__brand-text {
  margin: auto 0;
  padding: 40px 0;
}

.auth__brand-text h2 {
  font-family: var(--fh);
  font-size: 2.8rem;
  letter-spacing: .06em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.auth__brand-text p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 340px;
}

.auth__brand-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .1);
}

.auth__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone-l);
  transition: color .3s var(--ease);
}
.auth__back-link i, .auth__back-link svg { width: 14px; height: 14px; }
.auth__back-link:hover { color: var(--gold-l); }

/* ── Panel derecho: formulario ── */
.auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--black);
  position: relative;
}

.auth__main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .06), transparent 70%);
  pointer-events: none;
}

.auth__card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: authCardIn .6s var(--ease) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth__header {
  margin-bottom: 28px;
  text-align: center;
}

.auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(37, 99, 235, .05));
  border: 1px solid rgba(37, 99, 235, .25);
  margin: 0 auto 16px;
  color: var(--gold-l);
}
.auth__icon i, .auth__icon svg { width: 24px; height: 24px; }

.auth__title {
  font-family: var(--fh);
  font-size: 2rem;
  letter-spacing: .08em;
  color: var(--white);
  text-transform: uppercase;
}

.auth__subtitle {
  margin-top: 6px;
  font-size: .88rem;
  color: var(--stone-l);
}

/* ── Form ── */
.auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth__field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone-l);
}

.auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth__input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--stone);
  pointer-events: none;
  transition: color .2s;
}

.auth__input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .5);
  color: var(--text-l);
  font-size: .9rem;
  font-family: var(--ff);
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.auth__input-wrap input::placeholder {
  color: rgba(148, 163, 184, .45);
}

.auth__input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background: rgba(15, 23, 42, .8);
}

.auth__input-wrap input:focus ~ .auth__input-icon,
.auth__input-wrap:focus-within .auth__input-icon {
  color: var(--gold-l);
}

/* Select (rol) */
.auth__select {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .5);
  color: var(--text-l);
  font-size: .9rem;
  font-family: var(--ff);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.auth__select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background-color: rgba(15, 23, 42, .8);
}
.auth__select option {
  background: var(--dark);
  color: var(--text-l);
}

/* Mensajes de feedback */
.auth__msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
}
.auth__msg--ok {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #4ade80;
}
.auth__msg--err {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #f87171;
}

.auth__register-link {
  text-align: center;
  margin-top: 4px;
  font-size: .82rem;
}
.auth__register-link a {
  color: var(--gold-l);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.auth__register-link a:hover {
  color: var(--white);
  text-decoration: underline;
}

.auth__toggle-pw {
  position: absolute;
  right: 12px;
  padding: 4px;
  color: var(--stone);
  transition: color .2s;
}
.auth__toggle-pw i, .auth__toggle-pw svg { width: 16px; height: 16px; }
.auth__toggle-pw:hover { color: var(--text-l); }

/* ── Options ── */
.auth__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--stone-l);
  cursor: pointer;
  user-select: none;
}

.auth__remember input {
  display: none;
}

.auth__check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, .3);
  background: rgba(15, 23, 42, .5);
  position: relative;
  transition: all .2s var(--ease);
}

.auth__remember input:checked + .auth__check {
  background: var(--gold);
  border-color: var(--gold);
}

.auth__remember input:checked + .auth__check::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Submit button ── */
.auth__btn {
  width: 100%;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.auth__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}

.auth__btn:hover::before {
  transform: translateX(100%);
}

.auth__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, .3);
}

.auth__btn--loading {
  pointer-events: none;
  opacity: .7;
}

.auth__btn--loading span { visibility: hidden; }

.auth__btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--black);
  border-left-color: var(--black);
  border-radius: 50%;
  animation: authSpin .6s linear infinite;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

/* ── Divider ── */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, .1);
}

.auth__divider span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* ── Roles badges ── */
.auth__roles {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth__roles span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-l);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(148, 163, 184, .1);
  transition: all .25s var(--ease);
}

.auth__roles span:hover {
  border-color: rgba(37, 99, 235, .35);
  color: var(--gold-l);
}

.auth__roles span i,
.auth__roles span svg { width: 12px; height: 12px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth {
    flex-direction: column;
  }

  .auth__brand {
    flex: none;
    padding: 32px 24px 24px;
    min-height: auto;
  }

  .auth__brand-text { padding: 16px 0 0; }
  .auth__brand-text h2 { font-size: 2rem; }
  .auth__brand-text p { display: none; }
  .auth__brand-footer { display: none; }

  .auth__main {
    padding: 24px 20px 40px;
  }
}

@media (max-width: 480px) {
  .auth__card { max-width: 100%; }
  .auth__title { font-size: 1.6rem; }
  .auth__roles span { font-size: .65rem; padding: 4px 10px; }
}
/* Al bajar en la home: Prótesis capilar se ve gris como los demás (no parece "estoy aquí") */
.nav--scrolled .nav__link--protesis {
  color: var(--stone-l) !important;
  font-weight: 500;
  animation: none;
  text-shadow: none;
}
.nav--scrolled .nav__link--protesis:hover {
  color: var(--white) !important;
  animation: none;
  text-shadow: none;
}
.nav--scrolled .nav__link--protesis::after {
  background: var(--gold) !important;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color .3s var(--ease);
}
.nav__book-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-d);
  border-radius: 50%;
  transition: all .3s var(--ease);
}
.nav__book-arrow i, .nav__book-arrow svg {
  width: 14px;
  height: 14px;
}
.nav__book:hover .nav__book-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: rotate(-45deg);
}

/* Burger */
.nav__burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: all .3s var(--ease);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

/* Video de fondo */
.hero__video {
  position: absolute;
  inset: -4px;
  z-index: 0;
}
.hero__video video {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  filter: brightness(.55) contrast(1.15) saturate(.7);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12,10,9,.7) 0%,
      rgba(12,10,9,.35) 35%,
      rgba(12,10,9,.4) 65%,
      rgba(12,10,9,.88) 100%
    ),
    linear-gradient(90deg,
      rgba(12,10,9,.5) 0%,
      transparent 30%,
      transparent 70%,
      rgba(12,10,9,.5) 100%
    );
}
/* Grain sobre el video para suavizar y dar textura industrial */
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
/* Vignette sutil en las esquinas */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(12,10,9,.6) 100%);
}

/* Líneas verticales industriales */
.hero__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 48px;
  pointer-events: none;
  max-width: 1400px;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 1;
}
.hero__lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(37, 99, 235, .06) 20%,
    rgba(37, 99, 235, .06) 80%,
    transparent 100%
  );
}

/* Contenido central */
.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Tag */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  opacity: 0;
}
.hero__tag-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero__tag-text {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Título */
.hero__title {
  font-family: var(--fh);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .04em;
  margin-bottom: 32px;
  overflow: hidden;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title-line span {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--white);
  transform: translateY(110%);
}
.hero__title-line--accent span {
  color: var(--gold);
  -webkit-text-stroke: 0;
}

/* Descripción */
.hero__desc {
  font-size: 1rem;
  color: var(--stone-l);
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Actions */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
}

/* Side info */
.hero__side {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
  opacity: 0;
}
.hero__side-item {
  text-align: center;
}
.hero__side-item strong {
  display: block;
  font-family: var(--fh);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: .04em;
}
.hero__side-item span {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--stone-l);
}
.hero__side-divider {
  width: 1px;
  height: 32px;
  background: var(--dark2);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
}
.hero__scroll-text {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone-l);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-dot {
  width: 1px;
  height: 20px;
  background: var(--gold);
  position: absolute;
  top: -20px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -20px; }
  100% { top: 60px; }
}

/* Efecto luminoso pulsante para Prótesis capilar */
@keyframes protesisGlowText {
  0%, 100% { text-shadow: 0 0 16px rgba(37, 99, 235, 0.7), 0 0 32px rgba(37, 99, 235, 0.4), 0 0 48px rgba(37, 99, 235, 0.2); }
  50% { text-shadow: 0 0 24px rgba(59, 130, 246, 0.95), 0 0 48px rgba(37, 99, 235, 0.6), 0 0 72px rgba(37, 99, 235, 0.35); }
}
@keyframes protesisGlowBox {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.35), 0 0 44px rgba(37, 99, 235, 0.18), inset 0 0 28px rgba(37, 99, 235, 0.08); }
  50% { box-shadow: 0 0 34px rgba(37, 99, 235, 0.55), 0 0 60px rgba(37, 99, 235, 0.3), inset 0 0 36px rgba(37, 99, 235, 0.14); }
}
@keyframes protesisGlowRow {
  0%, 100% { box-shadow: 0 0 24px rgba(37, 99, 235, 0.25), 0 0 48px rgba(37, 99, 235, 0.1), inset 0 0 32px rgba(37, 99, 235, 0.06); }
  50% { box-shadow: 0 0 36px rgba(37, 99, 235, 0.45), 0 0 64px rgba(37, 99, 235, 0.2), inset 0 0 40px rgba(37, 99, 235, 0.1); }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__side { display: none; }
  .hero { padding: 120px 32px 80px; }
  .nav { padding: 0 32px; }
  .hero__lines { padding: 0 32px; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
    padding: 0 32px 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
    z-index: 90;
  }
  .nav__menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__menu .nav__link {
    display: block;
    width: 100%;
    font-family: var(--fh);
    font-size: clamp(2rem, 8vw, 3.2rem);
    letter-spacing: .04em;
    color: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--dark2);
    transition: color .3s var(--ease), padding-left .3s var(--ease);
    text-transform: uppercase;
  }
  .nav__menu .nav__link:first-child {
    border-top: 1px solid var(--dark2);
  }
  .nav__menu .nav__link:hover,
  .nav__menu .nav__link:active {
    color: var(--gold);
    padding-left: 16px;
  }
  /* Member link en menú mobile */
  .nav__menu .nav__link--member {
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav__menu .nav__link--member i,
  .nav__menu .nav__link--member svg { width: 22px; height: 22px; }
  .nav__menu .nav__link--member:hover,
  .nav__menu .nav__link--member:active {
    color: var(--gold-l) !important;
  }

  /* CTA link en menú mobile */
  .nav__menu .nav__link--cta {
    font-family: var(--ff);
    font-size: .9rem !important;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--black) !important;
    background: var(--gold);
    text-align: center;
    padding: 18px 0 !important;
    margin-top: 28px;
    border: none !important;
  }
  .nav__menu .nav__link--cta:hover,
  .nav__menu .nav__link--cta:active {
    color: var(--black) !important;
    padding-left: 0 !important;
    background: var(--gold-l);
  }
  .nav__menu .nav__link--protesis {
    color: var(--gold-l) !important;
    font-weight: 700;
    animation: protesisGlowText 2.5s ease-in-out infinite;
  }
  .nav__menu .nav__link--protesis:hover {
    color: var(--white) !important;
    animation: protesisGlowText 1.5s ease-in-out infinite;
  }
  .nav__book { display: none; }
  .nav__burger { display: flex; }
  .hero { padding: 140px 20px 60px; }
  .hero__lines { display: none; }
  .hero__scroll { left: 20px; bottom: 24px; }
  .hero__title-line span { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 16px 48px; }
  .nav { padding: 0 16px; }
  .hero__title-line span { font-size: clamp(2.2rem, 13vw, 3.5rem); }
  .hero__desc { font-size: .9rem; }
  .hero__desc br { display: none; }
}

/* ════════════════════════════════════════════════════
   ABOUT — MARQUEE
════════════════════════════════════════════════════ */
.about__marquee {
  padding: 18px 0;
  border-top: 1px solid var(--dark2);
  border-bottom: 1px solid var(--dark2);
  overflow: hidden;
  background: var(--black2);
}
.about__marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}
.about__marquee-track span {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone-l);
}
.mq-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════
   ABOUT — MAIN
════════════════════════════════════════════════════ */
.about {
  position: relative;
  overflow: hidden;
}
/* Grid industrial de fondo */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
/* Número grande decorativo de fondo */
.about::after {
  content: 'ML';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  font-family: var(--fh);
  font-size: clamp(20rem, 35vw, 40rem);
  color: rgba(37,99,235,.055);
  line-height: .85;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -.03em;
}
.about__wrap {
  position: relative;
  z-index: 1;
}
.about__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}

/* ── Label ── */
.about__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.about__label span:not(.line-gold) {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Statement ── */
.about__statement {
  margin-bottom: 80px;
}
.about__big {
  font-family: var(--fh);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .03em;
  overflow: hidden;
}
.ab-line {
  display: block;
  overflow: hidden;
}
.ab-line span {
  display: block;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  color: var(--white);
}
.ab-line--gold span {
  color: var(--gold);
}

/* ── Grid: Imagen + Texto ── */
.about__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

/* Imagen */
.about__img-col { position: relative; }
.about__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
}
.about__img--ph {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Esquina decorativa */
.about__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 40%;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
}
.about__img-caption {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.about__img-caption strong {
  display: block;
  font-size: .85rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 2px;
}
.about__img-caption span {
  font-size: .72rem;
  color: var(--stone-l);
  letter-spacing: .04em;
}

/* Texto */
.about__text-col {}
.about__lead {
  font-size: 1.15rem;
  color: var(--text-l);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about__lead strong { color: var(--gold); }
.about__text-col p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__text-col p strong { color: var(--white); }
.about__quote {
  font-family: var(--fh);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: .03em;
  line-height: 1.2;
  margin-top: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-style: normal;
}

/* Números */
.about__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 36px;
}
.about__num {
  padding: 20px 16px;
  background: var(--dark);
  border-left: 2px solid var(--dark2);
  transition: border-color .3s var(--ease);
}
.about__num:hover { border-left-color: var(--gold); }
.about__num-val {
  display: block;
  font-family: var(--fh);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 4px;
}
.about__num-label {
  font-size: .68rem;
  font-weight: 500;
  color: var(--stone-l);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Pilares ── */
.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.about__pillar {
  padding: 36px 28px;
  background: var(--dark);
  border-top: 2px solid transparent;
  transition: all .35s var(--ease);
  position: relative;
}
.about__pillar:hover {
  border-top-color: var(--gold);
  background: var(--dark2);
}
.about__pillar-num {
  display: block;
  font-family: var(--fh);
  font-size: 1.8rem;
  color: var(--dark2);
  letter-spacing: .04em;
  margin-bottom: 16px;
  transition: color .35s var(--ease);
}
.about__pillar:hover .about__pillar-num { color: var(--gold-d); }
.about__pillar h3 {
  font-family: var(--ff);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.about__pillar p {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── ABOUT RESPONSIVE ── */
@media (max-width: 1024px) {
  .about__wrap { padding: 80px 32px; }
  .about__grid { grid-template-columns: 300px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .about__wrap { padding: 56px 20px; }
  .about__statement { margin-bottom: 40px; text-align: center; }
  .about__label { justify-content: center; }
  .ab-line span { font-size: clamp(2rem, 10vw, 3.5rem); }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about__img-col {
    max-width: 260px;
    margin: 0 auto;
  }

  .about__lead { font-size: 1rem; }
  .about__quote { font-size: 1.3rem; }

  .about__numbers {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }
  .about__num { padding: 16px 14px; }
  .about__num-val { font-size: 1.8rem; }

  .about__pillars {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .about__pillar { padding: 24px 20px; }
  .about__pillar-num { font-size: 1.4rem; margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .about__wrap { padding: 40px 16px; }
  .ab-line span { font-size: clamp(1.6rem, 11vw, 2.5rem); }
  .about__img-col { max-width: 200px; }
  .about__numbers { grid-template-columns: 1fr 1fr; gap: 2px; }
  .about__text-col p { font-size: .88rem; }
}

/* ════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════ */
.services {
  padding: 100px 48px;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
}

.services__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── LEFT: Categorías ── */
.svc-cats {
  position: sticky;
  top: 120px;
  align-self: start;
}
.services__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.services__label span:not(.line-gold) {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.line-gold {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.services__title {
  font-family: var(--fh);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .04em;
  margin-bottom: 32px;
  overflow: hidden;
}
.services__title-line {
  display: block;
  overflow: hidden;
}
.services__title-line span {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
}
.services__title-line span em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--fh);
}

.svc-cats__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.svc-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-align: left;
}
.svc-cat:hover {
  background: var(--dark);
  border-left-color: var(--stone);
}
.svc-cat.active {
  background: var(--dark);
  border-left-color: var(--gold);
}
.svc-cat__num {
  font-family: var(--fh);
  font-size: 1.1rem;
  color: var(--stone);
  min-width: 22px;
  transition: color .3s var(--ease);
}
.svc-cat.active .svc-cat__num { color: var(--gold); }
.svc-cat__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--stone-l);
  transition: color .3s var(--ease);
  flex: 1;
}
.svc-cat.active .svc-cat__name { color: var(--white); }
.svc-cat__count {
  font-size: .68rem;
  color: var(--stone);
  letter-spacing: .04em;
}
/* Prótesis capilar: efecto luminoso pulsante en el menú de servicios */
.svc-cat--protesis {
  border-left-color: var(--gold);
  background: rgba(37, 99, 235, 0.1);
  animation: protesisGlowBox 2.5s ease-in-out infinite;
}
.svc-cat--protesis:hover {
  border-left-color: var(--gold-l);
  background: rgba(37, 99, 235, 0.16);
  animation: protesisGlowBox 1.8s ease-in-out infinite;
}
.svc-cat--protesis .svc-cat__name {
  color: var(--gold-l);
  animation: protesisGlowText 2.5s ease-in-out infinite;
}
.svc-cat--protesis:hover .svc-cat__name {
  color: var(--white);
  animation: protesisGlowText 1.8s ease-in-out infinite;
}
.svc-cat--protesis.active {
  border-left-color: var(--gold);
  background: rgba(37, 99, 235, 0.18);
  animation: protesisGlowBox 2s ease-in-out infinite;
}
.svc-cat--protesis.active .svc-cat__name {
  color: var(--white);
  animation: protesisGlowText 2s ease-in-out infinite;
}
.svc-cat__tag {
  display: inline-block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.svc-cats__note {
  font-size: .75rem;
  color: var(--stone);
  font-style: italic;
  padding-left: 18px;
  border-left: 1px solid var(--dark2);
}

/* ── Scroll wrapper con fade inferior ── */
.svc-scroll {
  position: relative;
}
.svc-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 3;
  transition: opacity .3s var(--ease);
}
.svc-scroll.at-bottom::after {
  opacity: 0;
}

/* ── RIGHT: Service Rows ── */
.svc-panel {
  display: none;
  flex-direction: column;
}
.svc-panel.active {
  display: flex;
  max-height: clamp(380px, 55vh, 560px);
  overflow-y: auto;
  overflow-x: visible;
  scroll-behavior: smooth;
  padding-right: 10px;
}
/* Scrollbar custom — idéntico al global pero más delgado */
.svc-panel::-webkit-scrollbar { width: 3px; }
.svc-panel::-webkit-scrollbar-track { background: var(--dark); border-radius: 3px; }
.svc-panel::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 3px; }
.svc-panel::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.svc-panel { scrollbar-width: thin; scrollbar-color: var(--gold-d) var(--dark); }

.svc-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--dark2);
  text-decoration: none;
  transition: all .3s var(--ease);
  position: relative;
}
.svc-row:first-child {
  border-top: 1px solid var(--dark2);
}
.svc-row:hover {
  padding-left: 12px;
}
.svc-row:hover h3 {
  color: var(--gold);
}

.svc-row__left {
  flex-shrink: 0;
  max-width: 55%;
}
.svc-row__left h3 {
  font-family: var(--ff);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  transition: color .3s var(--ease);
  margin-bottom: 2px;
}
.svc-row__left p {
  font-size: .78rem;
  color: var(--stone-l);
  line-height: 1.4;
}

.svc-row__dots {
  flex: 1;
  border-bottom: 1px dotted var(--stone);
  min-width: 20px;
  margin-bottom: 6px;
}

.svc-row__right {
  flex-shrink: 0;
  text-align: right;
}
.svc-row__price {
  display: block;
  font-family: var(--fh);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: .04em;
  line-height: 1;
}
.svc-row__time {
  font-size: .68rem;
  color: var(--stone);
  letter-spacing: .04em;
}

.svc-row--link .svc-row__right { display: flex; align-items: center; justify-content: flex-end; }
.svc-row__arrow { display: flex; align-items: center; color: var(--gold); transition: transform .3s var(--ease); }
.svc-row--link:hover .svc-row__arrow { transform: translateX(6px); }
.svc-row__arrow i, .svc-row__arrow svg { width: 20px; height: 20px; }

/* Fila "Más sobre prótesis capilar": efecto luminoso pulsante */
.svc-row--protesis {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.14) 0%, transparent 100%);
  margin: 0 -16px;
  padding: 20px 16px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-left: 3px solid var(--gold);
  animation: protesisGlowRow 2.5s ease-in-out infinite;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.svc-row--protesis:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, transparent 100%);
  border-left-color: var(--gold-l);
  border-color: rgba(37, 99, 235, 0.6);
  animation: protesisGlowRow 1.6s ease-in-out infinite;
}
.svc-row--protesis h3 {
  color: var(--gold-l);
  animation: protesisGlowText 2.5s ease-in-out infinite;
}
.svc-row--protesis:hover h3 {
  color: var(--white);
  animation: protesisGlowText 1.6s ease-in-out infinite;
}

.svc-row__badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.svc-row--star {
  background: var(--dark);
  margin: 0 -16px;
  padding: 22px 16px;
  border: 1px solid var(--dark2);
  border-left: 2px solid var(--gold);
}
.svc-row--star:first-child {
  border-top: 1px solid var(--dark2);
}

.svc-items__cta {
  margin-top: 36px;
}

/* ── SERVICES RESPONSIVE ── */
@media (max-width: 1024px) {
  .services { padding: 80px 32px; }
  .services::before { left: 32px; right: 32px; }
  .services__inner { grid-template-columns: 260px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .services { padding: 64px 20px; }
  .services::before { left: 20px; right: 20px; }
  .services__inner { grid-template-columns: 1fr; gap: 0; }

  /* Título centrado */
  .svc-cats { position: static; text-align: center; margin-bottom: 8px; }
  .services__label { justify-content: center; }
  .services__title { margin-bottom: 20px; }
  .svc-cats__note { display: none; }

  /* Tabs: grid 2×2 — todos visibles sin scroll */
  .svc-cats__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-x: visible;
    padding: 0 0 16px;
    margin-bottom: 0;
  }
  .svc-cat {
    flex: none;
    padding: 14px 12px;
    border-left: none;
    border: 1px solid var(--dark2);
    border-radius: 10px;
    justify-content: center;
    text-align: center;
    gap: 4px;
    flex-direction: column;
    min-height: 56px;
  }
  .svc-cat:hover {
    border-left: none;
    border-color: var(--stone);
  }
  .svc-cat.active {
    border-left: none;
    border-color: var(--gold);
    background: var(--gold);
  }
  .svc-cat--protesis {
    border-left: none;
    border-color: var(--gold);
    background: rgba(37, 99, 235, 0.15);
    animation: protesisGlowBox 2.5s ease-in-out infinite;
  }
  .svc-cat--protesis:hover {
    border-color: var(--gold-l);
    animation: protesisGlowBox 1.8s ease-in-out infinite;
  }
  .svc-cat--protesis.active { border-color: var(--gold); background: var(--gold); animation: protesisGlowBox 2s ease-in-out infinite; }
  .svc-cat--protesis.active .svc-cat__tag { background: var(--black); color: var(--gold); }
  .svc-cat--protesis .svc-cat__name { color: var(--gold-l); animation: protesisGlowText 2.5s ease-in-out infinite; }
  .svc-cat--protesis.active .svc-cat__name { color: var(--black); animation: none; }
  .svc-cat.active .svc-cat__num { color: var(--gold-d); }
  .svc-cat.active .svc-cat__name { color: var(--black); }
  .svc-cat__name { font-size: .82rem; line-height: 1.2; text-align: center; }
  .svc-cat__count { display: block; font-size: .68rem; color: var(--stone); margin-top: 2px; }
  .svc-cat.active .svc-cat__count { color: rgba(0,0,0,.55); }
  .svc-cat__num { display: none; }
  .svc-cat__tag { margin-left: 0; margin-top: 4px; display: block; font-size: .5rem; }

  .services__title-line span { font-size: clamp(2rem, 9vw, 3rem); }

  /* Services — scroll panel */
  .svc-scroll::after { background: linear-gradient(to bottom, transparent, var(--black)); height: 56px; }
  .svc-panel.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 64px; /* espacio para que el último card no quede bajo el fade */
    padding-right: 0;
    max-height: 56vh;
  }

  /* Service rows como cards */
  .svc-row {
    flex-direction: column;
    gap: 0;
    padding: 16px 18px;
    background: var(--dark);
    border: 1px solid var(--dark2);
    border-radius: 8px;
    transition: background .2s;
  }
  .svc-row:first-child { border-top: 1px solid var(--dark2); }
  .svc-row:hover, .svc-row:active { padding-left: 18px; background: var(--dark2); }
  .svc-row--protesis { margin: 0; border-left: 3px solid var(--gold); border-radius: 8px; }
  .svc-row__left { max-width: 100%; margin-bottom: 10px; }
  .svc-row__left h3 { font-size: .92rem; margin-bottom: 4px; line-height: 1.3; }
  .svc-row__left p { font-size: .76rem; line-height: 1.4; color: var(--stone-l); }
  .svc-row__dots { display: none; }
  .svc-row__right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--dark2);
  }
  .svc-row__price { font-size: 1.25rem; }
  .svc-row__time {
    font-size: .7rem;
    font-weight: 500;
    color: var(--stone-l);
    background: var(--dark2);
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .02em;
  }

  /* Star row en mobile */
  .svc-row--star {
    margin: 0;
    border-left: 2px solid var(--gold);
    background: rgba(12,10,9,.6);
  }

  /* CTA */
  .svc-items__cta { margin-top: 20px; }
}

@media (max-width: 480px) {
  .services { padding: 48px 16px; }
  .services::before { left: 16px; right: 16px; }
  .svc-row { padding: 16px; }
  .svc-row__price { font-size: 1.2rem; }
}

/* ════════════════════════════════════════════════════
   LOCATION
════════════════════════════════════════════════════ */
.loc {
  position: relative;
  overflow: hidden;
  background: var(--black2);
}
.loc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
}
.loc__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}

/* Header */
.loc__header {
  margin-bottom: 56px;
}
.loc__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.loc__label span:not(.line-gold) {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.loc__title {
  font-family: var(--fh);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .03em;
  overflow: hidden;
}
.loc-line {
  display: block;
  overflow: hidden;
}
.loc-line span {
  display: block;
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: var(--white);
}
.loc-line--gold span {
  color: var(--gold);
}

/* Grid */
.loc__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Mapa */
.loc__map {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--dark2);
}
.loc__map iframe {
  width: 100%;
  height: 100%;
  filter: brightness(.8) contrast(1.1) saturate(.3) hue-rotate(15deg);
  transition: filter .4s var(--ease);
}
.loc__map:hover iframe {
  filter: brightness(.85) contrast(1.05) saturate(.5) hue-rotate(15deg);
}
/* Esquina decorativa dorada */
.loc__map::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}
.loc__map::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}

/* Info cards */
.loc__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loc__card {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  background: var(--dark);
  border-left: 2px solid transparent;
  transition: all .3s var(--ease);
}
.loc__card:hover {
  border-left-color: var(--gold);
  background: var(--dark2);
}
.loc__card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark2);
  flex-shrink: 0;
  transition: all .3s var(--ease);
}
.loc__card:hover .loc__card-icon {
  border-color: var(--gold);
}
.loc__card-icon i, .loc__card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.loc__card strong {
  display: block;
  font-size: .85rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.loc__card p {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
}
.loc__card p em {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}
.loc__card a {
  color: var(--gold);
  transition: color .2s;
}
.loc__card a:hover {
  color: var(--gold-l);
  text-decoration: underline;
}

/* Actions */
.loc__actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Frase de cierre */
.loc__footer {
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--dark2);
}
.loc__closing {
  font-family: var(--fh);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--stone-l);
  letter-spacing: .04em;
}

/* ── LOCATION RESPONSIVE ── */
@media (max-width: 1024px) {
  .loc__wrap { padding: 80px 32px; }
  .loc::before { left: 32px; right: 32px; }
}

@media (max-width: 768px) {
  .loc__wrap { padding: 56px 20px; }
  .loc::before { left: 20px; right: 20px; }
  .loc__header { margin-bottom: 32px; }
  .loc__grid { grid-template-columns: 1fr; gap: 20px; }
  .loc__map { aspect-ratio: 4/3; min-height: 220px; }
  .loc__info { gap: 8px; }
  .loc__card { padding: 16px 18px; gap: 14px; border-radius: 6px; }
  .loc__card-icon { width: 36px; height: 36px; }
  .loc__card strong { font-size: .82rem; }
  .loc__card p { font-size: .8rem; }
  .loc__actions { flex-direction: column; gap: 10px; margin-top: 16px; }
  .loc__actions .btn { width: 100%; justify-content: center; padding: 15px 24px; }
  .loc-line span { font-size: clamp(1.8rem, 9vw, 3rem); }
  .loc__footer { padding-top: 32px; }
}

@media (max-width: 480px) {
  .loc__wrap { padding: 40px 16px; }
  .loc::before { left: 16px; right: 16px; }
  .loc__card { padding: 14px 16px; }
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--dark2);
  background: var(--black);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 48px;
}
.footer__logo {
  height: 34px;
  margin-bottom: 14px;
}
.footer__left p {
  font-size: .82rem;
  color: var(--stone-l);
  max-width: 260px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.footer__social {
  display: flex;
  gap: 8px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark2);
  color: var(--stone-l);
  transition: all .3s var(--ease);
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer__social a i, .footer__social a svg {
  width: 15px;
  height: 15px;
}
.footer__col h4 {
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: .82rem;
  color: var(--stone-l);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer__col a:hover {
  color: var(--white);
}
.footer__bottom {
  border-top: 1px solid var(--dark2);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
}
.footer__bottom p {
  font-size: .72rem;
  color: var(--stone);
  letter-spacing: .04em;
  text-align: center;
}

/* ── FOOTER RESPONSIVE ── */
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
  .footer__bottom { padding: 20px; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px 28px; }
  .footer__bottom { padding: 16px; }
}

/* ════════════════════════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  transition: all .3s var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .45);
}
.wa-float svg {
  width: 26px;
  height: 26px;
}
/* Pulso verde */
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-float { bottom: 20px; left: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ════════════════════════════════════════════════════
   CHATBOT
════════════════════════════════════════════════════ */
.chat {
  position: fixed;
  bottom: 0;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

/* ── Hero / Mascot area ── */
.chat__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

/* Speech bubble */
.chat__speech {
  position: relative;
  background: var(--gold);
  color: var(--black);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: 12px;
  white-space: nowrap;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
  animation: speechBounce 3s ease-in-out infinite;
  transform-origin: bottom center;
  opacity: 1;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat__speech-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold);
}
@keyframes speechBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
/* Ocultar speech cuando chat está abierto */
.chat.open .chat__speech { opacity: 0; transform: scale(.8); pointer-events: none; }

/* Mascot container */
.chat__mascot {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform .3s var(--ease);
}
.chat__hero:hover .chat__mascot {
  transform: scale(1.06);
}
.chat__mascot-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}
.chat__mascot-img--idle {
  opacity: 1;
  animation: mascotFloat 3.5s ease-in-out infinite;
}
.chat__mascot-img--active {
  opacity: 0;
  transform: scale(.9);
}
/* Al abrir: mostrar el activo */
.chat.open .chat__mascot-img--idle { opacity: 0; transform: scale(.9); }
.chat.open .chat__mascot-img--active { opacity: 1; transform: scale(1); animation: mascotFloat 3.5s ease-in-out infinite; }

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Glow detrás del muñeco */
.chat__mascot-glow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
  filter: blur(12px);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50% { opacity: .8; transform: translateX(-50%) scale(1.15); }
}

/* Sombra en el piso */
.chat__mascot-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.35) 0%, transparent 70%);
  animation: shadowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .35; }
  50% { transform: translateX(-50%) scaleX(.85); opacity: .2; }
}

/* Ventana del chat */
.chat__window {
  display: none;
  width: 370px;
  max-height: 500px;
  background: var(--black2);
  border: 1px solid var(--dark2);
  border-radius: 16px 16px 4px 16px;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,.55);
  position: absolute;
  bottom: 130px;
  right: 0;
  animation: chatWindowIn .35s var(--ease);
}
@keyframes chatWindowIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat.open .chat__window {
  display: flex;
}

/* Head */
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--dark);
  border-bottom: 1px solid var(--dark2);
}
.chat__head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat__head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--dark2);
  padding: 2px;
}
.chat__head strong {
  display: block;
  font-size: .85rem;
  color: var(--white);
}
.chat__head span {
  font-size: .68rem;
  color: var(--gold);
}
.chat__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-l);
  transition: color .2s;
}
.chat__close:hover { color: var(--white); }
.chat__close i, .chat__close svg { width: 16px; height: 16px; }

/* Messages */
.chat__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: var(--dark2) transparent;
}
.chat__msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat__msg--bot { align-self: flex-start; }
.chat__msg--user { align-self: flex-end; flex-direction: row-reverse; }
.chat__msg-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--dark);
  padding: 2px;
  flex-shrink: 0;
}
.chat__bubble {
  padding: 10px 14px;
  font-size: .8rem;
  line-height: 1.5;
  max-width: 240px;
  border-radius: 12px 12px 12px 2px;
}
.chat__msg--bot .chat__bubble {
  background: var(--dark);
  color: var(--text-l);
  border: 1px solid var(--dark2);
}
.chat__msg--user .chat__bubble {
  background: var(--gold);
  color: var(--black);
  border-radius: 12px 12px 2px 12px;
}
.chat__bubble strong { color: var(--gold); }
.chat__msg--user .chat__bubble strong { color: var(--black); }
.chat__bubble a { color: var(--gold); text-decoration: underline; }
.chat__msg--bot .chat__bubble a { color: var(--gold-l); }

/* Options */
.chat__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: var(--dark);
  border-top: 1px solid var(--dark2);
}
.chat__opts button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text);
  background: var(--black2);
  border: 1px solid var(--dark2);
  transition: all .2s var(--ease);
}
.chat__opts button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.chat__opts button i, .chat__opts button svg {
  width: 12px;
  height: 12px;
}

/* Typing dots */
.chat__bubble--typing {
  display: flex;
  gap: 4px;
  padding: 12px 18px !important;
}
.chat__bubble--typing span {
  width: 7px;
  height: 7px;
  background: var(--stone);
  border-radius: 50%;
  animation: typeDot .9s ease-in-out infinite;
}
.chat__bubble--typing span:nth-child(2) { animation-delay: .15s; }
.chat__bubble--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typeDot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Bounce attention on mascot */
.chat__hero--bounce .chat__mascot {
  animation: mascotBounce .7s ease;
}
@keyframes mascotBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.1) translateY(-12px); }
  50% { transform: scale(.97) translateY(0); }
  70% { transform: scale(1.05) translateY(-5px); }
}

/* ── CHAT RESPONSIVE ── */
@media (max-width: 768px) {
  .chat { right: 12px; }
  .chat__mascot { width: 100px; height: 100px; }
  .chat__mascot-img { width: 90px; height: 90px; }
  .chat__mascot-glow { width: 65px; height: 65px; }
  .chat__mascot-shadow { width: 55px; }
  .chat__speech { font-size: .72rem; padding: 7px 13px; }
  .chat__window { width: calc(100vw - 32px); max-width: 370px; bottom: 110px; }
}
@media (max-width: 480px) {
  .chat { right: 8px; }
  .chat__mascot { width: 90px; height: 90px; }
  .chat__mascot-img { width: 80px; height: 80px; }
  .chat__window { width: calc(100vw - 24px); bottom: 100px; }
}

/* ════════════════════════════════════════════════════
   MOBILE FIXES — responsive global
════════════════════════════════════════════════════ */

/* Evitar overflow horizontal en todo el sitio */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 768px) {

  /* ── NAV ── */
  .nav { padding: 0 16px; height: 64px; }
  .nav__logo img { height: 32px; }
  .nav__burger { display: flex; width: 32px; height: 24px; cursor: pointer; }
  .nav__menu { z-index: 95; padding: 0 24px 64px; }
  .nav__menu .nav__link { font-size: clamp(1.8rem, 7vw, 2.8rem); padding: 14px 0; min-height: 56px; display: flex; align-items: center; }

  /* ── HERO ── */
  .hero { padding: 100px 20px 56px; min-height: 100dvh; }
  .hero__content { max-width: 100%; }
  .hero__tag { margin-bottom: 20px; }
  .hero__title-line span { font-size: clamp(2.6rem, 13vw, 4rem); line-height: .9; }
  .hero__desc { font-size: .88rem; max-width: 100%; margin-bottom: 28px; }
  .hero__desc br { display: none; }
  .hero__scroll { display: none; }
  .hero__actions { gap: 10px; flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; font-size: .85rem; padding: 16px 24px; min-height: 52px; }

  /* ── ABOUT ── */
  .about__marquee-track { gap: 20px; }

  /* ── SERVICES ── */
  .svc-items__cta .btn { width: 100%; justify-content: center; min-height: 52px; }

  /* ── FOOTER ── */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 32px; }
  .footer__left p { max-width: 100%; }
  .footer__bottom { padding: 16px 20px; }

  /* ── CHAT ── */
  .chat { right: 10px; bottom: 0; }
  .chat__mascot { width: 86px; height: 86px; }
  .chat__mascot-img { width: 76px; height: 76px; }
  .chat__speech { font-size: .7rem; padding: 6px 11px; max-width: 160px; }
  .chat__window { width: calc(100vw - 20px); right: 0; left: 10px; max-width: none; bottom: 96px; }

  /* ── WA FLOAT ── */
  .wa-float { bottom: 16px; left: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ── Tap feedback: sin hover en touch, solo active ── */
@media (hover: none) {
  .svc-row:hover { padding-left: 0; background: transparent; }
  .svc-row:active { background: var(--dark2) !important; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn:active { opacity: .85; transform: scale(.98); }
  .loc__card:hover { border-left-color: transparent; background: var(--dark); }
  .loc__card:active { background: var(--dark2); border-left-color: var(--gold); }
  .svc-cat:hover { background: transparent; border-left-color: transparent; }
  .svc-cat:active { background: var(--dark); }
}

@media (max-width: 480px) {
  /* ── NAV ── */
  .nav { padding: 0 14px; height: 58px; }
  .nav__logo img { height: 28px; }

  /* ── HERO ── */
  .hero { padding: 88px 16px 48px; }
  .hero__title-line span { font-size: clamp(2.2rem, 14vw, 3.5rem); }
  .hero__desc { font-size: .84rem; margin-bottom: 24px; }
  .hero__actions .btn { font-size: .82rem; padding: 15px 20px; }

  /* ── SERVICES ── */
  .svc-cats__list { gap: 6px; }
  .svc-cat { padding: 12px 8px; min-height: 52px; }
  .svc-cat__name { font-size: .78rem; }
  .svc-row { padding: 14px 16px; }
  .svc-row__price { font-size: 1.15rem; }

  /* ── FOOTER ── */
  .footer__inner { padding: 36px 16px 28px; gap: 24px; }
  .footer__bottom { padding: 14px 16px; }

  /* ── CHAT ── */
  .chat__window { left: 8px; width: calc(100vw - 16px); }
  .chat { right: 8px; }
}

@media (max-width: 360px) {
  .hero__title-line span { font-size: clamp(2rem, 15vw, 3rem); }
  .nav { padding: 0 12px; }
  .about__numbers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about__num-val { font-size: 1.7rem; }
}

/* ── iOS Safari fixes ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .wa-float { left: max(14px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .chat { right: max(10px, env(safe-area-inset-right)); }
  .footer__bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* 100dvh fix para iOS Safari (el 100vh incluye la barra del browser) */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}
@media (max-width: 768px) {
  @supports (height: 100dvh) {
    .nav__menu { min-height: 100dvh; }
  }
}
