:root {
  --ink: #121c16;
  --forest: #1b2b22;
  --forest-2: #24352c;
  --cream: #f4eee4;
  --ivory: #f8f3ea;
  --paper: #f6f0e6;
  --copper: #b8895c;
  --copper-2: #c9a27a;
  --copper-dark: #8d663d;
  --muted: #7d7468;
  --line: rgba(184, 137, 92, 0.32);
  --text: #1c241e;
  --text-on-dark: #f3eadc;
  --header-h: 64px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text-on-dark);
  background: var(--forest);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--forest);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(201, 162, 122, 0.18);
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  max-width: 148px;
  object-fit: contain;
  background: #fff;
  padding: 3px 5px;
  border-radius: 2px;
}
.brand-place {
  display: block;
  font-size: 8.5px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(243,234,208,0.82);
  text-align: right;
  max-width: 108px;
}
@media (min-width: 760px) {
  .brand-logo { height: 60px; max-width: 176px; }
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 17px;
  line-height: 1;
  color: #f4ead9;
}
.brand-name span {
  display: inline-block;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin-top: 4px;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lang {
  position: relative;
  z-index: 90;
}
.lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  border: 1px solid rgba(244,234,217,0.28);
  background: transparent;
  color: #f4ead9;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-btn b { font-weight: 600; font-size: 11px; }
.flag-mini {
  width: 22px;
  height: 15px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 1px;
  background-color: #cfcfcf;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.flag-es { background-image: url("../img/flag-es.svg"); }
.flag-en { background-color: #012169; background-image: url("../img/flag-uk.svg"); }
.flag-fr { background-image: url("../img/flag-fr.svg"); }
.flag-de { background-image: url("../img/flag-de.svg"); }
.flag-it { background-image: url("../img/flag-it.svg"); }
.flag-ar-lang { background-image: url("../img/flag-sa.svg"); }

.lang-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 196px;
  background: #16231c;
  border: 1px solid rgba(201,162,122,0.28);
  z-index: 80;
  padding: 6px;
}
.lang.open .lang-menu { display: grid; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #f4ead9;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}
.lang-menu button[aria-current="true"],
.lang-menu button:hover { background: rgba(176,125,79,0.22); }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .site-header { flex-direction: row-reverse; }
html[dir="rtl"] .header-right { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nav-desk { margin-left: 0; margin-right: 28px; }

/* Bandera Argentina: tres franjas reales + sol. La blanca nunca se pierde. */
.flag-ar {
  width: 28px;
  min-width: 28px;
  height: 18px;
  min-height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  background-color: #ffffff;
  background-image:
    url("../img/flag-ar.svg"),
    linear-gradient(to bottom, #74acdf 0%, #74acdf 33.333%, #ffffff 33.333%, #ffffff 66.666%, #74acdf 66.666%, #74acdf 100%);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #f4ead9;
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 22px; height: 22px; }

.nav-desk { display: none; }
.nav-desk a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #e8dcc8;
  padding: 8px 8px;
}
.nav-desk a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -1px 0 var(--copper);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,14,12,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 60;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--forest);
  color: var(--text-on-dark);
  transform: translateX(104%);
  transition: transform .28s ease;
  z-index: 70;
  padding: 18px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.nav-open .drawer { transform: none; }
body.nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer a.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  border-bottom: 1px solid rgba(201,162,122,0.16);
  color: #f4ead9;
}
.drawer .wa { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.btn-copper { background: #b07d4f; color: #fff; border-color: #b07d4f; }
.btn-forest { background: var(--forest); color: #f4ead9; border-color: var(--forest); }
.btn-ghost {
  background: transparent;
  color: #f4ead9;
  border-color: rgba(244,234,217,0.45);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--forest);
  border-color: rgba(27,43,34,0.35);
}
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: 640px;
  color: var(--text-on-dark);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-flag {
  position: absolute;
  top: 10%;
  left: 5%;
  width: min(34vw, 168px);
  height: auto;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,28,22,0.18) 0%, rgba(18,28,22,0.22) 38%, rgba(18,28,22,0.78) 100%),
    linear-gradient(90deg, rgba(18,28,22,0.62) 0%, rgba(18,28,22,0.12) 70%);
}
.hero-inner { padding: 28px 20px 26px; max-width: 720px; }

@media (max-width: 759px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
  }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }
  .hero-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12%;
    background: linear-gradient(180deg, transparent, var(--forest));
    pointer-events: none;
  }
  .hero-media img {
    object-fit: cover;
    object-position: 50% 50%;
  }
  .hero-shade,
  .hero-flag { display: none; }
  .hero-inner {
    background: var(--forest);
    padding: 20px 20px 18px;
  }
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--copper);
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero h1 {
  font-size: clamp(40px, 11vw, 64px);
  line-height: 0.95;
  margin: 10px 0 12px;
  color: #f6eedf;
}
.hero .lede {
  font-size: 15px;
  color: rgba(246,238,223,0.86);
  max-width: 34ch;
  margin: 0 0 18px;
}
.hero-actions { display: grid; gap: 10px; margin-top: 6px; }
.hero-note {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246,238,223,0.62);
}

.ribbon {
  background: #a9784b;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 16px 14px;
  text-align: center;
  line-height: 1.45;
}

.section { padding: 48px 20px 72px; background: var(--forest); color: var(--text-on-dark); }
.section-cream { background: var(--forest); }
.section-forest { background: var(--forest); color: var(--text-on-dark); }
.wrap { max-width: var(--max); margin: 0 auto; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin: 0 0 8px;
}
.section-forest .kicker { color: var(--copper-2); }
h2.display {
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.02;
  margin: 0 0 14px;
}
.lead { font-size: 16.5px; color: rgba(246,238,223,0.78); max-width: 46ch; }
.section-forest .lead { color: rgba(246,238,223,0.78); }

.trio { display: grid; gap: 14px; }
.card {
  background: #fbf7ef;
  color: #1c241e;
  border: 1px solid rgba(27,43,34,0.06);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18,28,22,0.06);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 16px 16px 18px; }
.card h3 { font-size: 28px; margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--copper-dark);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.arrow { font-size: 18px; }

.horse-card {
  background: #fbf7ef;
  color: #1c241e;
  border: 1px solid rgba(27,43,34,0.07);
  overflow: hidden;
}
.horse-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
}
.horse-card .body { padding: 16px 16px 18px; }
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--copper-dark);
  padding: 4px 8px;
  margin-bottom: 8px;
}
.horse-card h3 { font-size: 26px; margin: 0 0 6px; }
.meta { font-size: 13.5px; color: #5c645e; margin: 0 0 4px; }
.meta-soft { color: var(--muted); font-size: 13px; }

.stack { display: grid; gap: 14px; }
.ladder { display: grid; gap: 10px; margin-top: 18px; }
.rung {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rung b {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--copper-dark);
  line-height: 1;
}
.rung h3 { margin: 0 0 2px; font-size: 18px; }
.rung p { margin: 0; color: var(--muted); font-size: 13.5px; }

.disc-grid { display: grid; gap: 12px; margin-top: 20px; }
.disc {
  padding: 18px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,122,0.2);
}
.disc.light {
  background: #fbf7ef;
  border-color: var(--line);
  color: var(--text);
}
.disc h3 { margin: 0 0 6px; font-size: 24px; }
.disc p { margin: 0; color: rgba(246,238,223,0.72); font-size: 14px; }
.disc.light p { color: #5c645e; }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 16px 0;
}
.spec { border-top: 1px solid var(--line); padding-top: 8px; }
.spec dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd {
  margin: 2px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.result strong { display: block; font-weight: 500; }
.result span { color: var(--muted); font-size: 13px; }
.result em {
  font-style: normal;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
}

.page-hero {
  background: var(--forest);
  color: var(--text-on-dark);
  padding: 28px 20px 34px;
}
.page-hero h1 {
  font-size: clamp(36px, 10vw, 58px);
  margin: 8px 0 10px;
  line-height: 0.98;
}
.crumbs {
  font-size: 12px;
  color: #c0392b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gene-photo {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.gene-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(201,162,122,0.22);
  color: #f6eedf;
}
.gene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,18,16,.2), rgba(14,18,16,.78));
}
.gene-card .txt {
  position: relative;
  z-index: 1;
  padding: 28px 20px;
  max-width: 36ch;
}
.gene-card h3 {
  font-size: 32px;
  margin: 0 0 10px;
}
.gene-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.gene-list div {
  border: 1px solid rgba(201,162,122,0.28);
  padding: 16px 18px;
  color: #f6eedf;
  background: #16231c;
}
.ficha-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 18px;
}

footer.site-footer {
  background: var(--forest);
  color: var(--text-on-dark);
  padding: 36px 20px 40px;
}
.foot-grid { display: grid; gap: 22px; }
.foot-brand {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.16em;
  font-size: 18px;
}
.foot-col h4 {
  font-family: Outfit, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin: 0 0 10px;
  font-weight: 500;
}
.foot-col a,
.foot-col p {
  display: block;
  color: rgba(246,238,223,0.78);
  font-size: 14px;
  margin: 0 0 6px;
}
.legal {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(246,238,223,0.5);
}

.sticky-cta {
  display: none;
}

@media (min-width: 760px) {
  :root { --header-h: 72px; }
  .site-header { padding: 0 28px; }
  .brand-name { font-size: 20px; letter-spacing: 0.2em; }
  .nav-desk {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 28px;
  }
  .menu-toggle { display: none; }
  .hero-inner { padding: 48px 40px; }
  .hero-actions { display: flex; max-width: 560px; }
  .hero-actions .btn { min-width: 200px; }
  .section { padding: 72px 32px; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .stack.horses { grid-template-columns: repeat(3, 1fr); }
  .disc-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .sticky-cta { display: none !important; display: none; }
  footer.site-footer { padding-bottom: 40px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 72px; }
  .hero-media img { object-position: 50% 45%; }
}
