/* ============================================================
   AUREA PELVIC HOUSE — Stylesheet v3.0
   ============================================================ */


/* ── VARIABLES ─────────────────────────────────────────── */
/* Paleta Áurea — nueva paleta de marca                    */
:root {
  /* ── Paleta primaria ──────────────────────────── */
  --color-base: #f3efe7;
  /* Crema        — fondo principal */
  --color-forest: #403E36;
  /* Tierra        — texto + headings */
  --color-dark-olive: #10291B;
  /* Bosque oscuro — SOLO líneas, sombras mínimas */
  --color-sage: #CED6B4;
  /* Sage claro    — acento secundario (muy moderado) */
  --color-dusty-rose: #F3B4AD;
  /* Rosa empolvado — CTA secundario / badges */
  --color-old-rose: #C96F71;
  /* Rosa viejo    — enlaces, subtítulos, eyebrows, hover */
  --color-ginger-ale: #C9A267;
  /* Ámbar sutil   — acento sección / texto secundario */
  --color-gold: #701827;
  /* Vino primario — fondo botones primarios y acciones clave */

  /* ── Acento de texto (Rosa viejo — uso en iconos, eyebrows, números) */
  --color-accent: #C96F71;

  /* ── Variantes derivadas ──────────────────────── */
  --color-forest-mid: #5A5248;
  --color-rose: #F3B4AD;
  /* alias Dusty Rose */
  --color-gold-light: #EBC999;
  /* Dorado suave — acento sutil / texto secundario */
  --color-gold-pale: #F8F2E7;
  /* Dorado pálido muy suave */
  --color-blush: #FAD8D5;
  --color-dark-sage: #CED6B4;
  --color-surface: #EAE5D8;
  /* Crema ligeramente más oscuro */

  /* ── Neutros ──────────────────────────────────── */
  --color-white: #ffffff;
  --color-text: #403E36;
  /* Tierra — cuerpo de texto */
  --color-text-light: #8A8070;
  /* Tierra suavizado */
  --color-border: #DED8CA;
  /* Borde sutil crema */

  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.1rem;
  --text-lg: 1.35rem;
  --text-xl: 1.7rem;
  --text-2xl: 2.2rem;
  --text-3xl: 2.9rem;
  --text-4xl: 4rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --container-max: 1200px;
  --container-narrow: 700px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.14);
  --shadow-gold: 0 8px 32px rgba(112, 24, 39, 0.20);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-base: 0.32s;
  --t-slow: 0.6s;

  --nav-height: 80px;
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}


/* ── UTILITIES ─────────────────────────────────────────── */
/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 0;
}


/* ── FOCUS STATES (keyboard navigation) ────────────────── */
/* Visible ring only for keyboard users, not mouse clicks */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ── SCROLL PROGRESS ───────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-dusty-rose), var(--color-sage));
  z-index: 2000;
  transition: width 0.08s linear;
  pointer-events: none;
}


/* ── TYPOGRAPHY ────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-forest);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, var(--text-4xl));
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, var(--text-3xl));
}

h3 {
  font-size: clamp(1.25rem, 2vw, var(--text-2xl));
}

h4 {
  font-size: var(--text-xl);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.9rem;
}

.lead {
  font-size: var(--text-md);
  color: var(--color-text-light);
  line-height: 1.85;
  max-width: 600px;
}

.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

p {
  color: var(--color-text);
  line-height: 1.8;
}


/* ── LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

.gold-rule--center {
  margin-left: auto;
  margin-right: auto;
}

/* Dark-section overrides */
.dark h1,
.dark h2,
.dark h3,
.dark h4 {
  color: #f5efe5;
}

.dark p,
.dark .lead {
  color: rgba(245, 239, 229, 0.78);
}

.dark .eyebrow {
  color: var(--color-accent);
}

.dark .lead {
  color: rgba(206, 214, 180, 0.9);
}


/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  transition: all var(--t-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 18px rgba(112, 24, 39, 0.22);
}

.btn--primary:hover {
  background: var(--color-old-rose);
  border-color: var(--color-old-rose);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--color-forest);
  border: 2px solid currentColor;
}

.btn--outline:hover {
  background: var(--color-forest);
  color: var(--color-base);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-forest);
  border: 1.5px solid rgba(64, 62, 54, 0.4);
}

.btn--outline-light:hover {
  background: rgba(64, 62, 54, 0.06);
  border-color: var(--color-forest);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 0.65rem 1.4rem;
  font-size: var(--text-xs);
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}


/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* background y backdrop-filter movidos a ::after — si se aplican en el elemento
     mismo crean un containing block para position:fixed, atrapando el drawer
     dentro de los 64 px del navbar en lugar del viewport completo. */
  background: transparent;
  border-bottom: 1px solid rgba(64, 62, 54, 0.08);
}

/* Ginger Ale accent line — firma visual del navbar */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(201, 162, 103, 0.5) 30%,
      rgba(201, 162, 103, 0.85) 50%,
      rgba(201, 162, 103, 0.5) 70%,
      transparent 100%);
  pointer-events: none;
}

/* Fondo frosted-glass en pseudo-elemento hoja — backdrop-filter aquí NO crea
   un containing block para position:fixed en hijos reales del navbar */
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(243, 239, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  filter: none;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(64, 62, 54, 0.75);
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 3px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width var(--t-base) var(--ease-out);
}

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

.navbar__link:hover {
  color: var(--color-old-rose);
}

.navbar__cta {
  font-size: var(--text-xs);
  padding: 0.6rem 1.6rem;
  letter-spacing: 0.1em;
}

/* Hamburger — oculto en desktop, visible en mobile vía media query */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  /* z-index se define en el @media mobile donde es relevante */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-forest);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease-out);
  transform-origin: center;
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-forest);
}

/* Background photo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 13%;
  transform: scale(1.01);
  will-change: transform;
}

/* Dark overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(243, 239, 231, 0.93) 0%,
      rgba(243, 239, 231, 0.80) 42%,
      rgba(243, 239, 231, 0.36) 72%,
      rgba(243, 239, 231, 0.08) 100%);
  z-index: 1;
}

/* Subtle warm wash at bottom */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 5% 50%, rgba(243, 239, 231, 0.15) 0%, transparent 65%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 7rem;
  text-align: center;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.hero__eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hero__eyebrow span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__title {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-dark-olive);
  max-width: 880px;
  margin: 0 auto 1.8rem;
}

.hero__title em {
  font-style: italic;
  color: var(--color-old-rose);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-forest);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(64, 62, 54, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  pointer-events: none;
}

.hero__scroll-arrow {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(201, 162, 103, 0.7), transparent);
  animation: arrowPulse 2.2s ease-in-out infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}


/* ── STATS BAR ─────────────────────────────────────────── */
.stats {
  background: linear-gradient(135deg, #EAE5D8 0%, #EFE9DC 50%, #EAE5D8 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 120% at 50% 0%, rgba(201, 162, 103, 0.12), transparent);
  pointer-events: none;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 103, 0.35), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(64, 62, 54, 0.07);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(201, 162, 103, 0.35);
  transform: translateY(-4px);
}

.stat-item__value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  margin-bottom: 0.7rem;
}

.stat-item__number {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  display: inline-block;
}

.stat-item__suffix {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--color-accent);
  opacity: 0.65;
  line-height: 1;
}

.stat-item__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(206, 214, 180, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ── PROBLEMA ──────────────────────────────────────────── */
.problema {
  padding: var(--space-xl) 0;
  background: var(--color-base);
}

.problema__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problema__list {
  margin: 1.8rem 0;
}

.problema__list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(206, 214, 180, 0.22);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base);
}

.problema__list li:hover {
  transform: translateX(8px);
  color: var(--color-rose);
}

.problema__check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-old-rose);
}

/* ── PROBLEMA — ambient editorial visual ──────────────────── */
.problema__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
  overflow: visible;
}

.editorial-visual__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}

.editorial-visual__blob--1 {
  width: 320px;
  height: 320px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle at 40% 40%, #FAD8D5 0%, transparent 72%);
  opacity: 0.72;
}

.editorial-visual__blob--2 {
  width: 260px;
  height: 260px;
  bottom: -30px;
  left: -50px;
  background: radial-gradient(circle at 60% 60%, #CED6B4 0%, transparent 70%);
  opacity: 0.55;
}

.editorial-visual__quote {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 11rem;
  line-height: 1;
  color: var(--color-old-rose);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.editorial-visual__text {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-visual__line {
  font-family: var(--font-serif);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin: 0;
}

.editorial-visual__line--1 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.3rem;
}

.editorial-visual__line--2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--color-forest);
}

.editorial-visual__line--3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-old-rose);
}

.editorial-visual__rule {
  margin-top: 2rem;
  margin-bottom: 2rem;
}


/* ── ENFOQUE ÁUREA ──────────────────────────────────────── */
.enfoque {
  padding: var(--space-xl) 0;
  background: var(--color-base);
}

.enfoque__header {
  max-width: 740px;
  margin: 0 auto var(--space-lg);
}

.enfoque__header .lead {
  margin-top: 1.4rem;
  color: var(--color-text-light);
}

/* 4-column cards */
.enfoque__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}

.enfoque__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.enfoque__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.enfoque__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.enfoque__card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.enfoque__card-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 0.8rem 0 0.4rem;
  flex-shrink: 0;
}

.enfoque__card h3 {
  font-size: var(--text-md);
  color: var(--color-forest);
  line-height: 1.3;
  margin: 0;
}

.enfoque__card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.65;
}

/* Team image — proporciones naturales, sin recorte */
.enfoque__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 500px;
  aspect-ratio: 16 / 9;

  /* --- CAMBIOS PARA CENTRAR --- */
  max-width: 900px;
  /* Definimos un ancho máximo para el contenedor */
  margin-left: auto;
  /* Margen automático a la izquierda */
  margin-right: auto;
  /* Margen automático a la derecha */
  /* --- FIN DE CAMBIOS --- */
}

.enfoque__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}

.enfoque__image:hover img {
  transform: scale(1.05);
}

/* ── ESPACIO — Nuestro Espacio ──────────────────────────── */
.espacio {
  padding: var(--space-xl) 0;
  background: var(--color-base);
}

.espacio__header {
  max-width: 780px;
  margin: 0 auto var(--space-lg);
}

.espacio__header .lead {
  margin-top: 1.4rem;
  color: var(--color-text-light);
}

.espacio__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.espacio__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.espacio__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.espacio__card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.espacio__card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.espacio__card h3 {
  font-size: var(--text-md);
  color: var(--color-forest);
  line-height: 1.3;
  margin: 0;
}

.espacio__card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.65;
}


/* ── DIFERENCIAL ───────────────────────────────────────── */
.diferencial {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
}

/* Split layout: left heading + right 2×2 grid */
.diferencial__inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;
}

.diferencial__left {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.diferencial__heading {
  font-size: clamp(1.8rem, 2.8vw, var(--text-3xl));
  line-height: 1.2;
  margin: 0.8rem 0 1.2rem;
  color: var(--color-forest);
}

.diferencial__desc {
  margin-top: 1.4rem;
  color: var(--color-text-light);
}

.diferencial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.dif-item {
  padding: 2.2rem 1.8rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dif-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 103, 0.3);
}

.dif-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dif-item__number {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-accent);
  opacity: 0.5;
  line-height: 1;
}

.dif-item__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.dif-item__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-forest);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.dif-item__text {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.68;
  font-weight: 300;
}


/* ── SERVICIOS — horizontal slider ─────────────────────── */
.servicios {
  padding: var(--space-xl) 0 0;
  background: var(--color-base);
}

.servicios__slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  padding: 0 0 var(--space-xl);
}

.servicios__track-outer {
  flex: 1;
  overflow: hidden;
}

.servicios__track {
  display: flex;
  gap: 1.4rem;
  /* transition managed entirely by JS for infinite-loop snap control */
}

/* Each card takes exactly 1/3 of visible width minus gaps */
.servicio-card {
  flex: 0 0 calc((100% - 2 * 1.4rem) / 3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  transition: box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 103, 0.3);
}

.servicio-card:hover::before {
  opacity: 1;
}

.servicio-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
}

.servicio-card:hover .servicio-card__icon {
  transform: scale(1.1);
}

.servicio-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.servicio-card__text {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 1.2rem;
  flex: 1;
}

.servicio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--t-fast);
}

.servicio-card:hover .servicio-card__link {
  gap: 0.55em;
  color: var(--color-gold);
}

/* Slider arrows */
.servicios__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-forest);
  transition: all var(--t-base) var(--ease-spring);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.servicios__arrow--prev {
  margin-right: 1rem;
}

.servicios__arrow--next {
  margin-left: 1rem;
}

.servicios__arrow:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-pale);
  color: var(--color-accent);
  transform: scale(1.08);
}

.servicios__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Dots */


/* ── EQUIPO ────────────────────────────────────────────── */
.equipo {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  overflow: hidden;
}

.equipo__carousel {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.equipo__track {
  display: grid;
}

.equipo__slide {
  grid-area: 1 / 1;
  width: 100%;
  padding: 0 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.equipo__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.equipo__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4.5rem;
  align-items: start;
}

.equipo__foto {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  /* No overflow:hidden — allows ::after decorative frame to extend outside */
  box-shadow: var(--shadow-xl);
  background: var(--color-sage);
}

.equipo__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  /* clip-path instead of parent overflow:hidden — preserves rounded corners */
  clip-path: inset(0 round var(--radius-lg));
}

.equipo__foto::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0;
  bottom: -1rem;
  right: -1rem;
  border: 1.5px solid rgba(201, 162, 103, 0.25);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.equipo__nombre {
  font-size: clamp(1.9rem, 3vw, var(--text-3xl));
  color: var(--color-forest);
  margin-bottom: 0.4rem;
}

.equipo__especialidad {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-old-rose);
  margin-bottom: 1.8rem;
}

.equipo__bio {
  font-size: var(--text-md);
  color: var(--color-text);
  line-height: 1.78;
  font-weight: 300;
  max-width: 520px;
}

.equipo__bio+.equipo__bio {
  margin-top: 1rem;
}

.equipo__quote {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.5;
}

.equipo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.equipo__tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-forest);
  background: rgba(180, 192, 153, 0.18);
  letter-spacing: 0.04em;
}

.equipo__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3rem;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.equipo__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(180, 192, 153, 0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-spring);
  color: var(--color-forest-mid);
}

.equipo__arrow:hover {
  border-color: var(--color-gold);
  background: rgba(201, 162, 103, 0.08);
  color: var(--color-accent);
  transform: scale(1.1);
}

.equipo__arrow:disabled {
  opacity: 0.22;
  cursor: default;
  transform: none;
}

.equipo__dots {
  display: flex;
  gap: 0;
}

.equipo__dot {
  /* QW2 — dot visual 10px con hitbox WCAG 2.5.5 (44px) vía padding + background-clip */
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 17px;
  border-radius: 50%;
  background: var(--color-border);
  background-clip: content-box;
  border: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-spring);
}

.equipo__dot.is-active {
  background: var(--color-gold);
  background-clip: content-box;
}

.equipo__dot.is-active::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(112, 24, 39, 0.45);
  pointer-events: none;
}

/* ── EQUIPO TEASER (home) ──────────────────────────────── */
.equipo__teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.equipo__teaser-foto {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.equipo__teaser-foto img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}

.equipo__teaser-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.equipo__teaser-content .btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .equipo__teaser {
    grid-template-columns: 1fr;
  }

  .equipo__teaser-foto img {
    height: 280px;
  }
}


/* ── TECNOLOGÍA ────────────────────────────────────────── */
.tecnologia {
  padding: var(--space-xl) 0;
  background: rgba(206, 214, 180, 0.10);
  /* Sage tint muy sutil */
  position: relative;
  overflow: hidden;
}

/* La sección tiene fondo claro — restaurar colores de texto oscuros
   sobreescribiendo los overrides de .dark que son para secciones oscuras */
.tecnologia h2 {
  color: var(--color-forest);
}

.tecnologia .lead {
  color: var(--color-text-light);
}

.tecnologia::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 103, 0.07), transparent 65%);
  pointer-events: none;
}

.tecnologia__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.tecnologia__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tecnologia__badge {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  display: inline-block;
  font-family: var(--font-sans);
}

/* Diferenciador highlight block */
.tecnologia__diferenciador {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: rgba(201, 111, 113, 0.06);
  border: 1px solid rgba(201, 111, 113, 0.18);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
}

.tecnologia__diferenciador svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.tecnologia__diferenciador p {
  font-size: 0.93rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

/* Technology list (vertical) */
.tecnologia__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.tec-item {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(64, 62, 54, 0.1);
  transition: padding-left var(--t-base);
}

.tec-item:hover {
  padding-left: 0.5rem;
}

.tec-item:last-child {
  border-bottom: none;
}

.tec-item__value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 0.7rem;
  font-weight: 400;
}

.tec-item__label {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.6;
  font-weight: 300;
  margin-top: 0.3rem;
}

.tecnologia__footnote {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-family: var(--font-serif);
}

/* Photo panel — tecnología */
.tecnologia__photo-wrap {
  position: relative;
}

.tecnologia__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.tecnologia__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.tecnologia__photo-wrap:hover .tecnologia__photo img {
  transform: scale(1.04);
}

.tecnologia__photo-wrap::after {
  content: '';
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  border: 1.5px solid rgba(201, 162, 103, 0.22);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: -1;
}


/* ── MÉTODO ────────────────────────────────────────────── */
.metodo {
  padding: var(--space-xl) 0;
  background: var(--color-base);
  position: relative;
}

.metodo__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: var(--space-lg);
  position: relative;
}

.metodo__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 162, 103, 0.35), transparent);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.8rem;
  position: relative;
  z-index: 1;
}

.step__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(64, 62, 54, 0.2);
  background: var(--color-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: border-color var(--t-slow), background var(--t-slow), box-shadow var(--t-slow);
}

.step--active .step__circle {
  border-color: var(--color-old-rose);
  background: var(--color-old-rose);
  box-shadow: 0 4px 12px rgba(201, 111, 113, 0.3);
  transform: scale(1.1);
}

.step__number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.step--active .step__number {
  color: var(--color-base);
  font-weight: bold;
}

.step__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: rgba(64, 62, 54, 0.4);
  margin-bottom: 0.4rem;
  font-weight: 400;
  transition: color var(--t-slow);
}

.step--active .step__title {
  color: var(--color-forest);
}

.step__text {
  font-size: var(--text-xs);
  color: rgba(64, 62, 54, 0.3);
  line-height: 1.6;
  transition: color var(--t-slow);
}

.step--active .step__text {
  color: var(--color-text-light);
}


/* ── TESTIMONIOS ───────────────────────────────────────── */
.testimonios {
  padding: var(--space-xl) 0;
  background: var(--color-base);
}

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.testimonio-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.testimonio-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--color-accent);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

.testimonio-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 103, 0.12);
}

.testimonio-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonio-card__stars svg {
  width: 15px;
  height: 15px;
  fill: var(--color-gold);
}

.testimonio-card__text {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.82;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonio-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonio-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-forest);
}

.testimonio-card__source img {
  height: 18px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.testimonios__cta {
  text-align: center;
  margin-top: var(--space-lg);
}


/* ── SINTOMA BADGES (problema section) ────────────────── */
.sintoma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 2rem 0;
}

.sintoma-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--color-white);
  border: 1.5px solid rgba(201, 111, 113, 0.18);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-forest);
  line-height: 1.5;
  transition: border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.sintoma-badge:hover {
  border-color: var(--color-old-rose);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.sintoma-badge__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-old-rose);
}

@media (max-width: 768px) {
  .sintoma-grid {
    grid-template-columns: 1fr;
  }
}


/* ── AGENDA CTA BANNER ─────────────────────────────────── */
.agenda-cta {
  background: var(--color-dark-olive);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agenda-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(112, 24, 39, 0.18), transparent 70%);
  pointer-events: none;
}

.agenda-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.agenda-cta__eyebrow {
  color: var(--color-gold-light);
}

.agenda-cta__title {
  color: #f5efe5;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin-bottom: 0.3rem;
}

.agenda-cta__text {
  color: rgba(245, 239, 229, 0.70);
  font-size: var(--text-md);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.agenda-cta__note {
  display: block;
  margin-top: 1.2rem;
  font-size: var(--text-xs);
  color: rgba(245, 239, 229, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--primary-light {
  background: rgba(245, 239, 229, 0.10);
  color: #f5efe5;
  border: 1.5px solid rgba(245, 239, 229, 0.4);
  backdrop-filter: blur(6px);
}

.btn--primary-light:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}


/* ── AGENDA ────────────────────────────────────────────── */
/* ── BREADCRUMB (subpáginas) ───────────────────────────── */
.breadcrumb {
  padding: calc(var(--nav-height) + 0.85rem) 0 0.85rem;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  text-transform: uppercase;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin: 0 0.5rem;
  color: var(--color-border);
  font-weight: 400;
}

.breadcrumb__item a {
  color: var(--color-text-light);
  transition: color var(--t-fast) var(--ease-out);
}

.breadcrumb__item a:hover {
  color: var(--color-old-rose);
}

.breadcrumb__item--current {
  color: var(--color-forest);
  font-weight: 600;
}


/* ── /CONTACTO — HERO COMPACTO ─────────────────────────── */
.contacto__hero {
  padding: var(--space-lg) 0 var(--space-md);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-base) 100%);
}

.contacto__hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.15;
}

.contacto__hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

.contacto__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.8rem auto 0;
  max-width: 760px;
  padding: 0;
  list-style: none;
}

.contacto__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-forest);
  box-shadow: var(--shadow-sm);
}

.contacto__chip svg {
  width: 15px;
  height: 15px;
  color: var(--color-old-rose);
  flex-shrink: 0;
}


/* ── /CONTACTO — CALENDARIO ────────────────────────────── */
.contacto__cal {
  padding: var(--space-md) 0 var(--space-lg);
  background: var(--color-base);
}

.contacto__cal-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 640px;
}

.contacto__cal-wrapper.is-loaded .contacto__cal-skeleton {
  opacity: 0;
  pointer-events: none;
}

#cal-embed {
  width: 100%;
  min-height: 640px;
}

#cal-embed iframe {
  border: 0;
  width: 100%;
  min-height: 640px;
}

.contacto__cal-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-white);
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}

.contacto__cal-skeleton-calendar,
.contacto__cal-skeleton-slots span {
  background: linear-gradient(90deg, var(--color-surface) 0%, #f3ece0 50%, var(--color-surface) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  animation: contactoShimmer 1.6s linear infinite;
}

.contacto__cal-skeleton-calendar {
  height: 100%;
}

.contacto__cal-skeleton-slots {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contacto__cal-skeleton-slots span {
  height: 48px;
  display: block;
}

@keyframes contactoShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.contacto__cal-fallback {
  padding: 3rem 1.5rem;
  text-align: center;
}

.contacto__cal-fallback p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.contacto__cal-fallback-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto__cal-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.4rem auto 0;
  max-width: 960px;
  padding: 0.6rem 1rem;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  justify-content: center;
  text-align: center;
  width: fit-content;
}

.contacto__cal-note svg {
  width: 14px;
  height: 14px;
  color: var(--color-old-rose);
  flex-shrink: 0;
}


/* ── /CONTACTO — QUÉ ESPERAR ───────────────────────────── */
.contacto__expect {
  padding: var(--space-lg) 0;
  background: var(--color-surface);
}

.contacto__expect .lead {
  max-width: 640px;
  margin: 0 auto;
}

.contacto__expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: var(--space-md) auto 0;
  max-width: var(--container-max);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.contacto__step {
  position: relative;
  padding: 1.75rem 1.4rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.contacto__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contacto__step-num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gold-light);
  font-weight: 500;
}

.contacto__step-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  display: grid;
  place-items: center;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.contacto__step-icon svg {
  width: 22px;
  height: 22px;
}

.contacto__step h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.contacto__step p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.contacto__step-time {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--color-gold-pale);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}


/* ── /CONTACTO — UBICACIÓN + FORM ALTERNO ──────────────── */
.contacto__aux {
  padding: var(--space-lg) 0;
  background: var(--color-base);
}

.contacto__aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
}

.contacto__location {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contacto__location h2 {
  font-size: 1.5rem;
  color: var(--color-forest);
  margin: 0.25rem 0 0.25rem;
}

.contacto__location-sub {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: 1.2rem;
}

.contacto__map {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.contacto__map iframe {
  display: block;
}

.contacto__location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.contacto__location-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.contacto__location-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

.contacto__location-note svg {
  width: 14px;
  height: 14px;
  color: var(--color-old-rose);
  flex-shrink: 0;
}


/* ── /CONTACTO — FORM ALTERNO (<details>) ──────────────── */
.contacto__form-alt {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease-out);
}

.contacto__form-alt[open] {
  box-shadow: var(--shadow-md);
}

.contacto__form-alt-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  list-style: none;
  transition: background var(--t-fast) var(--ease-out);
}

.contacto__form-alt-summary::-webkit-details-marker {
  display: none;
}

.contacto__form-alt-summary:hover {
  background: var(--color-gold-pale);
}

.contacto__form-alt-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-top: 0.25rem;
  line-height: 1.25;
}

.contacto__form-alt-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-spring);
}

.contacto__form-alt[open] .contacto__form-alt-chevron {
  transform: rotate(180deg);
}

.contacto__form {
  padding: 0 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.contacto__form-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0 0 0.25rem;
}

.contacto__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contacto__field > span {
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
  font-weight: 600;
}

.contacto__req {
  color: var(--color-old-rose);
  margin-left: 0.2rem;
}

.contacto__field input,
.contacto__field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 0.75rem 0.9rem;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-forest);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  resize: vertical;
  min-height: 44px;
}

.contacto__field textarea {
  min-height: 90px;
  line-height: 1.5;
}

.contacto__field input:focus,
.contacto__field textarea:focus {
  background: var(--color-white);
  border-color: var(--color-gold);
}

.contacto__field input:invalid:not(:placeholder-shown),
.contacto__field.is-invalid input {
  border-color: var(--color-old-rose);
}

.contacto__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1.45;
}

.contacto__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  flex-shrink: 0;
}

.contacto__form-submit {
  margin-top: 0.4rem;
  justify-content: center;
  min-height: 52px;
}

.contacto__form-status {
  margin: 0;
  font-size: var(--text-sm);
  min-height: 1.3rem;
  color: var(--color-forest-mid);
}

.contacto__form-status.is-error { color: var(--color-old-rose); }
.contacto__form-status.is-success { color: var(--color-gold); font-weight: 600; }


/* ── /CONTACTO — CANALES DIRECTOS ──────────────────────── */
.contacto__canales {
  padding: var(--space-lg) 0;
  background: var(--color-surface);
}

.contacto__canales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.contacto__canal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-height: 72px;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.contacto__canal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.contacto__canal-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  display: grid;
  place-items: center;
  color: var(--color-gold);
  flex-shrink: 0;
  overflow: hidden;
}

.contacto__canal-icon svg {
  width: 22px;
  height: 22px;
}

.contacto__canal-icon--wa {
  background: #e7f7ec;
  color: #1a8a42;
}

.contacto__canal strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-forest);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.contacto__canal span:not(.contacto__canal-icon) {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.contacto__politica {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: var(--space-md) auto 0;
  padding: 0.8rem 1.2rem;
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-align: center;
  width: fit-content;
}

.contacto__politica svg {
  width: 15px;
  height: 15px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.reveal--width {
  width: 100%;
}


/* ── FOOTER ────────────────────────────────────────────── */
/* ── FOOTER ── */
.footer {
  background: var(--color-surface);
  color: var(--color-text-light);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
}

/* Conservamos la línea superior dorada */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 103, 0.45), transparent);
}

/* AJUSTE: Proporciones de columna más equilibradas */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  align-items: start;
}

/* Brand column */
.footer__brand {
  padding-right: var(--space-md);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo-link {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer__logo-img {
  width: 140px;
  /* Tamaño controlado del logo */
  height: auto;
  display: block;
}

/* AJUSTE: Frase en cursiva serif */
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-forest-mid);
  line-height: 1.5;
  max-width: 240px;
  margin-bottom: 0.5rem;
}

/* Redes sociales (Mantenemos tus estilos) */
.footer__socials {
  display: flex;
  gap: 0.7rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.footer__social-link:hover {
  border-color: var(--color-old-rose);
  color: var(--color-old-rose);
  background: rgba(201, 111, 113, 0.06);
}

/* Nav / Especialidades columns */
.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.3rem;
}

.footer__links li+li {
  margin-top: 0.6rem;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--color-old-rose);
  padding-left: 5px;
}

/* Contact column (Mantenemos tu fondo) */
.footer__contact-col {
  background: rgba(64, 62, 54, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* AJUSTE: Grid para alienar iconos y texto perfecto */
.footer__contact-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.55;
}

/* Mantenemos tus separadores de línea entre datos */
.footer__contact-item+.footer__contact-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-old-rose);
}

.footer__contact-item a {
  color: var(--color-text-light);
  transition: color var(--t-fast);
}

.footer__contact-item a:hover {
  color: var(--color-old-rose);
}

.footer__contact-address {
  display: block;
  line-height: 1.55;
}

.footer__contact-address:hover strong {
  color: var(--color-old-rose);
}

.footer__contact-item strong {
  color: var(--color-forest);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* NUEVO: Enlace de WhatsApp destacado (ya que quitamos el botón) */
.footer__link-highlight {
  color: var(--color-forest) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__link-highlight:hover {
  color: var(--color-old-rose) !important;
}

/* Bottom bar (Mantenemos la tuya) */
/* Bottom bar y Legales */
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* Permite que en celulares baje de renglón de forma limpia */
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer__divider {
  color: rgba(64, 62, 54, 0.2);
  /* Una línea vertical sutil */
}

/* Resaltamos ligeramente el permiso por ser un dato legal importante */
.footer__cofepris {
  color: var(--color-forest-mid);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* En móviles, centramos todo para que se vea como un bloque legal */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .footer__divider {
    display: none;
    /* Ocultamos la rayita en móvil para que baje el texto limpio */
  }
}

/* NOTA: Se eliminó .footer__contact-item--cta y .btn porque quitamos el botón */

/* ── FLOATING BUTTONS ──────────────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
}

.fab-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.fab-agenda {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 6px 22px rgba(112, 24, 39, 0.28);
}

.fab-agenda:hover {
  background: var(--color-old-rose);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.fab-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.28);
}

.fab-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.36);
}

.fab-label {
  display: inline-block;
}


/* ── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-group>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-group>*:nth-child(2) {
  transition-delay: 0.15s;
}

.reveal-group>*:nth-child(3) {
  transition-delay: 0.25s;
}

.reveal-group>*:nth-child(4) {
  transition-delay: 0.35s;
}

.reveal-group>*:nth-child(5) {
  transition-delay: 0.45s;
}

.reveal-group>*:nth-child(6) {
  transition-delay: 0.55s;
}


/* ── RESPONSIVE — TABLET ───────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --space-xl: 5rem;
  }

  .problema__inner {
    gap: 3rem;
  }

  .enfoque__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tecnologia__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Servicios slider: show 2 cards on tablet */
  .servicio-card {
    flex: 0 0 calc((100% - 1.4rem) / 2);
  }

  /* Diferencial: stack to single column on tablet */
  .diferencial__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .diferencial__left {
    position: static;
  }

  .diferencial__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: var(--space-md);
  }

  .footer__contact-col {
    grid-column: 1 / -1;
  }

  .metodo__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .metodo__steps::before {
    display: none;
  }

  .equipo__inner {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }

  .espacio__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* /Contacto — tablet */
  .contacto__expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contacto__aux-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ── RESPONSIVE — MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-xl: 3.5rem;
    --space-lg: 2.5rem;
  }

  /* ── NAVBAR MOBILE — right-side drawer ─────────────────
     Jerarquía de z-index en root stacking context:
       .nav-backdrop (body)  → z-index: 999
       .navbar               → z-index: 1000  (stacking context SIN backdrop-filter)
         .navbar__menu       → z-index: 1100  (position:fixed usa el viewport como CB)
         .navbar__toggle     → z-index: 1200  (visible sobre el drawer)
     ────────────────────────────────────────────────────── */

  /* Backdrop — inyectado en <body> por JS */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s;
    cursor: pointer;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* ── Drawer ────────────────────────────────────────────── */
  .navbar__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    /* 100dvh: respeta la barra dinámica del navegador móvil */
    height: 100vh;
    height: 100dvh;
    width: min(300px, 85vw);
    /* padding-top deja espacio sobre el navbar; horizontal en 0 para
       que el border-left de los enlaces llegue al borde del drawer */
    padding: calc(var(--nav-height) + 2rem) 0 2.5rem;
    gap: 0;
    background: #f7f4ee;
    border-left: 1px solid rgba(64, 62, 54, 0.10);
    box-shadow: -10px 0 48px rgba(64, 62, 54, 0.12);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow-y: auto;
    /* Capa de composición propia para evitar repaint durante la transición */
    will-change: transform;
  }

  /* Línea de acento superior — ámbar → rosa viejo → ámbar */
  .navbar__menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-ginger-ale) 0%,
        var(--color-old-rose) 50%,
        var(--color-ginger-ale) 100%);
    pointer-events: none;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* ── Links ─────────────────────────────────────────────── */
  .navbar__menu .navbar__link {
    display: block;
    color: var(--color-forest);
    opacity: 0.72;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.15rem 2rem;
    border-bottom: 1px solid rgba(64, 62, 54, 0.06);
    /* border-left transparente: se colorea en hover sin mover el layout */
    border-left: 3px solid transparent;
    transition: color 0.22s ease, opacity 0.22s ease,
      padding-left 0.28s var(--ease-out),
      border-left-color 0.22s ease,
      background 0.22s ease;
  }

  .navbar__menu .navbar__link::after {
    display: none;
  }

  .navbar__menu .navbar__link:hover,
  .navbar__menu .navbar__link:focus-visible {
    color: var(--color-old-rose);
    opacity: 1;
    padding-left: 2.4rem;
    border-left-color: var(--color-old-rose);
    background: rgba(201, 111, 113, 0.05);
  }

  /* ── CTA anclado al fondo via margin-top: auto ─────────── */
  .navbar__menu .navbar__cta {
    display: block;
    /* margin-top: auto empuja el botón al fondo del flex container */
    margin: auto 2rem 0;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
    /* Ancho completo dentro del padding lateral */
    width: calc(100% - 4rem);
    box-sizing: border-box;
    /* QW3 — refuerzo jerárquico en el drawer */
    box-shadow: var(--shadow-gold);
  }

  /* ── Toggle — siempre visible sobre el drawer ──────────── */
  .navbar__toggle {
    display: flex;
    /* z-index dentro del stacking context de .navbar:
       supera el drawer (1100) para que el botón ✕ siempre sea pulsable */
    z-index: 1200;
    position: relative;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero__subtitle {
    font-size: 0.97rem;
  }

  .hero__eyebrow span {
    font-size: 0.72rem;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* Grids */
  .problema__inner,
  .tecnologia__inner,
  .equipo__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .enfoque__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Servicios: 1 card at a time on mobile */
  .servicio-card {
    flex: 0 0 calc(100% - 0px);
  }

  .servicios__arrow {
    /* QW2 — touch target WCAG ≥44x44 en mobile */
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .servicios__arrow--prev {
    margin-right: 0.5rem;
  }

  .servicios__arrow--next {
    margin-left: 0.5rem;
  }

  /* Diferencial */
  .diferencial__grid {
    grid-template-columns: 1fr;
  }

  .testimonios__grid {
    grid-template-columns: 1fr;
  }

  .metodo__steps {
    grid-template-columns: 1fr 1fr;
  }

  .metodo__steps::before {
    display: none;
  }

  /* Espacio mobile: 1 column */
  .espacio__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Team */
  .equipo__slide {
    padding: 0 0.25rem;
  }

  .equipo__foto {
    max-width: 240px;
    margin: 0 auto;
  }

  .equipo__foto::after {
    display: none;
  }

  .equipo__nombre {
    font-size: 1.7rem;
    text-align: center;
  }

  .equipo__especialidad {
    text-align: center;
  }

  .equipo__tags {
    justify-content: center;
  }

  /* Tec photo */
  .tecnologia__photo-wrap {
    order: -1;
  }

  .tecnologia__photo-wrap::after {
    display: none;
  }

  .tecnologia__photo {
    aspect-ratio: 16/9;
  }

  .tecnologia__stats {
    grid-template-columns: 1fr 1fr;
  }

  /* /Contacto — mobile */
  .contacto__hero {
    padding: var(--space-md) 0 var(--space-sm);
  }

  .contacto__chips {
    gap: 0.4rem;
    margin-top: 1.2rem;
  }

  .contacto__chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  .contacto__cal-wrapper {
    min-height: 560px;
    border-radius: var(--radius-md);
  }

  #cal-embed,
  #cal-embed iframe {
    min-height: 560px;
  }

  .contacto__cal-skeleton {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .contacto__cal-skeleton-calendar {
    min-height: 260px;
  }

  .contacto__expect-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .contacto__step {
    padding: 1.25rem 1rem 1.1rem;
  }

  .contacto__step h3 {
    font-size: 1.1rem;
  }

  .contacto__aux-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contacto__location,
  .contacto__form-alt-summary {
    padding: 1.25rem;
  }

  .contacto__form {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .contacto__canales-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .contacto__canal {
    min-height: 68px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: var(--space-md);
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer__tagline {
    margin: 0 auto;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__contact-col {
    grid-column: 1;
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer__links a:hover {
    padding-left: 0;
  }

  /* Buttons */
  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* QW1 — Padding inferior del main para que el FAB no tape el último contenido */
  main {
    padding-bottom: 90px;
  }

  /* FAB — safe-area-inset for iOS gesture bar */
  .fab-group {
    bottom: max(1.2rem, calc(1.2rem + env(safe-area-inset-bottom, 0px)));
    right: 1.2rem;
  }

  .fab-group[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
  }

  .fab-label {
    display: none;
  }

  .fab-cta {
    padding: 0.85rem;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  /* Problema visual — ambient editorial, mobile */
  .problema__visual {
    padding: 2rem 1rem;
    min-height: unset;
    overflow: hidden;
  }

  .editorial-visual__blob--1 {
    width: 200px;
    height: 200px;
    top: -30px;
    right: -40px;
    filter: blur(36px);
  }

  .editorial-visual__blob--2 {
    width: 170px;
    height: 170px;
    bottom: -20px;
    left: -35px;
    filter: blur(32px);
  }

  .editorial-visual__quote {
    font-size: 8rem;
  }

  .editorial-visual__text {
    max-width: 100%;
  }

  .editorial-visual__line--1 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .editorial-visual__line--2,
  .editorial-visual__line--3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .editorial-visual__rule {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .editorial-visual__cta {
    width: 100%;
    justify-content: center;
  }

  .section,
  .container {
    overflow-x: hidden;
  }
}

/* ── RESPONSIVE — SMALL MOBILE ─────────────────────────── */
@media (max-width: 400px) {
  :root {
    --space-xl: 2.5rem;
    --space-lg: 2rem;
    --space-md: 1.2rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tecnologia__stats {
    grid-template-columns: 1fr;
  }

  .fab-group {
    right: 0.8rem;
    bottom: max(0.8rem, calc(0.8rem + env(safe-area-inset-bottom, 0px)));
  }
}


/* ── PREFERS-REDUCED-MOTION (WCAG 2.1 SC 2.3.3) ────────── */
/* Users who request less motion get instant transitions
   and pre-revealed content — no animations at all.         */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Show all reveal elements immediately */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Disable parallax */
  .hero__bg img {
    will-change: auto;
    transform: none !important;
  }

  /* Disable step auto-cycle glow (handled in JS too) */
  .step__circle {
    transition: none;
  }

  /* Disable scroll progress animation */
  .scroll-progress {
    transition: none;
  }
}