/* ============================================================
   Can & Cat · Clínica Veterinaria — estilo minimalista
   ============================================================ */
:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-hero: #f7f7f7; /* mismo tono que el fondo de la foto principal */
  --link: #0066cc;
  --radius: 28px;
  --nav-h: 48px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50;
  background: rgba(247, 247, 247, .72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.nav__inner {
  height: 100%; width: min(1000px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 2rem; font-size: .8rem; color: #424245; }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-block; padding: .7em 1.4em; border-radius: 999px;
  background: var(--link); color: #fff; font-size: 1.05rem; font-weight: 500;
  transition: background .2s;
}
.btn:hover { background: #0077ed; }
.arrow-link { color: var(--link); font-size: 1.05rem; }
.arrow-link::after { content: " ›"; }
.arrow-link:hover { text-decoration: underline; }
.links { display: flex; align-items: center; justify-content: center; gap: 1.8rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-hero); text-align: center;
  padding: calc(var(--nav-h) + clamp(48px, 9vw, 96px)) 16px 0;
}
.kicker { color: #bf4800; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(3.5rem, 11vw, 7.5rem); }
.hero__sub { font-size: clamp(1.35rem, 3vw, 2rem); color: var(--ink-soft); font-weight: 500; margin: .6rem 0 1.8rem; letter-spacing: -.02em; }
.hero__img {
  width: min(480px, 90vw); margin: clamp(24px, 5vw, 48px) auto 0;
  /* Funde los bordes de la foto con el fondo */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

/* ---------- Declaración ---------- */
.statement { width: min(880px, 100% - 32px); margin: clamp(100px, 14vw, 160px) auto; }
.statement p { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.statement span { color: var(--ink-soft); }

/* ---------- Pareja de fotos ---------- */
.pair {
  width: min(1000px, 100% - 32px); margin: 0 auto clamp(100px, 14vw, 160px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pair figure { text-align: center; }
.pair img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  background: var(--bg-alt);
}
.pair .pair__cat { object-position: 50% 80%; }
.pair figcaption { margin-top: 1rem; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-alt); padding: clamp(80px, 12vw, 140px) 16px; }
.section-title { text-align: center; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: clamp(48px, 7vw, 80px); }
.section-title span { color: var(--ink-soft); }
.services__grid {
  width: min(1000px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.service { background: #fff; border-radius: 22px; padding: 2rem 1.8rem; }
.service h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .35rem; }
.service p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(80px, 12vw, 140px) 16px; }
.contact__grid {
  width: min(1000px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem;
}
.contact__item h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .6rem; }
.contact__item p { font-size: 1.05rem; margin-bottom: .6rem; }
.contact__item .arrow-link { font-size: 1rem; }
.status { font-size: .95rem !important; font-weight: 500; }
.status.open { color: #1d8a3a; }
.status.closed { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); font-size: .75rem; color: var(--ink-soft); }
.footer__inner {
  width: min(1000px, 100% - 32px); margin-inline: auto; padding: 24px 0 32px;
  display: grid; gap: .5rem;
}
.footer nav { display: flex; gap: 1.2rem; }
.footer nav a:hover { text-decoration: underline; }

/* ---------- Aparición suave ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --radius: 22px; }
  .nav__links { gap: 1.2rem; }
  .pair { grid-template-columns: 1fr; gap: 40px; }
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .contact__grid { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
