/*
Theme Name: Veterinaria Besares
Theme URI: https://veterinariabesares.com
Author: Veterinaria Besares
Description: Tema a medida para Veterinaria Besares (Luján, Mendoza). Compatible con Elementor: incluye plantilla de ancho completo / lienzo en blanco y estilos cargados en todo el sitio para construir páginas con el editor. Datos de contacto editables desde Apariencia → Personalizar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: besares
Tags: custom-colors, custom-menu, featured-images, full-width-template, elementor
*/

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

:root {
  --deep:   oklch(17% 0.15 305);
  --mid:    oklch(36% 0.14 305);
  --muted:  oklch(54% 0.10 305);
  --soft:   oklch(68% 0.08 305);
  --lavend: oklch(80% 0.06 305);
  --pale:   oklch(95% 0.025 305);
  --bg:     oklch(98% 0.007 305);
  --white:  #ffffff;
  --text:   oklch(18% 0.12 305);
  --body:   oklch(38% 0.07 305);
  --font: 'Nunito', system-ui, sans-serif;
  --pill: 999px;
  --r-card: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.eyebrow-light { background: var(--pale); color: var(--muted); }
.eyebrow-dark  { background: oklch(27% 0.13 305); color: var(--lavend); }

.section-title {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--deep);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 17px; }

.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--mid); transform: translateY(-2px); box-shadow: 0 10px 32px oklch(17% 0.15 305 / .32); }

.btn-outline { background: transparent; color: var(--deep); border: 2px solid var(--deep); }
.btn-outline:hover { background: var(--pale); transform: translateY(-2px); }

.btn-ghost { background: oklch(28% 0.13 305); color: var(--white); }
.btn-ghost:hover { background: oklch(36% 0.13 305); transform: translateY(-2px); }

.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.4); }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: 66px;
  padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: oklch(99% 0.006 305 / .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(90% 0.04 305);
  transition: box-shadow .3s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 28px oklch(17% 0.15 305 / .12); }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-text { line-height: 1.15; }
.nav-brand-name { font-size: 16px; font-weight: 900; color: var(--deep); display: block; }
.nav-brand-loc  { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--body); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--mid); }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 66px);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-paw-bg {
  position: absolute;
  bottom: -60px; left: -80px;
  width: 440px; height: 440px;
  opacity: .035;
  pointer-events: none;
}
.hero-paw-bg-2 {
  position: absolute;
  top: 40px; right: 460px;
  width: 220px; height: 220px;
  opacity: .03;
  transform: rotate(25deg);
  pointer-events: none;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  background: var(--pale); color: var(--mid);
  border-radius: var(--pill);
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mid); flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 900;
  line-height: 1.06;
  color: var(--deep);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.hero h1 em { font-style: normal; color: var(--muted); }

.hero-sub {
  font-size: 18px; font-weight: 500;
  color: var(--body); line-height: 1.65;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
}
.stat-item { padding: 0 28px; transition: transform .25s ease; cursor: default; }
.stat-item:first-child { padding-left: 0; }
.stat-item:hover { transform: translateY(-5px); }
.stat-item:hover .stat-num { color: var(--mid); transition: color .25s; }
.stat-num {
  display: block;
  font-size: 26px; font-weight: 900; color: var(--deep);
  line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.stat-div {
  width: 1px; height: 44px;
  background: oklch(82% 0.05 305);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex; justify-content: flex-end;
}
.hero-img-blob {
  position: absolute;
  width: 340px; height: 420px;
  background: var(--pale);
  border-radius: 60% 40% 65% 35% / 50% 60% 40% 50%;
  top: -28px; right: -28px;
  z-index: 0;
  animation: blob-a 11s ease-in-out infinite;
}
.hero-img-blob-2 {
  position: absolute;
  width: 180px; height: 220px;
  background: var(--lavend);
  border-radius: 40% 60% 30% 70% / 60% 40% 55% 45%;
  bottom: -16px; left: 0px;
  z-index: 0;
  opacity: .35;
}
.hero-img-frame {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  height: 530px;
  border-radius: 200px 200px 160px 160px;
  overflow: hidden;
  box-shadow: 0 28px 80px oklch(17% 0.15 305 / .22);
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--deep);
  padding: 15px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee-slide 28s linear infinite;
  width: max-content;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px;
  color: var(--lavend);
  font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }

/* ── SERVICES ── */
.services {
  background: var(--deep);
  padding: 92px 56px;
  position: relative; overflow: hidden;
}
.svc-blob-tl {
  position: absolute; top: -70px; right: -70px;
  width: 380px; height: 480px;
  background: oklch(26% 0.13 305);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  pointer-events: none;
  animation: blob-a 13s ease-in-out infinite;
}
.svc-blob-br {
  position: absolute; bottom: -60px; left: -60px;
  width: 300px; height: 380px;
  background: oklch(22% 0.13 305);
  border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
  pointer-events: none;
  animation: blob-b 16s ease-in-out infinite;
}
.svc-inner { position: relative; z-index: 1; }

.svc-header { text-align: center; margin-bottom: 52px; }
.svc-header .section-title { color: var(--white); margin-top: 12px; }
.svc-header p { color: var(--lavend); font-size: 16px; font-weight: 500; margin-top: 10px; }

.svc-logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 14px;
}
.svc-logo-name { font-size: 28px; font-weight: 900; color: var(--white); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 840px;
  margin: 0 auto;
}

.svc-pill {
  padding: 14px 18px;
  border: 1.5px solid oklch(36% 0.11 305);
  border-radius: var(--pill);
  color: var(--white);
  font-size: 14px; font-weight: 700;
  text-align: center;
  background: transparent;
  transition: background .2s, border-color .2s, transform .15s;
  cursor: default;
}
.svc-pill:hover {
  background: oklch(26% 0.12 305);
  border-color: oklch(55% 0.09 305);
  transform: scale(1.025);
}

/* ── HOW ── */
.how {
  padding: 92px 56px;
  background: var(--white);
}
.how-header { text-align: center; margin-bottom: 60px; }
.how-header .section-title { margin-top: 12px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(to right, var(--lavend), var(--lavend));
  z-index: 0;
}

.how-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 20px;
  position: relative; z-index: 1;
}
.how-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px oklch(17% 0.15 305 / .28);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.how-step:hover .how-num {
  transform: scale(1.18) translateY(-2px);
  box-shadow: 0 14px 36px oklch(17% 0.15 305 / .38);
}
.how-step h3 {
  font-size: 16px; font-weight: 800; color: var(--deep);
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14px; font-weight: 500;
  color: var(--body); line-height: 1.6;
}

/* ── GROOMING ── */
.grooming {
  padding: 96px 56px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}
.grm-visual { position: relative; width: 100%; }
.grm-blob {
  position: absolute;
  width: 260px; height: 320px;
  background: var(--pale);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  top: -28px; right: -20px; z-index: 0;
  animation: blob-b 10s ease-in-out infinite;
}
.grm-img-frame {
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 200px 200px 100px 100px;
  overflow: hidden;
  box-shadow: 0 24px 72px oklch(17% 0.15 305 / .20);
}
.grm-img-frame img {
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 150%;
  height: auto;
  display: block;
}

.grm-content .section-title { margin-top: 12px; margin-bottom: 14px; }
.grm-desc {
  font-size: 17px; font-weight: 500;
  color: var(--body); line-height: 1.65;
  margin-bottom: 28px;
}
.grm-includes-label {
  font-size: 11px; font-weight: 800;
  color: var(--muted); letter-spacing: .10em;
  text-transform: uppercase; margin-bottom: 12px;
}
.grm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.grm-tag {
  padding: 9px 18px;
  background: var(--pale); border-radius: var(--pill);
  font-size: 14px; font-weight: 700; color: var(--deep);
}

/* ── BRANCHES ── */
.branches {
  padding: 92px 56px;
  background: var(--white);
}
.branches-header { text-align: center; margin-bottom: 52px; }
.branches-header .section-title { margin-top: 12px; }

.branches-grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 540px; margin: 0 auto;
  gap: 24px;
}

.branch-card {
  background: var(--pale);
  border-radius: var(--r-card);
  padding: 40px 40px 36px;
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.branch-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 52px oklch(17% 0.15 305 / .14);
}
.branch-bg-blob {
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 220px;
  background: var(--lavend);
  border-radius: 50% 40% 60% 40%;
  opacity: .25;
  pointer-events: none;
}

.branch-tag {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: var(--deep); color: var(--white);
  border-radius: var(--pill);
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.branch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
}

.branch-card h3 {
  font-size: 22px; font-weight: 900; color: var(--deep);
  margin-bottom: 4px; position: relative; z-index: 1;
}
.branch-addr {
  font-size: 14px; font-weight: 600; color: var(--muted);
  margin-bottom: 24px; position: relative; z-index: 1;
}

.branch-hours { list-style: none; margin-bottom: 28px; }
.branch-hours li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid oklch(88% 0.04 305);
  font-size: 14px;
}
.branch-hours li:last-child { border-bottom: none; }
.bh-day  { font-weight: 600; color: var(--body); }
.bh-time {
  font-weight: 800; color: var(--deep);
  background: var(--white);
  padding: 3px 10px; border-radius: 8px;
  font-size: 13px;
}
.bh-sunday { color: var(--mid); }

/* ── CTA FINAL ── */
.cta-final {
  background: var(--deep);
  padding: 100px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-blob-l {
  position: absolute; top: -60px; left: -60px;
  width: 420px; height: 500px;
  background: oklch(26% 0.13 305);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  pointer-events: none;
  animation: blob-a 15s ease-in-out infinite 2s;
}
.cta-blob-r {
  position: absolute; bottom: -70px; right: -70px;
  width: 360px; height: 440px;
  background: oklch(22% 0.12 305);
  border-radius: 40% 60% 30% 70% / 60% 40% 55% 45%;
  pointer-events: none;
  animation: blob-b 12s ease-in-out infinite 1s;
}
.cta-inner { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 900; color: var(--white);
  margin: 14px 0 12px; line-height: 1.1;
}
.cta-final p { color: var(--lavend); font-size: 18px; font-weight: 500; margin-bottom: 36px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer {
  background: oklch(11% 0.10 305);
  padding: 36px 56px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { color: var(--white); font-size: 15px; font-weight: 900; }
.footer-brand-loc  { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; font-weight: 600; color: oklch(65% 0.07 305); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: oklch(45% 0.08 305); }

/* ── FLOATING WA ── */
.float-wa {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(37,211,102,.55); }

/* ── REVEAL ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .delay-1 { transition-delay: .10s; }
  .delay-2 { transition-delay: .20s; }
  .delay-3 { transition-delay: .30s; }

  .reveal-left {
    opacity: 0; transform: translateX(-52px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  }
  .reveal-right {
    opacity: 0; transform: translateX(52px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  }
  .reveal-left.in, .reveal-right.in {
    opacity: 1; transform: none;
  }
}

/* ── HERO / GROOMING FLOAT ── */
@keyframes hero-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
.hero-float { animation: hero-float 4.5s ease-in-out infinite; }

@keyframes grm-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.grm-float { animation: grm-float 5.5s ease-in-out infinite; }

/* ── BLOB DRIFT ── */
@keyframes blob-a {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  30%       { transform: translate(14px,-20px) rotate(5deg); }
  65%       { transform: translate(-10px,12px) rotate(-4deg); }
}
@keyframes blob-b {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  40%       { transform: translate(-16px,16px) rotate(-6deg); }
  75%       { transform: translate(10px,-14px) rotate(4deg); }
}

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--mid), var(--lavend));
  z-index: 999;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
}

/* ── SERVICE PILL STAGGER ── */
.svc-pill.delay-pill-1 { transition-delay: .05s; }
.svc-pill.delay-pill-2 { transition-delay: .10s; }
.svc-pill.delay-pill-3 { transition-delay: .15s; }
.svc-pill.delay-pill-4 { transition-delay: .20s; }
.svc-pill.delay-pill-5 { transition-delay: .25s; }
.svc-pill.delay-pill-6 { transition-delay: .30s; }
.svc-pill.delay-pill-7 { transition-delay: .35s; }
.svc-pill.delay-pill-8 { transition-delay: .40s; }
.svc-pill.delay-pill-9 { transition-delay: .45s; }
.svc-pill.delay-pill-10 { transition-delay: .50s; }
.svc-pill.delay-pill-11 { transition-delay: .55s; }
.svc-pill.delay-pill-12 { transition-delay: .60s; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 28px 56px;
    min-height: auto; gap: 40px; text-align: center;
  }
  .hero-visual { justify-content: center; order: -1; }
  .hero-img-frame { height: 320px; max-width: 260px; }
  .hero-img-blob { width: 240px; height: 300px; top: -16px; right: -16px; }
  .hero-img-blob-2 { display: none; }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .stat-item:first-child { padding-left: 20px; }

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

  .how { padding: 60px 28px; }
  .how-grid::before { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-step { align-items: flex-start; text-align: left; flex-direction: row; gap: 20px; }
  .how-num  { flex-shrink: 0; width: 52px; height: 52px; font-size: 18px; margin-bottom: 0; }

  .grooming {
    grid-template-columns: 1fr;
    padding: 60px 28px; gap: 44px;
  }
  .grm-visual { max-width: 300px; margin: 0 auto; }
  .grm-content { text-align: center; }
  .grm-tags { justify-content: center; }

  .branches { padding: 60px 28px; }

  .cta-final { padding: 68px 28px; }

  .site-footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .float-wa { bottom: 18px; right: 18px; }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .services, .grooming { padding-left: 20px; padding-right: 20px; }
}
