/* ═══════════════════════════════════════════════════════
   GALLIA — Global Styles v2
   Más visual, menos minimalista.
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --blue-900: #001f3f;
  --blue-800: #002d4d;
  --blue-700: #004a7c;
  --blue-600: #005a96;
  --blue-500: #0070b8;
  --blue-400: #2d8fd4;
  --blue-100: #dbeeff;
  --blue-50:  #eff7ff;

  --teal-700: #0a7a6e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --gold-500: #d4a017;
  --gold-100: #fef3c7;

  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  /* Arena — tomado del folleto de habitaciones y la carpeta institucional.
     --arena-200 (#e2d8d3) es el color exacto del impreso. */
  --arena-50:  #f6f2f0;
  --arena-100: #ebe2df;
  --arena-200: #e2d8d3;
  --arena-300: #d8ceca;
  --arena-600: #8a7d76;
  --arena-800: #554d49;

  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Solo para la palabra GALLIA del logo, en caja alta. Candara es la
     del logo institucional impreso y solo está instalada en Windows;
     en Mac y celulares cae a DM Sans. Al ser una sola palabra en
     mayúsculas la diferencia es chica, pero lo definitivo sigue siendo
     vectorizar el lockup y usarlo como SVG. */
  --font-logo: Candara, 'Trebuchet MS', var(--font);

  /* Escala de radios unificada en el mínimo (ver bloque "ESTÉTICA
     CUADRADA" al final del archivo). No cambiar acá: tocá --radius-base. */
  --radius-xs: 4px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-xl: 4px;
  --radius-full: 4px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);
  --shadow-blue: 0 8px 32px rgba(0,74,124,0.18);
  --shadow-teal: 0 8px 24px rgba(13,148,136,0.22);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1300px;
  --nav-h: 72px;
}

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

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── TOP BAR ─────────────────────────────────────────── */
.top-bar {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 9px 0;
  letter-spacing: 0.01em;
}
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar__left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.top-bar__item { display: flex; align-items: center; gap: 6px; }
.top-bar__item svg { width: 13px; height: 13px; opacity: 0.7; flex-shrink: 0; }
.top-bar__item a:hover { color: var(--teal-400); }
.top-bar__right { display: flex; align-items: center; gap: 18px; }
.top-bar__faq {
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: color var(--transition);
  white-space: nowrap;
}
.top-bar__faq:hover { color: var(--teal-400); }
.top-bar__social { display: flex; gap: 8px; align-items: center; }
.top-bar__social a {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.top-bar__social a:hover { background: var(--teal-600); }
.top-bar__social svg { width: 13px; height: 13px; }
@media(max-width:640px){ .top-bar { display: none; } }

/* ── HEADER ──────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.3rem; color: var(--blue-800); letter-spacing: -0.02em; }
.logo__mark { display: flex; align-items: center; justify-content: center; }
.logo__mark img { width: 42px; height: 46px; object-fit: contain; display: block; }
.logo__mark-fallback { color: var(--white); font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; }
/* El ancho de la columna lo marca GALLIA, que siempre es la más ancha; el
   subtítulo se estira a ese ancho repartiendo sus letras (los spans los
   genera layout.js). Así los dos renglones miden lo mismo con cualquier
   tipografía, que es justo lo que el letter-spacing fijo no garantiza. */
.logo__text { display: flex; flex-direction: column; align-items: stretch; width: fit-content; min-width: 0; }
.logo__name {
  font-family: var(--font-logo);
  font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.05; white-space: nowrap;
}
.logo__sub {
  display: flex; justify-content: space-between;
  font-weight: 600; font-size: 0.62rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0;
  margin-top: 4px; white-space: nowrap;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 8px 13px; font-size: 0.985rem; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--blue-700); background: var(--blue-50); }
.nav__sep { width: 1px; height: 20px; background: var(--gray-200); margin: 0 4px; }

/* Especialidades dropdown trigger */
.nav__drop { position: relative; }
.nav__drop > .nav__link { display: flex; align-items: center; gap: 5px; }
.nav__drop > .nav__link::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}
.nav__drop:hover > .nav__link::after,
.nav__drop:focus-within > .nav__link::after { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 860px; max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 28px 32px 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}
.nav__drop:hover .mega-menu,
.nav__drop:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.mega-menu__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }
.mega-menu__ver-todas {
  font-size: 0.8rem; color: var(--blue-600); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.mega-menu__ver-todas:hover { color: var(--teal-600); }
.mega-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: start; }
.mega-menu__col { display: flex; flex-direction: column; gap: 18px; }
.mega-menu__group { margin-bottom: 12px; }
.mega-menu__group-title {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue-700);
  margin-bottom: 6px; padding: 0 8px;
}
.mega-menu__group ul { list-style: none; }
.mega-menu__group ul li a {
  display: block; padding: 5px 8px; font-size: 0.82rem; color: var(--gray-600);
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.mega-menu__group ul li a:hover { color: var(--blue-700); background: var(--blue-50); padding-left: 12px; }

/* Header CTA */
.btn-nav-desktop { display: flex; align-items: center; gap: 10px; }
.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white);
  font-weight: 600; font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: var(--shadow-teal);
  white-space: nowrap;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(13,148,136,0.35); }
.btn-nav-cta svg { width: 15px; height: 15px; }

/* Mobile toggle */
.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--gray-700); border-radius: var(--radius-sm); }
.mobile-toggle svg { width: 22px; height: 22px; }
@media(max-width:1200px){ .nav, .btn-nav-desktop { display: none; } .mobile-toggle { display: flex; } }
@media(max-width:860px){ .top-bar__faq { display: none; } }
@media(max-width:600px){
  .header__inner { height: 60px; }
  .logo { font-size: 1.12rem; gap: 9px; }
  .logo__name { font-size: 1.24rem; letter-spacing: 0.02em; }
  .logo__mark img { width: 34px; height: 38px; }
  .logo__sub { font-size: 0.53rem; }
}

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 2000; }
.mobile-nav.active { display: block; }
.mobile-nav__overlay { position: absolute; inset: 0; background: rgba(0,20,40,0.5); backdrop-filter: blur(4px); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0;
  width: 300px; max-width: 88vw; height: 100%;
  background: var(--white); padding: 20px 24px;
  overflow-y: auto;
  animation: slideInRight 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.mobile-nav__close { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: var(--radius-sm); margin-left: auto; margin-bottom: 20px; }
.mobile-nav__close svg { width: 18px; height: 18px; }
.mobile-nav__links > li { border-bottom: 1px solid var(--gray-100); }
.mobile-nav__links > li > a,
.mobile-nav__links > li > button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 13px 0; font-size: 0.95rem; font-weight: 500; color: var(--gray-800);
}
.mobile-nav__sub { display: none; list-style: none; padding: 4px 0 12px 12px; }
.mobile-nav__sub.open { display: block; }
.mobile-nav__sub li a { display: block; padding: 6px 0; font-size: 0.85rem; color: var(--gray-600); }
.mobile-nav__cta { display: block; text-align: center; padding: 13px; background: var(--teal-600); color: var(--white); font-weight: 600; border-radius: var(--radius-full); margin-top: 20px; }

/* ── SECTION UTILITIES ────────────────────────────────── */
.section { padding: 80px 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 112px 0; }
.section--dark { background: var(--blue-900); color: var(--white); }
.section--gray { background: var(--gray-50); }

/* ── ARENA ──────────────────────────────────────────────────────────
   Alterna con el blanco para que la página deje de leerse plana.
   Se usa SOLO en algunas secciones: el blanco sigue siendo dominante.
   Para subir o bajar la intensidad, cambiar --arena-100 por --arena-200
   (el tono exacto del folleto) o --arena-50 (más suave).
   ─────────────────────────────────────────────────────────────────── */
.section--arena { background: var(--arena-100); }

/* Filigrana del isotipo, como en el folleto. Va sobre arena, nunca sobre
   blanco: en blanco se ve sucia. */
.section--marca { position: relative; overflow: hidden; }
.section--marca::before {
  content: '';
  position: absolute;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(620px, 55%); aspect-ratio: 1/1;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='276 219 528 587'%3E%3Cpath fill='%238a7d76' d='M796.1 326.1c2.1 5.5 2.8 11.1 2.9 16.7 1.4 53.1-13.4 101.6-42.6 145.8-30.5 46.1-72.1 78-124.4 95.8-23.4 7.9-47.7 11.2-72.3 12.7-24.8 1.5-49.7.5-74.5 1.2-39.9 1.1-78.7 7.9-115.2 24.4-35.4 16.1-64 40.2-83.8 74.1-.4.8-1.1 1.4-2.3 2.7-3.6-12.6-3.5-24.7-2.1-36.6 3.8-33.7 14.4-65.1 32.8-93.8 23-35.8 55.5-59.5 93.9-76.4 39.5-17.3 81.3-26.1 123.5-33.8 44.8-8.2 90.1-14.4 133.4-29 54.5-18.3 97.8-51.4 127.7-101.1.6-.9.8-2.2 3-2.7z'/%3E%3C/svg%3E");
  opacity: 0.16;
  pointer-events: none;
}
.section--marca > .container { position: relative; z-index: 1; }
@media(max-width:820px){ .section--marca::before { width: 78%; right: -18%; opacity: 0.12; } }
.section--blue-soft { background: var(--blue-50); }
.section--teal-soft { background: var(--teal-50); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-600); margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--teal-500); border-radius: 2px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--gray-900); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 16px; }
.section-title em { font-style: normal; color: var(--blue-700); }
.section-title--white { color: var(--white); }
.section-title--white em { color: var(--teal-400); }
/* text-wrap: balance reparte las líneas parejo y evita que quede una
   palabra sola colgando en el último renglón. */
.section-desc { font-size: 1.05rem; color: var(--gray-600); line-height: 1.75; max-width: 600px; text-wrap: balance; }
.section-desc--white { color: rgba(255,255,255,0.75); }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-label { justify-content: center; }
.section-header--center .section-desc { margin: 0 auto; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  transition: all var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: var(--white); box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,148,136,0.38); }

.btn-secondary { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,74,124,0.35); }

.btn-outline { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-ghost { background: transparent; color: var(--teal-600); font-weight: 600; }
.btn-ghost:hover { color: var(--teal-700); text-decoration: underline; }

.btn-wa { background: #25D366; color: var(--white); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn-wa:hover { background: #1ebe57; transform: translateY(-2px); }

.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── PAGE HEADER (inner pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--teal-700) 100%);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.page-hero__breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.page-hero__breadcrumb a:hover { color: var(--teal-400); }
.page-hero__breadcrumb span { color: var(--teal-400); }
.page-hero__label { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-400); margin-bottom: 16px; }
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; text-wrap: balance; }
.page-hero__desc { font-size: 1.1rem; color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 580px; text-wrap: balance; }

/* ── PROFESSIONAL CARDS ───────────────────────────────── */
.prof-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media(max-width:1100px){ .prof-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:820px){ .prof-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:560px){ .prof-grid { grid-template-columns: repeat(2, 1fr); } }
.prof-grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

.prof-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.prof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.prof-card__photo {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prof-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-card__initials {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--teal-600));
  color: var(--white); font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.prof-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.prof-card__name { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; line-height: 1.3; }
.prof-card__esp { font-size: 0.78rem; font-weight: 600; color: var(--teal-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.prof-card__desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.prof-card__mat { font-size: 0.75rem; color: var(--gray-400); margin-top: 10px; }

/* ── ESPECIALIDAD CARDS ───────────────────────────────── */
.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.esp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.esp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
  opacity: 0;
  transition: opacity var(--transition);
}
.esp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.esp-card:hover::before { opacity: 1; }
.esp-card__icon { font-size: 1.8rem; line-height: 1; }
.esp-card__name { font-size: 1rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.esp-card__bajada { font-size: 0.85rem; color: var(--gray-600); line-height: 1.42; flex: 1; }
.esp-card__link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--blue-600); margin-top: 4px; transition: color var(--transition); }
.esp-card__link:hover { color: var(--teal-600); }
.esp-card__link svg { width: 14px; height: 14px; }

/* ── REVISTA / BLOG CARDS ─────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-100), var(--teal-100));
  overflow: hidden; position: relative;
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--blue-400); font-size: 2.5rem; }
.blog-card__cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue-700); color: var(--white);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--gray-400); margin-bottom: 10px; }
.blog-card__meta svg { width: 12px; height: 12px; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 10px; transition: color var(--transition); }
.blog-card:hover .blog-card__title { color: var(--blue-700); }
.blog-card__bajada { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; flex: 1; }
.blog-card__footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.blog-card__autor { font-size: 0.78rem; color: var(--teal-600); font-weight: 600; }
.blog-card__leer { font-size: 0.8rem; font-weight: 600; color: var(--blue-600); display: flex; align-items: center; gap: 4px; }

/* ── ACCORDION ────────────────────────────────────────── */
.accordion { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--gray-200); }
.accordion__item:last-child { border-bottom: none; }
.accordion__btn {
  width: 100%; text-align: left; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.95rem; font-weight: 600; color: var(--gray-800);
  background: var(--white); transition: background var(--transition);
}
.accordion__btn:hover { background: var(--gray-50); }
.accordion__btn.open { color: var(--blue-700); background: var(--blue-50); }
.accordion__arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-400); transition: transform var(--transition); }
.accordion__btn.open .accordion__arrow { transform: rotate(180deg); color: var(--blue-600); }
.accordion__content { display: none; padding: 0 22px 18px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }
.accordion__content.open { display: block; }

/* ── BLOQUES EDITORIALES DE ESPECIALIDAD ──────────────── */
/*  Contenido curado que se inyecta desde data/bloques.json
    (ej: el grupo GITOS en Cirugía de la Obesidad).          */
.bloques-esp { margin-top: 40px; }
.bloques-esp > * + * { margin-top: 40px; }

.bloque-sec__titulo {
  font-size: 1.28rem; font-weight: 700; color: var(--gray-900);
  line-height: 1.3; margin-bottom: 20px; text-wrap: balance;
}

/* Destacado */
.bloque-dest {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.bloque-dest__head { margin-bottom: 14px; }
.bloque-dest__sigla {
  display: inline-block; margin-bottom: 9px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm); padding: 5px 11px;
}
.bloque-dest__titulo {
  font-size: 1.2rem; font-weight: 700; color: var(--blue-800);
  line-height: 1.3; text-wrap: balance;
}
.bloque-dest__texto { font-size: 0.95rem; color: var(--gray-700); line-height: 1.75; }
.bloque-dest__texto p + p { margin-top: 14px; }
.bloque-dest__texto strong { color: var(--gray-900); font-weight: 700; }
.bloque-dest__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--blue-100);
}
.bloque-dest__chip {
  font-size: 0.78rem; font-weight: 600; color: var(--blue-700);
  background: var(--white); border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: 6px 12px;
}

/* Etapas numeradas */
.bloque-etapas__lista { list-style: none; display: grid; gap: 18px; }
.bloque-etapas__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.bloque-etapas__num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--white);
  background: var(--blue-700); border-radius: var(--radius-sm);
}
.bloque-etapas__titulo { font-size: 0.98rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.bloque-etapas__texto { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

/* Acordeón con nota al pie */
.bloque-acord__nota {
  margin-top: 12px;
  font-size: 0.8rem; color: var(--gray-500); line-height: 1.6;
  font-style: italic;
}

@media (max-width: 560px) {
  .bloque-dest { padding: 22px 20px; }
  .bloque-etapas__item { padding: 16px; gap: 13px; }
}

/* ── CONTACT SECTION ──────────────────────────────────── */
.contacto-cta {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 50%, var(--teal-700));
  padding: 80px 0; color: var(--white); text-align: center; position: relative; overflow: hidden;
}
.contacto-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.15), transparent 70%);
  pointer-events: none;
}
.contacto-cta__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.contacto-cta__desc { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 32px; }
.contacto-cta__buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand .logo { color: var(--white); margin-bottom: 16px; }
.footer__brand .logo__sub { color: #9cc3e5; }
.footer__brand p { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer__brand-social { display: flex; gap: 8px; margin-top: 20px; }
.footer__brand-social a { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.footer__brand-social a:hover { background: var(--teal-600); }
.footer__brand-social svg { width: 15px; height: 15px; }
.footer__col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 16px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__links a:hover { color: var(--teal-400); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 8px 20px; }
/* Crédito de Estudio Alba */
.footer__credit { margin-left: auto; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__credit a { color: rgba(255,255,255,0.62); font-weight: 600; transition: color var(--transition); }
.footer__credit a:hover { color: var(--teal-400); }
@media(max-width:700px){ .footer__credit { margin-left: 0; } }

@media(max-width:900px){
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width:540px){
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── BADGES / TAGS ────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-teal { background: var(--teal-100); color: var(--teal-700); }
.badge-gold { background: var(--gold-100); color: var(--gold-500); }

/* ── FORM STYLES ─────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.form-control {
  padding: 11px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font); font-size: 0.9rem;
  color: var(--gray-800); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(0,112,184,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--gray-200); margin: 0; }
.divider--gap { margin: 40px 0; }

/* ── FADE ANIMATIONS ─────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ── FLOATING WA BUTTON ───────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 3s infinite 2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.55); animation: none; }
.wa-float svg { width: 28px; height: 28px; color: var(--white); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ── LOADING ─────────────────────────────────────────── */
.loading-spinner { display: flex; justify-content: center; padding: 60px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--gray-200); border-top-color: var(--blue-600); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Intro por grupo en catálogo de especialidades */
.esp-group__intro { font-size: .93rem; color: var(--gray-600); line-height: 1.7; max-width: 720px; margin: -12px 0 22px; }

/* CTA en tarjetas de profesionales — visible al hacer hover sobre la tarjeta */
.prof-card__cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  align-self: stretch;
  font-size: 0.82rem; font-weight: 700;
  color: #16a34a;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
}
.prof-card:hover .prof-card__cta {
  opacity: 1;
  transform: translateY(0);
  border-top-color: var(--gray-100);
}
.prof-card__cta:hover { color: #15803d; }
.prof-card__cta svg { color: #16a34a; }
/* En pantallas táctiles no hay hover: el botón queda siempre visible */
@media (hover: none) {
  .prof-card__cta { opacity: 1; transform: none; border-top-color: var(--gray-100); }
}

/* ══════════════════════════════════════════════════════════════
   ESTÉTICA CUADRADA — radio mínimo unificado (2026-08-19)
   Todo el sitio usa un único radio de 4px: apenas suaviza la
   esquina sin volver al look redondeado. Para cambiarlo, tocá
   SOLO --radius-base y se propaga a todo.
   Barre además los radios sueltos que quedaron hardcodeados en
   el HTML y en los templates de JS (fotos de médicos, facade del
   video, botones, tags, cards de revista, inputs).
   ══════════════════════════════════════════════════════════════ */
:root { --radius-base: 4px; }

*, *::before, *::after { border-radius: var(--radius-base) !important; }

/* Estructura de página y bandas full-bleed: siempre a 0.
   Con radio se les ven esquinas blancas contra el fondo. */
html, body,
section, .section, .container, .hero,
.header, .top-bar, .page-hero, .stats-band, .contacto-cta, .footer,
#gallia-header, #gallia-footer,
.mobile-nav, .mobile-nav__panel,
.splash, .splash__inner { border-radius: 0 !important; }

/* El spinner necesita ser círculo o la animación no se lee. */
.spinner { border-radius: 50% !important; }

/* ══════════════════════════════════════════════════════════════
   BANNER DESTACADO — componente compartido (home + especialidades)
   Reemplaza al .esp-highlight que vivía suelto en especialidades.html.
   Variante en fila: envolver varios en .banner-dest-row.
   ══════════════════════════════════════════════════════════════ */
.banner-dest {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--teal-700) 100%);
  padding: 44px 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
  color: var(--white);
  position: relative; overflow: hidden;
}
.banner-dest__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-400); margin-bottom: 12px; }
.banner-dest__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.banner-dest__desc { font-size: 0.93rem; color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 560px; }
.banner-dest__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.banner-dest__actions .btn { white-space: nowrap; }
@media(max-width:820px){
  .banner-dest { grid-template-columns: 1fr; padding: 34px 26px; }
  .banner-dest__actions { flex-direction: row; flex-wrap: wrap; }
}

/* ── BANNER IMAXIS ─────────────────────────────────────
   Imaxis es una marca aparte, no una sección de Gallia: el banner va
   sobre fondo claro para que el logo se lea con sus colores propios,
   en vez de teñirse del azul institucional. */
.banner-imaxis {
  background: var(--white);
  border: 1px solid var(--arena-300);
  border-top: 3px solid var(--blue-700);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.banner-imaxis__logo { width: 190px; height: auto; margin-bottom: 18px; }
.banner-imaxis__title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700;
  color: var(--blue-800); line-height: 1.2; margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.banner-imaxis__desc { font-size: 0.93rem; color: var(--gray-600); line-height: 1.7; max-width: 620px; }
.banner-imaxis__actions { display: flex; flex-direction: column; gap: 12px; }
.banner-imaxis__actions .btn { justify-content: center; }
@media(max-width:820px){
  .banner-imaxis { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
  .banner-imaxis__logo { width: 150px; margin-bottom: 14px; }
  .banner-imaxis__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Fila de banners compactos (Especialidades: obesidad + diagnóstico + laboratorio) */
.banner-dest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.banner-dest-row .banner-dest {
  grid-template-columns: 1fr; align-content: space-between;
  gap: 22px; padding: 30px 26px;
  /* Arena en vez del azul: estos tres viven al pie del catálogo, debajo de
     una grilla entera de cards azules con foto. En azul se confundían con
     ellas y pasaban desapercibidos. En arena cortan y se leen como otra
     cosa, que es justamente lo que son: servicios, no especialidades. */
  background: var(--arena-200);
  color: var(--arena-800);
  border-top: 3px solid var(--teal-600);
}
.banner-dest-row .banner-dest__label { color: var(--teal-700); }
.banner-dest-row .banner-dest__title { font-size: 1.22rem; margin-bottom: 10px; color: var(--blue-800); }
.banner-dest-row .banner-dest__desc { font-size: 0.85rem; line-height: 1.55; color: var(--arena-800); }
.banner-dest-row .banner-dest__actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
/* Sobre arena el botón fantasma blanco desaparece: pasa a contorno azul. */
.banner-dest-row .btn-outline-white { color: var(--blue-700); border-color: var(--blue-700); }
.banner-dest-row .btn-outline-white:hover { background: var(--blue-700); color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   ESPECIALIDADES CON FOTO
   La foto NO va cruda: va desaturada y bajo un velo del azul
   institucional. Son fotos de orígenes distintos y sin un
   tratamiento común la grilla se convierte en una feria. El velo
   unifica y además garantiza el contraste del texto (blanco sobre
   #002d4d ≈ 13:1, muy por encima del mínimo WCAG AA).

   Convención: /assets/images/especialidades/<id>.jpg (1600x900)
   Si el archivo no existe, la card cae sola a .esp-card--sin-foto.
   ══════════════════════════════════════════════════════════════ */
.esp-card--foto {
  padding: 0;
  border: none;
  background: var(--blue-900);
  min-height: 260px;
  justify-content: flex-end;
  gap: 0;
}
.esp-card__foto { position: absolute; inset: 0; z-index: 0; }
.esp-card__foto img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.72) contrast(1.06) saturate(0.85);
  transition: transform 0.7s cubic-bezier(0.2,0,0.2,1), filter 0.5s ease;
}
.esp-card--foto:hover .esp-card__foto img {
  transform: scale(1.06);
  filter: grayscale(0.1) contrast(1.02) saturate(1);
}
/* El velo: transparente arriba para que la foto se vea, sólido abajo
   para que el texto siempre apoye sobre color plano. */
.esp-card__foto::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,31,63,0.12) 0%,
    rgba(0,45,77,0.52) 42%,
    rgba(0,45,77,0.88) 72%,
    rgba(0,45,77,0.96) 100%);
}
.esp-card__cuerpo {
  position: relative; z-index: 1;
  padding: 20px 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.esp-card--foto .esp-card__name  { color: var(--white); font-size: 1.06rem; }
.esp-card--foto .esp-card__bajada{ color: rgba(255,255,255,0.82); flex: none; }
.esp-card--foto .esp-card__link  { color: var(--teal-400); }
.esp-card--foto .esp-card__link:hover { color: var(--white); }
.esp-card--foto::before { display: none; }
.esp-card--foto:hover { border-color: transparent; }

/* Fallback: todavía no hay foto para esta especialidad.
   Queda solo el degradado institucional. Los íconos se sacaron a pedido
   del cliente (2026-08-24): ensuciaban la card y no aportaban nada. */
.esp-card--sin-foto .esp-card__foto img { display: none; }
.esp-card--sin-foto .esp-card__foto {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--teal-700) 100%);
}
.esp-card--sin-foto .esp-card__foto::after { background: rgba(0,0,0,0.05); }

/* ── Hero de la ficha de especialidad con foto ─────────────────── */
/* Con foto el hero necesita más alto, o la imagen no llega a leerse. */
.page-hero--foto { padding: 96px 0 84px; }
.page-hero--foto .page-hero__foto {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero--foto .page-hero__foto img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.5) contrast(1.05);
}
/* Mismo criterio que en las cards: el degradado institucional manda,
   la foto aporta textura. El texto vive sobre la mitad sólida. */
.page-hero--foto .page-hero__foto::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0,31,63,0.95) 0%,
    rgba(0,45,77,0.88) 45%,
    rgba(0,74,124,0.62) 72%,
    rgba(10,122,110,0.48) 100%);
}
@media(max-width:820px){
  .page-hero--foto .page-hero__foto::after {
    background: linear-gradient(180deg, rgba(0,31,63,0.90) 0%, rgba(0,45,77,0.93) 100%);
  }
}
/* Sin foto todavía: vuelve al degradado institucional de siempre. */
.page-hero--sin-foto .page-hero__foto { display: none; }
