/* Quisilema Medical Group · Modelo 4 (Simple e informativo estilo Stripe) · «Línea y proporción» */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F4F0;
  --bg-subtle: #EFECE6;
  --surface: #FFFFFF;
  --surface-alt: #FAF9F6;
  --text: #141414;
  --muted: #52504B;
  --dim: #78756E;
  --border: rgba(20, 20, 20, 0.08);
  --border-strong: rgba(20, 20, 20, 0.16);
  --gold: #E3BD74;
  --gold-glow: rgba(227, 189, 116, 0.45);
  --gold-text: #7A5A1C;
  --gold-tint: rgba(227, 189, 116, 0.12);
  --dark: #141414;
  --dark-hover: #262626;

  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 3.5vw, 3.5rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 12px 32px -8px rgba(227, 189, 116, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--dark);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

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

.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;
}

/* ═══════════ TRANSICIÓN ENTRE PÁGINAS (LÍNEA DORADA Y VELO) ═══════════ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.page-transition .pt-curtain {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-in-out);
}

.page-transition .pt-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 4px;
  background: linear-gradient(180deg, rgba(227,189,116,0.2) 0%, #E3BD74 50%, rgba(227,189,116,0.2) 100%);
  box-shadow: 0 0 24px 4px rgba(227,189,116,0.9), 0 0 8px 1px #E3BD74;
  transform: translateX(-100vw);
  transition: transform 0.45s var(--ease-in-out);
}

.page-transition.is-leaving {
  visibility: visible;
}
.page-transition.is-leaving .pt-curtain {
  transform: translateX(0);
}
.page-transition.is-leaving .pt-line {
  transform: translateX(100vw);
}

html.page-entering .page-transition {
  visibility: visible;
}
html.page-entering .page-transition .pt-curtain {
  transform: translateX(0);
  animation: ptReveal 0.5s var(--ease-in-out) forwards;
}
html.page-entering .page-transition .pt-line {
  transform: translateX(0);
  animation: ptLineExit 0.5s var(--ease-in-out) forwards;
}

@keyframes ptReveal {
  0% { transform: translateX(0); }
  100% { transform: translateX(101%); }
}
@keyframes ptLineExit {
  0% { transform: translateX(0); }
  100% { transform: translateX(100vw); }
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}
::view-transition-group(site-header) {
  animation: none;
}

/* ═══════════ ENCABEZADO Y BARRA DE AVISO (COMPACTO EN 1 LÍNEA) ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  view-transition-name: site-header;
}

.demo-bar {
  background: #EAE8E2;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
  padding-block: 0.25rem;
}

.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.demo-bar__msg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-bar__msg .ico-info {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--gold-text);
}
.demo-bar__msg a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.demo-bar__msg a:hover {
  color: var(--gold-text);
}

.demo-bar__models {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.demo-bar__models-label {
  color: var(--dim);
  font-size: 0.72rem;
  margin-right: 0.15rem;
}
.model-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--muted);
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.model-pill:hover {
  color: var(--text);
  background: rgba(20, 20, 20, 0.08);
}
.model-pill.actual,
.model-pill[aria-current="page"] {
  background: #FFFFFF;
  color: var(--gold-text);
  border-color: rgba(227, 189, 116, 0.6);
  box-shadow: 0 1px 4px rgba(227, 189, 116, 0.25);
  font-weight: 600;
}

.main-nav {
  padding-block: 0.45rem;
}
.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background-color: rgba(20, 20, 20, 0.04);
}
.nav-link.actual,
.nav-link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
.nav-link.actual::after,
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ═══════════ BOTONES ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--dark);
  color: #FFFFFF;
}
.btn--primary:hover {
  background-color: var(--dark-hover);
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.2);
}

.btn--gold {
  background: linear-gradient(135deg, #E3BD74 0%, #D4AB5E 100%);
  color: #141414;
  box-shadow: 0 4px 14px rgba(227, 189, 116, 0.35);
}
.btn--gold:hover {
  box-shadow: 0 6px 20px rgba(227, 189, 116, 0.5);
  background: linear-gradient(135deg, #E8C682 0%, #DCB568 100%);
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  background-color: rgba(20, 20, 20, 0.04);
  border-color: var(--text);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-drawer {
  display: none;
}

/* ═══════════ CANVAS MALLA SUAVE CREMA Y DORADA ═══════════ */
.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ═══════════ HERO «LÍNEA Y PROPORCIÓN» ═══════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(0.75rem, 1.2vw, 1.1rem) clamp(0.85rem, 1.4vw, 1.25rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.8vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  background-color: var(--gold-tint);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(227, 189, 116, 0.3);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.hero__title .gold-accent {
  background: linear-gradient(135deg, #141414 40%, #7A5A1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: clamp(0.92rem, 1.02vw, 1.02rem);
  line-height: 1.48;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 1.15rem;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item__val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.trust-item__lbl {
  font-size: 0.74rem;
  color: var(--dim);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ── PIEZA PROTAGONISTA DEL HERO ── */
.proportion-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(227, 189, 116, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.proportion-card--hero {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.proportion-card:hover {
  box-shadow: var(--shadow-lg), 0 0 35px -5px rgba(227, 189, 116, 0.28);
}

.proportion-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
  background: #FAF9F6;
  border-bottom: 1px solid var(--border);
}
.proportion-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.proportion-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.41 / 1;
  max-height: 240px;
  background: radial-gradient(circle at 50% 50%, #FCFBF9 0%, #F5F3ED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proportion-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.golden-grid line,
.golden-grid circle,
.golden-grid rect {
  stroke: rgba(227, 189, 116, 0.2);
  stroke-dasharray: 2 4;
}
.golden-axis {
  stroke: rgba(20, 20, 20, 0.08) !important;
  stroke-dasharray: none !important;
}

.morph-path {
  fill: none;
  stroke: #7A5A1C;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(227, 189, 116, 0.35));
  transition: opacity 0.5s var(--ease), stroke-dashoffset 0.9s var(--ease);
}
.morph-path--gold {
  stroke: #E3BD74;
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  opacity: 0.75;
}

.guide-node {
  fill: #FFFFFF;
  stroke: #7A5A1C;
  stroke-width: 2.2;
  transition: transform 0.3s var(--ease), fill 0.3s;
}

.proportion-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}
.p-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.42rem 0.65rem;
  border-right: 1px solid var(--border);
  text-align: left;
  transition: background-color 0.25s, color 0.25s;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.p-tab:last-child {
  border-right: none;
}
.p-tab:hover {
  background-color: var(--surface-alt);
  color: var(--text);
}
.p-tab.active,
.p-tab[aria-pressed="true"] {
  background-color: #FFFFFF;
  color: var(--text);
}
.p-tab.active::after,
.p-tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
}
.p-tab__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  margin-bottom: 0.1rem;
}
.p-tab__title {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.proportion-card__footer {
  padding: 0.45rem 1rem;
  background: #FAF9F6;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.p-footer-info {
  display: flex;
  flex-direction: column;
}
.p-footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.p-footer-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}
.p-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-text);
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}
.p-footer-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

/* ═══════════ SECCIONES COMUNES Y TIPOGRAFÍA ═══════════ */
.section {
  padding-block: clamp(4rem, 7vw, 7.5rem);
  position: relative;
}
.section--alt {
  background-color: #FAF9F6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ═══════════ TARJETAS DE SERVICIOS LIMPIAS ═══════════ */
.services-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-clean-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  will-change: transform;
}
.service-clean-card:hover {
  box-shadow: var(--shadow-md), 0 0 20px -3px rgba(227, 189, 116, 0.2);
  border-color: rgba(227, 189, 116, 0.4);
}

.service-clean-card__media {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #FAF8F4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-clean-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-clean-card:hover .service-clean-card__img {
  transform: scale(1.04);
}

.service-clean-card__media--line {
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F5F3ED 100%);
}
.service-clean-card__media--line svg {
  width: 80px;
  height: 80px;
  color: var(--gold-text);
  filter: drop-shadow(0 4px 12px rgba(227, 189, 116, 0.3));
}

.service-clean-card__body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-clean-card__num {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-text);
  margin-bottom: 0.25rem;
}

.service-clean-card__cat {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.service-clean-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.service-clean-card__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ═══════════ PILARES DE EXCELENCIA MÉDICA ═══════════ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 189, 116, 0.4);
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--gold-tint);
  border: 1px solid rgba(227, 189, 116, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
}
.pillar-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ═══════════ BLOQUE DE ANESTESIA (VEN Y CONÓCENOS) ═══════════ */
.anesthesia-banner {
  background: linear-gradient(135deg, #1C1B18 0%, #141414 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.25rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.anesthesia-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 189, 116, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.anesthesia-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.anesthesia-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}
.anesthesia-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #C8C5BE;
  margin-bottom: 2rem;
}

/* ═══════════ PÁGINAS INTERNAS (CABECERA INTERNA) ═══════════ */
.page-hero {
  position: relative;
  background-color: var(--bg);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero .eyebrow {
  margin-bottom: 1rem;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
}
.page-hero__lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* ═══════════ NOSOTROS ═══════════ */
.nosotros-hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.nosotros-quote {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

/* ═══════════ CONTACTO Y UBICACIÓN ═══════════ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 189, 116, 0.45);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--gold-tint);
  border: 1px solid rgba(227, 189, 116, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 22px;
  height: 22px;
}
.contact-info-text h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.25rem;
}
.contact-info-text p,
.contact-info-text a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.contact-info-text a:hover {
  color: var(--gold-text);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background-color: #FAF8F4;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.social-btn:hover {
  background-color: #FFFFFF;
  border-color: var(--gold);
  color: var(--gold-text);
}
.social-btn svg {
  width: 16px;
  height: 16px;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.form-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #FAF8F4;
  border: 1px solid rgba(227, 189, 116, 0.4);
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  width: 100%;
}
.form-disclaimer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #FAF9F6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 189, 116, 0.2);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.map-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-top: 3.5rem;
  background-color: #EAE8E2;
}
.map-container iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ═══════════ PIE DE PÁGINA COMPLETO ═══════════ */
.site-footer {
  background-color: #141414;
  color: #C8C5BE;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #A3A09A;
  max-width: 38ch;
}
.footer-contact-mini {
  font-size: 0.88rem;
  color: #D4AB5E;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-contact-mini a:hover {
  text-decoration: underline;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: #A3A09A;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-col a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-models-block {
  padding-block: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-models-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
}
.footer-models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-model-pill {
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C8C5BE;
  transition: all 0.2s;
}
.footer-model-pill:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}
.footer-model-pill.actual,
.footer-model-pill[aria-current="page"] {
  background: rgba(227, 189, 116, 0.2);
  border-color: #E3BD74;
  color: #E3BD74;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #78756E;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-legal-demo {
  color: #8C8982;
}
.footer-legal-demo a {
  color: #D4AB5E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════ BOTÓN FLOTANTE WHATSAPP ═══════════ */
.floating-wa {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background-color: #141414;
  color: #FFFFFF;
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px rgba(227, 189, 116, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-wa:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 24px rgba(227, 189, 116, 0.4);
}
.floating-wa svg {
  width: 20px;
  height: 20px;
  color: #25D366;
}

/* ═══════════ ANIMACIONES AL SCROLL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__viz {
    max-width: 580px;
    margin-inline: auto;
    width: 100%;
  }
  .services-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-menu, .nav-actions .btn--gold {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background-color: var(--surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 2rem 1.5rem;
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-open .mobile-drawer {
    transform: translateX(0);
  }
  .mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
  }
  .nav-open .mobile-drawer-backdrop {
    display: block;
  }

  .mobile-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .mobile-drawer__link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .mobile-drawer__link.actual {
    color: var(--gold-text);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .nosotros-hero-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .demo-bar__models {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero__trust {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .services-clean-grid, .pillars-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .proportion-tabs {
    grid-template-columns: 1fr;
  }
  .p-tab {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .p-tab:last-child {
    border-bottom: none;
  }
}

@media (max-width: 390px) {
  .hero__title {
    font-size: 2.35rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }
  .brand-logo {
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-transition {
    display: none !important;
  }
  .mesh-canvas {
    display: none !important;
  }
}
