/* =============================================================
   Veterinaria Brandsen — styles.css
   Editorial profesional · paleta de marca (magenta + azul + blanco)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f3f7;   /* gris muy claro frío */
  --bg-tint:   #f4edf3;   /* tinte magenta clarísimo */
  --bg-blue:   #eef6fb;   /* tinte azul clarísimo */
  --paper:     #ffffff;

  --ink:       #1c1830;   /* indigo profundo (de la vaca del logo) */
  --ink-soft:  #3b3454;
  --ink-mute:  #6d6781;

  --plum:      #8d2a6b;   /* magenta/púrpura de marca */
  --plum-deep: #6a1f50;
  --blue:      #1f9bd6;   /* azul de marca */
  --blue-deep: #15749f;

  --accent:    var(--plum);
  --line:      rgba(28, 24, 48, 0.12);
  --line-soft: rgba(28, 24, 48, 0.07);

  --shadow-sm: 0 2px 10px rgba(28, 24, 48, 0.06);
  --shadow-md: 0 18px 50px -24px rgba(28, 24, 48, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(106, 31, 80, 0.45);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --maxw: 1280px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; font-weight: 600; }
::selection { background: var(--plum); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--plum); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--plum);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow.on-dark { color: #f1c9e2; }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; opacity: .7;
}

.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section-head { max-width: 62ch; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 500;
  margin-top: 1.1rem;
  letter-spacing: -0.025em;
}
.section-head h2 em { font-style: italic; color: var(--plum); }
.section-head .lead {
  margin-top: 1.3rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft); max-width: 56ch;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s, color .3s, box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 14px 30px -14px rgba(141,42,107,.7); }
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(141,42,107,.75); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(31,155,214,.7); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-3px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.is-stuck {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -24px rgba(28,24,48,.5);
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 46px; width: auto; transition: height .4s var(--ease-out); }
.nav-logo .nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .nl-1 { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; color: var(--plum); }
.nav-logo .nl-2 { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-top: 3px; }
.nav.is-stuck .nav-logo img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.nav-link {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--plum); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: var(--nav-h);
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  transform: scale(1.06); animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,17,38,.30) 0%, rgba(20,17,38,.05) 28%, rgba(20,17,38,.28) 62%, rgba(16,13,30,.86) 100%),
    linear-gradient(95deg, rgba(106,31,80,.45) 0%, transparent 55%);
}
.hero-inner { position: relative; max-width: 60ch; color: #fff; }
.hero-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); padding: .45rem .9rem; border-radius: 999px; font-weight: 600;
}
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #57d28a; box-shadow: 0 0 0 0 rgba(87,210,138,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(87,210,138,.6); } 70% { box-shadow: 0 0 0 9px rgba(87,210,138,0); } 100% { box-shadow: 0 0 0 0 rgba(87,210,138,0); } }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.0;
  margin-top: 1.4rem; letter-spacing: -0.03em;
  text-shadow: 0 4px 40px rgba(10,8,20,.5);
}
.hero h1 em { font-style: italic; color: #f3b6dd; }
.hero-sub {
  margin-top: 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: rgba(255,255,255,.92); max-width: 50ch; line-height: 1.55;
  text-shadow: 0 2px 20px rgba(10,8,20,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-scroll .line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); opacity:.5; } 50% { transform: scaleY(1); opacity:1; } }

/* =============================================================
   7. Reveal system
   ============================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensiva (gotcha A.4.5) */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =============================================================
   8. Intro / manifiesto + stats
   ============================================================= */
.intro { background: var(--bg); }
.intro-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
.intro-lead {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.28; color: var(--ink);
  letter-spacing: -.015em;
}
.intro-lead .mk { font-style: normal; color: var(--plum); font-weight: 600; }
.intro-body p { color: var(--ink-soft); font-size: 1.05rem; }
.intro-body p + p { margin-top: 1.1rem; }
.intro-sign { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.intro-sign .em { width: 52px; height: 52px; }
.intro-sign .who b { display: block; font-weight: 600; color: var(--ink); }
.intro-sign .who span { font-size: .85rem; color: var(--ink-mute); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: clamp(2.5rem, 6vw, 4rem); }
.stat { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; color: var(--plum); line-height: 1; letter-spacing: -.02em; }
.stat .num .suf { color: var(--blue); }
.stat .lbl { margin-top: .6rem; font-size: .9rem; color: var(--ink-soft); }

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee { border-block: 1px solid var(--line); background: var(--bg-tint); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.marquee span::after { content: "✚"; color: var(--blue); font-style: normal; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   10. Services
   ============================================================= */
.services { background: var(--bg-soft); }
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.svc {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.1rem); position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--plum), var(--blue)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); color: var(--plum); margin-bottom: 1.1rem; }
.svc-ico svg { width: 26px; height: 26px; }
.svc h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.svc p { margin-top: .6rem; color: var(--ink-soft); font-size: .98rem; }
.svc .svc-no { position: absolute; top: 1.3rem; right: 1.5rem; font-size: .8rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; letter-spacing: .05em; }

/* =============================================================
   11. Feature split
   ============================================================= */
.feature { overflow: hidden; }
.feature-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.feature.alt .feature-media { order: -1; }
.feature-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.2s var(--ease-out); }
.feature-media:hover img { transform: scale(1.05); }
.feature-media .tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: .55rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--plum);
  display: inline-flex; align-items: center; gap: .5rem;
}
.feature-body h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 500; letter-spacing: -.025em; }
.feature-body h2 em { font-style: italic; color: var(--plum); }
.feature-body p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.06rem; }
.feature-list { margin-top: 1.6rem; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; list-style: none; color: var(--ink-soft); }
.feature-list li svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.feature-list li b { color: var(--ink); font-weight: 600; }
.feature-body .btn { margin-top: 1.9rem; }
.feature.dark { background: var(--ink); color: #fff; }
.feature.dark .feature-body h2 { color: #fff; }
.feature.dark .feature-body h2 em { color: #f3b6dd; }
.feature.dark .feature-body p { color: rgba(255,255,255,.78); }
.feature.dark .feature-list li { color: rgba(255,255,255,.82); }
.feature.dark .feature-list li b { color: #fff; }

/* =============================================================
   12. Equipo
   ============================================================= */
.team { background: var(--bg-blue); }
.team-grid { display: grid; gap: clamp(2rem,5vw,4rem); grid-template-columns: 1fr; align-items: center; }
.team-media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.team-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.docs { margin-top: 1.8rem; display: grid; gap: 1rem; }
.doc { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; }
.doc .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--blue)); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--serif); }
.doc b { display: block; color: var(--ink); }
.doc span { font-size: .86rem; color: var(--ink-mute); }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact { background: var(--ink); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head h2 em { color: #f3b6dd; }
.contact .section-head .lead { color: rgba(255,255,255,.78); }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; margin-top: clamp(2.5rem, 6vw, 3.5rem); align-items: start; }

.info-list { display: grid; gap: 1.1rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; }
.info .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #f3b6dd; }
.info .ico svg { width: 22px; height: 22px; }
.info .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.info .v { font-size: 1.06rem; color: #fff; margin-top: 2px; }
.info .v a:hover { color: #f3b6dd; }
.contact-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.map-wrap { margin-top: 1.8rem; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.map-wrap iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

.form { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.form p.sub { color: var(--ink-mute); font-size: .95rem; margin-top: .3rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-soft); font: inherit; color: var(--ink); transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum); background: #fff; box-shadow: 0 0 0 4px rgba(141,42,107,.12); }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .btn { width: 100%; margin-top: 1.4rem; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form.is-sent .form-fields { display: none; }
.form.is-sent .form-success { display: block; animation: fadeUp .6s var(--ease-out); }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--blue); }
.form-success .check-circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .7s var(--ease-out) forwards; }
.form-success .check-tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.form-success h3 { color: var(--plum); }
.form-success p { color: var(--ink-soft); margin-top: .4rem; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: #14111e; color: rgba(255,255,255,.7); padding-block: clamp(3rem, 7vw, 4.5rem) 2rem; }
.footer-top { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.footer-brand img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer a:hover { color: #f3b6dd; }
.footer-links { display: grid; gap: .6rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* =============================================================
   14b. WhatsApp flotante
   ============================================================= */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 900;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 58px; padding: 0 .9rem 0 1rem; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.6), 0 6px 14px rgba(0,0,0,.18);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.wa-fab svg { width: 30px; height: 30px; flex: none; }
.wa-fab .wa-fab-txt { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .45s var(--ease-out), opacity .35s, margin .45s var(--ease-out); }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(37,211,102,.7), 0 8px 18px rgba(0,0,0,.2); }
.wa-fab:hover .wa-fab-txt { max-width: 120px; opacity: 1; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.6s var(--ease-out) infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 539px) { .wa-fab { height: 54px; padding: 0; width: 54px; justify-content: center; } .wa-fab .wa-fab-txt { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }

/* =============================================================
   15. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .intro-grid { grid-template-columns: 0.9fr 1.1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature.alt .feature-media { order: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 959px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .5s var(--ease-out); height: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a.nav-link { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-links .nav-cta { margin-top: 1rem; width: 100%; }
  .nav-links .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
}

/* =============================================================
   16. Reduced motion — solo lo intrusivo (gotcha A.2 / Windows)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-scroll .line { animation: none; }
  .hero-meta .dot { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* =============================================================
   17. Transiciones entre páginas (View Transitions API)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* =============================================================
   18. Catálogo (catalogo.html)
   ============================================================= */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 100% 0, rgba(31,155,214,.10), transparent 55%),
    radial-gradient(120% 90% at 0 0, rgba(141,42,107,.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.page-header h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.03em; margin-top: 1rem; }
.page-header h1 em { font-style: italic; color: var(--plum); }
.page-header .lead { margin-top: 1.2rem; max-width: 60ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--ink-mute); }
.crumbs a:hover { color: var(--plum); }

.brands { border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; padding-block: 1.1rem; }
.brands-track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 28s linear infinite; align-items: center; }
.brands:hover .brands-track { animation-play-state: paused; }
.brands span { font-weight: 700; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .02em; color: var(--ink-mute); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .brands-track { animation-duration: 80s; } }

.cat-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 5vw, 3rem); }
.cat {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); color: var(--plum); margin-bottom: 1rem; }
.cat-ico svg { width: 27px; height: 27px; }
.cat h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.cat p { margin-top: .5rem; color: var(--ink-soft); font-size: .96rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.cat-chips span { font-size: .76rem; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line-soft); padding: .25rem .65rem; border-radius: 999px; }
.cat .cat-cta { margin-top: auto; padding-top: 1.2rem; }
.cat .cat-cta a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--blue-deep); }
.cat .cat-cta a svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.cat:hover .cat-cta a svg { transform: translateX(4px); }

.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.2rem); margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band h2 em { font-style: italic; color: #f3b6dd; }
.cta-band p { margin: .8rem auto 0; max-width: 50ch; color: rgba(255,255,255,.78); }
.cta-band .btn { margin-top: 1.6rem; }

@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   Productos — buscador, filtros y grilla
   ============================================================= */
.cat-toolbar { margin-top: clamp(1.6rem, 4vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; }

.cat-search { position: relative; max-width: 520px; }
.cat-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-mute); pointer-events: none; }
.cat-search input {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .85rem 1rem .85rem 2.8rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); transition: border-color .3s, box-shadow .3s;
}
.cat-search input::placeholder { color: var(--ink-mute); }
.cat-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,155,214,.14); }

.cat-groupby { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; }
.cat-groupby-label { font-size: .85rem; font-weight: 600; color: var(--ink-mute); }

.cat-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); transition: all .25s var(--ease-out); white-space: nowrap;
}
.filter-btn:hover { border-color: var(--plum); color: var(--plum); }
.filter-btn.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.filter-btn .filter-n { opacity: .6; font-weight: 500; margin-left: .15rem; }

.cat-count { font-size: .88rem; color: var(--ink-mute); }
.cat-count b { color: var(--ink); font-weight: 600; }

.prod-groups { margin-top: 1.8rem; display: flex; flex-direction: column; gap: clamp(2.2rem, 5vw, 3.4rem); }
.prod-group-head { display: flex; align-items: baseline; gap: .8rem; padding-bottom: .7rem; border-bottom: 2px solid var(--line); }
.prod-group-head h3 { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; color: var(--plum-deep); }
.prod-group-n { font-size: .82rem; color: var(--ink-mute); white-space: nowrap; }

.prod-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.4rem; }

/* Estantes horizontales arrastrables (góndola) */
.prod-rail {
  display: flex; gap: 1.1rem; margin-top: 1.3rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: .3rem .2rem 1.1rem; cursor: grab;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.prod-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.prod-rail.is-dragging .prod { pointer-events: none; }
.prod-rail::-webkit-scrollbar { height: 8px; }
.prod-rail::-webkit-scrollbar-track { background: transparent; }
.prod-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.prod-rail:hover::-webkit-scrollbar-thumb { background: var(--ink-mute); }
.prod-rail > .prod { flex: 0 0 250px; width: 250px; scroll-snap-align: start; }
@media (max-width: 560px) { .prod-rail > .prod { flex-basis: 78%; width: 78%; } }
.prod {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.prod-figure { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.prod-figure img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.prod-ph { position: absolute; inset: 0; display: grid; place-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-blue)); text-align: center; padding: 1rem; }
.prod-ph svg { width: 34px; height: 34px; color: var(--plum); opacity: .55; }
.prod-ph span { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--plum-deep); }

.prod-body { padding: clamp(1.1rem, 2.5vw, 1.4rem); display: flex; flex-direction: column; flex: 1; }
.prod-marca { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-deep); }
.prod h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: .25rem; }
.prod-pres { display: inline-flex; align-self: flex-start; align-items: center; gap: .35rem; margin-top: .6rem;
  font-size: .78rem; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line-soft);
  padding: .25rem .65rem; border-radius: 999px; }
.prod-uso { margin-top: .7rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.prod-rubro { margin-top: .8rem; font-size: .74rem; color: var(--ink-mute); }
.prod-cta { margin-top: auto; padding-top: 1.1rem; }
.prod-cta a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--blue-deep); }
.prod-cta a svg { width: 17px; height: 17px; transition: transform .35s var(--ease-out); }
.prod:hover .prod-cta a svg { transform: translateX(4px); }

.prod-empty { text-align: center; color: var(--ink-mute); padding: 3rem 1rem; font-size: 1rem; }

/* Ficha de toro (genética) */
.toro .prod-figure { aspect-ratio: 3 / 2; }
.toro-ped { margin-top: .3rem; font-style: italic; color: var(--ink-soft); font-size: .9rem; }
.toro-reg { margin-top: .55rem; font-size: .78rem; font-weight: 600; color: var(--plum-deep); letter-spacing: .01em; }
.toro-criador { margin-top: .15rem; font-size: .78rem; color: var(--ink-mute); }
.toro .prod-uso { margin-top: .6rem; font-size: .9rem; }

/* Galería de fotos */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.gal-item { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.gal-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption { padding: .7rem .95rem; font-size: .88rem; color: var(--ink-soft); }

/* Imagen ampliable + visor (lightbox) */
img[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center;
  background: rgba(20, 17, 34, 0.92); padding: 4vmin; opacity: 0; transition: opacity .3s var(--ease-out); }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); cursor: zoom-out; }
.lightbox-close { position: absolute; top: 1.1rem; right: 1.3rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.28); }

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

/* =============================================================
   Planes sanitarios (PDF)
   ============================================================= */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.4rem, 3vw, 2rem); }
.plan-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.plan-card-preview { aspect-ratio: 4 / 3; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.plan-card-preview embed { width: 100%; height: 100%; display: block; }
.plan-card-body { padding: 1.6rem clamp(1.3rem, 3vw, 1.8rem) 1.8rem; }
.plan-card-body h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-top: .25rem; }
.plan-card-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.3rem; }
.plan-card-cta .btn { padding: .7rem 1.2rem; font-size: .9rem; }
.plan-card-cta .btn svg { width: 18px; height: 18px; margin-right: .4rem; vertical-align: -4px; }
