/* ============================================================
   MEDICAL HOUSE SPA · Hoja de estilos principal
   Paleta y tipografía según identidad de marca
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS DE DISEÑO
------------------------------------------------------------ */
:root {
  /* Colores de marca */
  --sage: #5D8A7E;            /* Eucalipto salvia (marca) */
  --sage-deep: #4F7D70;       /* Salvia con contraste AA sobre blanco */
  --sage-darker: #3F685C;     /* Estados hover de botones */
  --dark: #2C3E35;            /* Verde pizarra oscuro */
  --dark-soft: #24332C;       /* Variante más profunda */
  --gold: #D4A373;            /* Nude gold (acentos decorativos) */
  --gold-deep: #96693D;       /* Dorado accesible para texto pequeño */
  --gold-soft: #E7CBA8;       /* Mezcla suave del dorado */
  --bg: #F9F6F0;              /* Fondo marfil cálido */
  --bg-soft: #F3EEE5;         /* Variante de fondo */
  --white: #FFFFFF;
  --wa: #4EAE93;              /* Verde menta WhatsApp */
  --wa-ink: #10352A;          /* Texto oscuro sobre menta (contraste AA) */
  --wa-deep: #379B7F;         /* Hover del verde WhatsApp */

  /* Texto */
  --ink: #2C3E35;
  --ink-body: #46564E;
  --ink-muted: #6B7A72;
  --line: rgba(44, 62, 53, 0.10);
  --line-strong: rgba(44, 62, 53, 0.18);

  /* Tipografía */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Formas */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-xs: 0 2px 10px rgba(44, 62, 53, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 14px 34px rgba(44, 62, 53, 0.10);
  --shadow-lg: 0 26px 60px rgba(44, 62, 53, 0.16);

  /* Layout */
  --container: 1200px;
  --container-wide: 1300px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 84px;

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

/* ------------------------------------------------------------
   2. RESET Y BASE
------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--sage);
  color: var(--white);
}

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

/* Compensa la altura del header fijo al navegar con anclas */
[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

/* ------------------------------------------------------------
   3. UTILIDADES
------------------------------------------------------------ */
.container {
  width: min(var(--container), 100% - clamp(2.25rem, 6vw, 3.5rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.09rem);
  color: var(--ink-muted);
  line-height: 1.8;
}

.body-copy {
  color: var(--ink-body);
  line-height: 1.85;
}

.gold-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border: 0;
  margin: 1.4rem 0;
}

.section-head--center .gold-rule {
  margin-inline: auto;
}

/* Botones ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  will-change: transform;
  white-space: nowrap;
}

.btn svg {
  flex: none;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 10px 26px rgba(78, 174, 147, 0.35);
}

.btn--wa:hover {
  background: var(--wa-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(78, 174, 147, 0.42);
}

.btn--primary {
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(79, 125, 112, 0.28);
}

.btn--primary:hover {
  background: var(--sage-darker);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(79, 125, 112, 0.34);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--sage);
  color: var(--sage-darker);
  background: rgba(93, 138, 126, 0.07);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.btn--light:hover {
  transform: translateY(-2px);
  color: var(--sage-darker);
}

.btn--lg {
  padding: 1.15rem 2.1rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Enlace flecha ------------------------------------------------ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--sage-darker);
  transition: color var(--t-fast), gap var(--t-fast);
}

.link-arrow svg {
  transition: transform var(--t-fast);
}

.link-arrow:hover {
  color: var(--dark);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Animaciones de aparición -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: none;
}

/* Saltar al contenido ------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--dark);
  color: var(--white);
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------
   4. HEADER Y NAVEGACIÓN
------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(249, 246, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med), border-color var(--t-med),
    background-color var(--t-med);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(44, 62, 53, 0.07);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(44, 62, 53, 0.08), var(--shadow-xs);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__tagline {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage-deep);
  white-space: nowrap;
}

/* Navegación principal */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.35rem);
}

.nav-link {
  position: relative;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  white-space: nowrap;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sage-darker);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-cta {
  display: none;
  padding: 0.8rem 1.45rem;
  font-size: 0.88rem;
}

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  transition: background-color var(--t-fast);
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

.nav-toggle__bar {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-med), opacity var(--t-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panel móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: block;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.mobile-menu__body {
  height: 100%;
  overflow-y: auto;
  padding: calc(var(--header-h) + 1.2rem) 1.6rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--sage-darker);
  padding-left: 0.5rem;
}

.mobile-nav__link svg {
  color: var(--gold);
}

.mobile-menu__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.6rem;
}

.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.mobile-menu__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-menu__meta svg {
  color: var(--sage-deep);
  flex: none;
}

/* ------------------------------------------------------------
   5. HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.4rem, 6vw, 4.6rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero__bg::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -260px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 138, 126, 0.16), transparent 68%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  bottom: -300px;
  left: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.14), transparent 68%);
}

.hero__leaf {
  position: absolute;
  color: var(--sage);
  opacity: 0.14;
  z-index: -1;
}

.hero__leaf--tl {
  top: 16%;
  left: -40px;
  transform: rotate(-28deg);
}

.hero__leaf--br {
  bottom: 8%;
  right: 6%;
  transform: rotate(145deg);
  color: var(--gold);
  opacity: 0.2;
}

.hero-grid {
  display: grid;
  gap: clamp(2.6rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.15rem, 5.6vw, 4.35rem);
  letter-spacing: 0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-headline {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--sage-darker);
}

.hero-copy {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.07rem);
  line-height: 1.85;
  color: var(--ink-body);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-trust {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
}

.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-trust__item svg {
  color: var(--gold-deep);
  flex: none;
}

/* Imagen del hero ------------------------------------------------- */
.hero-visual {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.hero-visual__frame {
  position: relative;
  border-radius: var(--r-lg);
}

.hero-visual__frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--r-lg);
  opacity: 0.75;
  z-index: -1;
}

.hero-visual__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.hero-visual__badge {
  position: absolute;
  left: -14px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-width: min(300px, 86%);
}

.hero-visual__badge img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}

.hero-visual__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.2;
}

.hero-visual__badge span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero-visual__chip {
  position: absolute;
  right: -10px;
  top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  padding: 0.6rem 1.05rem;
  box-shadow: var(--shadow-md);
}

.hero-visual__chip svg {
  color: var(--gold);
}

/* ------------------------------------------------------------
   6. MÉTRICAS DE CONFIANZA
------------------------------------------------------------ */
.metrics {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.metrics__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.9rem) clamp(1.4rem, 4vw, 3rem);
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

.metric {
  text-align: center;
  padding: 0.4rem 0;
  position: relative;
}

.metric + .metric::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.8rem;
  width: 64px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  display: block;
}

.metric__value em {
  font-style: normal;
  color: var(--gold-deep);
  font-size: 0.72em;
  margin-right: 0.08em;
}

.metric__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   7. SOBRE NOSOTROS
------------------------------------------------------------ */
.about-grid {
  display: grid;
  gap: clamp(2.8rem, 6vw, 5rem);
  align-items: center;
}

.about-visual {
  position: relative;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}

.about-visual__main {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.about-visual__secondary {
  position: absolute;
  right: -8px;
  bottom: -38px;
  width: min(46%, 230px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-visual__deco {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 88px;
  height: 88px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 18px 0 0 0;
  opacity: 0.85;
}

.about-visual__tag {
  position: absolute;
  left: 18px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage-darker);
  box-shadow: var(--shadow);
}

.about-visual__tag svg {
  color: var(--gold-deep);
}

.benefits {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.benefit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.benefit__icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 138, 126, 0.13);
  color: var(--sage-darker);
}

.benefit__icon svg {
  width: 17px;
  height: 17px;
}

.benefit p {
  font-size: 0.95rem;
  color: var(--ink-body);
  margin: 0;
}

.about-quote {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink);
}

.about-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ------------------------------------------------------------
   8. SERVICIOS
------------------------------------------------------------ */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 60%, var(--bg) 100%);
}

.services-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-soft);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.055);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(44, 62, 53, 0.34) 100%);
  opacity: 0.9;
}

.service-card__icon {
  position: absolute;
  left: 1rem;
  bottom: -22px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--sage-darker);
  box-shadow: var(--shadow-md);
}

.service-card__icon svg {
  width: 21px;
  height: 21px;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.1rem 1.5rem 1.6rem;
}

.service-card__title {
  font-size: 1.28rem;
  line-height: 1.3;
}

.service-card__text {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.service-card__foot {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage-darker);
  transition: color var(--t-fast);
}

.service-card__cta svg {
  transition: transform var(--t-fast);
}

.service-card__cta:hover {
  color: var(--dark);
}

.service-card__cta:hover svg {
  transform: translateX(4px);
}

.service-card__wa {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(78, 174, 147, 0.16);
  color: #2E7A66;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.service-card__wa:hover {
  background: var(--wa);
  color: var(--wa-ink);
  transform: translateY(-2px);
}

.services-note {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.services-note a {
  color: var(--sage-darker);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------
   9. TECNOLOGÍA Y APARATOLOGÍA
------------------------------------------------------------ */
.tech {
  background: var(--white);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.tech-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.tech-visual {
  position: relative;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}

.tech-visual__main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 68%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.tech-visual__secondary {
  position: absolute;
  left: -16px;
  bottom: -34px;
  width: min(52%, 250px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.tech-visual__pattern {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 120px;
  height: 120px;
  z-index: -1;
  background-image: radial-gradient(rgba(93, 138, 126, 0.4) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  border-radius: 12px;
  opacity: 0.7;
}

.tech-visual__badge {
  position: absolute;
  right: -12px;
  top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--r-pill);
  padding: 0.65rem 1.1rem;
  box-shadow: var(--shadow-md);
}

.tech-visual__badge svg {
  color: var(--gold);
}

.tech-features {
  margin-top: 2.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.tech-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.tech-feature:hover {
  border-color: rgba(93, 138, 126, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.tech-feature__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--sage-darker);
  box-shadow: var(--shadow-xs);
}

.tech-feature__icon svg {
  width: 19px;
  height: 19px;
}

.tech-feature strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.tech-feature p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.tech-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ------------------------------------------------------------
   10. BLOG
------------------------------------------------------------ */
.blog-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.055);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.5rem 1.7rem;
}

.blog-card__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

.blog-card__title {
  font-size: 1.22rem;
  line-height: 1.35;
}

.blog-card__title a {
  transition: color var(--t-fast);
}

.blog-card__title a:hover {
  color: var(--sage-darker);
}

.blog-card__excerpt {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.blog-card__foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* ------------------------------------------------------------
   11. UBICACIÓN Y HORARIOS
------------------------------------------------------------ */
.location {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.location-grid {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.5rem;
}

.info-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.info-card__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(93, 138, 126, 0.14);
  color: var(--sage-darker);
}

.info-card__icon svg {
  width: 19px;
  height: 19px;
}

.info-card__head h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.address-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: var(--ink-body);
  line-height: 1.65;
  transition: color var(--t-fast);
}

.address-link svg {
  flex: none;
  margin-top: 0.28rem;
  color: var(--gold-deep);
}

.address-link:hover {
  color: var(--sage-darker);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.hours-list {
  display: flex;
  flex-direction: column;
}

.hours-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  font-size: 0.93rem;
  border-bottom: 1px dashed var(--line-strong);
}

.hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours-list .day {
  color: var(--ink);
  font-weight: 600;
}

.hours-list .time {
  color: var(--ink-muted);
  text-align: right;
}

.hours-list li.is-closed .time {
  color: var(--gold-deep);
  font-weight: 600;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2E7A66;
  background: rgba(78, 174, 147, 0.14);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem;
  margin-bottom: 0.4rem;
}

.location-badge svg {
  width: 15px;
  height: 15px;
}

.map-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 320px;
  height: 100%;
  background: var(--bg-soft);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: saturate(0.92);
}

.gallery-strip {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.gallery-strip figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-strip img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.9s var(--ease);
}

.gallery-strip figure:hover img {
  transform: scale(1.04);
}

.gallery-strip figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(44, 62, 53, 0.82);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------
   12. CTA FINAL
------------------------------------------------------------ */
.final-cta {
  background:
    radial-gradient(ellipse 70% 90% at 88% 10%, rgba(212, 163, 115, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 8% 100%, rgba(93, 138, 126, 0.28), transparent 62%),
    var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.final-cta__grid {
  display: grid;
  gap: clamp(2.6rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

.final-cta .eyebrow {
  color: var(--gold-soft);
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  text-wrap: balance;
}

.final-cta p {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.85;
  max-width: 33rem;
}

.final-cta__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.final-cta__note {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.final-cta__note svg {
  color: var(--gold);
  flex: none;
}

.final-cta__visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.final-cta__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.final-cta__visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid rgba(212, 163, 115, 0.65);
  border-radius: var(--r-lg);
  z-index: -1;
}

.final-cta__quote {
  position: absolute;
  left: -12px;
  bottom: -24px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 250px;
}

.final-cta__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.final-cta__quote span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ------------------------------------------------------------
   13. FOOTER
------------------------------------------------------------ */
.site-footer {
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}

.footer-grid {
  display: grid;
  gap: 2.6rem;
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  grid-template-columns: 1fr;
}

.footer-brand .brand__name {
  color: var(--white);
}

.footer-brand .brand__tagline {
  color: var(--gold-soft);
}

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 30rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  flex: none;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.93rem;
}

.footer-contact__item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact__item svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--gold-soft);
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 0.35rem;
}

.footer-hours div:last-child {
  border-bottom: 0;
}

.footer-hours dt {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-hours dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover {
  background: rgba(212, 163, 115, 0.16);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: center;
}

.footer-legal a {
  transition: color var(--t-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------
   14. BOTÓN FLOTANTE WHATSAPP
------------------------------------------------------------ */
.wa-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: var(--wa-ink);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-pill);
  box-shadow: 0 14px 34px rgba(44, 62, 53, 0.28);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med),
    background-color var(--t-fast);
}

.wa-fab.is-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.wa-fab:hover {
  background: var(--wa-deep);
  color: var(--white);
}

.wa-fab__label {
  display: none;
}

/* ------------------------------------------------------------
   15. PÁGINAS DE ARTÍCULO
------------------------------------------------------------ */
.article-hero {
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.2rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}

.breadcrumbs a {
  color: var(--sage-darker);
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
  color: var(--gold-deep);
}

.article-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  max-width: 21ch;
  text-wrap: balance;
}

.article-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta__item svg {
  color: var(--gold-deep);
}

.article-cover {
  margin-top: 2.4rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-body {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2.6rem, 5vw, 4rem) var(--section-y);
}

.article-body > * + * {
  margin-top: 1.35rem;
}

.article-body h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin-top: 2.6rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-left: 0.2rem;
}

.article-body ul li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.article-callout {
  padding: 1.5rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-xs);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-body);
}

.article-callout strong {
  color: var(--ink);
}

.article-cta {
  margin-top: 3rem;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}

.article-cta h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  margin: 0;
}

.article-back {
  margin-top: 2.4rem;
}

/* ------------------------------------------------------------
   16. PÁGINAS LEGALES
------------------------------------------------------------ */
.legal-body {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: calc(var(--header-h) + 3.5rem) var(--section-y);
}

.legal-body h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
}

.legal-body p,
.legal-body li {
  font-size: 0.98rem;
  line-height: 1.85;
}

.legal-body > * + * {
  margin-top: 1.2rem;
}

.legal-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: disc;
  padding-left: 1.4rem;
}

.legal-note {
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--gold-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   17. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1219px) {
  .brand__tagline {
    display: none;
  }
}

@media (min-width: 640px) {
  .metrics__card {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric + .metric::before {
    left: -0.8rem;
    top: 50%;
    width: 1px;
    height: 64px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
  }

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

  .tech-features {
    grid-template-columns: 1fr;
  }

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

  .gallery-strip figure:first-child {
    grid-column: span 2;
  }

  .wa-fab__label {
    display: inline;
  }
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-visual {
    margin-left: auto;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .location-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .final-cta__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1220px) {
  .main-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1180px) {
  .service-card__media {
    aspect-ratio: 16 / 10;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-strip {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .gallery-strip figure:first-child {
    grid-column: span 1;
  }

  .gallery-strip img {
    aspect-ratio: auto;
    height: 260px;
  }
}

/* ------------------------------------------------------------
   18. PREFERENCIAS DE MOVIMIENTO
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
