:root {
  --ink: #1d261f;
  --muted: #657267;
  --paper: #f4f6f1;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --line: #d9e1d5;
  --brand: #3f674b;
  --brand-2: #7d9970;
  --accent: #8d4a34;
  --gold: #b58a4d;
  --blue: #657f93;
  --soft: #eaf1e5;
  --focus: #2563eb;
  --shadow: none;
  --radius: 0;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

.site-header,
.brand,
.site-nav,
.site-nav > a,
.nav-group > a,
.nav-panel,
.nav-panel a,
.nav-cta,
.menu-toggle,
.button,
.chip,
.content-card,
.feature-card,
.document-card,
.news-card,
.fact-card,
.side-nav,
.form-panel,
.empty-state,
.news-toolbar,
.article-shell,
.footer-logo,
.prose img,
.prose table,
.header-mosaic figure {
  border-radius: 0 !important;
}

body {
  background: var(--paper);
  color: var(--ink);
}

#main:focus {
  outline: none;
}

.reveal {
  opacity: 1 !important;
  transform: none !important;
}

a:hover {
  color: var(--brand);
}

.container,
.hero__inner {
  width: calc(100% - 36px);
  max-width: 1480px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.top-strip {
  display: block;
  background: #edf4ea;
  border-bottom: 1px solid var(--line);
  color: #59675b;
  font-size: 0.76rem;
  font-weight: 700;
}

.top-strip__inner {
  min-height: 30px;
}

.nav-shell {
  min-height: 76px;
  max-width: 1600px;
  justify-content: space-between;
}

.brand img {
  width: 200px;
  filter: saturate(0.94);
}

.site-nav {
  gap: 0;
  font-size: 0.88rem;
  font-weight: 760;
}

.site-nav > a,
.nav-group > a {
  min-height: 42px;
  padding: 0 11px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #263129;
}

.site-nav > a:hover,
.nav-group:hover > a,
.site-nav a.is-active {
  background: #edf4ea;
  color: var(--brand);
}

.nav-panel {
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 35px rgba(29, 38, 31, 0.08);
}

.nav-panel a:hover {
  background: #eff5ec;
}

.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff !important;
}

.nav-cta:hover {
  background: #2f5139 !important;
  color: #fff !important;
}

.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.hero {
  min-height: auto;
  padding: 22px 0 0;
  background: var(--paper) !important;
  overflow: visible;
}

.hero::before,
.hero::after,
.hero__media,
.hero__media-label,
.page-hero__image {
  display: none;
}

.hero__inner {
  display: block;
  padding: 0;
}

.hero__inner > span {
  display: none;
}

.hero .reveal,
.page-hero .reveal,
.header-mosaic.reveal {
  opacity: 1;
  transform: none;
}

.header-carousel,
.header-mosaic {
  position: relative;
  width: 100%;
  height: clamp(180px, 17vw, 280px);
  overflow: hidden;
  background: #dfe8dc;
}

.header-carousel__track {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 100%;
  transition: transform 420ms ease;
}

.header-carousel__slide,
.header-mosaic figure {
  position: relative;
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background-color: #dfe8dc;
  background-position: center;
  background-size: cover;
}

.header-carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(223, 232, 220, 0.18);
  backdrop-filter: blur(10px);
  filter: blur(10px);
}

.header-carousel img,
.header-mosaic img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.header-mosaic--page img {
  min-height: 0;
}

.header-mosaic--page {
  height: clamp(170px, 16vw, 260px);
}

.header-mosaic--post img {
  min-height: 0;
}

.header-mosaic--post {
  height: clamp(170px, 16vw, 260px);
}

.header-mosaic--post {
  margin-bottom: 30px;
}

.header-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(39, 63, 47, 0.78);
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 38, 31, 0.16);
  cursor: pointer;
  font-size: 2.3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.header-carousel__button:hover {
  background: rgba(39, 63, 47, 0.94);
}

.header-carousel__button--prev {
  left: 10px;
}

.header-carousel__button--next {
  right: 10px;
}

.hero__content {
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 22px 0 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero-brand-block {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 1120px;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 310px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.eyebrow,
.section-kicker {
  color: var(--brand);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.eyebrow::before,
.section-kicker::before {
  width: 34px;
  height: 1px;
}

.hero h1,
.page-hero h1,
.section-head h2,
.split-content h2,
.post-header h1,
.prose h1,
.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
}

.hero h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.92;
  text-shadow: none;
  white-space: normal;
}

.hero__lead {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
}

.button {
  min-height: 44px;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 820;
  text-transform: none;
}

.button:hover {
  transform: none;
  background: #edf4ea;
  box-shadow: none;
}

.button--primary,
.button--dark {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover,
.button--dark:hover {
  background: #304f39;
  color: #fff;
}

.button--secondary,
.button--ghost {
  background: transparent;
  color: var(--brand);
}

.hero-kpis {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.hero-kpis div,
.hero-kpis div:nth-child(2),
.hero-kpis div:nth-child(3),
.hero-kpis div:nth-child(4),
.hero-kpis div:nth-child(odd) {
  min-height: 108px;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
  color: var(--ink);
  backdrop-filter: none;
}

.hero-kpis strong {
  color: var(--brand);
}

.hero-kpis span {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section--surface {
  background: #edf3ea;
  border-block: 1px solid var(--line);
  color: var(--ink);
}

.section--surface .section-kicker,
.section--surface .section-head h2,
.section--surface .section-head p,
.section--surface .feature-card h3,
.section--surface .feature-card p,
.section--surface .document-card h3,
.section--surface .document-card p {
  color: var(--ink);
}

.section--surface .section-head p,
.section--surface .feature-card p,
.section--surface .document-card p {
  color: var(--muted);
}

.section--surface .feature-card,
.section--surface .document-card {
  background: rgba(255, 255, 255, 0.64);
  border-color: #cfdcc8;
}

.section--tight {
  padding: 48px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  max-width: 880px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
}

.section-head p,
.split-content p,
.prose,
.content-card p,
.feature-card p,
.document-card p,
.fact-card p,
.news-card p {
  color: var(--muted);
}

.card-grid,
.document-grid,
.news-grid,
.feature-grid {
  gap: 10px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.content-card,
.feature-card,
.document-card,
.news-card,
.fact-card,
.side-nav,
.form-panel,
.empty-state,
.news-toolbar,
.article-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.content-card,
.feature-card,
.document-card,
.fact-card {
  padding: 22px;
}

.content-card:hover,
.feature-card:hover,
.document-card:hover,
.news-card:hover {
  transform: none;
  box-shadow: none;
}

.content-card h3,
.feature-card h3,
.document-card h3,
.fact-card h3,
.news-card h3 {
  font-size: 1.12rem;
  font-weight: 820;
  text-transform: none;
}

.content-card a,
.document-card a,
.news-card a {
  color: var(--brand);
  font-weight: 840;
  text-transform: none;
}

.feature-card::before,
.document-card::before,
.fact-card::before,
.feature-card:nth-child(even)::before,
.document-card:nth-child(even)::before {
  width: 48px;
  height: 3px;
  background: var(--brand-2);
}

.split {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.split-media {
  min-height: 560px;
  order: 2;
  border: 0;
  background: var(--soft);
  box-shadow: none;
}

.split-media::after {
  display: none;
}

.split-content {
  order: 1;
  align-self: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo-row img {
  max-height: 94px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.page-hero {
  margin: 0;
  padding: 34px 0 0;
  background: #edf3ea;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: end;
  min-height: auto;
  padding: 0 0 34px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  text-shadow: none;
}

.page-hero p {
  max-width: 700px;
  padding: 0;
  border: 0;
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-weight: 720;
  text-transform: none;
}

.breadcrumb a,
.article-shell .breadcrumb a {
  color: var(--brand);
}

.page-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.side-nav {
  top: 112px;
  padding: 18px;
  background: #fbfcfa;
}

.side-nav h2,
.site-footer h2 {
  color: var(--muted);
  font-weight: 860;
}

.side-nav a {
  padding: 10px 0;
  color: var(--brand);
  font-weight: 760;
  text-transform: none;
}

.side-nav a:hover {
  padding-left: 0;
  background: transparent;
  color: var(--accent);
}

.article-shell {
  padding: 28px;
}

.prose h1,
.prose h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.prose h3,
.prose h4 {
  font-weight: 820;
  text-transform: none;
}

.prose img,
.prose video,
.prose iframe,
.prose object,
.prose table,
.page-catalogo-de-sementales-2 .prose > .wp-block-group,
.page-catalogo-de-sementales-2 .prose > div.wp-block-group {
  border: 1px solid var(--line);
  box-shadow: none;
}

.news-toolbar {
  padding: 14px 0;
  border-width: 1px 0;
  background: transparent;
}

.chip {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  box-shadow: none;
  text-transform: none;
}

.chip.is-active,
.chip:hover {
  border-color: var(--brand);
  background: #edf4ea;
  color: var(--brand);
}

.news-card__image {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.news-card__body {
  padding: 20px;
}

.meta {
  color: var(--muted);
  font-weight: 720;
  text-transform: none;
}

.post-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-placeholder {
  border: 1px dashed var(--line);
  background: var(--surface-soft);
}

.site-footer {
  background: #dfe8dc;
  border-top: 1px solid #cfdacb;
  color: var(--ink);
}

.footer-visual {
  min-height: 180px;
  border-bottom: 1px solid #cfdacb;
  background-image:
    linear-gradient(0deg, rgba(223, 232, 220, 0.38), rgba(223, 232, 220, 0.04)),
    url("../assets/images/vacas.jpg");
}

.footer-grid {
  padding: 46px 0 28px;
}

.footer-logo {
  width: 218px;
  padding: 8px;
  border: 1px solid #cfdacb;
  background: #fff;
}

.site-footer p,
.site-footer a {
  color: #4c5c50;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid #c7d3c2;
  color: #5b695f;
}

@media (max-width: 1240px) {
  .top-strip {
    display: none;
  }

  .nav-shell {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    inset: 72px 18px auto 18px;
    max-height: calc(100svh - 90px);
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(29, 38, 31, 0.12);
  }

  .site-nav > a,
  .nav-group > a {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .page-hero__inner,
  .section-head,
  .split,
  .page-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-carousel img,
  .header-mosaic img,
  .header-mosaic--page img,
  .header-mosaic--post img {
    min-height: 0;
  }

  .header-carousel,
  .header-mosaic,
  .header-mosaic--page,
  .header-mosaic--post {
    height: clamp(180px, 46vw, 260px);
  }

  .header-carousel__slide,
  .header-mosaic figure {
    flex-basis: 100%;
  }

  .hero-brand-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-logo {
    max-width: 260px;
    padding: 14px;
  }

  .feature-grid,
  .card-grid,
  .document-grid,
  .news-grid,
  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-media,
  .split-content {
    order: initial;
  }
}

@media (max-width: 640px) {
  .container,
  .hero__inner {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 154px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero__content {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-logo {
    max-width: 220px;
  }

  .section {
    padding: 56px 0;
  }

  .feature-grid,
  .card-grid,
  .document-grid,
  .news-grid,
  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .article-shell,
  .content-card,
  .feature-card,
  .document-card,
  .fact-card,
  .news-card__body,
  .form-panel {
    padding: 18px;
  }
}

.top-strip__inner--social {
  justify-content: flex-end;
  gap: 10px;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-social-button,
.top-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(39, 63, 47, 0.18);
  background: #fff;
  color: var(--brand);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-social-button {
  width: 28px;
  border-radius: 999px;
}

.top-social-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.top-contact-button {
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.top-social-button:hover,
.top-contact-button:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.news-grid {
  align-items: stretch;
}

.news-card {
  overflow: hidden;
  background: #fff;
}

.news-card__image {
  display: block;
  background: #e9efe5;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.news-card__body {
  min-height: 250px;
}

.news-card .meta {
  min-height: 24px;
}

.post-header .meta {
  color: var(--muted);
}

.article-shell .header-mosaic--post {
  margin-block: 24px;
}

.prose figure {
  margin-inline: 0;
}

.prose figure img,
.prose > img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.prose img.logo-real{
    width:auto !important;
    max-width:100%;
    height:auto;
    object-fit:contain;
}

.complaints-intro {
  max-width: 860px;
}

.complaints-intro h2,
.contact-panel h2 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(1.6rem, 2vw, 2.35rem);
  line-height: 1.12;
}

.complaints-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.complaints-steps div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
}

.complaints-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.complaint-form-panel,
.contact-form-panel {
  margin-top: 30px;
  border-color: rgba(39, 63, 47, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8faf5 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-panel a,
.contact-panel p {
  display: block;
  margin: 12px 0 0;
  color: #344138;
}

.contact-panel a {
  font-weight: 800;
}

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

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.page-raza-autoctona-100 .prose img[src*="logo100"],
.page-raza-autoctona-100 .prose img[src*="logoalistana"] {
  width: min(190px, 100%);
  max-height: 125px;
  object-fit: contain;
  display: inline-block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-raza-autoctona-100 .prose figure:has(img[src*="logo100"]),
.page-raza-autoctona-100 .prose figure:has(img[src*="logoalistana"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 220px;
  margin: 10px 18px 14px 0;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-strip__inner--social {
    justify-content: center;
  }

  .complaints-steps,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .news-card__image img {
    height: 210px;
  }
}

/* Ajustes solicitados: títulos más pequeños y textos justificados. */
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.8vw, 4.4rem);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
}

.split-content h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
}

.post-header h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
}

.content-card h3,
.feature-card h3,
.document-card h3,
.fact-card h3,
.news-card h3 {
  font-size: 1rem;
}

.prose h1 {
  font-size: 1.95rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose h4 {
  font-size: 1.05rem;
}

.hero__lead,
.page-hero p,
.section-head p,
.split-content p,
.content-card p,
.feature-card p,
.document-card p,
.fact-card p,
.news-card p,
.prose p,
.prose li,
.site-footer p,
.empty-state p {
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 1240px) {
  .site-nav .nav-group > a {
    justify-content: space-between;
    gap: 14px;
    padding-right: 8px;
  }

  .site-nav .nav-group > a::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
  }

  .site-nav .nav-group.is-open > a {
    background: #edf4ea;
    color: var(--brand);
  }

  .site-nav .nav-group.is-open > a::after {
    transform: rotate(225deg);
  }

  .site-nav .nav-panel,
  .site-nav .nav-panel--wide {
    display: none;
    padding: 0 0 10px 16px;
  }

  .site-nav .nav-group.is-open .nav-panel {
    display: block;
  }
}
