/* ============================================================
   VetAI — sistema de tokens
   ============================================================ */
:root {
  color-scheme: light dark;

  /* -- Color: paleta de clínica cálida, no cliché IA -- */
  --pine-900: #16332b;
  --pine-800: #1d4436;
  --pine-700: #2f5d4c;
  --pine-600: #3f7360;
  --sand-050: #faf7f1;
  --sand-100: #f3ede3;
  --sand-200: #e8ddc9;
  --coral-500: #e2704a;
  --coral-600: #c95c39;
  --ink-600: #4a5852;
  --ink-300: #8a978f;

  --bg: var(--sand-100);
  --surface: var(--sand-050);
  --surface-raised: #ffffff;
  --text: var(--pine-900);
  --text-muted: var(--ink-600);
  --brand: var(--pine-700);
  --brand-strong: var(--pine-800);
  --accent: var(--coral-500);
  --accent-strong: var(--coral-600);
  --border: #ddd2ba;
  --border-soft: #e6dcc6;
  --focus-ring: var(--coral-500);

  /* -- Tipografía -- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --step-caption: 0.8rem;
  --step-body: 1.0625rem;
  --step-lead: 1.25rem;
  --step-h3: 1.5rem;
  --step-h2: 2.1rem;
  --step-h1: clamp(2.4rem, 5vw, 3.6rem);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--pine-900);
    --surface: var(--pine-800);
    --surface-raised: #234438;
    --text: var(--sand-050);
    --text-muted: #b9c7bf;
    --brand: #7fb69e;
    --brand-strong: #a3cdb9;
    --accent: #f0895f;
    --accent-strong: #f7a884;
    --border: #2c4d3f;
    --border-soft: #26443a;
  }
}

:root[data-theme="dark"] {
  --bg: var(--pine-900);
  --surface: var(--pine-800);
  --surface-raised: #234438;
  --text: var(--sand-050);
  --text-muted: #b9c7bf;
  --brand: #7fb69e;
  --brand-strong: #a3cdb9;
  --accent: #f0895f;
  --accent-strong: #f7a884;
  --border: #2c4d3f;
  --border-soft: #26443a;
}

/* ============================================================
   Reset & base
   ============================================================ */
* { box-sizing: border-box; }
img, svg { max-width: 100%; display: block; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.55;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: var(--step-h1); line-height: 1.08; }
h2 { font-size: var(--step-h2); line-height: 1.15; }
h3 { font-size: var(--step-h3); line-height: 1.25; }

p { margin: 0; max-width: 38em; }
a { color: inherit; }

.eyebrow {
  font-size: var(--step-caption);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Shell / layout helpers
   ============================================================ */
.wrap {
  max-width: 1120px;
  margin-inline: auto;
}

.stack { display: flex; flex-direction: column; }

section {
  padding-block: clamp(48px, 8vw, 96px);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--sand-050);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--brand-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.25);
  }
  .main-nav[hidden] { display: none; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--border-soft); }
  .main-nav .nav-cta { margin-top: 8px; justify-content: center; border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { position: relative; }
}

/* ============================================================
   Hero (Inicio) — franja de agenda ilustrada
   ============================================================ */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 9vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy p.lead {
  font-size: var(--step-lead);
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 32em;
}

.hero-copy h1 { margin-top: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff2ea; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }

/* agenda strip illustration */
.agenda {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 48px -28px rgba(22, 51, 43, 0.35);
}

.agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.agenda-head .day { font-family: var(--font-display); font-size: 1.1rem; }
.agenda-head .count { font-size: var(--step-caption); color: var(--text-muted); }

.agenda-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--border-soft);
}
.agenda-row:first-of-type { border-top: none; }

.agenda-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-width: 3.4em;
}

.agenda-pet {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.agenda-pet .paw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agenda-pet .paw svg { width: 14px; height: 14px; color: var(--brand); }
.agenda-pet span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.agenda-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.agenda-status.confirmed { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.agenda-status.new { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-strong); }

.agenda-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  font-size: var(--step-caption);
  color: var(--text-muted);
}
.agenda-source svg { width: 16px; height: 16px; color: var(--brand); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   Tarjetas de servicios
   ============================================================ */
.section-head {
  max-width: 42em;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: var(--step-lead); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .icon svg { width: 22px; height: 22px; color: var(--brand); }

.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ============================================================
   Franja "Por qué WhatsApp"
   ============================================================ */
.why {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.why .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}
.why-item .mark {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
}
.why-item p { color: var(--text-muted); }
.why-item strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }

@media (max-width: 820px) {
  .why .wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA final
   ============================================================ */
.cta-band {
  background: var(--brand);
  color: var(--sand-050);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-block: clamp(40px, 7vw, 72px);
}
.cta-band h2 { color: var(--sand-050); font-size: 1.7rem; }
.cta-band p { color: color-mix(in srgb, var(--sand-050) 82%, transparent); margin-top: 8px; }
.cta-band .btn-primary { background: var(--sand-050); color: var(--brand-strong); }
.cta-band .btn-primary:hover { background: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 36px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.site-footer .brand { font-size: 1.05rem; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-phone {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   Página "Quiénes somos"
   ============================================================ */
.page-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.page-hero .eyebrow { display: block; margin-bottom: 10px; }
.page-hero p.lead {
  margin-top: 16px;
  font-size: var(--step-lead);
  color: var(--text-muted);
  max-width: 46em;
}

.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-portrait svg { width: 38px; height: 38px; color: var(--brand); }

.founder-card h3 { font-size: 1.25rem; }
.founder-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.founder-card p.bio { color: var(--text-muted); }

@media (max-width: 720px) {
  .founders { grid-template-columns: 1fr; }
}

.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 2px solid var(--border-soft);
  padding-left: 22px;
}
.story-timeline .step .step-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 6px;
}
.story-timeline .step p { color: var(--text-muted); font-size: 0.96rem; }

.story-body p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.05rem; }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--text); }

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
}

.mission-band {
  background: var(--pine-800);
  color: var(--sand-050);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px);
  text-align: center;
}
.mission-band .eyebrow { color: var(--sand-200); }
.mission-band h2 { color: var(--sand-050); margin-top: 12px; max-width: 34em; margin-inline: auto; }
.mission-band p { color: color-mix(in srgb, var(--sand-050) 85%, transparent); margin: 18px auto 0; max-width: 40em; font-size: var(--step-lead); }

/* ============================================================
   Página Contacto
   ============================================================ */
.contact-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 8vw, 80px);
}

.contact-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 64px) clamp(28px, 6vw, 56px);
}

.contact-card .eyebrow { display: block; }
.contact-card h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 2.7rem); }
.contact-card p.lead {
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: var(--step-lead);
  max-width: 34em;
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff2ea;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.phone-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }
.phone-cta svg { width: 26px; height: 26px; flex-shrink: 0; }

.contact-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.contact-meta div { text-align: left; }
.contact-meta .eyebrow { display: block; margin-bottom: 4px; }
.contact-meta p { color: var(--text-muted); font-size: 0.95rem; }
