/* =========================================================
   OzoVet Regenerativa · Landing page
   Paleta tomada del logotipo oficial
   ========================================================= */

:root {
  /* Marca (muestreados del logotipo) */
  --green-700: #2e4c25;   /* texto "Regenerative Veterinary Medicine" */
  --green-600: #227935;   /* cruz */
  --green-500: #498129;   /* anillo y hojas */
  --gold-500:  #e9ab1d;   /* dorado "OzoVet" */
  --gold-700:  #926411;   /* dorado sombra "OzoVet" */

  /* Derivados */
  --green-900: #1f381a;   /* fondo sección principal */
  --ink:       #1c2819;   /* texto base */
  --ink-soft:  #4b5747;   /* texto secundario */
  --line:      #e3e2d6;
  --surface:   #ffffff;
  --surface-tint: #f8f7f0;
  --on-dark:   #f3f1e6;
  --on-dark-soft: #c9d0c1;

  /* Tipografía */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h1: clamp(1.75rem, 1.1rem + 3.2vw, 3.1rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.9vw, 2.35rem);
  --fs-h3: 1.0625rem;
  --fs-quote: clamp(1.25rem, 1rem + 1.3vw, 1.75rem);

  /* Espaciado */
  --gutter: 1.25rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --measure: 38rem;
  --radius: 6px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, blockquote, ul { margin: 0; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--green-700);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; }

/* ---------- Componentes ---------- */
.eyebrow,
.chapter__label {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-700);
}

.chapter__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.chapter__num {
  font-variant-numeric: tabular-nums;
  padding-right: .75rem;
  border-right: 1px solid currentColor;
  line-height: 1;
}

.chapter__label--light { color: var(--gold-500); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.btn--primary {
  background: var(--green-700);
  color: #fff;
}
.btn--primary:hover { background: var(--green-600); }
.btn--primary:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--green-900);
}
.btn--gold:hover { background: #f2bb36; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-quiet:hover { color: var(--green-600); }

/* Texto editorial */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.25rem; }
.prose h3 {
  margin-top: 2.5rem;
  font-size: var(--fs-h3);
  color: var(--green-700);
}
.prose h3 + p { margin-top: .75rem; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink);
}

.pause {
  margin-block: 2.25rem !important;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  color: var(--green-700);
}

.pullquote {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold-500);
  font-size: var(--fs-quote);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--green-700);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}
.site-header__brand { display: block; flex-shrink: 0; }
.site-header__brand img { width: auto; height: 76px; }

/* ---------- 1. Hero ---------- */
.hero {
  padding-block: 2.5rem 3.5rem;
  background: var(--surface);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
}
.hero__text { max-width: 36rem; }
.hero .eyebrow { margin-bottom: 1rem; }

.hero__title {
  font-size: var(--fs-h1);
  color: var(--ink);
}
.hero__brand {
  display: block;
  color: var(--green-700);
}

.hero__quote {
  margin-block: 1.75rem 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold-500);
}
.hero__quote p {
  font-size: var(--fs-quote);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--green-700);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__media figcaption {
  margin-top: .75rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- 2 y 3. Capítulos ---------- */
.chapter {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.chapter--tint {
  background: var(--surface-tint);
  border-top: 0;
}
.chapter__grid {
  display: grid;
  gap: 2rem;
}
.chapter h2 {
  max-width: 34rem;
  font-size: var(--fs-h2);
  color: var(--ink);
}

.milestone {
  margin-block: 2.25rem !important;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--green-600);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  color: var(--green-700);
}

.closing {
  margin-top: 2.25rem !important;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  color: var(--green-700);
}

/* ---------- 4. Origen OzoVet ---------- */
.origin {
  padding-block: var(--section-y);
  background: var(--green-900);
  color: var(--on-dark);
}
.origin__head { margin-bottom: 2.5rem; }
.origin h2 {
  max-width: 40rem;
  font-size: var(--fs-h2);
  color: #fff;
}

.origin__grid {
  display: grid;
  gap: 3rem;
}

.prose--light { color: var(--on-dark-soft); }
.pause--light {
  color: var(--gold-500);
  border-color: rgba(243, 241, 230, .16);
}

.origin__intro {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  max-width: 30rem;
}

.pillars {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(233, 171, 29, .45);
}
.pillars li {
  padding-block: 1.125rem;
  border-bottom: 1px solid rgba(233, 171, 29, .45);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gold-500);
}

.origin__statement {
  max-width: 52rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(243, 241, 230, .16);
  font-size: clamp(1.125rem, .95rem + .9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-dark);
}
.origin__statement strong {
  font-weight: 600;
  color: var(--gold-500);
}

/* ---------- 5. Digby ---------- */
.digby {
  padding-block: var(--section-y);
  background: var(--surface);
}
.digby__grid {
  display: grid;
  gap: 2.5rem;
}
.digby h2 {
  font-size: var(--fs-h2);
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 32rem;
}
.digby__name {
  display: block;
  font-size: 1.6em;
  line-height: 1.05;
  color: var(--green-700);
  margin-bottom: .25rem;
}

.photo-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-tint);
  border: 2px dashed #bdbba9;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}
.photo-placeholder__tag,
.cta-pending__tag {
  display: inline-block;
  padding: .25rem .625rem;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  border-radius: 3px;
}
.photo-placeholder__text {
  font-size: .9375rem;
  font-weight: 500;
}

/* ---------- Contacto ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--surface-tint);
}
.contact__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.contact h2 {
  font-size: var(--fs-h2);
  color: var(--ink);
  max-width: 28rem;
}
.contact__text > p {
  margin-top: 1rem;
  max-width: 30rem;
  color: var(--ink-soft);
}
.contact__action { margin-top: 2rem; }

.cta-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  padding: 1rem 1.125rem;
  border: 2px dashed #bdbba9;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30rem;
}

.contact__media img {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.site-footer__logo { width: auto; height: 84px; }
.site-footer__meta,
.site-footer__copy {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Animación de entrada ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }

  .site-header__brand img { height: 88px; }

  .hero { padding-block: 3.5rem 4.5rem; }
  .hero__media { max-width: 30rem; }

  .digby__media { max-width: 26rem; }

  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 2rem;
  }
  .site-footer__logo { grid-row: span 2; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 960px) {
  :root {
    --gutter: 2.5rem;
    --fs-body: 1.0625rem;
    --fs-lead: 1.1875rem;
  }

  .site-header__inner { min-height: 112px; }
  .site-header__brand img { height: 100px; }

  .hero { padding-block: 4.5rem 5.5rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 4.5rem;
  }
  .hero__media { max-width: none; }

  .chapter__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }
  .chapter__head {
    position: sticky;
    top: 2.5rem;
  }

  .origin__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: start;
  }
  .origin__statement { margin-top: 5rem; }

  .digby__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: center;
  }
  .digby__media { max-width: none; }
  .photo-placeholder { aspect-ratio: 4 / 5; }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }
  .contact__media img { margin-left: auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}