/* =====================================================================
   EQUICLINIC VETERINARIOS — Rediseño 2026
   Paleta de marca: blanco azulado · teal #0ca4bb · oro #f1ba63 · cobalto equino
   Tipografía: Fraunces (display) + Hanken Grotesk (texto)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Neutros frescos · fondo claro azulado de marca (#edf2fb) */
  --paper:       oklch(0.983 0.006 248);
  --paper-2:     oklch(0.963 0.011 250);
  --paper-sink:  oklch(0.922 0.017 250);
  --ink:         oklch(0.300 0.006 250);
  --ink-soft:    oklch(0.470 0.014 248);
  --ink-faint:   oklch(0.605 0.012 246);
  --line:        oklch(0.300 0.018 250 / 0.14);
  --line-soft:   oklch(0.300 0.018 250 / 0.08);

  /* Tonos profundos del teal de marca #189BAC (zonas oscuras, equinos, botones) */
  --blue:        oklch(0.520 0.098 210);
  --blue-bright: oklch(0.585 0.104 209);
  --blue-deep:   oklch(0.410 0.085 211);
  --blue-ink:    oklch(0.320 0.070 212);

  /* Teal de marca #189BAC (mascotas + acentos vivos) */
  --teal:        oklch(0.633 0.106 209);
  --teal-deep:   oklch(0.515 0.092 210);

  /* Oro / ámbar de marca (#f1ba63 · bronce #ad8647) */
  --clay:        oklch(0.782 0.108 79);
  --clay-soft:   oklch(0.862 0.076 84);
  --sand:        oklch(0.905 0.040 86);

  /* Sobre fondo oscuro (frío) */
  --on-dark:       oklch(0.975 0.007 240);
  --on-dark-soft:  oklch(0.975 0.007 240 / 0.66);
  --on-dark-faint: oklch(0.975 0.007 240 / 0.40);
  --on-dark-line:  oklch(0.975 0.007 240 / 0.16);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Easing */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);

  /* Métrica */
  --shell: 1240px;
  --radius: 18px;
  --radius-lg: 30px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2.5px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.75rem); }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.4rem;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }
.eyebrow--light { color: var(--on-dark-soft); }
.eyebrow--light .eyebrow__dot { background: var(--clay-soft); }
.eyebrow--teal { color: var(--teal-deep); }
.eyebrow--teal .eyebrow__dot { background: var(--teal); }

.section-title {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
  color: var(--ink);
}
.section-title--light { color: var(--on-dark); }

.section-head { max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end; max-width: none;
}
.section-head__lead { color: var(--ink-soft); font-size: 1.075rem; max-width: 40rem; }
.section-head__lead--center { margin-top: 1.5rem; }
.equinos .section-head__lead { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.78em 1.4em; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.16s var(--ease-out-quart), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--blue); color: var(--on-dark); box-shadow: 0 1px 2px oklch(0.260 0.050 220 / 0.3); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--lg { padding: 0.95em 1.7em; font-size: 1.0rem; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--solid:hover { background: var(--blue-bright); box-shadow: 0 8px 24px oklch(0.52 0.10 210 / 0.32); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: oklch(0.255 0.032 262 / 0.04); }
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.site-header[data-scrolled] {
  background: oklch(0.984 0.006 248 / 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -22px oklch(0.260 0.050 220 / 0.5);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__logo { display: block; width: auto; height: clamp(1.85rem, 1.5rem + 1vw, 2.3rem); }
.brand__logo--inv { filter: brightness(0) invert(1); }            /* sobre fondos oscuros */
.brand--footer .brand__logo { height: clamp(1.7rem, 1.4rem + 0.9vw, 2.1rem); }
.brand__word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1;
  letter-spacing: -0.02em; color: var(--ink); display: flex; flex-direction: column; gap: 0.18rem;
}
.brand__sub {
  font-family: var(--font-sans); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint);
}

.nav { display: flex; gap: 0.35rem; }
.nav a {
  position: relative; padding: 0.5rem 0.9rem; border-radius: 100px; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft); transition: color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) { .nav a:hover { color: var(--ink); background: oklch(0.255 0.032 262 / 0.05); } }
.nav a.is-active { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
/* separación entre el bloque de urgencias y el botón de cita (solo cuando ambos se ven) */
@media (min-width: 721px) {
  .header-actions .phone-chip { padding-right: 1.25rem; }
}
.phone-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem;
  color: var(--ink); line-height: 1.1;
}
.phone-chip svg { width: 2.1rem; height: 2.1rem; padding: 0.55rem; fill: var(--blue); background: oklch(0.520 0.098 210 / 0.10); border-radius: 50%; flex: none; transition: background-color 0.2s ease; }
.phone-chip__label { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); }
@media (hover: hover) { .phone-chip:hover svg { background: oklch(0.520 0.098 210 / 0.18); } }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; flex: none; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out-quart), opacity 0.2s ease; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--blue-ink); color: var(--on-dark);
  display: flex; flex-direction: column; padding-block: 1.4rem;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-quint);
}
.mobile-menu[data-open] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.brand__word--menu { color: var(--on-dark); font-size: 1.5rem; }
.mobile-menu .menu-toggle span { background: var(--on-dark); }
.mobile-menu__nav { display: flex; flex-direction: column; justify-content: center; flex: 1; gap: 0.2rem; padding-inline: clamp(1.25rem, 6vw, 2.75rem); }
.mobile-menu__nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  display: flex; align-items: baseline; gap: 1rem; padding-block: 0.35rem; color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
}
.mm-num { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--clay-soft); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.2rem; color: var(--on-dark-soft); font-weight: 600; }

/* =====================================================================
   PORTADA DE SELECCIÓN — dos puertas (equinos · mascotas)
   ===================================================================== */
.gateway { position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(1.6rem, 5vw, 3.4rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.gateway__crest { position: absolute; top: -10%; right: -6%; width: min(52vw, 620px); aspect-ratio: 1;
  background-color: var(--teal); opacity: 0.05;
  -webkit-mask: url(../img/brand-icon.png) center/contain no-repeat;
  mask: url(../img/brand-icon.png) center/contain no-repeat; pointer-events: none; }
.gateway__intro { position: relative; max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.gateway__title { font-size: clamp(2.1rem, 1.25rem + 3.5vw, 4.05rem); color: var(--ink); line-height: 1.05; margin-bottom: 1.25rem; }
.gateway__title em { font-style: italic; color: var(--teal-deep); }
.gateway__lead { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.22rem); color: var(--ink-soft); max-width: 41rem; }

.gateway__doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.2vw, 1.6rem); }
.door { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 50vh, 560px); border-radius: var(--radius-lg); overflow: hidden;
  color: var(--on-dark); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -42px oklch(0.260 0.050 220 / 0.6);
  transition: transform 0.35s var(--ease-out-quint), box-shadow 0.35s ease; }
.door__media { position: absolute; inset: 0; z-index: -2; }
.door__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-quint); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.door--equinos::after { background: linear-gradient(197deg, oklch(0.40 0.085 212 / 0.16) 0%, oklch(0.40 0.085 212 / 0) 40%, oklch(0.255 0.062 214 / 0.93) 100%); }
.door--mascotas::after { background: linear-gradient(197deg, oklch(0.46 0.09 208 / 0.20) 0%, oklch(0.46 0.09 208 / 0) 40%, oklch(0.295 0.072 210 / 0.93) 100%); }
.door__kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 0.85rem; }
.door__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.door__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.3vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; color: var(--on-dark); }
.door__text { color: var(--on-dark-soft); font-size: 1rem; max-width: 24rem; margin: 0.7rem 0 1.3rem; text-wrap: pretty; }
.door__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.4rem; }
.door__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.06rem; color: var(--on-dark); }
.door__phone svg { width: 1.05rem; height: 1.05rem; fill: currentColor; opacity: 0.92; }
.door__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--on-dark); padding: 0.6em 1.15em; border-radius: 100px; background: oklch(1 0 0 / 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.28); transition: background-color 0.2s ease; }
.door__cta svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out-quart); }
/* toda la tarjeta es clicable (enlace estirado desde el título); el teléfono queda por encima */
.door__title-link { color: inherit; }
.door__title-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); }
.door__foot { position: relative; z-index: 3; }
@media (hover: hover) {
  .door:hover { transform: translateY(-6px); box-shadow: 0 42px 82px -44px oklch(0.260 0.050 220 / 0.7); }
  .door:hover .door__media img { transform: scale(1.05); }
  .door:hover .door__cta { background: oklch(1 0 0 / 0.28); }
  .door:hover .door__cta svg { transform: translate(2px, -2px); }
}
@media (max-width: 720px) {
  .gateway__doors { grid-template-columns: 1fr; }
  .door { min-height: clamp(340px, 64vw, 440px); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__crest {
  position: absolute; top: -8%; right: -6%; width: min(58vw, 720px); aspect-ratio: 1;
  background-color: var(--blue); opacity: 0.045;
  -webkit-mask: url(../img/brand-icon.png) center / contain no-repeat;
  mask: url(../img/brand-icon.png) center / contain no-repeat;
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }

.hero__title {
  font-size: clamp(1.95rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.07; letter-spacing: -0.02em; margin-bottom: 1.6rem; color: var(--ink); text-wrap: balance;
}
.hero__title em { color: var(--blue); display: inline-block; }
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.4rem; }

.hero__trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.hero__trust svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--clay); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero__trust li:first-child svg { fill: var(--clay); stroke: none; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 280px 280px var(--radius-lg) var(--radius-lg);
  overflow: hidden; aspect-ratio: 0.86; box-shadow: 0 40px 80px -40px oklch(0.260 0.050 220 / 0.55);
  background: var(--paper-sink);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -1.4rem; bottom: 2.2rem; background: var(--paper);
  border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; align-items: center; gap: 0.9rem;
  box-shadow: 0 24px 50px -28px oklch(0.260 0.050 220 / 0.6); border: 1px solid var(--line-soft);
}
.hero__badge-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 0.85; color: var(--blue); }
.hero__badge-num small { font-size: 1.1rem; }
.hero__badge-text { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.stat { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; top: 0.4rem; bottom: 0.4rem; right: clamp(-0.75rem, -1.5vw, -1.5rem); width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 500; line-height: 0.95; color: var(--blue); letter-spacing: -0.02em; }
.stat__num--word { font-style: italic; color: var(--clay); }
.stat__label { font-size: 0.92rem; color: var(--ink-soft); max-width: 16rem; }

/* =====================================================================
   TWO WORLDS
   ===================================================================== */
.worlds { padding-block: clamp(4.5rem, 9vw, 8rem); }
.worlds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.world {
  background: var(--paper-2); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out-quint), box-shadow 0.5s var(--ease-out-quint);
}
@media (hover: hover) {
  .world:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -44px oklch(0.260 0.050 220 / 0.55); }
  .world:hover .world__media img { transform: scale(1.045); }
}
.world__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.world__media::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.0; transition: opacity 0.5s ease; }
.world--equinos .world__media::after { background: var(--blue); opacity: 0.10; }
.world--mascotas .world__media::after { background: var(--teal); opacity: 0.10; }
.world__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-quint); }
.world__body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.world__tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); }
.world--mascotas .world__tag { color: var(--teal-deep); }
.world__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); color: var(--ink); }
.world__text { color: var(--ink-soft); font-size: 1rem; }
.world__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--blue);
  width: fit-content; padding-top: 0.4rem;
}
.world__link svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out-quart); }
.world__link--teal { color: var(--teal-deep); }
@media (hover: hover) { .world__link:hover svg { transform: translate(3px, -3px); } }

/* ---------- Chips ---------- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { font-size: 0.82rem; font-weight: 600; padding: 0.35em 0.85em; border-radius: 100px; background: oklch(0.520 0.098 210 / 0.09); color: var(--blue); }
.chips--teal li { background: oklch(0.660 0.105 205 / 0.14); color: var(--teal-deep); }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { background: var(--blue); color: var(--on-dark); overflow: hidden; padding-block: 1.05rem; }
.marquee__track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; will-change: transform; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; font-style: italic; }
.marquee__dot { color: var(--clay-soft); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =====================================================================
   EQUINOS (dark)
   ===================================================================== */
.equinos { position: relative; background: var(--blue-deep); color: var(--on-dark); padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.equinos__horse {
  position: absolute; right: -4%; bottom: -6%; width: min(40vw, 460px); aspect-ratio: 0.92;
  background: url(../img/horse-rearing.png) center / contain no-repeat; opacity: 0.10; pointer-events: none;
  filter: brightness(0) invert(1);
}
.equinos .section-head { position: relative; }

/* Servicios interactivos */
.svc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--on-dark-line); }
.svc__item {
  width: 100%; display: flex; align-items: center; gap: 1.1rem; text-align: left;
  padding: 1.05rem 0.4rem; border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark-soft); transition: color 0.25s ease, padding 0.35s var(--ease-out-quart);
}
.svc__n { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: var(--clay-soft); width: 1.6rem; flex: none; transition: color 0.25s ease; }
.svc__name { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 500; line-height: 1.1; flex: 1; }
.svc__plus { position: relative; width: 1rem; height: 1rem; flex: none; opacity: 0.5; transition: opacity 0.25s ease; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.svc__plus::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.svc__plus::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); transition: transform 0.3s var(--ease-out-quart); }
.svc__item.is-active { color: var(--on-dark); padding-left: 1rem; }
.svc__item.is-active .svc__n { color: var(--clay); }
.svc__item.is-active .svc__plus { opacity: 1; }
.svc__item.is-active .svc__plus::after { transform: translateX(-50%) scaleY(0); }
@media (hover: hover) { .svc__item:hover { color: var(--on-dark); } .svc__item:hover .svc__n { color: var(--clay); } }

.svc__panel { position: relative; }
.svc__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.1; margin: 0; box-shadow: 0 40px 80px -44px oklch(0 0 0 / 0.6); }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__media img:first-child { z-index: 2; clip-path: inset(0 0 0 0); }
.svc__media img:last-child { filter: grayscale(0.2); }
.svc__detail { margin-top: 1.8rem; }
.svc__detail-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); color: var(--on-dark); margin-bottom: 0.7rem; }
.svc__detail-text { color: var(--on-dark-soft); font-size: 1.05rem; max-width: 34rem; min-height: 4.5em; }
.svc__detail-title, .svc__detail-text { transition: opacity 0.3s ease, transform 0.4s var(--ease-out-quint); }
.svc.is-swapping .svc__detail-title, .svc.is-swapping .svc__detail-text { opacity: 0; transform: translateY(6px); }

/* =====================================================================
   MASCOTAS
   ===================================================================== */
.mascotas { padding-block: clamp(4.5rem, 9vw, 8rem); }
.mascotas .section-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.mascotas .eyebrow { justify-content: center; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.9rem; }
.bento__cell { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--paper-sink); }
.bento__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-quint); }
.bento__cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 1rem;
  color: var(--on-dark); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(to top, oklch(0.18 0.05 250 / 0.82), oklch(0.18 0.05 250 / 0));
}
.bento__cell figcaption span { font-family: var(--font-display); font-style: italic; color: var(--teal); font-size: 0.85rem; }
.bento__cell--xl { grid-column: span 2; grid-row: span 2; }
.bento__cell--tall { grid-row: span 2; }
@media (hover: hover) { .bento__cell:hover img { transform: scale(1.05); } }

.tags { list-style: none; padding: 0; margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.tags li { font-size: 0.9rem; font-weight: 600; padding: 0.5em 1.1em; border-radius: 100px; background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line-soft); }

/* =====================================================================
   WHY US
   ===================================================================== */
.why { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--paper-2); }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 6rem); }
.why__item { display: flex; gap: 1.4rem; align-items: flex-start; }
.why__n { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); font-weight: 500; color: var(--clay); line-height: 0.9; flex: none; font-style: italic; }
.why__title { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem); color: var(--ink); margin-bottom: 0.5rem; }
.why__text { color: var(--ink-soft); max-width: 30rem; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team { padding-block: clamp(4.5rem, 9vw, 8rem); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.team__card { margin: 0; transition: transform 0.4s var(--ease-out-quint); }
.team__photo { position: relative; border-radius: clamp(90px, 15vw, 150px) clamp(90px, 15vw, 150px) var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-sink); margin-bottom: 1.2rem; box-shadow: 0 30px 60px -46px oklch(0.260 0.050 220 / 0.5); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-quint); filter: saturate(0.98); }
@media (hover: hover) { .team__card:hover { transform: translateY(-5px); } .team__card:hover .team__photo img { transform: scale(1.05); } }
.team__name { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.05; color: var(--ink); }
.team__role { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.team__role::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--teal); flex: none; }

/* --- Equipo: fundadores (editorial, alternado) --- */
.founders { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.founder { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.6rem, 4.5vw, 4rem); align-items: center; }
.founder--alt { grid-template-columns: 1.18fr 0.82fr; }
.founder--alt .founder__portrait { order: 2; }
.founder__portrait { position: relative; margin: 0; border-radius: clamp(130px, 22vw, 230px) clamp(130px, 22vw, 230px) var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 0.84; background: var(--paper-sink); box-shadow: 0 44px 84px -48px oklch(0.260 0.050 220 / 0.55); }
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.98); transition: transform 0.9s var(--ease-out-quint); }
@media (hover: hover) { .founder:hover .founder__portrait img { transform: scale(1.045); } }
.founder__body { position: relative; }
.founder__index { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem); font-weight: 500; line-height: 0.8; letter-spacing: -0.03em; color: var(--teal); opacity: 0.20; margin-bottom: 0.7rem; }
.founder__tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.5rem; }
.founder__name { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); }
.founder__role { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-deep); margin: 0.6rem 0 1.15rem; }
.founder__bio { color: var(--ink-soft); font-size: 1.02rem; max-width: 42ch; }
.founder__creds { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.founder__creds li { font-size: 0.8rem; font-weight: 600; padding: 0.42em 0.95em; border-radius: 100px; background: oklch(0.520 0.098 210 / 0.10); color: var(--teal-deep); }
@media (max-width: 760px) {
  .founder, .founder--alt { grid-template-columns: 1fr; gap: 1.5rem; }
  .founder--alt .founder__portrait { order: 0; }
  .founder__portrait { aspect-ratio: 1.1; max-width: 440px; border-radius: 150px 150px var(--radius-lg) var(--radius-lg); }
  .founder__bio { max-width: none; }
}

/* =====================================================================
   QUOTES
   ===================================================================== */
.quotes { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--paper-2); }
.quotes__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: clamp(1.25rem, 2.5vw, 1.6rem); }
.quote { margin: 0; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 1.1rem; }
.quote--lead { grid-row: span 2; justify-content: center; background: var(--blue); color: var(--on-dark); }
.quote__stars { display: flex; gap: 0.2rem; }
.quote__stars svg { width: 1.1rem; height: 1.1rem; fill: var(--clay); }
.quote--lead .quote__stars svg { fill: var(--clay-soft); }
.quote p { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.35; color: var(--ink); font-weight: 400; }
.quote--lead p { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); color: var(--on-dark); }
.quote footer { display: flex; flex-direction: column; gap: 0.1rem; margin-top: auto; }
.quote__name { font-weight: 700; color: var(--ink); }
.quote__meta { font-size: 0.85rem; color: var(--ink-faint); }
.quote--lead .quote__name { color: var(--on-dark); }
.quote--lead .quote__meta { color: var(--on-dark-soft); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { position: relative; background: var(--blue-ink); color: var(--on-dark); padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.contact__crest {
  position: absolute; left: -8%; bottom: -14%; width: min(46vw, 540px); aspect-ratio: 1;
  background-color: var(--on-dark); opacity: 0.04;
  -webkit-mask: url(../img/brand-icon.png) center / contain no-repeat;
  mask: url(../img/brand-icon.png) center / contain no-repeat; pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

.contact__rows { display: flex; flex-direction: column; margin-top: 1rem; }
.contact__row { display: flex; flex-direction: column; gap: 0.15rem; padding-block: 1.1rem; border-top: 1px solid var(--on-dark-line); }
.contact__row:last-child { border-bottom: 1px solid var(--on-dark-line); }
.contact__k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-soft); }
.contact__v { font-size: 1.08rem; font-weight: 600; color: var(--on-dark); transition: color 0.2s ease; }
.contact__v--plain { font-weight: 500; color: var(--on-dark-soft); }
@media (hover: hover) { a.contact__v:hover { color: var(--clay-soft); } }

.contact__social { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.contact__social a { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--on-dark-line); color: var(--on-dark); transition: background-color 0.25s ease, transform 0.2s var(--ease-out-quart), border-color 0.25s ease; }
.contact__social svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.contact__social a:active { transform: scale(0.94); }
@media (hover: hover) { .contact__social a:hover { background: var(--blue); border-color: var(--blue); } }

/* Form */
.contact__form { background: oklch(0.962 0.012 84 / 0.04); border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--on-dark-soft); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--on-dark);
  background: oklch(0.962 0.012 84 / 0.06); border: 1px solid var(--on-dark-line);
  border-radius: 12px; padding: 0.8em 1em; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 6.5em; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay-soft); background: oklch(0.962 0.012 84 / 0.10); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--clay); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap select option { color: var(--ink); }
.select-wrap svg { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--on-dark-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.form-note { font-size: 0.85rem; color: var(--on-dark-soft); }
.form-note a { color: var(--clay-soft); font-weight: 600; }
.form-success { display: flex; gap: 0.8rem; align-items: flex-start; background: oklch(0.660 0.105 205 / 0.14); border: 1px solid oklch(0.660 0.105 205 / 0.4); border-radius: 14px; padding: 1rem 1.1rem; }
.form-success svg { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-success p { font-size: 0.92rem; color: var(--on-dark); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); padding-bottom: 3rem; }
.brand--footer .brand__sub { color: var(--ink-faint); }
.footer__tag { margin-top: 1.2rem; color: var(--ink-soft); max-width: 22rem; font-size: 0.95rem; }
.footer__h { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer__nav, .footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__nav a, .footer__col a { color: var(--ink-soft); font-weight: 500; width: fit-content; transition: color 0.2s ease; }
@media (hover: hover) { .footer__nav a:hover, .footer__col a:hover { color: var(--blue); } }
.footer__muted { color: var(--ink-faint); font-size: 0.88rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.86rem; }
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__legal a { color: var(--ink-faint); transition: color 0.2s ease; }
@media (hover: hover) { .footer__legal a:hover { color: var(--ink); } }

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
/* El estado inicial oculto solo se aplica si hay JS, para que el contenido
   sea visible aunque el script falle o esté desactivado. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out-quint), transform 0.8s var(--ease-out-quint); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .svc { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc__panel { order: -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { max-width: 30rem; margin-inline: auto; width: 100%; }
  .phone-chip__label { display: none; }
  .phone-chip span { font-size: 0; }
  .phone-chip span::after { content: "24 h"; font-size: 0.95rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat:nth-child(2)::after { display: none; }
  .worlds__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .quotes__grid { grid-template-columns: 1fr; }
  .quote--lead { grid-row: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .btn--solid.btn:not(.btn--lg):not(.btn--block) { padding-inline: 1.1em; }
  .header-actions .btn--solid { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .bento__cell--xl { grid-column: span 2; grid-row: span 1; aspect-ratio: auto; }
}

@media (max-width: 560px) {
  .hero__frame { border-radius: 180px 180px var(--radius) var(--radius); }
  .hero__badge { left: 0; bottom: 1rem; padding: 0.8rem 1rem; }
  .hero__cta .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat::after { display: none !important; }
  .stat { flex-direction: row; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
  .stat__num { font-size: 2.4rem; flex: none; min-width: 4.5rem; }
  .team__grid { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .phone-chip { display: none; }
}

/* =====================================================================
   MULTIPÁGINA — componentes compartidos
   ===================================================================== */

/* Nav: página activa */
.nav a[aria-current="page"] { color: var(--blue); background: oklch(0.520 0.098 210 / 0.08); }

/* Secciones genéricas */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--blue-deep); color: var(--on-dark); }
.section--dark .section-title { color: var(--on-dark); }
.section--dark .section-head__lead { color: var(--on-dark-soft); }
.section__intro { max-width: 46rem; color: var(--ink-soft); font-size: 1.075rem; margin-top: 1.2rem; }
.section--dark .section__intro { color: var(--on-dark-soft); }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.page-hero__crest { position: absolute; top: -12%; right: -5%; width: min(48vw, 540px); aspect-ratio: 1; background-color: var(--blue); opacity: 0.05; -webkit-mask: url(../img/brand-icon.png) center/contain no-repeat; mask: url(../img/brand-icon.png) center/contain no-repeat; pointer-events: none; }
.page-hero--teal .page-hero__crest { background-color: var(--teal); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; max-width: 54rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 1.3rem; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--ink-faint); transition: color 0.2s ease; }
@media (hover: hover) { .breadcrumb a:hover { color: var(--blue); } }
.breadcrumb span { opacity: 0.4; }
.page-hero__title { font-size: clamp(1.9rem, 1.05rem + 3vw, 3.5rem); line-height: 1.07; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1.4rem; }
.page-hero__title em { color: var(--blue); }
.page-hero--teal .page-hero__title em { color: var(--teal-deep); }
.page-hero__lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--ink-soft); max-width: 38rem; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); aspect-ratio: 0.92; object-fit: cover; box-shadow: 0 36px 70px -44px oklch(0.260 0.050 220 / 0.5); }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3.2; box-shadow: 0 30px 60px -46px oklch(0.260 0.050 220 / 0.5); }
.split__title { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); color: var(--ink); margin-bottom: 1.1rem; }
.section--dark .split__title { color: var(--on-dark); }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }
.section--dark .split p { color: var(--on-dark-soft); }
.split p:last-of-type { margin-bottom: 0; }
.split__cta { margin-top: 1.6rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---------- Features (servicios) ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem) clamp(2rem, 5vw, 4rem); }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.feature__n { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--clay); flex: none; line-height: 1.1; min-width: 1.7rem; }
.feature__title { font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.feature__text { color: var(--ink-soft); font-size: 0.95rem; }
.is-dark .feature, .section--dark .feature { border-color: var(--on-dark-line); }
.is-dark .feature__title, .section--dark .feature__title { color: var(--on-dark); }
.is-dark .feature__text, .section--dark .feature__text { color: var(--on-dark-soft); }
.feature--teal .feature__n { color: var(--teal-deep); }

/* ---------- Members (equipo) ---------- */
.members { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 2.6vw, 2rem); }
.member { display: grid; grid-template-columns: 152px 1fr; gap: 1.6rem; align-items: start; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.3rem, 2.6vw, 1.9rem); }
.member__photo, .member__avatar { width: 152px; height: 188px; border-radius: var(--radius); overflow: hidden; background: var(--paper-sink); flex: none; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__avatar { display: grid; place-items: center; background: var(--blue); color: var(--on-dark); font-family: var(--font-display); font-weight: 500; font-size: 3.2rem; letter-spacing: 0.02em; }
.member__avatar--teal { background: var(--teal-deep); }
.member__avatar--clay { background: var(--clay); }
.member__tag { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.4rem; }
.member__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); line-height: 1.05; }
.member__role { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0.45rem 0 0.85rem; }
.member__role--teal { color: var(--teal-deep); }
.member__bio { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact cards (equinos / mascotas) ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 1.8rem); }
.contact-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 0.6rem; }
.contact-card__tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); }
.contact-card--mascotas .contact-card__tag { color: var(--teal-deep); }
.contact-card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.contact-card__row { display: flex; flex-direction: column; padding-block: 0.6rem; border-top: 1px solid var(--line-soft); }
.contact-card__row:first-of-type { border-top: none; }
.contact-card__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.1rem; }
.contact-card__v { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-card__v--plain { font-weight: 500; color: var(--ink-soft); font-size: 0.98rem; }
@media (hover: hover) { a.contact-card__v:hover { color: var(--blue); } .contact-card--mascotas a.contact-card__v:hover { color: var(--teal-deep); } }

/* ---------- Map ---------- */
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 16 / 8; background: var(--paper-sink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--blue); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(2.6rem, 6vw, 4.5rem); text-align: center; overflow: hidden; }
.cta-band__crest { position: absolute; right: -6%; bottom: -30%; width: min(42vw, 420px); aspect-ratio: 1; background-color: var(--on-dark); opacity: 0.06; -webkit-mask: url(../img/brand-icon.png) center/contain no-repeat; mask: url(../img/brand-icon.png) center/contain no-repeat; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); color: var(--on-dark); margin-bottom: 1rem; }
.cta-band p { color: var(--on-dark-soft); max-width: 40rem; margin: 0 auto 1.9rem; }
.cta-band__cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--solid { background: var(--paper); color: var(--blue); }
.cta-band .btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-line); }
@media (hover: hover) { .cta-band .btn--solid:hover { background: var(--on-dark); box-shadow: 0 10px 30px oklch(0.18 0.05 250 / 0.4); } .cta-band .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); background: oklch(0.975 0.007 240 / 0.08); } }

/* ---------- Prose (páginas legales) ---------- */
.prose { max-width: 46rem; }
.prose > p:first-child { font-size: 1.1rem; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.9vw, 1.8rem); color: var(--ink); margin: 2.6rem 0 0.8rem; }
.prose h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 1.7rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-bottom: 0.95rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose__updated { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 2rem; }

/* ---------- Responsivo multipágina ---------- */
@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .page-hero__media { max-width: 26rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .features, .features--3 { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .member { grid-template-columns: 1fr; gap: 1.1rem; justify-items: start; }
  .member__photo, .member__avatar { width: 110px; height: 132px; }
  .member__avatar { font-size: 2.4rem; }
  .page-hero__media img { border-radius: 140px 140px var(--radius) var(--radius); }
}

/* =====================================================================
   RECORTE YEGUA + POTRO (imagen actual de su web) sobre panel tintado
   ===================================================================== */
.media-cutout { position: relative; background: var(--paper-2); border-radius: 260px 260px var(--radius-lg) var(--radius-lg); aspect-ratio: 1 / 1.04; display: grid; place-items: center; padding: clamp(1.8rem, 5vw, 3.4rem); overflow: hidden; box-shadow: 0 40px 80px -44px oklch(0.260 0.050 220 / 0.42); }
.media-cutout::before { content: ""; position: absolute; inset: 10%; background-color: var(--blue); opacity: 0.06; -webkit-mask: url(../img/brand-icon.png) center / contain no-repeat; mask: url(../img/brand-icon.png) center / contain no-repeat; }
.media-cutout img { position: relative; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 22px 26px oklch(0.260 0.050 220 / 0.22)); }
.media-cutout--teal::before { background-color: var(--teal); }

/* Encuadre de fotos de equipo ambientadas (cara del profesional) */
.member__photo img.pos-laia { object-position: 82% 22%; }
.member__photo img.pos-lydia { object-position: 40% 26%; }
@media (max-width: 560px) {
  .media-cutout { border-radius: 180px 180px var(--radius) var(--radius); }
}

/* Equipo reducido a 2 personas + encuadre de fotos ambientadas */
.team__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin-inline: auto; }
.team__photo img.pos-lydia { object-position: 40% 22%; }
@media (max-width: 560px) { .team__grid--two { grid-template-columns: 1fr; max-width: 22rem; } }

/* =====================================================================
   TEXTO ORDENADO — sin saltos forzados en pantallas pequeñas
   ===================================================================== */
@media (max-width: 700px) {
  h1 br, h2 br, h3 br { display: none; }
}
.hero__lead, .page-hero__lead, .section-head__lead, .section__intro,
.world__text, .member__bio, .feature__text, .why__text, .quote p { text-wrap: pretty; }

/* =====================================================================
   SELECTOR DE IDIOMA (ES · VA · EN)
   ===================================================================== */
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 100px; padding: 3px; flex: none; }
.lang button { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.32rem 0.5rem; border-radius: 100px; color: var(--ink-faint); line-height: 1; transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s var(--ease-out-quart); }
.lang button:active { transform: scale(0.94); }
.lang button.is-active { background: var(--blue); color: var(--on-dark); }
@media (hover: hover) { .lang button:not(.is-active):hover { color: var(--ink); } }
/* Selector lateral fijo (rail vertical), al estilo de la web */
.lang--header {
  position: fixed; z-index: 90;
  right: clamp(0.5rem, 1.1vw, 1.15rem); top: 50%; transform: translateY(-50%);
  flex-direction: column; align-items: stretch; gap: 3px; padding: 4px;
  background: var(--paper); border-color: var(--line);
  box-shadow: 0 16px 36px -16px oklch(0.260 0.050 220 / 0.42), 0 2px 6px -2px oklch(0.260 0.050 220 / 0.18);
}
.lang--header::before {
  content: ""; display: block; width: 1.05rem; height: 1.05rem; margin: 0.2rem auto 0.15rem;
  background-color: var(--clay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.85;
}
.lang--header button { width: 100%; text-align: center; padding: 0.42rem 0.55rem; }
@media (max-width: 720px) { .lang--header { display: none; } }

/* versión dentro del menú móvil (fondo oscuro) */
.mobile-menu .lang--menu { margin-top: 1.2rem; border-color: var(--on-dark-line); align-self: flex-start; }
.mobile-menu .lang--menu button { color: var(--on-dark-soft); font-size: 0.85rem; padding: 0.45rem 0.85rem; }
.mobile-menu .lang--menu button.is-active { background: var(--on-dark); color: var(--blue-ink); }

/* =====================================================================
   REFINAMIENTO MÓVIL (impeccable · emil)
   ===================================================================== */
@media (max-width: 720px) {
  /* Inputs a 16px: evita el zoom automático de iOS al enfocar */
  .field input, .field select, .field textarea { font-size: 16px; }
  /* Marca más compacta en la cabecera móvil */
  .brand__logo { height: 1.72rem; max-width: 56vw; }
  /* Botones grandes apilados cómodos */
  .page-hero__cta .btn, .hero__cta .btn { width: 100%; }
  .split__cta .btn { width: 100%; }
}

/* Menú móvil: jerarquía clara y targets táctiles ≥46px */
.mobile-menu__nav a { transition: color 0.2s ease, padding-left 0.25s var(--ease-out-quart); }
.mobile-menu__nav a:active { color: var(--clay-soft); padding-left: 0.4rem; }
.mobile-menu__foot { gap: 0.6rem; padding-top: 1.4rem; margin-top: 0.4rem; border-top: 1px solid var(--on-dark-line); }
.mobile-menu__foot .btn { width: 100%; margin-bottom: 0.35rem; }
.mobile-menu__foot a:not(.btn) { display: flex; align-items: center; min-height: 46px; color: var(--on-dark-soft); font-weight: 600; transition: color 0.2s ease; }
.mobile-menu__foot a:not(.btn):active { color: var(--clay-soft); }
.mobile-menu .lang--menu { margin-top: 0.7rem; gap: 4px; padding: 4px; }
.mobile-menu .lang--menu button { min-height: 46px; padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* =====================================================================
   WHATSAPP FLOTANTE (elige Caballos / Mascotas)
   ===================================================================== */
.wa { position: fixed; right: clamp(0.9rem, 2vw, 1.5rem); bottom: clamp(0.9rem, 2vw, 1.5rem); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.wa__btn { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(7, 94, 84, 0.5), 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.2s var(--ease-out-quart), background-color 0.2s ease; }
.wa__btn svg { width: 1.9rem; height: 1.9rem; fill: currentColor; }
@media (hover: hover) { .wa__btn:hover { transform: scale(1.06); } }
.wa__btn[aria-expanded="true"] { background: var(--ink); }
.wa__btn[aria-expanded="true"] svg { transform: scale(0.92); }
.wa__menu { display: flex; flex-direction: column; gap: 0.45rem; width: min(80vw, 256px); padding: 0.85rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 26px 54px -18px oklch(0.260 0.050 220 / 0.45); transform-origin: bottom right; }
.wa__menu[hidden] { display: none; }
.js .wa__menu:not([hidden]) { animation: waIn 0.22s var(--ease-out-quint); }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
.wa__head { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding: 0.1rem 0.35rem 0.25rem; }
.wa__opt { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.65rem; border-radius: 13px; background: var(--paper-2); transition: background-color 0.18s ease, transform 0.18s var(--ease-out-quart); }
@media (hover: hover) { .wa__opt:hover { background: var(--paper-sink); transform: translateX(-2px); } }
.wa__opt-ic { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.wa__opt-ic svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.wa__opt-txt { display: flex; flex-direction: column; line-height: 1.18; }
.wa__opt-k { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.wa__opt-v { font-size: 0.82rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .js .wa__menu:not([hidden]) { animation: none; } }
