/* ==========================================================================
   Unimascotas — Consultorio Veterinario
   Design system & site styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --purple-950: #2d0842;
  --purple-900: #3f0d5e;
  --purple-800: #561283;
  --purple-700: #6d1ba8;
  --purple-600: #8a25c9;
  --purple-500: #9a2dda;
  --purple-300: #c99cf0;
  --purple-200: #e3c8f6;
  --purple-100: #f4eafc;
  --purple-50: #faf5fe;

  --lime-700: #3c7218;
  --lime-600: #4c8c22;
  --lime-500: #7dd04c;
  --lime-400: #9be06f;
  --lime-200: #d3f2bc;
  --lime-100: #eaf9df;

  --ink: #2a1b33;
  --ink-soft: #5d5267;
  --muted: #6f6479;
  --line: #e9e1f0;
  --bg: #fcfafe;
  --white: #ffffff;

  --pink: #ef5d8f;
  --pink-100: #fde8ef;
  --yellow: #ffcf5c;
  --yellow-100: #fff6dc;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-soft: 0 24px 60px -28px rgba(63, 13, 94, 0.35);
  --shadow-card: 0 14px 40px -24px rgba(63, 13, 94, 0.3);
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  --container: 1180px;
  --header-h: 82px;

  --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--lime-400);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(880px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: 92px;
}

.section-sm {
  padding-block: 64px;
}

.section-tint {
  background: linear-gradient(180deg, var(--purple-50), var(--bg));
}

.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: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Typography / section heads ---------- */
.section-head {
  max-width: 660px;
  margin-bottom: 46px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--purple-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--lime-500);
}

.section-head.center .section-kicker {
  justify-content: center;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  margin-bottom: 14px;
}

.section-title .accent {
  color: var(--purple-600);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 58ch;
}

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

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn:active {
  transform: translate(3px, 3px);
}

.btn-primary {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--purple-700);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-accent {
  background: var(--lime-500);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.btn-accent:hover {
  background: var(--lime-400);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn-accent:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--purple-200);
}

.btn-ghost:hover {
  background: var(--purple-50);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--purple-200);
}

.btn-soft {
  background: var(--purple-100);
  border-color: var(--purple-200);
  color: var(--purple-800);
}

.btn-soft:hover {
  background: var(--purple-200);
}

.btn-danger {
  background: var(--pink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-danger:hover {
  background: #d94476;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn-xs {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-width: 2px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple-700);
  font-weight: 900;
  text-decoration: none;
}

.btn-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 254, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(42, 27, 51, 0.5);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
  object-fit: contain;
  box-shadow: 3px 3px 0 var(--purple-200);
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--purple-800);
}

.brand-tag {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.nav-link:hover {
  background: var(--purple-100);
  color: var(--purple-800);
}

.nav-link[aria-current="page"] {
  background: var(--purple-100);
  color: var(--purple-800);
  box-shadow: inset 0 0 0 2px var(--purple-200);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-hard-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Eyebrow badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime-100);
  color: var(--purple-900);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--lime-500);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-600);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 66px 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 208, 76, 0.18), transparent 32%),
    radial-gradient(circle at 4% 78%, rgba(154, 45, 218, 0.12), transparent 36%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%239a2dda' fill-opacity='0.06'%3E%3Cellipse cx='28' cy='40' rx='5' ry='8'/%3E%3Cellipse cx='42' cy='32' rx='5' ry='8'/%3E%3Cellipse cx='56' cy='34' rx='5' ry='8'/%3E%3Cellipse cx='68' cy='45' rx='5' ry='8'/%3E%3Cpath d='M48 46c9 0 17 8 17 16 0 10-8 16-17 16s-17-6-17-16c0-8 8-16 17-16z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-title {
  margin-block: 20px 18px;
  font-size: clamp(2.7rem, 5.2vw, 4.35rem);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  position: relative;
  color: var(--purple-600);
  white-space: nowrap;
  text-decoration: underline wavy var(--lime-500);
  text-decoration-thickness: 5px;
  text-underline-offset: 10px;
}

.hero-lead {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 800;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 17px;
  height: 17px;
  color: var(--purple-600);
  flex: none;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 18px 22px 30px 8px;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 34px 34px 110px 34px;
  background: var(--purple-100);
  box-shadow: 12px 12px 0 var(--lime-500);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 10 / 11.4;
  object-fit: cover;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 27, 51, 0.62));
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 11px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 4px 4px 0 rgba(42, 27, 51, 0.5);
}

.hero-photo-caption .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime-100);
  font-size: 1.25rem;
}

.hero-photo-caption strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-photo-caption span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--purple-200);
  font-size: 0.82rem;
  font-weight: 900;
}

.floating-card .fc-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--lime-100);
  font-size: 1.05rem;
}

.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.floating-rating {
  top: 8px;
  left: -24px;
  animation: floaty 5.5s ease-in-out infinite;
}

.floating-chip {
  right: -14px;
  bottom: 84px;
  animation: floaty 6.5s ease-in-out 0.8s infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- Quick info cards ---------- */
.quick-info {
  position: relative;
  z-index: 4;
  margin-top: -58px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--purple-100);
}

.info-card .icon-bubble {
  flex: none;
}

.info-card h2 {
  margin-bottom: 3px;
  font-size: 1.02rem;
  font-weight: 800;
}

.info-card p,
.info-card a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.info-card a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--purple-200);
  border-radius: 15px;
  background: var(--purple-100);
  font-size: 1.3rem;
  line-height: 1;
}

.icon-bubble.lime {
  border-color: var(--lime-200);
  background: var(--lime-100);
}

.icon-bubble.pink {
  border-color: #f8c8d8;
  background: var(--pink-100);
}

.icon-bubble.yellow {
  border-color: #f6e3a4;
  background: var(--yellow-100);
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--purple-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

/* Service card */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--purple-100);
  transform: translateY(-4px);
}

.service-card .service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 2px solid var(--purple-200);
  border-radius: 17px;
  background: var(--purple-100);
  font-size: 1.55rem;
  line-height: 1;
}

.service-card:nth-child(4n + 2) .service-icon {
  border-color: var(--lime-200);
  background: var(--lime-100);
}

.service-card:nth-child(4n + 3) .service-icon {
  border-color: #f6e3a4;
  background: var(--yellow-100);
}

.service-card:nth-child(4n + 4) .service-icon {
  border-color: #f8c8d8;
  background: var(--pink-100);
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 800;
}

.service-card p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.service-card .service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card .service-meta span:last-child {
  color: var(--lime-700);
}

.service-features {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.service-features li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.service-features li::before {
  content: "✓";
  color: var(--lime-600);
  font-weight: 900;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--purple-100);
  box-shadow: 10px 10px 0 var(--purple-200);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.photo-frame.landscape img {
  aspect-ratio: 16 / 11;
}

.photo-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime-500);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.photo-float-card {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--lime-500);
}

.photo-float-card .big {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--purple-700);
  line-height: 1;
}

.photo-float-card p {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.value-card .footer-hours strong {
  color: var(--lime-700);
}

.value-card .footer-contact svg {
  color: var(--purple-500);
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-list .check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--lime-700);
  font-size: 0.75rem;
  font-weight: 900;
}

.check-list strong {
  color: var(--ink);
}

/* ---------- Stats band ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  padding: 42px 38px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 0%, rgba(125, 208, 76, 0.35), transparent 34%),
    linear-gradient(135deg, var(--purple-800), var(--purple-600));
  box-shadow: 8px 8px 0 var(--lime-500);
  color: var(--white);
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cellipse cx='28' cy='40' rx='4' ry='6'/%3E%3Cellipse cx='40' cy='33' rx='4' ry='6'/%3E%3Cellipse cx='52' cy='35' rx='4' ry='6'/%3E%3Cellipse cx='63' cy='44' rx='4' ry='6'/%3E%3Cpath d='M45 46c8 0 14 6 14 13 0 8-6 13-14 13s-14-5-14-13c0-7 6-13 14-13z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

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

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime-400);
}

.stat-label {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.testimonial .stars {
  color: #e8a11c;
  font-size: 1rem;
  letter-spacing: 3px;
}

.testimonial blockquote {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.testimonial blockquote::before {
  content: "“";
  display: block;
  height: 20px;
  color: var(--purple-300);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.avatar-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.avatar-circle.lime {
  background: var(--lime-100);
  color: var(--lime-700);
}

.avatar-circle.pink {
  background: var(--pink-100);
  color: #b12c57;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.testimonial-author span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
  align-items: center;
  padding: 52px 56px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 208, 76, 0.4), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(154, 45, 218, 0.5), transparent 40%),
    var(--purple-900);
  box-shadow: 9px 9px 0 var(--lime-500);
  color: var(--white);
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.cta-band .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-band .cta-actions .btn-ghost {
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.25);
}

.cta-paw {
  position: absolute;
  right: 24%;
  bottom: -45px;
  font-size: 8rem;
  opacity: 0.07;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 20%, rgba(125, 208, 76, 0.2), transparent 30%),
    linear-gradient(160deg, var(--purple-100), var(--bg) 68%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cg fill='%239a2dda' fill-opacity='0.05'%3E%3Cellipse cx='28' cy='40' rx='5' ry='7'/%3E%3Cellipse cx='41' cy='33' rx='5' ry='7'/%3E%3Cellipse cx='54' cy='35' rx='5' ry='7'/%3E%3Cellipse cx='66' cy='44' rx='5' ry='7'/%3E%3Cpath d='M47 46c8 0 15 7 15 14 0 9-7 14-15 14s-15-5-15-14c0-7 7-14 15-14z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--purple-300);
}

.page-title {
  max-width: 760px;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  letter-spacing: -0.03em;
}

.page-lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--purple-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--purple-800);
  font-size: 0.78rem;
  font-weight: 900;
}

/* ---------- Values / feature cards ---------- */
.value-card {
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.value-card .icon-bubble {
  margin-bottom: 18px;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Team */
.team-card {
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.team-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--lime-500);
}

.team-card:nth-child(2) .team-avatar {
  background: var(--lime-100);
  color: var(--lime-700);
  box-shadow: 4px 4px 0 var(--purple-300);
}

.team-card:nth-child(3) .team-avatar {
  background: var(--yellow-100);
  color: #8a6412;
  box-shadow: 4px 4px 0 var(--purple-300);
}

.team-card:nth-child(4) .team-avatar {
  background: var(--pink-100);
  color: #b12c57;
  box-shadow: 4px 4px 0 var(--lime-500);
}

.team-card h3 {
  font-size: 1.1rem;
}

.team-role {
  display: block;
  margin: 4px 0 10px;
  color: var(--purple-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 24px 0;
}

.timeline-item + .timeline-item {
  border-top: 1px dashed var(--line);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--purple-600);
}

.timeline-body h3 {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.timeline-body p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Service filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 9px 17px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 900;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--purple-300);
  color: var(--purple-800);
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--purple-600);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.service-card.is-hidden,
.plan-card.is-hidden {
  display: none;
}

/* ---------- Plans ---------- */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.plan-card.featured {
  border-color: var(--ink);
  background: linear-gradient(180deg, var(--purple-50), var(--white));
  box-shadow: 7px 7px 0 var(--lime-500);
}

.plan-tag {
  position: absolute;
  top: -14px;
  right: 22px;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime-500);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card h3 {
  font-size: 1.3rem;
}

.plan-desc {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.plan-price {
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--purple-800);
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 26px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.plan-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-list li::before {
  content: "✓";
  color: var(--lime-600);
  font-weight: 900;
}

.plan-card .btn {
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--purple-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------- Chips: page specifics ---------- */
.chip-hero {
  padding-block: 52px 54px;
}

.chip-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.chip-hero-visual {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--purple-100);
  box-shadow: 8px 8px 0 var(--lime-500);
  transform: rotate(3deg);
}

.chip-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px 20px;
  border: 1.5px solid var(--purple-200);
  border-radius: var(--radius-md);
  background: var(--purple-50);
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.chip-notice .icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.05rem;
}

.chip-notice strong {
  color: var(--ink);
}

.chip-notice a {
  color: var(--purple-700);
  font-weight: 900;
}

.db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.db-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.db-stat .icon-bubble {
  flex: none;
}

.db-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.db-stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.db-panel {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.db-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--purple-50), var(--white));
}

.db-panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.db-panel-title h2 {
  font-size: 1.3rem;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.db-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 11px 14px 11px 41px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.9rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.search-field input:focus {
  outline: none;
  border-color: var(--purple-400, var(--purple-500));
  background: var(--white);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.select-field {
  padding: 11px 38px 11px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a6f85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  font-size: 0.88rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

.select-field:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.toolbar-actions .btn {
  padding: 10px 14px;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 var(--purple-200);
}

.db-result-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--purple-50);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.db-result-info .active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-result-info button {
  padding: 3px 10px;
  border: 1.5px solid var(--purple-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--purple-700);
  font-size: 0.72rem;
  font-weight: 900;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chip-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.chip-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chip-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-table th:first-child,
.chip-table td:first-child {
  padding-left: 26px;
}

.chip-table th:last-child,
.chip-table td:last-child {
  padding-right: 26px;
}

.chip-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.chip-table tbody tr {
  transition: background-color 0.14s ease;
}

.chip-table tbody tr:hover {
  background: var(--purple-50);
}

.chip-table tbody tr:last-child td {
  border-bottom: 0;
}

.pet-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pet-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--purple-100);
  font-size: 1.15rem;
}

.pet-avatar.gato {
  background: var(--yellow-100);
}

.pet-avatar.otro {
  background: var(--lime-100);
}

.pet-name {
  display: block;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
}

.pet-breed {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.chip-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1.5px solid var(--purple-200);
  border-radius: 8px;
  background: var(--purple-50);
  color: var(--purple-800);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-perro {
  background: var(--purple-100);
  color: var(--purple-800);
}

.badge-gato {
  background: var(--yellow-100);
  color: #805c0c;
}

.badge-otro {
  background: var(--lime-100);
  color: var(--lime-700);
}

.owner-cell {
  display: block;
  max-width: 180px;
}

.owner-cell strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.owner-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.date-cell {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-soft);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  border-color: var(--purple-300);
  background: var(--purple-100);
  color: var(--purple-800);
}

.icon-btn.danger:hover {
  border-color: #f3b2c6;
  background: var(--pink-100);
  color: #b12c57;
}

/* Empty state */
.empty-state {
  display: grid;
  place-items: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-illustration {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border: 2px dashed var(--purple-300);
  border-radius: 30px;
  background: var(--purple-50);
  font-size: 2.6rem;
  transform: rotate(-3deg);
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 46ch;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Footer of the panel */
.db-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: var(--purple-50);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.db-foot .storage-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.db-foot svg {
  width: 15px;
  height: 15px;
  color: var(--purple-600);
}

/* ---------- Modals (native dialog) ---------- */
dialog.modal {
  width: min(780px, calc(100% - 28px));
  max-width: 780px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(42, 27, 51, 0.6);
  color: var(--ink);
}

dialog.modal.modal-sm {
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
}

dialog.modal::backdrop {
  background: rgba(42, 27, 51, 0.55);
  backdrop-filter: blur(4px);
}

dialog.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--purple-50), var(--white));
  border-radius: 24px 24px 0 0;
}

.modal-head h2 {
  font-size: 1.45rem;
}

.modal-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink-soft);
}

.modal-close:hover {
  background: var(--purple-100);
  color: var(--purple-800);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(64vh, 620px);
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  background: var(--white);
}

.modal-foot .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
}

/* Form */
.form-section + .form-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--purple-800);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-section-title span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--purple-100);
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.field label .req {
  color: var(--pink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: var(--pink);
}

.field .hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.field .hint.error {
  color: #c32d5d;
}

.field input[readonly] {
  background: var(--purple-50);
  color: var(--ink-soft);
}

.chip-input-wrap {
  position: relative;
}

.chip-input-wrap input {
  padding-right: 64px;
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.chip-counter {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: 0.68rem;
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

.chip-counter.is-complete {
  background: var(--lime-100);
  color: var(--lime-700);
}

/* Detail modal */
.detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  border: 2px solid var(--purple-200);
  border-radius: var(--radius-md);
  background: var(--purple-50);
}

.detail-hero .pet-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.9rem;
}

.detail-hero h3 {
  font-size: 1.4rem;
}

.detail-hero p {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.detail-item {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.detail-item dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-item dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-item.full {
  grid-column: 1 / -1;
}

/* Confirm dialog */
.confirm-box {
  padding: 30px 28px 24px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--pink-100);
  font-size: 1.7rem;
  box-shadow: 4px 4px 0 var(--pink);
}

.confirm-box h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.confirm-box p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.confirm-box .confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.confirm-box .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  z-index: 500;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 5px 0 rgba(125, 208, 76, 0.55);
  font-size: 0.86rem;
  font-weight: 800;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}

.toast.error {
  box-shadow: 5px 5px 0 rgba(239, 93, 143, 0.7);
}

.toast .toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--lime-500);
  color: var(--ink);
  font-size: 0.85rem;
}

.toast.error .toast-icon {
  background: var(--pink);
  color: var(--white);
}

.toast .toast-undo {
  margin-left: auto;
  padding: 4px 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: transparent;
  color: var(--lime-400);
  font-size: 0.75rem;
  font-weight: 900;
}

.toast .toast-undo:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding-top: 64px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%237dd04c' fill-opacity='0.06'%3E%3Cellipse cx='30' cy='42' rx='5' ry='8'/%3E%3Cellipse cx='44' cy='34' rx='5' ry='8'/%3E%3Cellipse cx='58' cy='36' rx='5' ry='8'/%3E%3Cellipse cx='71' cy='46' rx='5' ry='8'/%3E%3Cpath d='M50 47c9 0 17 8 17 16 0 10-8 16-17 16s-17-6-17-16c0-8 8-16 17-16z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  box-shadow: 3px 3px 0 rgba(125, 208, 76, 0.5);
}

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

.footer-brand .brand-tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  max-width: 32ch;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: var(--white);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.footer-social a:hover {
  border-color: var(--lime-500);
  background: rgba(125, 208, 76, 0.15);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 0.87rem;
  font-weight: 700;
}

.footer-links a {
  width: fit-content;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--lime-400);
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--lime-400);
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--lime-400);
}

.footer-hours {
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-hours strong {
  color: var(--lime-400);
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a {
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--lime-400);
}

/* ---------- Ajustes de contacto y base de datos ---------- */
.contact-note {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.site-footer .contact-note {
  color: rgba(255, 255, 255, 0.55);
}

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

.db-source {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.chip-notice code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(154, 45, 218, 0.1);
  font-size: 0.85em;
}

/* ---------- Reveal animation ---------- */
/* Visible por defecto: si el JavaScript no carga, el contenido nunca queda oculto. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 36px;
  }

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

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

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

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 74px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 24px 50px -18px rgba(42, 27, 51, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 12px 15px;
    border-radius: 12px;
  }

  .nav-link[aria-current="page"] {
    border-radius: 12px;
    box-shadow: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 6px;
  }

  .hero {
    padding-block: 50px 88px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-copy {
    max-width: 640px;
  }

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

  .split.reverse .split-media {
    order: 0;
  }

  .photo-frame {
    max-width: 540px;
    margin-inline: auto;
  }

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

  .info-card:last-child {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }

  .stat-item + .stat-item {
    border-left: 0;
  }

  .stat-item:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 40px 36px;
  }

  .cta-band .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chip-hero-grid {
    grid-template-columns: 1fr;
  }

  .chip-hero-visual {
    display: none;
  }

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

  .footer-col:last-child {
    grid-column: auto;
  }

  .section {
    padding-block: 72px;
  }
}

@media (max-width: 720px) {
  .container,
  .container-narrow {
    width: min(100% - 32px, var(--container));
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }

  .quick-info {
    margin-top: -40px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .hero-photo-frame {
    border-radius: 26px 26px 70px 26px;
    box-shadow: 8px 8px 0 var(--lime-500);
  }

  .floating-rating {
    top: -4px;
    left: -6px;
  }

  .floating-chip {
    right: -4px;
    bottom: 74px;
  }

  .floating-card {
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  .floating-card .fc-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 8px 16px;
  }

  .stats-band {
    padding: 32px 22px;
    box-shadow: 6px 6px 0 var(--lime-500);
  }

  .testimonial {
    padding: 22px;
  }

  .cta-band {
    padding: 34px 24px;
    box-shadow: 6px 6px 0 var(--lime-500);
  }

  .cta-band .cta-actions .btn {
    width: 100%;
  }

  .page-hero {
    padding-block: 40px 44px;
  }

  .timeline-item {
    grid-template-columns: 78px 1fr;
    gap: 16px;
  }

  .timeline-year {
    font-size: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .db-panel {
    border-radius: var(--radius-lg);
  }

  .db-panel-head,
  .db-toolbar,
  .db-result-info,
  .db-foot {
    padding-inline: 18px;
  }

  .db-toolbar {
    align-items: stretch;
  }

  .search-field {
    flex-basis: 100%;
  }

  .select-field {
    flex: 1;
    min-width: 140px;
  }

  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .toolbar-actions .btn {
    flex: 1;
  }

  .db-result-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .db-foot {
    justify-content: center;
    text-align: center;
  }

  .db-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .db-stat {
    padding: 14px;
    gap: 10px;
  }

  .db-stat .icon-bubble {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .db-stat-value {
    font-size: 1.5rem;
  }

  .db-stat-label {
    font-size: 0.64rem;
  }

  .modal-head,
  .modal-body {
    padding-inline: 20px;
  }

  .modal-foot {
    padding-inline: 20px;
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-item.full {
    grid-column: auto;
  }

  .modal-foot .btn {
    flex: 1;
  }

  .table-wrap {
    background: var(--white);
  }

  .chip-table {
    min-width: 900px;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 460px) {
  .container,
  .container-narrow {
    width: calc(100% - 28px);
  }

  .brand-name {
    font-size: 1.32rem;
  }

  .brand-tag {
    font-size: 0.53rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .info-card {
    padding: 18px;
  }

  .section {
    padding-block: 58px;
  }

  .stats-band {
    padding: 28px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .plan-card {
    padding: 24px;
  }

  .empty-state {
    padding: 46px 18px;
  }

  .empty-actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
