:root {
  --cream: #f4efe6;
  --paper: #fbf7f0;
  --sand: #e4d5c0;
  --stone: #c9bba8;
  --earth: #6b4630;
  --wood: #8a5a3b;
  --olive: #3b4634;
  --olive-deep: #2a3226;
  --ink: #1a1714;
  --ink-soft: #3a342e;
  --terracotta: #9a4a32;
  --terracotta-light: #c46a4c;
  --btn-accent: #9a4a32;
  --muted: #6f665c;
  --line: rgba(26, 23, 20, 0.12);
  --white: #fffcf7;
  --bg: #f4efe6;
  --bg-paper: #fbf7f0;
  --bg-earth: #efe4d4;
  --card: #fffcf7;
  --text: #1a1714;
  --text-soft: #3a342e;
  --nav-scrolled-bg: rgba(244, 239, 230, 0.94);
  --nav-scrolled-fg: #1a1714;
  --menu-bg: #fbf7f0;
  --chart-track: #e4d5c0;
  --chart-text: #1a1714;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(26, 23, 20, 0.18);
  --card-shadow: 0 16px 40px rgba(26, 23, 20, 0.08);
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #1c1916;
  --sand: #3a332c;
  --stone: #6b6156;
  --terracotta: #e08a6e;
  --terracotta-light: #f0a58c;
  --btn-accent: #c45d42;
  --olive: #54614c;
  --olive-deep: #10140e;
  --muted: #c9bdb0;
  --line: rgba(243, 236, 227, 0.14);
  --white: #252019;
  --bg: #141210;
  --bg-paper: #1c1916;
  --bg-earth: #211c18;
  --card: #252019;
  --text: #f3ece3;
  --text-soft: #e6d9cc;
  --nav-scrolled-bg: rgba(20, 18, 16, 0.94);
  --nav-scrolled-fg: #f3ece3;
  --menu-bg: #1c1916;
  --chart-track: #3a332c;
  --chart-text: #f3ece3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
.section {
  scroll-margin-top: 4.75rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  color: var(--cream);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.nav:not(.is-scrolled) {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  color: var(--nav-scrolled-fg);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  text-shadow: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
}

.theme-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.theme-toggle:focus-visible,
.lang-wrap select:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.lang-wrap {
  display: grid;
}

.lang-wrap select {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  min-height: 2.5rem;
  padding: 0 1.6rem 0 0.65rem;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-wrap option {
  color: #1a1714;
  background: #fbf7f0;
}

html[data-theme="dark"] .lang-wrap option {
  color: #f3ece3;
  background: #1c1916;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.82;
}

.nav-links a:hover,
.nav-links a:focus {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.42) 46%, rgba(12, 10, 8, 0.12) 72%, rgba(12, 10, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.22) 0%, transparent 28%, rgba(12, 10, 8, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 6vw 6rem;
  max-width: 44rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.88;
  margin: 0 0 1.4rem;
  letter-spacing: 0.04em;
}

.hero h1 span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.28em;
  margin-bottom: 0.45rem;
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin: 0 0 0.85rem;
}

.hero p {
  max-width: 38rem;
  margin: 0 0 1.8rem;
  color: #fff8ee;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid currentColor;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-light {
  color: var(--cream);
}

.btn-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-solid {
  background: var(--btn-accent);
  border-color: var(--btn-accent);
  color: var(--cream);
}

.btn-solid:hover {
  background: var(--earth);
  border-color: var(--earth);
}

.btn-dark {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-meta {
  position: absolute;
  left: 6vw;
  bottom: 1.6rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.scroll-hint i {
  width: 1px;
  height: 2.2rem;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.section {
  padding: 5.5rem 6vw;
}

.section-dark {
  background: var(--olive-deep);
  color: var(--cream);
}

.section-paper {
  background: var(--bg-paper);
}

.section-earth {
  background: var(--bg-earth);
}

.kicker {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 0.55rem;
}

.section-dark .kicker {
  color: var(--terracotta-light);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 0.96;
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.intro-grid,
.split,
.cards,
.stats,
.press-grid,
.award-grid,
.cycle,
.gallery,
.news-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.presentacion {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.presentacion-photo {
  margin: 0;
  overflow: hidden;
  width: 100%;
  min-height: 26rem;
}

.presentacion-photo img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  object-position: 82% 50%;
}

.process {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.process li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.process figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.process img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process div {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.process span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.process strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}

.process p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.queseria-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 2rem 0;
}

.queseria-photos figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  background: var(--card);
}

.queseria-photos img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.queseria-photos figcaption {
  padding: 0.75rem 1rem 0.95rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.queseria-bridge {
  align-items: center;
}

.queseria-bridge .queseria-photos {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
}

.queseria-bridge .queseria-photos img {
  aspect-ratio: 4 / 3;
}

.queseria-bridge .queseria-photo--obrador {
  object-position: center 18%;
}

.queseria-bridge .queseria-photos figure {
  border-radius: 12px;
}

.queseria-bridge .actions {
  margin-top: 1.2rem;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 28rem;
}

.caption {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}

.tl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  grid-template-areas: "copy axis photo";
  gap: 1.2rem;
  align-items: stretch;
}

.tl-item:nth-child(even) {
  grid-template-areas: "photo axis copy";
}

.tl-copy { grid-area: copy; min-width: 0; }
.tl-axis { grid-area: axis; }
.tl-photo { grid-area: photo; }

.tl-axis {
  display: grid;
  justify-items: center;
  position: relative;
}

.tl-axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--stone);
}

.tl-num {
  position: relative;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.tl-photo {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--sand);
}

.tl-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tl-photo--juan img {
  object-position: 100% 50%;
}

.tl-photo--pastoreo img {
  object-position: center 68%;
}

.tl-photo--cabra img {
  object-position: center 62%;
}

.tl-photo--lab img {
  object-position: center 42%;
}

.tl-photo--top img {
  object-position: center 35%;
}

.photo-slot {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(107, 70, 48, 0.08), rgba(59, 70, 52, 0.12)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(26, 23, 20, 0.03) 12px, rgba(26, 23, 20, 0.03) 13px);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.raza-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.68fr);
  gap: 2.4rem 2.6rem;
  align-items: start;
}

.raza-copy {
  max-width: 42rem;
}

.raza-copy p {
  margin: 0 0 1rem;
}

.raza-copy p:last-child {
  margin-bottom: 0;
}

.raza-hero {
  margin: 0;
  overflow: hidden;
  background: var(--sand);
}

.raza-hero img {
  display: block;
  width: 100%;
  height: 24rem;
  object-fit: cover;
  object-position: 40% 78%;
}

.raza-ubres {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0.9rem;
  margin: 1.5rem 0 1.6rem;
  align-items: stretch;
}

.raza-ubres figure {
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  height: 22rem;
}

.raza-ubres img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.raza-ubres--wide img {
  object-position: center 60%;
}

.raza-ubres--tall img {
  object-position: 70% 38%;
}

.traits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.proyeccion-layout {
  display: grid;
  gap: 2rem;
}

.proyeccion-layout ul {
  padding-left: 1.1rem;
}

.world-map {
  margin: 0;
  background: #fff;
  padding: 0.6rem 0 0;
}

.world-map img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: auto;
}

.trait {
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.trait span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.charts {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
}

.chart-wrap {
  background: var(--card);
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
}

canvas {
  width: 100%;
  max-width: 100%;
}

.year-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.year-switch button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: inherit;
}

.year-switch button.is-active {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}

.stat-pills {
  display: grid;
  gap: 0.8rem;
}

.stat-pills article {
  background: var(--white);
  padding: 1.1rem 1.2rem;
}

.stat-pills strong {
  font-family: var(--serif);
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

#bienestar .concept-grid {
  margin: 2rem 0 1.5rem;
}

.concept {
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--line);
  min-height: 10rem;
}

.map-wrap {
  background: var(--olive-deep);
  padding: 1.5rem;
  overflow: auto;
}

.map-wrap svg {
  width: 100%;
  min-width: 320px;
  height: auto;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.award-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.award {
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.award:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.award-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.award-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.award:nth-child(2) .award-media img {
  object-position: center 42%;
}

.award:nth-child(3) .award-media img {
  object-position: center 28%;
}

.award img,
.award .photo-slot {
  min-height: 0;
  height: auto;
}

.award-body {
  padding: 1.25rem 1.3rem 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.award-meta {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-paper);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.award-body h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.award-body p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.press-card,
.news-card {
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.press-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.press-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.press-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.press-media img,
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.news-card .photo-slot {
  aspect-ratio: 16 / 10;
}

.press-media--gala img {
  object-position: center 28%;
}

.press-brand {
  aspect-ratio: 16 / 10;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  color: #fff8ee;
  padding: 1.2rem;
}

.press-brand strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.press-brand span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
}

.press-brand--asaja {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(160deg, #3b5a32, #24351f);
}

.press-brand--ser {
  background: linear-gradient(160deg, #d3122a, #8e0c1c);
}

.press-card .photo-slot,
.news-card .photo-slot {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
}

.press-card > div,
.news-card > div {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.press-card h3,
.news-card h3 {
  margin: 0;
}

.press-card p,
.news-card p {
  margin: 0;
}

.cycle {
  grid-template-columns: repeat(6, 1fr);
}

.cycle article {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.cycle img,
.cycle .photo-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cycle .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 12, 0.78));
}

.cycle-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: var(--cream);
  z-index: 1;
}

.cycle-copy span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.gallery {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: 18rem 18rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figure:first-child {
  grid-row: 1 / span 2;
}

.gallery figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.gallery-photo--ordeno {
  object-position: center 70%;
}

.gallery-photo--ubres {
  object-position: center 40%;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.visit-box,
.cert-box {
  border: 1px dashed var(--stone);
  padding: 1.4rem;
  background: var(--card);
}

.contact {
  position: relative;
  color: var(--cream);
  overflow: hidden;
}

.contact img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact .veil {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.62);
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 6vw;
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.contact address {
  font-style: normal;
}

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 6vw 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer a {
  color: rgba(244, 239, 230, 0.82);
  text-decoration: none;
}

.footer nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
}

.legal {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.62);
  margin-top: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .process,
  .concept-grid,
  .traits {
    grid-template-columns: repeat(2, 1fr);
  }
  .award-grid,
  .press-grid,
  .gallery,
  .cycle,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--menu-bg);
    color: var(--text);
    padding: 1rem 1.25rem 1.4rem;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.82rem;
    margin: 0;
    box-shadow: var(--card-shadow);
  }
  .nav.is-open .nav-links { display: flex; }
}

@media (max-width: 980px) {
  .intro-grid,
  .presentacion,
  .proyeccion-layout,
  .process,
  .charts,
  .contact-grid,
  .footer-grid,
  .award-grid,
  .press-grid,
  .news-grid,
  .traits,
  .concept-grid,
  .cycle,
  .gallery {
    grid-template-columns: 1fr;
  }
  .queseria-bridge .queseria-photos {
    grid-template-columns: 1fr 1fr;
  }
  .raza-top {
    grid-template-columns: 1fr;
  }
  .raza-hero {
    max-width: 22rem;
  }
  .raza-ubres {
    grid-template-columns: 1fr;
  }
  .raza-ubres--wide {
    height: 18rem;
  }
  .raza-ubres--tall {
    height: 20rem;
  }
  .process li:not(:last-child)::after {
    display: none;
  }
  .tl-item,
  .tl-item:nth-child(even) {
    grid-template-columns: 3rem 1fr;
    grid-template-areas:
      "axis copy"
      "axis photo";
  }
  .gallery figure:first-child { grid-row: auto; min-height: 18rem; }
  .cycle article { min-height: 16rem; }
  .presentacion-photo,
  .presentacion-photo img { min-height: 18rem; }
  .hero-content { padding: 6.2rem 5vw 5rem; }
  .section,
  .contact-inner { padding-left: 5vw; padding-right: 5vw; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 3.4rem 1.1rem; }
  .contact-inner { padding: 4rem 1.1rem; }
  .footer { padding: 2.4rem 1.1rem 1.6rem; }
  .hero-content { padding: 5.8rem 1.1rem 5.2rem; }
  .hero-meta { left: 1.1rem; right: 1.1rem; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  h2 { font-size: clamp(2.1rem, 11vw, 3.2rem); }
  h3 { font-size: 1.4rem; }
  .btn { width: 100%; }
  .actions { width: 100%; }
  .presentacion { gap: 1.4rem; }
  .presentacion-photo,
  .presentacion-photo img { min-height: 14rem; }
  .tl-item,
  .tl-item:nth-child(even) {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.7rem;
  }
  .footer-grid,
  .footer nav { grid-template-columns: 1fr; }
  .photo-frame { min-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .scroll-hint i { animation: none; }
}
