:root {
  --ink: #1d2527;
  --muted: #6b7476;
  --line: #e4e8e7;
  --pale: #f4f7f6;
  --brand: #39a9c6;
  --brand-dark: #087c96;
  --deep: #0d3137;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(920px, calc(100% - 40px));
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  background: rgba(13, 49, 55, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.brand img {
  width: 231px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a {
  opacity: .92;
}

.main-nav a:hover {
  color: #9de5f0;
}

.main-nav a.active {
  color: #9de5f0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--deep);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 22, 26, .58), rgba(5, 22, 26, .08) 58%, rgba(5, 22, 26, .34));
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  margin-top: 40px;
  color: var(--white);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98;
  font-weight: 300;
  text-transform: uppercase;
}

.hero-copy strong {
  display: block;
  color: #a7e7ef;
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  position: relative;
  height: 400px;
  min-height: 400px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 20px 70px;
  color: var(--white);
  background: var(--deep);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 22, 26, .64), rgba(5, 22, 26, .2));
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--genetica img {
  object-position: 50% 11%;
}

.page-hero--contacto img {
  object-position: 50% 6%;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  color: var(--white);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .4);
}

.page-body {
  background: var(--white);
}

.text-flow h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4.4vw, 54px);
}

.text-flow {
  max-width: 860px;
}

.text-flow p,
.text-flow li {
  color: #536164;
  font-size: 20px;
  line-height: 1.75;
}

.text-flow p {
  margin: 0 0 20px;
}

.text-flow p + p {
  margin-top: 0;
}

.text-flow ul {
  margin: 22px 0 0;
  padding-left: 22px;
}

.history {
  padding-bottom: 18px;
  border-bottom: 3px solid var(--brand);
}

.history-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 42px;
}

.history-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--pale);
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.history-toc a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.history-chapter-title {
  scroll-margin-top: 104px;
  margin: 54px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
}

.history-chapter-title:first-of-type {
  margin-top: 0;
}

.cms-dynamic-block {
  background: #fff;
}

.cms-dynamic-block h2 {
  margin: 0 0 22px;
  color: var(--deep);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.cms-dynamic-block .button-link {
  margin-top: 22px;
}

.cms-align-center {
  text-align: center;
}

.cms-title-large h2 {
  font-size: clamp(48px, 7vw, 84px);
}

.cms-title-compact h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.cms-block-hero {
  background: var(--pale);
  padding-block: clamp(72px, 9vw, 132px);
}

.cms-block-cta {
  background: var(--deep);
  color: #fff;
}

.cms-block-cta h2,
.cms-block-cta .eyebrow,
.cms-block-cta p {
  color: #fff;
}

.graph-tabs {
  margin-top: 60px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(8, 45, 52, .09);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--pale);
}

.tab-buttons button {
  flex: 1 1 190px;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--deep);
  font: 700 15px/1.15 "Roboto Condensed", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-buttons button.active {
  background: var(--brand);
  color: var(--white);
}

.tab-panels {
  padding: 28px;
}

.tab-panels img {
  display: none;
  width: min(760px, 100%);
  margin: 0 auto;
}

.tab-panels img.active {
  display: block;
}

.result-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 66px;
}

.result-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.result-media {
  display: grid;
  gap: 18px;
}

.result-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 60px;
  padding: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-strip img {
  max-height: 76px;
  margin: 0 auto;
  object-fit: contain;
}

.intro {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: -140px;
  position: relative;
  z-index: 2;
}

.info-card {
  min-height: 156px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  padding: 32px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
}

.info-card img {
  max-height: 86px;
  margin: 0 auto;
}

.info-card p {
  margin: 0;
  color: #526063;
  font-size: 21px;
}

.video-shell {
  position: relative;
  display: block;
  margin-top: 58px;
  aspect-ratio: 16 / 9;
  background: #111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.video-shell iframe,
.video-shell > img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 18, 22, .08), rgba(3, 18, 22, .42));
}

.play-button {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(13, 49, 55, .86);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
}

.genetics {
  background: var(--pale);
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.25;
}

.data-image {
  display: block;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(8, 45, 52, .1);
}

.data-image img {
  margin: 0 auto;
}

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

.copy p:not(.eyebrow) {
  margin: 20px 0 0;
  color: #536164;
}

.angus picture img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.origin {
  background: #eaf1f2;
}

.origin p:not(.eyebrow) {
  color: #526063;
  font-size: 22px;
}

.news h2 {
  margin-bottom: 0;
}

.news-page h1 {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.subtle-link {
  background: transparent;
  border: 1px solid var(--brand-dark);
  color: var(--brand-dark);
}

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

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

.news-carousel {
  position: relative;
}

.news-track {
  display: flex;
  gap: 28px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-track .news-card {
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: start;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: var(--deep);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 45, 52, .2);
}

.carousel-prev {
  left: -58px;
}

.carousel-next {
  right: -58px;
}

.carousel-button:disabled {
  opacity: .35;
  cursor: default;
}

.news-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 169, 198, .45);
  box-shadow: 0 18px 42px rgba(8, 45, 52, .12);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card h3 {
  margin: 0;
  padding: 22px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.18;
}

.site-footer {
  color: #d8e5e7;
  background: var(--deep);
}

.compact-footer {
  padding: 24px 0;
  color: #d8e5e7;
  text-align: center;
}

.compact-footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 52px;
  padding: 62px 0 48px;
}

.footer-brand {
  width: 231px;
  margin-bottom: 30px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

address {
  position: relative;
  margin: 0;
  min-height: 190px;
  font-style: normal;
}

address a {
  color: #9de5f0;
}

address img {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: 150px;
  opacity: .12;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #aebfc2;
  font-size: 14px;
}

.footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom img {
  width: 72px;
}

.article-main {
  background: var(--white);
}

.article-detail-page {
  padding-top: 72px;
}

.article-wrap {
  width: min(980px, calc(100% - 40px));
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.article-wrap h1 {
  margin-bottom: 30px;
  color: var(--deep);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  text-transform: uppercase;
}

.article-image {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--pale);
  box-shadow: 0 18px 48px rgba(8, 45, 52, .1);
}

.article-video {
  margin-top: 34px;
}

.article-wrap .button-link {
  margin-top: 26px;
}

.history-gallery-section {
  background: var(--pale);
}

.section-title {
  margin-bottom: 28px;
}

.gallery-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.gallery-section-head .section-title,
.gallery-section-head .button-link {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(8, 45, 52, .1);
  cursor: zoom-in;
}

.gallery-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 42px;
}

.gallery-category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #cfdadb;
  background: var(--white);
  color: var(--deep);
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-category-nav a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.gallery-category {
  padding-top: 30px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.gallery-category:first-of-type {
  margin-top: 0;
}

.gallery-category-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.gallery-category-head h3 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  text-transform: uppercase;
}

.gallery-category-head p:not(.eyebrow) {
  margin: 0;
  color: #536164;
  font-size: 21px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}

.map-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.map-card {
  min-height: 520px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(8, 45, 52, .11);
}

.wide-map {
  margin-top: 40px;
}

.map-card iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.contact-panel,
.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--pale);
}

.contact-panel h2 {
  font-size: 40px;
}

.contact-panel p {
  color: #536164;
  font-size: 21px;
}

.panel-logo {
  width: 92px;
  margin-bottom: 18px;
  opacity: .55;
}

.button-link,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  background: var(--brand-dark);
  color: var(--white);
  font: 700 16px/1 "Roboto Condensed", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #c9d7d9;
  background: var(--white);
  color: var(--deep);
  font-weight: 700;
  text-transform: uppercase;
}

.whatsapp-link img {
  width: 22px;
  height: 22px;
}

.floating-whatsapp {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: #21a559;
  color: var(--white);
  box-shadow: 0 16px 36px rgba(10, 42, 30, .3);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.floating-whatsapp img {
  width: 24px;
  height: 24px;
}

.image-lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 24px 30px;
  background: rgba(4, 20, 23, .88);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(980px, 94vw);
  max-height: 82vh;
  border: 1px solid rgba(255, 255, 255, .28);
  object-fit: contain;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .45);
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccd6d8;
  background: var(--white);
  padding: 13px 14px;
  color: var(--ink);
  font: 400 18px/1.3 "Roboto Condensed", Arial, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-header {
    height: 68px;
  }

  .history-chapter-title {
    scroll-margin-top: 90px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 22px;
    background: rgba(13, 49, 55, .98);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .info-grid,
  .split,
  .news-grid,
  .footer-grid,
  .large-grid,
  .result-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .news-track {
    gap: 20px;
  }

  .news-track .news-card {
    flex-basis: calc((100% - 20px) / 2);
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .carousel-button {
    display: block;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-main {
    padding-top: 68px;
  }

  .page-hero {
    height: 340px;
    min-height: 340px;
    padding-top: 110px;
  }

  .page-hero--genetica img {
    object-position: 50% 24%;
  }

  .page-hero--contacto img {
    object-position: 50% 20%;
  }

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

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

  .gallery-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-category-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid {
    gap: 28px;
  }

  .info-grid {
    margin-top: -80px;
  }

  .split {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 190px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-copy p {
    font-size: 43px;
  }

  .section {
    padding: 58px 0;
  }

  .info-card {
    grid-template-columns: 76px 1fr;
    padding: 22px;
  }

  .info-card p,
  .origin p:not(.eyebrow) {
    font-size: 18px;
  }

  .lead {
    font-size: 21px;
  }

  .text-flow p,
  .text-flow li,
  .contact-panel p {
    font-size: 18px;
    line-height: 1.65;
  }

  .tab-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-buttons button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-panel,
  .contact-form,
  .tab-panels {
    padding: 22px;
  }

  .map-card,
  .map-card iframe {
    min-height: 390px;
    height: 390px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

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

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 14px;
  }

  .floating-whatsapp span {
    display: none;
  }
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
