:root {
  --bg: #060B08;
  --bg-soft: #0A130E;
  --bg-panel: #0E1912;
  --ink: #EEF3EE;
  --ink-dim: #9FB0A4;
  --ink-dim-2: #9fb0a438;
  --ink-dark: #122018;
  --muted: #66746A;
  --paper: #F3F7F1;
  --paper-2: #EAF1EA;
  --paper-p: #eef3eec7;
  --brand: #2F6B3E;
  --brand-dark: #1E4628;
  --brand-bright: #4E9A5C;
  --cyan: #7FE0CB;
  --amber: #E8B94A;
  --red: #C1440E;
  --hairline: rgba(238, 243, 238, .15);
  --hairline-dark: rgba(18, 32, 24, .13);
  --glass: rgba(238, 243, 238, .07);
  --glass-strong: rgba(238, 243, 238, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 26px;
  --x-color-b: #061009;
  --x-color-w: #ffffff;
  --verde-obscuro: #1e4628;
}

/* =========================================================
   PLANTILLA REUTILIZABLE — CONTENIDO + GALERÍA
   ========================================================= */
.content-detail-page {
  background: var(--bg);
  color: var(--ink);
}

.content-detail-main {
  min-height: 100vh;
  overflow: hidden;
}

.content-detail-hero {
  position: relative;
  display: flex;
  min-height: 360px;
  padding: 150px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(78, 154, 92, .28), transparent 34%),
    radial-gradient(circle at 15% 80%, rgba(127, 224, 203, .08), transparent 28%),
    linear-gradient(125deg, #061009 0%, #0a1d11 58%, #173b24 100%);
}

.content-detail-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  opacity: .45;
}

.content-detail-grid {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(127, 224, 203, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 224, 203, .08) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.content-detail-hero-inner {
  position: relative;
  z-index: 1;
  align-self: flex-end;
}

.content-detail-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.content-detail-kicker::before {
  content: '';
  width: 42px;
  height: 1px;
  background: currentColor;
}

.content-detail-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.content-detail-section {
  position: relative;
  padding: 90px 0 130px;
  background:
    radial-gradient(circle at 8% 28%, rgba(47, 107, 62, .18), transparent 24%),
    var(--bg);
}

.content-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.content-detail-copy {
  width: min(100%, 960px);
  margin-inline: auto;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.content-detail-copy p {
  margin: 0 0 1.55em;
}

.content-detail-copy p:last-child {
  margin-bottom: 0;
}

.content-detail-copy strong {
  color: var(--ink);
}

.content-detail-copy a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.content-carousel {
  position: relative;
  top: auto;
  width: min(100%, 1080px);
  margin-inline: auto;
  min-width: 0;
  outline: none;
}

.content-carousel:focus-visible .content-carousel-viewport {
  box-shadow: 0 0 0 2px var(--cyan), var(--shadow);
}

.content-carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(127, 224, 203, .22);
  border-radius: 30px;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.content-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .55s ease, transform .75s ease, visibility 0s linear .55s;
}

.content-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.content-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-carousel-slide figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  width: fit-content;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(6, 11, 8, .78);
  color: var(--paper);
  font-size: .84rem;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.content-carousel-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .24);
  border-radius: 50%;
  background: rgba(6, 11, 8, .76);
  color: var(--paper);
  font-size: 1.15rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  backdrop-filter: blur(12px);
}

.content-carousel-button:hover {
  border-color: var(--cyan);
  background: var(--brand-dark);
  transform: translateY(-50%) scale(1.06);
}

.content-carousel-prev { left: 18px; }
.content-carousel-next { right: 18px; }

.content-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.content-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--muted);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.content-carousel-dots button.is-active {
  width: 30px;
  background: var(--cyan);
}

@media (max-width: 960px) {
  .content-detail-hero {
    min-height: 340px;
    padding: 145px 0 58px;
  }

  .content-detail-section {
    padding: 68px 0 96px;
  }

  .content-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 640px) {
  .content-detail-hero {
    min-height: 350px;
    padding: 135px 0 52px;
  }

  .content-detail-grid {
    background-size: 56px 56px;
  }

  .content-detail-kicker {
    margin-bottom: 18px;
    font-size: .68rem;
  }

  .content-detail-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .content-detail-section {
    padding: 58px 0 80px;
  }

  .content-detail-layout {
    gap: 42px;
  }

  .content-detail-copy {
    font-size: 1rem;
    line-height: 1.75;
  }

  .content-carousel-viewport {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .content-carousel-button {
    width: 42px;
    height: 42px;
  }

  .content-carousel-prev { left: 12px; }
  .content-carousel-next { right: 12px; }

  .content-carousel-slide figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    font-size: .76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-carousel-slide,
  .content-carousel-button,
  .content-carousel-dots button {
    transition: none;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}


body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

body.product-modal-open .main-header,
body.product-modal-open .menu-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--brand-bright);
  color: #061009;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

h1,
h2,
h3,
.display {
  font-family: 'Space Grotesk', sans-serif;
}

/*  NAVBAR — conserva títulos base de la versión anterior  */

.main-header {
  right: 24px;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-90px);
  width: calc(100% - 60px);
  max-width: 1400px;
  height: 64px;
  background: rgba(6, 11, 8, .66);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  opacity: 0;
  transition: .6s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
}

.navbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navbar-social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-dim);
  background: rgba(238, 243, 238, .035);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.navbar-social a:hover {
  transform: translateY(-2px);
  color: #07130B;
  background: var(--paper);
  border-color: var(--paper);
}

.navbar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.main-header.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-dim);
  transition: .25s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
}

.nav-dropdown {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: .25s;
}

.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 246px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(6, 11, 8, .94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  font-size: .84rem;
  color: var(--ink-dim);
  padding: 10px 12px;
  border-radius: 10px;
  transition: .2s;
}

.dropdown-content a:hover {
  background: rgba(238, 243, 238, .08);
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .22s;
}

.icon-btn:hover {
  color: var(--cyan);
  background: rgba(238, 243, 238, .07);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--hairline);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  padding: 9px 18px;
  white-space: nowrap;
  transition: .25s;
}

.btn-outline {
  border: 1px solid var(--brand-bright);
  color: var(--ink);
  background: rgba(238, 243, 238, .02);
}

.btn-outline:hover {
  background: rgba(78, 154, 92, .16);
  box-shadow: 0 0 22px rgba(78, 154, 92, .25);
}

.btn-filled {
  background: var(--brand-bright);
  color: #061009;
  box-shadow: 0 8px 28px rgba(78, 154, 92, .28);
}

.btn-filled:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: .25s;
}

.main-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.main-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 8, .97);
  backdrop-filter: blur(20px);
  z-index: 95;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: .3s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: auto;
  padding: calc(92px + env(safe-area-inset-top)) 0 calc(36px + env(safe-area-inset-bottom));
  text-align: center;
}

.mobile-nav-links,
.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-item,
.mobile-dropdown-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--ink-dim);
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-dropdown-title:hover {
  color: var(--ink);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(238, 243, 238, .04);
  border-radius: 14px;
  transition: .3s;
}

.mobile-dropdown-content.show {
  max-height: 520px;
  padding: 14px;
}

.mobile-dropdown-content a {
  color: var(--ink-dim);
  font-size: .95rem;
}

.mobile-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-dropdown-title .chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.mobile-dropdown-title.active .chevron {
  transform: rotate(180deg);
}

.mobile-sub {
  color: var(--cyan) !important;
  font-weight: 800;
  opacity: 0.86;
  padding-left: 12px;
}

.mobile-group-title {
  display: block;
  margin: 12px 0 4px;
  padding: 8px 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(238, 243, 238, 0.1);
}

.mobile-group-title:first-child {
  margin-top: 0;
  border-top: 0;
}

.mobile-capacitaciones a {
  font-size: 0.88rem;
}

/*  HUD  */

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: .92;
}

.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: .45;
}

.hud-corner svg {
  width: 100%;
  height: 100%;
}

.hud-tl {
  top: 22px;
  left: 22px;
}

.hud-tr {
  top: 22px;
  right: 22px;
  transform: scaleX(-1);
}

.hud-bl {
  bottom: 22px;
  left: 22px;
  transform: scaleY(-1);
}

.hud-br {
  bottom: 22px;
  right: 22px;
  transform: scale(-1);
}

.hud-readout {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--cyan);
  line-height: 1.8;
  text-shadow: 0 0 18px rgba(127, 224, 203, .28);
}

.hud-readout .lbl {
  color: var(--ink-dim);
  margin-right: 8px;
}

.hud-readout span:not(.lbl) {
  display: inline-block;
  min-width: 74px;
  transition: opacity .18s ease, transform .18s ease, text-shadow .18s ease;
}

.hud-readout span.flash {
  opacity: .45;
  transform: translateY(-1px);
  text-shadow: 0 0 14px rgba(127, 224, 203, .75);
}

.hud-progress {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 2px;
  height: 120px;
  background: rgba(238, 243, 238, .16);
}

.hud-progress i {
  display: block;
  width: 100%;
  height: 0;
  background: var(--brand-bright);
  box-shadow: 0 0 16px rgba(78, 154, 92, .75);
}

.dropdown-capacitaciones {
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
  padding: 14px;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(238, 243, 238, 0.035);
  border: 1px solid rgba(238, 243, 238, 0.08);
}

.dropdown-group span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(238, 243, 238, 0.1);
}

.dropdown-group a {
  padding: 8px 10px;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {

  .dropdown-capacitaciones {
    min-width: 620px;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

/*  CINEMATIC HERO  */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #07100B;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.sequence-bg {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-bg {
  backface-visibility: hidden;
  position: absolute;
  inset: -8%;
  background-image: url("/assets/images/imagenes_demo/v5.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(.88) contrast(1.05) brightness(.78);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .04) 0 24%, rgba(6, 11, 8, .48) 70%, rgba(6, 11, 8, .85) 100%), linear-gradient(180deg, rgba(6, 11, 8, .1) 0%, rgba(6, 11, 8, .1) 54%, #060B08 100%);
}

.geo-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(127, 224, 203, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 224, 203, .18) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black 0 36%, transparent 72%);
}

.hero-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.logo-img {
  width: 30%;
  height: auto;
  margin-bottom: 12px;
}

.floating-logo {
  position: fixed;
  top: 20px;
  left: 114px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 48px;
  padding: 8px 10px;
}

.floating-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-logo-minagri {
  position: fixed;
  top: 20px;
  left: 34px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 48px;
  padding: 8px 10px;
}

.floating-logo-minagri img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-img-nav {
  width: 5rem;
  height: auto;
  margin-bottom: 12px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero h1 {
  font-size: 50px;
  font-weight: 700;
  /* line-height: .98; */
  /* line-height: 7.05 !important; */
  letter-spacing: -.045em;
  /* max-width: 100ch; */
  margin-top: 100px;
  text-shadow: 0 16px 80px rgba(0, 0, 0, .55);
}

.hero p {
  max-width: 46ch;
  font-size: clamp(1rem, 1vw, 1.3rem);
  line-height: 1.45;
  font-weight: 600;
  color: rgba(238, 243, 238, .9);
}

/* .scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  animation: pulse 2s infinite ease-in-out;
}

.scroll-cue .line {
  width: 1px;
  height: 10px;
  background: linear-gradient(var(--ink), transparent);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  50% {
    opacity: .35;
  }
} */

/*  Shared sections  */

.section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-bright);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.display {
  font-size: clamp(2.3rem, 5.3vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 700;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/*  Dark narrative intro  */

.narrative {
  min-height: 110vh;
  padding: 10vh 0 14vh;
  background: radial-gradient(ellipse at 80% 20%, rgba(47, 107, 62, .24), transparent 44%), linear-gradient(180deg, #060B08 0%, #08110C 80%, #0D1711 100%);
}

.narrative::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 25%, rgba(127, 224, 203, .12), transparent 24%), linear-gradient(rgba(127, 224, 203, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 224, 203, .035) 1px, transparent 1px);
  background-size: 100% 100%, 90px 90px, 90px 90px;
  mask-image: linear-gradient(180deg, transparent, black 14%, black 82%, transparent);
}

.narrative-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 72px;
  align-items: start;
}

.narrative-copy {
  position: sticky;
  top: 5px;
}

.narrative-list {
  display: grid;
  gap: 18px;
  padding-top: 18vh;
}

.glass-card {
  border: 1px solid var(--hairline);
  background: linear-gradient(145deg, rgba(238, 243, 238, .085), rgba(238, 243, 238, .025));
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(127, 224, 203, .12), transparent 35%);
  opacity: .8;
  pointer-events: none;
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .15em;
  margin-bottom: 18px;
}

.glass-card h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--ink-dim);
  line-height: 1.65;
}

/*  ========================================================= CIREN — Tarjetas áreas de trabajo =========================================================  */

.work-areas-page,
.area-detail-dark {
  min-height: 100svh;
  padding-top: 132px;
  padding-bottom: 30px;
  background: radial-gradient(circle at 78% 18%, rgba(78, 154, 92, .12), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(127, 224, 203, .08), transparent 30%),
    linear-gradient(180deg, #061009 0%, #08130d 52%, #050906 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.work-areas-page::before,
.area-detail-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  pointer-events: none;
}

.work-areas-hero,
.area-detail-layout {
  position: relative;
  z-index: 1;
}

.work-areas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.work-areas-hero .display {
  max-width: 760px;
  font-size: clamp(3.4rem, 3vw, 7.8rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.work-areas-hero .lead {
  max-width: 590px;
  color: rgba(238, 243, 238, .72);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.work-areas-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.work-area-glass-card,
.project-glass-card {
  border: 1px solid rgba(238, 243, 238, .15);
  background: linear-gradient(180deg, rgba(238, 243, 238, .06), rgba(238, 243, 238, .025));
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.work-area-glass-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-area-glass-card:hover,
.project-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .42);
  background: linear-gradient(180deg, rgba(127, 224, 203, .10), rgba(238, 243, 238, .035));
  box-shadow: 0 36px 90px rgba(0, 0, 0, .38);
}

.work-area-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 36px;
}

.work-area-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.work-area-icon svg {
  width: 68px;
  height: 68px;
  fill: currentColor;
}

.work-area-icon .icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-area-glass-card .tag,
.project-glass-card .tag {
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  text-align: end;

}

span.tag {
  background: rgba(0, 0, 0, 0.5) !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;

}

.work-area-glass-card h2,
.project-glass-card h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}

.work-area-glass-card p,
.project-glass-card p {
  color: rgba(238, 243, 238, .70);
  font-size: 1rem;
  line-height: 1.55;
}

.area-arrow {
  width: 44px;
  height: 44px;
  margin-top: 34px;
  border-radius: 50%;
  border: 1px solid rgba(238, 243, 238, .18);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: .25s ease;
}

.work-area-glass-card:hover .area-arrow {
  transform: translateX(6px);
  background: var(--cyan);
  color: #061009;
  border-color: var(--cyan);
}

.area-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}

.area-detail-side .back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-weight: 800;
  transition: .25s ease;
}

.area-detail-side .back-link:hover {
  transform: translateX(-4px);
  color: var(--ink);
}

.area-detail-side .display {
  font-size: clamp(4rem, 1.5vw, 8.8rem) !important;
  line-height: .85;
  letter-spacing: -.08em;
  text-transform: uppercase;
  margin: 14px 0 30px;
}

.area-detail-side .lead {
  color: rgba(238, 243, 238, .72);
  font-size: 1.15rem;
  line-height: 1.52;
}

.area-detail-content {
  color: rgba(238, 243, 238, .72);
  font-size: 1.12rem;
  line-height: 1.7;
}

.area-detail-content p+p {
  margin-top: 20px;
}

.project-glass-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.project-glass-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-glass-card h2 {
  margin-top: 28px;
}

.project-actions-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.project-actions-dark a,
.project-actions-dark span {
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .16);
  background: rgba(238, 243, 238, .055);
  color: var(--cyan);
  transition: .22s ease;
}

.project-actions-dark a:hover {
  transform: translateY(-3px);
  background: var(--cyan);
  color: #061009;
  border-color: var(--cyan);
}

.project-actions-dark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-glass-disabled {
  filter: grayscale(.9);
  opacity: .74;
}

.project-glass-disabled .project-actions-dark span {
  color: rgba(238, 243, 238, .45);
  background: rgba(238, 243, 238, .035);
}

.other-projects-link {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  text-align: center;
}

.other-projects-link a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 1280px) {

  .work-areas-card-grid,
  .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-areas-hero,
  .area-detail-layout {
    gap: 48px;
  }
}

@media (max-width: 900px) {

  .work-areas-page,
  .area-detail-dark {
    padding-top: 112px;
  }

  .work-areas-hero,
  .area-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .work-areas-hero .display,
  .area-detail-side .display {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }
}

@media (max-width: 640px) {

  .work-areas-card-grid,
  .project-glass-grid {
    grid-template-columns: 1fr;
  }

  .work-area-glass-card,
  .project-glass-card {
    min-height: auto;
    padding: 24px;
  }

  .work-area-top {
    margin-bottom: 26px;
  }

  .work-area-icon {
    width: 58px;
    height: 58px;
  }

  .work-area-icon svg {
    width: 54px;
    height: 54px;
  }
}

/*  Cinematic scroll sequence  */

.sequence {
  position: relative;
  background: #061009;
}

.sequence-track {
  position: relative;
  min-height: 410vh;
}

.sequence-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sequence-bg {
  position: absolute;
  inset: -8%;
  background-image: url("/assets/images/ciren-landscape-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(.55) brightness(.48) contrast(1.15);
  transform: scale(1.08);
  will-change: transform;
}

.sequence-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(6, 11, 8, .15), rgba(6, 11, 8, .88)), linear-gradient(180deg, #060B08 0%, rgba(6, 11, 8, .12) 22%, rgba(6, 11, 8, .2) 70%, #060B08 100%);
}

.contour-lines {
  position: absolute;
  inset: 0;
  opacity: .42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.contour-lines svg {
  width: 100%;
  height: 100%;
}

.contour-lines path {
  fill: none;
  stroke: rgba(232, 185, 74, .55);
  stroke-width: 1;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLines 7s ease forwards;
}

@keyframes drawLines {

  to {
    stroke-dashoffset: 0;
  }
}

.sequence-content {
  position: relative;
  z-index: 3;
  width: min(1100px, calc(100% - 48px));
  height: 100%;
  display: grid;
  align-items: center;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(.985);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .7s cubic-bezier(.16, 1, .3, 1),
    visibility .7s;
}

.scene.scene-products {
  display: block;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/*  ========================================================= PRODUCTOS COMPACTOS DENTRO DE LA ESCENA =========================================================  */

.scene.scene-products {
  display: block;
  padding: 88px 0 18px;
  overflow: visible;
}

.scene-products-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 50px;
}

.scene-products-header {
  margin-top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  gap: 42px;
  align-items: end;
}

.scene-products-title .kicker {
  margin-bottom: 8px;
}

.scene-products-title h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.055em;
}

.scene-products-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.scene-products-intro>p {
  margin: 0;
  font-size: clamp(.82rem, .95vw, 1rem);
  line-height: 1.48;
  color: rgba(238, 243, 238, .75);
}

.scene-products-intro .btn-cotizar-productos {
  min-width: 480px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: .82rem;
}

.scene h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.scene p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(238, 243, 238, .78);
  margin-top: 10px;
  max-width: 58ch;
}

.scene-panel {
  align-self: center;
  justify-self: end;
  width: min(480px, 100%);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: rgba(6, 11, 8, .48);
  backdrop-filter: blur(18px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.scene-panel .metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.scene-panel .metric:last-child {
  border-bottom: 0;
}

.metric b {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .16em;
}

.metric span {
  color: rgba(238, 243, 238, .82);
  line-height: 1.55;
}

/*  Access ecosystem dark  */

.ecosystem {
  padding: 140px 0 180px;
  background: radial-gradient(ellipse at 50% 0%, rgba(78, 154, 92, .18), transparent 56%), #060B08;
}

.eco-head {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.eco-head .lead {
  max-width: 520px;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.eco-card {
  min-height: 260px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(238, 243, 238, .075), rgba(238, 243, 238, .025));
  position: relative;
  overflow: hidden;
  transition: .35s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eco-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(78, 154, 92, .26), transparent 70%);
  opacity: .55;
  transition: .35s;
}

.eco-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .36);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

.eco-card:hover::before {
  opacity: 1;
  transform: translateY(-14px);
}

.eco-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.eco-card h3 {
  font-size: 1.6rem;
  line-height: 1.05;
  margin: 28px 0 16px;
}

.eco-card p {
  color: var(--ink-dim);
  line-height: 1.65;
}

.eco-card .arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  margin-top: 26px;
  color: var(--cyan);
}

/*  Transition to editorial light  */

.light-bridge {
  height: 38vh;
  position: relative;
  background: linear-gradient(180deg, #060B08 0%, #172319 30%, #DCE7DB 82%, var(--paper) 100%);
  overflow: hidden;
}

.light-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 8%, rgba(127, 224, 203, .18), transparent 42%), linear-gradient(90deg, transparent, rgba(238, 243, 238, .25), transparent);
  opacity: .8;
}

.light-bridge svg {
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 220px;
  opacity: .18;
}

.light-bridge path {
  fill: none;
  stroke: #2F6B3E;
  stroke-width: 1;
}

/*  Editorial content  */

/*.editorial {
  background-image: url("/assets/images/ciren-landscape-bg.jpg");
  background: var(--paper);
 color: var(--ink-dark);
  padding: 120px 0 110px;
}
*/


.editorial {
  position: relative;
  padding: 130px 0 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%,
      rgba(127, 224, 203, .09),
      transparent 30%),
    radial-gradient(circle at 86% 78%,
      rgba(78, 154, 92, .16),
      transparent 34%),
    linear-gradient(180deg,
      #060b08 0%,
      #08110c 100%);
}

.editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(238, 243, 238, .035) 1px,
      transparent 1px);

  background-size: 56px 56px;

  mask-image:
    linear-gradient(to bottom,
      transparent,
      #000 12%,
      #000 88%,
      transparent);
}


.editorial .kicker {
  color: var(--brand);
}

.editorial .lead {
  color: var(--muted);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  margin-top: 56px;
}

.news-feature {
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #18231B;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(24, 35, 27, .18);
}

.news-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/ciren-landscape-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(.6) brightness(.72);
}

.news-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 8, .05), rgba(6, 11, 8, .84));
}

.news-feature-content {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.news-pill {
  display: inline-flex;
  border: 1px solid rgba(238, 243, 238, .28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: .16em;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  background: rgba(6, 11, 8, .32);
  backdrop-filter: blur(10px);
}

.news-feature h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.news-feature p {
  color: rgba(238, 243, 238, .78);
  line-height: 1.65;
}

.news-list {
  display: grid;
  gap: 16px;
}

/* .news-card {
  background: transparent !important;
  border: 1px solid var(--brand-dark) !important;
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
  transition: .25s;
  backdrop-filter: blur(1px);
}


.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 46px rgba(18, 32, 24, .08);
  backdrop-filter: blur(90px);
  border: 1px solid var(--paper) !important;
} */


.news-card {
  min-width: 0;
  position: relative;
  overflow: hidden;

  padding: 24px;

  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  align-items: center;

  border: 1px solid rgba(127, 224, 203, 0.16) !important;
  border-radius: 24px;

  background:
    radial-gradient(circle at 8% 20%,
      rgba(78, 154, 92, 0.15),
      transparent 34%),
    linear-gradient(145deg,
      rgba(14, 25, 18, 0.92),
      rgba(6, 11, 8, 0.82)) !important;

  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(238, 243, 238, 0.05);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card:hover,
.news-card:focus-within {
  transform: translateY(-5px);

  border-color: rgba(127, 224, 203, 0.42) !important;

  background:
    radial-gradient(circle at 8% 20%,
      rgba(78, 154, 92, 0.24),
      transparent 38%),
    linear-gradient(145deg,
      rgba(18, 38, 26, 0.96),
      rgba(7, 15, 10, 0.9)) !important;

  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(127, 224, 203, 0.08),
    inset 0 1px 0 rgba(238, 243, 238, 0.08);
}

@media (max-width: 600px) {
  .news-card {
    padding: 18px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
    border-radius: 20px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .news-card:hover,
  .news-card:focus-within {
    transform: translateY(-3px);
  }
}

@media (max-width: 380px) {
  .news-card {
    grid-template-columns: 1fr;
  }
}

.news-date {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
}

.news-date b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  letter-spacing: -.05em;
  display: block;
  color: var(--ink-dark);
}

.news-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--paper);
}

.news-card p {
  color: var(--paper-p);
  line-height: 1.55;
  font-size: .95rem;
}

.btn-filled {
  background: var(--brand-bright);
  color: #061009;
  box-shadow: 0 8px 28px rgba(78, 154, 92, .28);
  margin-top: 18px;
}


/*  Light data areas  */

.areas {
  background: linear-gradient(180deg, var(--paper), #E5EEE5);
  color: var(--ink-dark);
  padding: 80px 0 130px;
}

.area-shell {
  border: 1px solid var(--hairline-dark);
  border-radius: 36px;
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(14px);
  padding: 34px;
  box-shadow: 0 20px 80px rgba(18, 32, 24, .06);
}

.area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.area-tab {
  border: 1px solid var(--hairline-dark);
  background: white;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: .88rem;
  transition: .2s;
}

.area-tab.active,
.area-tab:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.area-content {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
  align-items: center;
}

.area-content h3 {
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}

.area-content p {
  color: var(--muted);
  line-height: 1.75;
}

.area-map {
  min-height: 360px;
  border-radius: 28px;
  background: radial-gradient(circle at 35% 35%, rgba(78, 154, 92, .25), transparent 24%), linear-gradient(135deg, #F9FBF8, #DCE8DC);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
}

.area-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(47, 107, 62, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 62, .13) 1px, transparent 1px);
  background-size: 42px 42px;
}

.area-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.area-map path {
  fill: none;
  stroke: rgba(47, 107, 62, .55);
  stroke-width: 1.3;
}

.area-map circle {
  fill: var(--brand);
  filter: drop-shadow(0 0 12px rgba(78, 154, 92, .55));
}

/*  Final CTA/footer  */

.cta {
  padding: 130px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(127, 224, 203, .12), transparent 50%), #060B08;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2.4rem, 5.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.06em;
  max-width: 900px;
  margin: 0 auto 24px;
}

.cta p {
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  position: relative;
  background: radial-gradient(ellipse at 15% 0%, rgba(78, 154, 92, .18), transparent 42%),
    radial-gradient(ellipse at 85% 100%, rgba(127, 224, 203, .08), transparent 38%),
    #040806;
  color: var(--ink-dim);
  border-top: 1px solid var(--hairline);
  padding: 58px 0 28px;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(238, 243, 238, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, black 26%, black 74%, transparent);
}

.footer-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.2fr;
  gap: 38px;
}

.footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: .02em;
}

.footer a,
.footer p {
  display: block;
  color: var(--ink-dim);
  font-size: .92rem;
  line-height: 1.9;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  line-height: 1.8;
  color: rgba(238, 243, 238, .72);
  max-width: 250px;
}

.footer-address {
  max-width: 240px;
  line-height: 1.75 !important;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  color: rgba(127, 224, 203, .78);
  background: rgba(238, 243, 238, .035);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  color: #07130B;
  background: var(--ink);
  border-color: transparent;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 243, 238, .1);
  font-size: .78rem;
  color: rgba(159, 176, 164, .7);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 11, 8, .92);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(720px, calc(100% - 40px));
  background: rgba(238, 243, 238, .07);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.search-box form {
  display: flex;
  gap: 12px;
}

.search-box input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  outline: 0;
  padding: 12px;
}

.search-close {
  margin-top: 18px;
  color: var(--ink-dim);
  font-size: .9rem;
  text-align: center;
  cursor: pointer;
}

@media(max-width:1280px) {

  .nav-links {
    gap: 16px;
  }

  .icon-btn:nth-child(n+3),
  .header-actions .divider:first-of-type {
    display: none;
  }
}

@media(max-width:1000px) {

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .narrative-layout,
  .scene,
  .eco-head,
  .news-layout,
  .area-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .narrative-copy {
    position: relative;
    top: auto;
  }

  .narrative-list {
    padding-top: 20px;
  }

  .scene-panel {
    justify-self: start;
  }

  .eco-grid {
    grid-template-columns: 1fr;
  }

  .hud-readout,
  .hud-progress {
    display: none;
  }
}

@media(max-width:640px) {

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .main-header {
    width: calc(100% - 24px);
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-date {
    width: 72px;
    height: 72px;
  }

  .area-shell {
    padding: 20px;
    border-radius: 26px;
  }

  .mobile-menu-inner {
    width: calc(100% - 40px);
    gap: 24px;
  }

  .mobile-nav-links,
  .mobile-actions {
    gap: 12px;
  }

  .mobile-nav-item,
  .mobile-dropdown-title {
    font-size: clamp(1.05rem, 5.5vw, 1.3rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 992px) {

  .floating-logo {
    top: 16px;
    left: 18px;
    width: 92px;
    height: 44px;
    border-radius: 16px;
  }

  .main-header {
    left: auto;
    right: 18px;
    width: 64px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 900px) {

  .floating-logo-minagri {
    top: 18px;
    left: 365px;
    width: 82px;
    padding: 0;
  }
}

@media (max-width: 520px) {

  .floating-logo-minagri {
    width: 68px;
    left: 180px;
  }
}

.main-header {
  left: 50%;
  right: auto;
  width: calc(100% - 380px);
  max-width: 1480px;
  min-width: 0;
  transform: translateX(-50%) translateY(-90px);
}

.main-header.show {
  transform: translateX(-50%) translateY(0);
}

.floating-logo {
  top: 20px;
  left: 44px;
  width: 108px;
  height: auto;
  padding: 0;
}

.floating-logo-minagri {
  top: 20px;
  right: 44px;
  left: auto;
  width: 88px;
  height: auto;
  padding: 0;
}

.nav-links {
  gap: clamp(14px, 1.35vw, 28px);
  min-width: 0;
}

.nav-item {
  font-size: clamp(.78rem, .72vw, .88rem);
  white-space: nowrap;
}

.header-actions {
  flex-shrink: 0;
}

.main-header .footer-social {
  flex-wrap: nowrap;
  gap: 8px;
}

.main-header .footer-social a {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.hero h1 {
  font-size: clamp(2.15rem, 3.45vw, 50px);
  line-height: 1.05;
  max-width: min(1120px, calc(100vw - 220px));
}

.logo-img {
  width: clamp(300px, 30vw, 560px);
}

.hero-copy {
  padding-left: clamp(24px, 8vw, 140px);
  padding-right: clamp(24px, 8vw, 140px);
}

/*  Notebooks / MacBook Air 13 - evita que los logos pisen el navbar  */

@media (max-width: 1500px) {

  .main-header {
    width: calc(100% - 330px);
    height: 60px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-item {
    font-size: .78rem;
    gap: 4px;
  }

  .chevron {
    width: 10px;
    height: 10px;
  }

  .header-actions {
    display: flex;
    gap: 8px;
  }

  .main-header .footer-social {
    gap: 7px;
  }

  .main-header .footer-social a {
    width: 28px;
    height: 28px;
    font-size: .72rem;
  }

  .main-header .footer-social svg {
    width: 14px;
    height: 14px;
  }

  .floating-logo {
    left: 34px;
    width: 98px;
  }

  .floating-logo-minagri {
    right: 34px;
    width: 78px;
  }
}

@media (max-width: 1350px) {

  .main-header {
    width: calc(100% - 280px);
    padding: 0 14px;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-item {
    font-size: .74rem;
  }

  .main-header .footer-social {
    gap: 5px;
  }

  .main-header .footer-social a {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .floating-logo {
    left: 24px;
    width: 86px;
  }

  .floating-logo-minagri {
    right: 24px;
    width: 68px;
  }
}

@media (max-width: 1280px) {

  .main-header {
    width: calc(100% - 300px);
    height: 60px;
    padding: 0 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-item {
    font-size: .78rem;
  }

  .floating-logo {
    left: 32px;
    width: 96px;
  }

  .floating-logo-minagri {
    right: 32px;
    width: 76px;
  }

  .hero h1 {
    font-size: clamp(2rem, 3.4vw, 42px);
    max-width: calc(100vw - 120px);
  }

  .logo-img {
    width: clamp(280px, 34vw, 450px);
  }
}

/*  Tablet: entra menú hamburguesa y se ordenan logos  */

@media (max-width: 1180px) {

  .main-header {
    width: calc(100% - 48px);
    height: 60px;
  }


  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .floating-logo {
    left: 24px;
    width: 82px;
  }

  .floating-logo-minagri {
    right: 86px;
    width: 62px;
  }
}

@media (max-width: 640px) {

  .main-header {
    right: 14px;
    top: 14px;
    width: 54px;
    height: 50px;
  }

  .floating-logo {
    top: 16px;
    left: 16px;
    width: 82px;
  }

  .floating-logo-minagri {
    top: 16px;
    right: 78px;
    width: 58px;
  }

  .hero-copy {
    padding: 110px 20px 90px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
    max-width: calc(100vw - 36px);
  }

  .logo-img {
    width: min(78vw, 320px);
  }
}

@media (max-width: 420px) {

  .floating-logo {
    width: 74px;
  }

  .floating-logo-minagri {
    right: 72px;
    width: 52px;
  }
}

.area-detail-side .display {
  font-size: clamp(4rem, 3vw, 8.8rem);
  line-height: .85;
  letter-spacing: -.08em;
  text-transform: uppercase;
  margin: 14px 0 30px;
}

@media (max-width: 1180px) {

  .floating-logo,
  .floating-logo-minagri,
  .main-header {
    top: 14px;
  }

  .floating-logo {
    left: 16px;
    right: auto;
    width: 82px;
    height: 52px;
    padding: 0;
    z-index: 140;
  }

  .floating-logo-minagri {
    left: 108px;
    right: auto;
    width: 58px;
    height: 52px;
    padding: 0;
    z-index: 140;
  }

  .main-header {
    left: auto;
    right: 16px;
    width: 56px;
    height: 52px;
    padding: 0;
    transform: translateY(-90px);
    justify-content: center;
    border-radius: 18px;
    z-index: 140;
  }

  .main-header.show {
    transform: translateY(0);
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin: 0;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 520px) {}

@media (max-width: 1280px) {}

@media (max-width: 1320px) {


  .main-header {
    left: auto;
    right: 24px;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 18px;
    justify-content: center;
    transform: translateY(-90px);
    z-index: 140;
  }


  .menu-toggle {
    display: flex;
    margin: 0;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 1280px) {

  .floating-logo,
  .floating-logo-minagri,
  .main-header {
    top: 16px;
  }

  .floating-logo {
    left: 24px;
    right: auto;
    width: 92px;
    height: auto;
    padding: 0;
    z-index: 140;
  }

  .floating-logo-minagri {
    left: 130px;
    right: auto;
    width: 62px;
    height: auto;
    padding: 0;
    z-index: 140;
  }

  .main-header {
    left: auto;
    right: 24px;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 18px;
    justify-content: center;
    transform: translateY(-90px);
    z-index: 140;
  }

  .main-header.show {
    transform: translateY(0);
  }

  .nav-links,
  .header-actions,
  .navbar-social {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    margin: 0;
    width: 58px;
    height: 58px;
  }
}

/*  ========================================================= CIREN — Página Nosotros / Organigrama Usa las variables globales del CSS actual =========================================================  */

.about-org-page {
  position: relative;
  min-height: 100svh;
  padding: 132px 24px 120px;
  background: radial-gradient(circle at 78% 18%, rgba(78, 154, 92, .12), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(127, 224, 203, .08), transparent 30%),
    linear-gradient(180deg, #061009 0%, #08130d 52%, #050906 100%);
  color: var(--ink);
  overflow: hidden;
}

.about-org-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  pointer-events: none;
}

.about-org-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent, rgba(6, 11, 8, .9));
  pointer-events: none;
}

.about-org-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.about-tabs {
  width: min(700, 100%);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(238, 243, 238, .12);
  border-radius: 999px;
  background: rgba(238, 243, 238, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.about-tab {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-dim);
  font-weight: 900;
  font-size: .86rem;
  transition: color .24s ease, background .24s ease, transform .24s ease;
}

.about-tab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-tab:hover,
.about-tab.active {
  color: #061009;
  background: linear-gradient(135deg, var(--cyan), var(--brand-bright));
  transform: translateY(-1px);
}

.org-header {
  width: min(1080px, 100%);
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(320px, 460px);
  gap: 80px;
  align-items: end;
}

.org-back {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 24px;
}

.org-header .kicker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.org-header .kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--cyan);
  opacity: .8;
}

.org-header .display {
  max-width: 520px;
  font-size: clamp(4.2rem, 4.6vw, 6.2rem);
  line-height: .86;
  letter-spacing: -.075em;
  white-space: normal;
}

.org-header p {
  max-width: 460px;
  color: rgba(238, 243, 238, .72);
  font-size: 1rem;
  line-height: 1.6;
}

.org-chart {
  position: relative;
  width: min(1642px, 100%);
  padding-top: 4px;
  align-items: center;
  margin: 0 auto;
}

.org-node {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-width: 250px;
  min-height: 58px;
  padding: 16px 24px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  border: 1px solid rgba(238, 243, 238, .15);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.org-node-main {
  color: #061009;
  background: linear-gradient(135deg, var(--cyan), var(--brand-bright));
  border-color: rgba(127, 224, 203, .6);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .42),
    0 0 46px rgba(127, 224, 203, .18);
}

.org-node-manager {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(238, 243, 238, .10), rgba(238, 243, 238, .045));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.org-node-manager::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(127, 224, 203, .14), transparent 42%);
  pointer-events: none;
}

.org-chart::after {
  content: "";
  position: absolute;
  top: 58px;
  left: 50%;
  width: 1px;
  height: 74px;
  background: linear-gradient(to bottom, rgba(127, 224, 203, .65), rgba(238, 243, 238, .18));
}

.org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 74px;
}

.org-branches::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 16.7%;
  right: 16.7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 224, 203, .5), transparent);
}

.org-branch {
  position: relative;
}

.org-branch::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: rgba(127, 224, 203, .45);
}

.org-units {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.org-branch:nth-child(2) .org-units,
.org-branch:nth-child(3) .org-units {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.org-units::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: rgba(238, 243, 238, .2);
}

.org-unit-card {
  position: relative;
  min-height: 190px;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  border: 1px solid rgba(238, 243, 238, .15);
  background: linear-gradient(180deg, rgba(238, 243, 238, .06), rgba(238, 243, 238, .025));
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
  overflow: hidden;
}

.org-unit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(127, 224, 203, .12), transparent 45%);
  opacity: .9;
  pointer-events: none;
}

.org-unit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .42);
  background: linear-gradient(180deg, rgba(127, 224, 203, .10), rgba(238, 243, 238, .035));
  box-shadow: 0 36px 90px rgba(0, 0, 0, .38);
}

.org-unit-title,
.org-unit-icon,
.org-unit-card p {
  position: relative;
  z-index: 1;
}

.org-unit-title {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 900;
}

.org-unit-icon {
  width: 58px;
  height: 58px;
  margin: 14px 0;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.org-unit-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.org-unit-card p {
  color: rgba(238, 243, 238, .78);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.35;
}

.org-actions {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.org-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 310px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  color: #061009;
  background: linear-gradient(135deg, var(--cyan), var(--brand-bright));
  font-weight: 950;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32),
    0 0 34px rgba(127, 224, 203, .16);
  transition: transform .24s ease, filter .24s ease;
}

.org-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.org-btn span {
  font-size: 1.1rem;
}

@media (max-width: 1280px) {

  .about-tabs {
    border-radius: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .org-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .org-branches {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .org-chart::after,
  .org-branches::before,
  .org-branch::before,
  .org-units::before {
    display: none;
  }

  .org-node {
    min-width: min(420px, 100%);
  }

  .org-units,
  .org-branch:nth-child(2) .org-units,
  .org-branch:nth-child(3) .org-units {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .about-org-page {
    padding-top: 112px;
  }

  .about-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .about-tab {
    border-radius: 16px;
  }

  .org-header .display {
    font-size: clamp(3.4rem, 15vw, 5.8rem);
  }

  .org-units,
  .org-branch:nth-child(2) .org-units,
  .org-branch:nth-child(3) .org-units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .about-org-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-tabs {
    grid-template-columns: 1fr;
  }

  .org-header {
    margin-bottom: 46px;
  }

  .org-branches {
    margin-top: 44px;
  }

  .org-units,
  .org-branch:nth-child(2) .org-units,
  .org-branch:nth-child(3) .org-units {
    grid-template-columns: 1fr;
  }

  .org-unit-card {
    min-height: 170px;
  }

  .org-btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   SISTEMA DE INFORMACIÓN TERRITORIAL
   Dependencia directa de Gerencia de Investigación y Desarrollo
========================================================= */
/* Sus reglas se encuentran junto al bloque principal del organigrama. */


/*  ========================================================= Modal integrantes por unidad =========================================================  */

.org-unit-trigger {
  cursor: pointer;
}

.org-unit-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.team-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(127, 224, 203, .12), transparent 34%),
    rgba(3, 7, 5, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.team-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(238, 243, 238, .16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(238, 243, 238, .085), rgba(238, 243, 238, .035)),
    rgba(6, 11, 8, .88);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55),
    0 0 80px rgba(127, 224, 203, .08);
  transform: translateY(18px) scale(.98);
  transition: transform .28s ease;
}

.team-modal.is-open .team-modal-panel {
  transform: translateY(0) scale(1);
}

.team-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(238, 243, 238, .16);
  border-radius: 999px;
  background: rgba(238, 243, 238, .06);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
}

.team-modal-close:hover {
  background: rgba(127, 224, 203, .14);
  border-color: rgba(127, 224, 203, .35);
  transform: translateY(-1px);
}

.team-modal-close span {
  position: absolute;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.team-modal-close span:first-child {
  transform: rotate(45deg);
}

.team-modal-close span:last-child {
  transform: rotate(-45deg);
}

.team-modal-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 36px;
  align-items: end;
  padding-right: 48px;
  margin-bottom: 30px;
}

.team-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.team-modal-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--cyan);
}

.team-modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .9;
  letter-spacing: -.065em;
  color: var(--ink);
}

.team-modal-header p {
  color: rgba(238, 243, 238, .68);
  font-size: .98rem;
  line-height: 1.55;
}

.team-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-member-card {
  position: relative;
  min-height: 310px;
  padding: 18px;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(238, 243, 238, .075), rgba(238, 243, 238, .028));
  overflow: hidden;
}

.team-member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 0%, rgba(127, 224, 203, .12), transparent 46%);
  pointer-events: none;
}

.team-member-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(127, 224, 203, .16), rgba(78, 154, 92, .08)),
    rgba(238, 243, 238, .06);
  border: 1px solid rgba(238, 243, 238, .12);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-info {
  position: relative;
  z-index: 1;
}

.team-member-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.team-member-role {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.team-member-contact {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.team-member-contact a,
.team-member-contact span {
  color: rgba(238, 243, 238, .68);
  font-size: .82rem;
  line-height: 1.35;
  word-break: break-word;
}

.team-member-contact a:hover {
  color: var(--cyan);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {

  .team-modal-panel {
    padding: 28px;
  }

  .team-modal-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-right: 42px;
  }

  .team-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {

  .team-modal {
    padding: 14px;
  }

  .team-modal-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .team-modal-header {
    padding-right: 38px;
  }

  .team-modal-grid {
    grid-template-columns: 1fr;
  }
}

.team-unit-page {
  position: relative;
  min-height: 100svh;
  padding: 132px 24px 120px;
  background: radial-gradient(circle at 78% 18%, rgba(78, 154, 92, .12), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(127, 224, 203, .08), transparent 30%),
    linear-gradient(180deg, #061009 0%, #08130d 52%, #050906 100%);
  color: var(--ink);
  overflow: hidden;
}

.team-unit-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  pointer-events: none;
}

.team-unit-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.team-back {
  display: inline-flex;
  width: fit-content;
  color: var(--cyan);
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 28px;
}

.team-unit-header {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(320px, 460px);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.team-unit-header .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-unit-header .kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--cyan);
}

.team-unit-header .display {
  max-width: 520px;
  font-size: clamp(4.2rem, 4.6vw, 6.2rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.team-unit-header p {
  max-width: 460px;
  color: rgba(238, 243, 238, .72);
  font-size: 1rem;
  line-height: 1.6;
}

.team-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-profile-card {
  position: relative;
  padding: 18px;
  min-height: 360px;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(238, 243, 238, .07), rgba(238, 243, 238, .025));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.team-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 0%, rgba(127, 224, 203, .12), transparent 45%);
  pointer-events: none;
}

.team-profile-photo,
.team-profile-info {
  position: relative;
  z-index: 1;
}

.team-profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(238, 243, 238, .06);
  border: 1px solid rgba(238, 243, 238, .12);
}

.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-profile-area {
  display: block;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.team-profile-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 8px;
}

.team-profile-role {
  color: rgba(238, 243, 238, .76);
  font-size: .92rem;
  line-height: 1.35;
  font-weight: 800;
}

.team-profile-contact {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.team-profile-contact a,
.team-profile-contact span {
  color: rgba(238, 243, 238, .68);
  font-size: .84rem;
  line-height: 1.35;
  word-break: break-word;
}

.team-profile-contact a:hover {
  color: var(--cyan);
}

@media (max-width: 1100px) {

  .team-unit-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .team-unit-page {
    padding: 112px 16px 80px;
  }

  .team-unit-inner {
    width: 100%;
  }

  .team-unit-header .display {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .team-unit-grid {
    grid-template-columns: 1fr;
  }
}

.team-profile-description {
  padding-top: 10px;
  color: rgba(238, 243, 238, .72);
}

.team-profile-info p,
h2 {
  font-size: .92rem;
  line-height: 1.45;
  margin-top: 6px;
  text-align: center;
}

.mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.mobile-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-dim);
  background: rgba(238, 243, 238, .055);
  font-weight: 900;
  font-size: .9rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.mobile-social a:hover {
  transform: translateY(-2px);
  color: #07130B;
  background: var(--paper);
}

.mobile-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* .whatsapp {
  color: var(--ink) !important;
  background: #159243 !important;
}

.whatsapp:hover {
  color: #040806 !important;
  background: #00ff5e !important;
} */

/* Social media colors */
.whatsapp {
  color: #25D366 !important;
}

.whatsapp svg {
  fill: currentColor;
}

.whatsapp:hover {
  color: #ffffff;
  background: #25D366;
}

/* 
.instagram {
  color: #D62976 !important;
}

.instagram svg {
  fill: currentColor;
}
.instagram:hover {
  color: #ffffff;
  background: #25D366;
}

.facebook {
  color: #1877F2 !important;
}

.facebook svg {
  fill: currentColor;
}
.facebook:hover {
  color: #ffffff;
  background: #1877F2;
}

.x {
  color: var(--x-color-w) !important;
}

.x svg {
  fill: currentColor;
}
.x:hover {
  color: var(--x-color-b) !important;
}

.linkedin {
  color: #0A66C2 !important;
}

.linkedin svg {
  fill: currentColor;
}
.linkedin:hover {
  color: #ffffff;
  background: #0A66C2;
}

.youtube {
  color: #FF0000 !important;
}

.youtube svg {
  fill: currentColor;
}
.youtube:hover {
  color: #ffffff;
  background: #FF0000;
} */

/*  ========================================================= CIREN — Página de productos Complemento para styles.css =========================================================  */

.products-page {
  min-height: 100svh;
  padding: 142px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 13%, rgba(78, 154, 92, .15), transparent 30%),
    radial-gradient(circle at 10% 66%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 55%, #050906 100%);
}

.products-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 92%, transparent);
}

.products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 58px;
  align-content: start;
}

.products-hero .display {
  max-width: 780px;
  font-size: clamp(3.4rem, 3vw, 7.2rem);
  line-height: .91;
  letter-spacing: -.07em;
}

.products-hero .lead {
  max-width: 610px;
  color: rgba(238, 243, 238, .72);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  text-align: justify;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(238, 243, 238, .065), rgba(238, 243, 238, .025));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .42);
  background: linear-gradient(180deg, rgba(127, 224, 203, .10), rgba(238, 243, 238, .035));
  box-shadow: 0 36px 90px rgba(0, 0, 0, .38);
}

.product-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0c1710;
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 11, 8, .62));
  pointer-events: none;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.82) contrast(1.05);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .35s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.08);
}

.product-index {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--cyan);
  font-size: .7rem;
  letter-spacing: .18em;
}

.product-content {
  min-height: 300px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
}

.product-tag {
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.product-content h2 {
  color: var(--ink);
  font-size: clamp(1.0rem, 1.35vw, 1.3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.product-content p:not(.product-tag) {
  color: rgba(238, 243, 238, .68);
  font-size: .94rem;
  line-height: 1.58;
}

.product-link {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cyan);
  font-size: .86rem;
  font-weight: 800;
  border-top: 1px solid rgba(238, 243, 238, .10);
}

.product-link span:last-child {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .18);
  border-radius: 50%;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.product-card:hover .product-link span:last-child {
  transform: translateX(5px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

.brand-logo {
  display: none;
}

@media (max-width: 1280px) {

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-hero {
    gap: 48px;
  }

  .product-image-wrap {
    height: 260px;
  }
}

@media (max-width: 900px) {

  .products-page {
    padding-top: 118px;
  }

  .products-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 42px;
  }

  .products-hero .display {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }
}

@media (max-width: 640px) {

  .products-page {
    padding-bottom: 56px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    height: 230px;
  }

  .product-content {
    min-height: auto;
    padding: 24px;
  }
}

.products-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.btn-cotizar-productos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 437px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  color: #061009;
  background: linear-gradient(135deg,
      var(--cyan),
      var(--brand-bright));
  font-weight: 950;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32),
    0 0 34px rgba(127, 224, 203, .16);
  transition: transform .25s ease,
    filter .25s ease,
    box-shadow .25s ease;
}

.btn-cotizar-productos:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38),
    0 0 42px rgba(127, 224, 203, .22);
}

.btn-cotizar-productos span {
  transition: transform .25s ease;
}

.btn-cotizar-productos:hover span {
  transform: translateX(4px);
}

/*  ========================================================= PRODUCTOS DENTRO DE LA SECUENCIA =========================================================  */

.scene-products {
  display: block;
  padding: 112px 0 46px;
}

/*  Evita que las reglas generales de .scene alteren esta escena  */

.scene-products h2,
.scene-products p {
  margin: 0;
  max-width: none;
}

.scene-products-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 42px;
}

.scene-products-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr);
  gap: 72px;
  align-items: end;
}

.scene-products-heading .display {
  max-width: 680px;
  font-size: clamp(3rem, 4.3vw, 5.6rem);
  line-height: .91;
  letter-spacing: -.065em;
}

.scene-products-heading .lead {
  color: rgba(238, 243, 238, .8);
  font-size: clamp(.96rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  text-align: justify;
}

.scene-products-preview {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.preview-product {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 243, 238, .18);
  border-radius: 24px;
  background: rgba(6, 11, 8, .32);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3);
}

.preview-product:nth-child(2),
.preview-product:nth-child(4) {
  transform: translateY(28px);
}

.preview-product img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  filter: saturate(.8) brightness(.78);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

.preview-product:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(.95);
}

/*  ========================================================= PRODUCTOS EN EL HOME =========================================================  */

.home-products {
  position: relative;
  padding: 130px 0 150px;
  background: transparent;
}

.home-products::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(127, 224, 203, .035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(127, 224, 203, .035) 1px,
      transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom,
      transparent,
      #000 12%,
      #000 88%,
      transparent);
}

.home-products .section-inner {
  position: relative;
  z-index: 1;
}

.home-products-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 58px;
}

.home-products-header .display {
  max-width: 760px;
  font-size: clamp(3.1rem, 4.5vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.home-products-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.home-products-intro p {
  color: rgba(238, 243, 238, .72);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  text-align: justify;
}

/*  Recupera las cuatro columnas  */

.home-products .products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/*  Evita que las reglas .scene h2 y .scene p afecten las tarjetas  */

.home-products .product-content h3 {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.home-products .product-content>p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .94rem;
  line-height: 1.58;
}

.product-card-cta {
  position: relative;
  display: flex;
  min-height: 100%;
  background: radial-gradient(circle at 80% 15%,
      rgba(127, 224, 203, .16),
      transparent 36%),
    linear-gradient(145deg,
      rgba(78, 154, 92, .18),
      rgba(238, 243, 238, .025));
}

.product-card-cta-content {
  width: 100%;
  min-height: 520px;
  padding: 30px 26px 24px;
  display: flex;
  flex-direction: column;
}

.product-card-cta .product-index {
  position: static;
  align-self: flex-end;
  margin-bottom: auto;
}

.product-card-cta h3 {
  max-width: 13ch;
  margin: 24px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.product-card-cta p:not(.kicker) {
  color: rgba(238, 243, 238, .7);
  line-height: 1.6;
}

@media (max-width: 1280px) {

  .scene-products-heading,
  .home-products-header {
    gap: 42px;
  }

  .home-products .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .scene-products {
    padding: 104px 0 36px;
  }

  .scene-products-heading,
  .home-products-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scene-products-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-product:nth-child(2),
  .preview-product:nth-child(4) {
    transform: none;
  }

  .preview-product img {
    min-height: 170px;
  }

  .home-products {
    padding: 100px 0;
  }
}

@media (max-width: 640px) {

  .scene-products-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .scene-products-heading .display {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .scene-products-heading .lead {
    display: none;
  }

  .scene-products-heading .btn-cotizar-productos {
    min-width: 0;
    width: 100%;
  }

  .home-products .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-cta-content {
    min-height: 420px;
  }
}

.scene-products .product-card {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(100px, 0.9fr) minmax(125px, 1fr);
}

.scene-products .product-image-wrap {
  min-height: 0;
  height: auto;
}

.scene-products .product-image-wrap img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.scene-products .product-content {
  min-height: 0;
  padding: 15px 17px 13px;
}

.scene-products .product-content h3 {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.05;
}

.scene-products .product-content>p {
  /* display: -webkit-box; */
  margin: 0;
  overflow: hidden;
  color: rgba(238, 243, 238, 0.66);
  font-size: 0.74rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scene-products .product-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.72rem;
}

.scene-products .product-link span:last-child {
  width: 28px;
  height: 28px;
}

/*  ========================================================= RED DE INSTITUCIONES MINAGRI — HERO =========================================================  */

.minagri-network {
  position: absolute;
  left: 50%;
  bottom: 80px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 160px));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.minagri-network a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease,
    transform 0.2s ease,
    text-shadow 0.2s ease;
}

.minagri-network a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.minagri-network a:hover {
  color: var(--ink);
  transform: translateY(-1px);
  text-shadow: 0 0 16px rgba(127, 224, 203, 0.3);
}

.minagri-network a:hover::after {
  transform: scaleX(1);
}

.minagri-network a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

.minagri-network>span {
  color: rgba(238, 243, 238, 0.24);
  user-select: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .minagri-network {
    bottom: 52px;

    width: calc(100% - 40px);
    padding: 10px 12px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;

    gap: 8px;

    border-radius: 22px;
  }

  .minagri-network>span {
    display: none;
  }

  .minagri-network a {
    width: 100%;
    min-width: 0;
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 6px;

    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .minagri-network .minagri-network-highlight {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .minagri-network .logo-ideminagri-network {
    width: 150px;
    max-width: 100%;
    height: auto;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .minagri-network {
    position: absolute;
    bottom: 34px;
    width: calc(100% - 28px);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    border-radius: 20px;
  }

  .minagri-network>span {
    display: none;
  }

  .minagri-network a {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 3px;
    font-size: 0.7rem;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  .minagri-network .minagri-network-highlight {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .minagri-network .logo-ideminagri-network {
    width: 142px;
    max-width: 100%;
    height: auto;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

  .minagri-network {
    bottom: 220px !important;
    width: calc(100% - 20px);
    padding: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .minagri-network a {
    min-height: 30px;
    padding: 5px 2px;
    font-size: 0.8rem;
  }

  .minagri-network .minagri-network-highlight {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .minagri-network .logo-ideminagri-network {
    width: 132px;
  }
}

/* =========================================================
   TABLET
========================================================= */

/* @media (max-width: 1000px) {

  .minagri-network {
    bottom: 66px;

    width: calc(100% - 40px);
    padding: 8px;

    border-radius: 22px;
  }

  .minagri-network a {
    flex: 1 1 auto;

    min-width: 84px;
    min-height: 34px;

    padding: 8px 10px;

    font-size: 0.66rem;
  }
} */

/* =========================================================
   MOBILE
========================================================= */

/* @media (max-width: 640px) {

  .minagri-network {
    position: absolute;
    bottom: 58px;

    width: calc(100% - 28px);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;
    padding: 8px;

    border-radius: 20px;
  }

  .minagri-network a {
    width: 100%;
    min-width: 0;
    min-height: 34px;

    padding: 8px 4px;

    font-size: 0.59rem;
  }

  .minagri-network .minagri-network-highlight {
    grid-column: 1 / -1;
  }
} */

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

/* @media (max-width: 420px) {

  .minagri-network {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .minagri-network .minagri-network-highlight {
    grid-column: 1 / -1;
  }
} */

/*  ========================================================= PÁGINA ORTOIMÁGENES Y ORTOFOTOS =========================================================  */

.product-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 150px 0 130px;
  background: radial-gradient(circle at 12% 12%,
      rgba(78, 154, 92, 0.14),
      transparent 28%),
    radial-gradient(circle at 87% 52%,
      rgba(127, 224, 203, 0.075),
      transparent 26%),
    var(--bg);
}

.product-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(127, 224, 203, 0.035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(127, 224, 203, 0.035) 1px,
      transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 5%,
      black 94%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 5%,
      black 94%,
      transparent);
}

.product-page::after {
  content: "";
  position: absolute;
  top: 240px;
  right: -180px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(127, 224, 203, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(127, 224, 203, 0.018),
    0 0 0 160px rgba(127, 224, 203, 0.012);
  pointer-events: none;
}

/*  ========================================================= CONTENEDOR GENERAL =========================================================  */

.product-page .section-inner {
  width: min(1420px, calc(100% - 100px));
  margin-inline: auto;
}

/*  ========================================================= HERO =========================================================  */

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 90px;
  align-items: start;
  padding-bottom: 20px;
}

.product-hero-heading {
  min-width: 0;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.22s ease,
    transform 0.22s ease;
}

.product-back-link:hover {
  color: var(--cyan);
  transform: translateX(-4px);
}

.product-back-link span {
  transition: transform 0.22s ease;
}

.product-back-link:hover span {
  transform: translateX(-3px);
}

.product-hero .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.product-hero .kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--brand-bright);
}

.product-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 3vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-hero-copy p {
  margin: 0;
  color: rgba(238, 243, 238, 0.66);
  font-size: 0.95rem;
  line-height: 1.75;
}

.product-hero-copy .product-lead {
  color: rgba(238, 243, 238, 0.86);
  font-size: clamp(1.08rem, 1vw, 1.38rem);
  line-height: 1.62;
}

/*  ========================================================= CATÁLOGO =========================================================  */

.product-catalog {
  padding-top: 30px;
}

.product-catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.product-catalog-header .kicker {
  margin-bottom: 16px;
}

.product-catalog-header h2 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 5.7rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.product-catalog-header>p {
  margin: 0;
  color: rgba(238, 243, 238, 0.63);
  font-size: 0.96rem;
  line-height: 1.7;
}

/*  ========================================================= LISTADO DE PRODUCTOS =========================================================  */

.product-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(238, 243, 238, 0.14);
}

.product-item {
  position: relative;
  isolation: isolate;
  min-height: 176px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 55px 190px minmax(0, 1fr) 54px;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 243, 238, 0.14);
  color: inherit;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg,
      rgba(127, 224, 203, 0.12),
      rgba(78, 154, 92, 0.045) 48%,
      transparent 82%);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  z-index: -1;
  width: 3px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover {
  transform: translateX(8px);
  border-color: rgba(127, 224, 203, 0.32);
  box-shadow: -8px 0 32px rgba(127, 224, 203, 0.035);
}

.product-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.product-item:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

/*  ========================================================= NÚMERO =========================================================  */

.product-item-number {
  transition: color 0.4s ease,
    text-shadow 0.45s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover .product-item-number {
  color: var(--ink);
  transform: translateX(3px);
  text-shadow: 0 0 18px rgba(127, 224, 203, 0.5);
}

/*  ========================================================= IMAGEN OPCIONAL =========================================================  */

.product-item-media {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.55s ease;
}

.product-item:hover .product-item-media {
  transform: translateY(-3px);
  border-color: rgba(127, 224, 203, 0.32);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.product-item-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(127, 224, 203, 0.065) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(127, 224, 203, 0.065) 1px,
      transparent 1px);
  background-size: 25px 25px;
}

.product-item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
      rgba(6, 11, 8, 0.62),
      transparent 68%);
  pointer-events: none;
}

.product-item-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.75);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease,
    opacity 0.3s ease;
}

.product-item-media img.image-error {
  opacity: 0;
}

.product-item:hover .product-item-media {
  border-color: rgba(127, 224, 203, 0.34);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.product-item:hover .product-item-media img {
  transform: scale(1.07);
  filter: saturate(1.08) brightness(0.96) contrast(1.04);
}

/*  ========================================================= CONTENIDO DEL PRODUCTO =========================================================  */

.product-item-content {
  min-width: 0;
}

.product-item-category {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-item-content h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  transition: color 0.25s ease,
    transform 0.25s ease;
}

.product-item:hover .product-item-content h3 {
  color: var(--cyan);
  transform: translateX(3px);
}

.product-item-content>p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(238, 243, 238, 0.62);
  font-size: 0.87rem;
  line-height: 1.58;
}

/*  ========================================================= FLECHA =========================================================  */

.product-item-action {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 224, 203, 0.23);
  border-radius: 50%;
  color: var(--cyan);
  transition: transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.product-item:hover .product-item-action {
  transform: translateX(5px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(127, 224, 203, 0.07),
    0 0 24px rgba(127, 224, 203, 0.2);
}

/*  ========================================================= BLOQUE DE COTIZACIÓN =========================================================  */

.product-quote-section {
  margin-top: 90px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  border: 1px solid rgba(127, 224, 203, 0.2);
  border-radius: 30px;
  background: radial-gradient(circle at 84% 18%,
      rgba(127, 224, 203, 0.14),
      transparent 34%),
    linear-gradient(135deg,
      rgba(78, 154, 92, 0.14),
      rgba(238, 243, 238, 0.03));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.product-quote-copy {
  max-width: 820px;
}

.product-quote-copy .kicker {
  margin-bottom: 16px;
}

.product-quote-copy h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.product-quote-copy>p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(238, 243, 238, 0.65);
  line-height: 1.65;
}

.product-quote-button {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-width: 245px;
  min-height: 56px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  color: #061009;
  background: linear-gradient(135deg,
      var(--cyan),
      var(--brand-bright));
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(127, 224, 203, 0.14);
  transition: transform 0.28s ease,
    filter 0.28s ease,
    box-shadow 0.28s ease;
}

.product-quote-button::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -45%;
  width: 35%;
  height: 380%;
  transform: rotate(24deg);
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.42),
      transparent);
  transition: left 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-quote-button:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.4),
    0 0 38px rgba(127, 224, 203, 0.22);
}

.product-quote-button:hover::before {
  left: 120%;
}

.product-quote-button span {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.product-quote-button:hover span {
  transform: translateX(5px);
}

.product-quote-button:active {
  transform: translateY(-1px) scale(0.985);
}

.product-quote-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

/*  ========================================================= RESPONSIVE DEL CONTENIDO =========================================================  */

@media (max-width: 1240px) {

  .product-page .section-inner {
    width: min(100% - 70px, 1180px);
  }

  .product-hero {
    gap: 58px;
  }

  .product-item {
    grid-template-columns: 44px 160px minmax(0, 1fr) 46px;
  }

  .product-item-media {
    width: 160px;
    height: 108px;
  }
}

@media (max-width: 1000px) {

  .product-page {
    padding-top: 125px;
  }

  .product-hero,
  .product-catalog-header {
    grid-template-columns: 1fr;
  }

  .product-hero {
    gap: 38px;
  }

  .product-catalog-header {
    gap: 24px;
  }

  .product-item {
    grid-template-columns: 42px 145px minmax(0, 1fr) 44px;
    gap: 18px;
  }

  .product-item-media {
    width: 145px;
    height: 102px;
  }

  .product-quote-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
}

@media (max-width: 760px) {

  .product-page .section-inner {
    width: min(100% - 38px, 680px);
  }

  .product-page {
    padding-top: 110px;
    padding-bottom: 90px;
  }

  .product-hero {
    padding-bottom: 54px;
  }

  .product-hero h1 {
    font-size: clamp(3.4rem, 15vw, 5.5rem);
  }

  .product-catalog {
    padding-top: 64px;
  }

  .product-item {
    min-height: auto;
    padding: 20px 8px;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 14px;
  }

  .product-item:hover {
    padding-left: 14px;
  }

  .product-item-media {
    display: none;
  }

  .product-item-content h3 {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
  }

  .product-item-content>p:last-child {
    font-size: 0.8rem;
  }

  .product-quote-section {
    margin-top: 64px;
    padding: 32px 26px;
    border-radius: 24px;
  }

  .product-quote-button {
    width: 100%;
  }
}

@media (max-width: 480px) {

  .product-page .section-inner {
    width: calc(100% - 28px);
  }

  .product-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .product-item {
    grid-template-columns: 30px minmax(0, 1fr) 36px;
  }

  .product-item-number {
    font-size: 0.58rem;
  }

  .product-item-action {
    width: 34px;
    height: 34px;
  }

  .product-item-content>p:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-quote-section {
    padding: 28px 22px;
  }
}

/*  ========================================================= MODAL FULLSCREEN ORTHO =========================================================  */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s ease,
    visibility 0.34s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%,
      rgba(78, 154, 92, 0.18),
      transparent 34%),
    radial-gradient(circle at 18% 78%,
      rgba(127, 224, 203, 0.1),
      transparent 30%),
    rgba(2, 5, 3, 0.97);
}

.product-modal-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(127, 224, 203, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 224, 203, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 8%,
      black 92%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 8%,
      black 92%,
      transparent);
  pointer-events: none;
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 100px));
  height: 100%;
  margin-inline: auto;
  padding: 120px 0 90px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(18px);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-panel::-webkit-scrollbar {
  display: none;
}

.product-modal.is-open .product-modal-panel {
  transform: translateY(0);
}

.product-modal-close {
  position: fixed;
  top: 30px;
  right: 34px;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(238, 243, 238, 0.055);
  cursor: pointer;
  transition: transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.product-modal-close:hover {
  transform: translateY(-2px);
  background: rgba(127, 224, 203, 0.14);
  border-color: rgba(127, 224, 203, 0.38);
}

.product-modal-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.product-modal-close span:first-child {
  transform: rotate(45deg);
}

.product-modal-close span:last-child {
  transform: rotate(-45deg);
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(520px, 1fr);
  gap: 90px;
  align-items: center;
  min-height: calc(100svh - 220px);
}

.product-modal-copy .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.product-modal-copy .kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--brand-bright);
}

.product-modal-copy h2 {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 2vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-align: start;
}

.product-modal-copy p {
  max-width: 600px;
  margin: 0;
  color: rgba(238, 243, 238, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.7;
  text-align: justify;
}

.product-modal-quote {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  min-width: 245px;
  min-height: 56px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  color: #061009;
  background: linear-gradient(135deg,
      var(--cyan),
      var(--brand-bright));
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(127, 224, 203, 0.14);
  transition: transform 0.28s ease,
    filter 0.28s ease,
    box-shadow 0.28s ease;
}

.product-modal-quote:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.4),
    0 0 38px rgba(127, 224, 203, 0.22);
}

.product-modal-gallery {
  position: relative;
  min-width: 0;
}

.product-modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(127, 224, 203, 0.18);
  border-radius: 34px;
  background: linear-gradient(135deg,
      rgba(127, 224, 203, 0.08),
      rgba(238, 243, 238, 0.025));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42),
    0 0 60px rgba(127, 224, 203, 0.08);
}

.product-modal-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
      rgba(6, 11, 8, 0.55),
      transparent 58%);
  pointer-events: none;
}

.product-modal-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
  background: #050806;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.42s ease,
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background-image: var(--modal-slide-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(18px) brightness(0.58) saturate(0.82);
  opacity: 0.78;
  transform: scale(1.08);
  pointer-events: none;
}

.product-modal-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-modal-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.96) brightness(0.9) contrast(1.03);
}

.product-modal-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.product-modal-prev,
.product-modal-next {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 224, 203, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(238, 243, 238, 0.045);
  cursor: pointer;
  transition: transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.product-modal-prev:hover,
.product-modal-next:hover {
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

.product-modal-prev:hover {
  transform: translateX(-3px);
}

.product-modal-next:hover {
  transform: translateX(3px);
}

.product-modal-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-modal-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 238, 0.32);
  cursor: pointer;
  transition: width 0.22s ease,
    background 0.22s ease;
}

.product-modal-dots button.is-active {
  width: 28px;
  background: var(--cyan);
}

body.product-modal-open {
  overflow: hidden;
}

/* En escritorio el modal completo se ajusta al alto visible. */
@media (min-width: 1181px) and (min-height: 720px) {
  .product-modal-panel {
    display: flex;
    align-items: center;
    padding-top: 78px;
    padding-bottom: 38px;
    overflow-y: hidden;
  }

  .product-modal-layout {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 116px);
  }

  .product-modal-copy h2 {
    margin-bottom: clamp(16px, 2vh, 28px);
  }

  .product-modal-copy p {
    font-size: clamp(0.92rem, 1vw, 1.12rem);
    line-height: 1.58;
  }

  .product-modal-quote {
    margin-top: clamp(20px, 3vh, 34px);
  }

  .product-modal-slider {
    height: clamp(330px, 55vh, 570px);
    aspect-ratio: auto;
  }

  .product-modal-controls {
    margin-top: clamp(14px, 2.5vh, 24px);
  }
}

.product-modal-gallery {
  position: relative;
}

.text-over-img-modal {
  position: absolute;
  left: 50%;
  bottom: 85px;
  /* Deja espacio para los controles */
  transform: translateX(-50%);
  z-index: 5;

  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 8px 16px;

  color: #fff;
  /* font-weight: 600; */
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
}


/*  =========================================================
    MODALES DE PRODUCTOS Y SERVICIOS — TABLET
=========================================================  */

@media (max-width: 1180px) {

  .product-modal-panel {
    width: min(900px, calc(100% - 48px));
    padding: 92px 0 64px;
  }

  .product-modal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
    min-height: auto;
  }

  .product-modal-copy h2 {
    max-width: 860px;
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.94;
  }

  .product-modal-copy p {
    max-width: 820px;
    text-align: left;
  }
}

/*  =========================================================
    MODALES DE PRODUCTOS Y SERVICIOS — MOBILE
=========================================================  */

@media (max-width: 760px) {

  .product-modal {
    overflow: hidden;
  }

  .product-modal-panel {
    width: calc(100% - 16px);
    height: calc(100svh - 16px);
    height: calc(100dvh - 16px);
    margin: 8px auto;
    padding: 70px 18px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid rgba(127, 224, 203, 0.16);
    border-radius: 24px;
    background: rgba(5, 10, 7, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-modal-close {
    top: calc(20px + env(safe-area-inset-top));
    right: 20px;
    width: 44px;
    height: 44px;
    border-color: rgba(127, 224, 203, 0.28);
    background: rgba(5, 10, 7, 0.88);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .product-modal-layout {
    gap: 28px;
  }

  .product-modal-copy .kicker {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.64rem;
    letter-spacing: 0.17em;
  }

  .product-modal-copy .kicker::before {
    width: 28px;
  }

  .product-modal-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 9vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .product-modal-copy p {
    font-size: 0.92rem;
    line-height: 1.58;
    text-align: left;
  }

  .product-modal-quote {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin-top: 24px;
    padding: 12px 20px;
  }

  .product-modal-slider {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    background: #050806;
  }

  .product-modal-slide img {
    object-fit: contain;
    filter: saturate(0.96) brightness(0.9) contrast(1.03);
  }

  .text-over-img-modal {
    top: 12px;
    bottom: auto;
    max-width: calc(100% - 24px);
    padding: 6px 11px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .product-modal-controls {
    margin-top: 14px;
    gap: 12px;
  }

  .product-modal-prev,
  .product-modal-next {
    flex: 0 0 44px;
  }

  .product-modal-dots {
    min-width: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
  }
}

@media (max-width: 420px) {

  .product-modal-panel {
    width: calc(100% - 8px);
    height: calc(100svh - 8px);
    height: calc(100dvh - 8px);
    margin: 4px auto;
    padding: 64px 14px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .product-modal-close {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .product-modal-copy h2 {
    font-size: clamp(1.72rem, 8.8vw, 2.45rem);
  }

  .product-modal-copy p {
    font-size: 0.88rem;
  }

  .product-modal-layout {
    gap: 24px;
  }

  .product-modal-slider {
    border-radius: 16px;
  }
}

/*  ========================================================= ORTHO — AJUSTES MOBILE / TABLET =========================================================  */

@media (max-width: 900px) {

  .product-page {
    padding-top: 118px;
    padding-bottom: 90px;
    overflow-x: hidden;
  }

  .product-page .section-inner {
    width: min(100% - 36px, 720px);
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 42px;
  }

  .product-hero-heading {
    width: 100%;
    min-width: 0;
  }

  .product-back-link {
    margin-bottom: 28px;
    font-size: 0.78rem;
  }

  .product-hero .kicker {
    margin-bottom: 16px;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .product-hero .kicker::before {
    width: 42px;
    flex: 0 0 42px;
  }

  .product-hero h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 14vw, 5.8rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
    word-break: normal;
  }

  .product-hero-copy {
    width: 100%;
    max-width: 100%;
    gap: 18px;
    overflow: hidden;
  }

  .product-hero-copy p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .product-hero-copy .product-lead {
    font-size: clamp(1.02rem, 4vw, 1.18rem);
    line-height: 1.55;
  }

  .btn-cotizar-productos {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {

  .product-page {
    padding-top: 104px;
    padding-bottom: 78px;
  }

  .product-page .section-inner {
    width: calc(100% - 30px);
  }

  .product-hero {
    gap: 30px;
    padding-bottom: 36px;
  }

  .product-back-link {
    margin-bottom: 24px;
  }

  .product-hero .kicker {
    gap: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.17em;
  }

  .product-hero .kicker::before {
    width: 40px;
    flex-basis: 40px;
  }

  .product-hero h1 {
    font-size: clamp(3rem, 15.5vw, 4.9rem);
    line-height: 0.9;
    letter-spacing: -0.078em;
  }

  .product-hero-copy {
    gap: 16px;
  }

  .product-hero-copy p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .product-hero-copy .product-lead {
    font-size: clamp(1rem, 4.4vw, 1.12rem);
    line-height: 1.55;
  }

  .btn-cotizar-productos {
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    padding-inline: 22px;
    font-size: 0.86rem;
  }

  .product-catalog {
    padding-top: 48px;
  }
}

@media (max-width: 430px) {

  .product-page {
    padding-top: 96px;
  }

  .product-page .section-inner {
    width: calc(100% - 28px);
  }

  .product-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.25rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
  }

  .product-hero-copy p {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .product-hero-copy .product-lead {
    font-size: 0.98rem;
  }

  .btn-cotizar-productos {
    min-height: 54px;
    padding-inline: 18px;
  }
}

/* =========================================================
   PRODUCTOS Y SERVICIOS — RESPONSIVE
   Tarjetas verticales para tablet y móvil
========================================================= */

@media (max-width: 900px) {
  .sequence-track {
    min-height: 0 !important;
  }

  .sequence-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  .sequence-bg {
    inset: 0;
    transform: none !important;
  }

  .sequence-content {
    width: min(100% - 32px, 760px);
    height: auto !important;
    display: block !important;
    margin-inline: auto;
  }

  .sequence-content>.scene.scene-products {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 108px 0 72px;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .sequence-content>.scene-services {
    padding-top: 68px;
    border-top: 1px solid rgba(238, 243, 238, 0.12);
  }

  .scene-products-shell {
    width: 100%;
    height: auto !important;
    display: grid;
    grid-template-rows: auto auto;
    gap: 30px;
  }

  .scene-products-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 0;
  }

  .scene-products-title .kicker {
    margin-bottom: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .scene-products-title h2 {
    font-size: clamp(3rem, 9vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
  }

  .scene-products-intro {
    gap: 16px;
  }

  .scene-products-intro>p {
    max-width: 62ch;
    font-size: 0.94rem;
    line-height: 1.56;
  }

  .scene-products-intro .btn-cotizar-productos,
  .scene-products .btn-cotizar-productos {
    width: min(100%, 440px);
    min-width: 0;
    min-height: 52px;
    padding: 13px 22px;
  }

  .sequence .scene-products .scene-products-grid.products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 18px !important;
    width: 100%;
    overflow: visible !important;
  }

  .sequence .scene-products .product-card {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 185px auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 390px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(238, 243, 238, 0.18) !important;
    border-radius: 22px !important;
    background: linear-gradient(160deg, rgba(28, 34, 27, 0.96), rgba(8, 14, 10, 0.92)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .sequence .scene-products .product-card::before,
  .sequence .scene-products .product-card::after {
    display: none !important;
  }

  .sequence .scene-products .product-image-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 185px !important;
    min-height: 185px !important;
    overflow: hidden !important;
  }

  .sequence .scene-products .product-image-wrap::after {
    display: block !important;
    background: linear-gradient(180deg, transparent 42%, rgba(6, 11, 8, 0.66));
  }

  .sequence .scene-products .product-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: saturate(0.9) brightness(0.92) contrast(1.04);
  }

  .sequence .scene-products .product-index {
    display: block !important;
    right: 16px !important;
    bottom: 13px !important;
    font-size: 0.68rem !important;
  }

  .sequence .scene-products .product-content {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    padding: 19px 20px 22px !important;
  }

  .sequence .scene-products .product-content h3 {
    margin: 0 0 10px !important;
    color: var(--ink) !important;
    font-size: clamp(1.16rem, 3vw, 1.38rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
  }

  .sequence .scene-products .product-content>p {
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    color: rgba(238, 243, 238, 0.72) !important;
    font-size: 0.84rem !important;
    line-height: 1.52 !important;
    -webkit-line-clamp: unset !important;
  }

  #productos,
  #servicios {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 640px) {
  .sequence-content {
    width: calc(100% - 30px);
  }

  .sequence-content>.scene.scene-products {
    padding: 102px 0 62px;
  }

  .sequence-content>.scene-services {
    padding-top: 58px;
  }

  .scene-products-shell {
    gap: 26px;
  }

  .scene-products-header {
    gap: 16px;
  }

  .scene-products-title h2 {
    font-size: clamp(2.75rem, 13vw, 3.75rem);
  }

  .scene-products-intro>p {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .scene-products-intro .btn-cotizar-productos,
  .scene-products .btn-cotizar-productos {
    width: 100%;
    min-height: 50px;
    font-size: 0.84rem;
  }

  .sequence .scene-products .scene-products-grid.products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .sequence .scene-products .product-card {
    grid-template-rows: 190px auto !important;
    min-height: 0 !important;
    border-radius: 20px !important;
  }

  .sequence .scene-products .product-image-wrap {
    height: 190px !important;
    min-height: 190px !important;
  }

  .sequence .scene-products .product-content {
    padding: 18px 19px 21px !important;
  }

  .sequence .scene-products .product-content h3 {
    font-size: clamp(1.18rem, 5.4vw, 1.4rem) !important;
  }
}

/* =========================================================
   SERVICIOS DENTRO DEL SEQUENCE
   data-scene="1"
========================================================= */

.scene-services .scene-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-content: start;
  gap: 22px;
  width: min(100%, 100%);
  margin-inline: auto;
}

/* .scene-services .scene-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: start;
  align-content: start;
  gap: 20px;
} */

/* Mantiene la misma altura y estructura de productos */

.scene-services .product-card {
  width: 100%;
  min-width: 0;
  height: 100%;
}

/* Un poco más de ancho disponible para el botón */

.scene-services .scene-products-intro .btn-cotizar-productos {
  width: 100%;
  min-width: 0;
}

/* Tablet */

@media (max-width: 900px) {
  .scene-services .scene-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .scene-services .scene-services-grid {
    grid-template-columns: 1fr;
  }
}

.scene-services .product-card {
  height: auto;
  min-height: 0;
}

.scene-services .product-image-wrap {
  height: 180px;
}

.scene-services .product-content {
  min-height: 120px;
}

.sequence-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sequence-anchor-services {
  top: 58%;
}

#productos,
#servicios {
  scroll-margin-top: 100px;
}

/* ide minagri parpadeo */
.minagri-network-highlight {
  position: relative;
  animation: networkPulse 2s infinite ease-in-out;
}

/* Subrayado base */

.minagri-network-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

/* Mantiene el hover */

.minagri-network-highlight:hover::after {
  transform: scaleX(1);
}

/* Parpadeo similar a .scroll-cue */

@keyframes networkPulse {

  0%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 6px rgba(255, 255, 255, 1),
      0 0 14px rgba(127, 224, 203, .35);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 2px rgba(255, 255, 255, .5),
      0 0 6px rgba(127, 224, 203, .12);
  }
}

/* =========================================================
   QUIÉNES SOMOS — VERSIÓN INSTITUCIONAL
========================================================= */

.about-section {
  min-height: 100vh;
  padding: 130px 0 150px;
  background:
    radial-gradient(ellipse at 78% 18%,
      rgba(47, 107, 62, .22),
      transparent 42%),
    linear-gradient(180deg,
      #060b08 0%,
      #08110c 78%,
      #0d1711 100%);
}

.about-inner {
  display: grid;
  gap: 26px;
}

/* Encabezado superior */

.about-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 28px;
}

.about-header-history {
  /* display: grid;
  grid-template-columns:
    minmax(0, 1.05fr) minmax(360px, .75fr); */
  gap: 72px;
  align-items: center;
  margin-bottom: 28px;
}


.mision-vision-header {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 2.5vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-align: center !important;
}

.about-title {
  /* max-width: 760px; */
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 2.5vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.about-intro {
  max-width: 560px;
  color: rgba(238, 243, 238, .7);
  font-size: clamp(1rem, 1vw, 1.17rem);
  line-height: 1.7;
  text-align: justify !important;
}

/* Misión y visión */

.about-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-card {
  min-height: 310px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.about-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: auto;
}

.about-card .card-num {
  margin: 0;
}

.about-card-label {
  color: rgba(127, 224, 203, .72);
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-card h3 {
  margin: 38px 0 16px;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
}

.about-card p {
  max-width: 54ch;
  color: rgba(238, 243, 238, .7);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Historia horizontal */

.about-history {
  min-height: 330px;
  padding: 34px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.about-history-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-right: 30px;
  border-right: 1px solid rgba(238, 243, 238, .12);
}

.about-history-index .card-num {
  margin: 0;
}

.about-history-line {
  width: 1px;
  flex: 1;
  min-height: 80px;
  background:
    linear-gradient(to bottom,
      rgba(127, 224, 203, .65),
      rgba(127, 224, 203, .08));
}

.about-history-year {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
}

.about-history-content {
  display: grid;
  grid-template-columns:
    minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 50px;
  align-items: start;
}

.about-history-heading h3 {
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: .95;
}

.about-history-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  text-align: justify;
}

.about-history-text p {
  color: rgba(238, 243, 238, .7);
  font-size: .98rem;
  line-height: 1.72;
}

/* Hover uniforme */

.about-card,
.about-history {
  transition:
    transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.about-card:hover,
.about-history:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 224, 203, .34);
  background:
    linear-gradient(145deg,
      rgba(127, 224, 203, .09),
      rgba(238, 243, 238, .025));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

@media (max-width: 1000px) {

  .about-section {
    padding: 110px 0 100px;
  }

  .about-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 14px;
  }

  .about-intro {
    max-width: 680px;
  }

  .about-history-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-history-text {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {

  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;
  }

  .about-card-top {
    margin-bottom: 28px;
  }

  .about-card h3 {
    margin-top: 0;
  }

  .about-history {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-history-index {
    flex-direction: row;
    align-items: center;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 243, 238, .12);
  }

  .about-history-line {
    width: auto;
    height: 1px;
    min-height: 0;
    flex: 1;
    background:
      linear-gradient(to right,
        rgba(127, 224, 203, .65),
        rgba(127, 224, 203, .08));
  }
}

@media (max-width: 640px) {

  .about-section {
    padding: 96px 0 72px;
  }

  .about-title {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .about-card,
  .about-history {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .about-card-label {
    font-size: .6rem;
  }

  .about-card p,
  .about-history-text p {
    font-size: .95rem;
    line-height: 1.65;
  }
}

/* ------------------------------------------------------- */
.dropdown-work-areas {
  min-width: 270px;
}

.dropdown-parent-link {
  color: var(--ink) !important;
  font-weight: 800;
  padding: 10px 12px 8px !important;
}

.dropdown-child-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  position: relative;
}

/* Línea vertical para mostrar la jerarquía */

/* .dropdown-child-links::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 10px;
  width: 1px;
  background: rgba(127, 224, 203, .22);
}

.dropdown-child-links a {
  position: relative;
  padding: 8px 12px 8px 18px;
  color: var(--ink-dim);
  font-size: .82rem;
  border-radius: 9px;
} */

/* Pequeña línea horizontal hacia cada enlace */

/* .dropdown-child-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  background: rgba(127, 224, 203, .28);
}

.dropdown-child-links a:hover {
  color: var(--cyan);
  background: rgba(238, 243, 238, .07);
} */

/* =========================================================
   ÁREAS DE TRABAJO — TARJETAS CON IMAGEN
========================================================= */

.work-areas-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.work-area-card-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: #061009;
}

/* Imagen completa de fondo */

.work-area-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter:
    saturate(.72) contrast(1.08) brightness(.60);
  transform: scale(1.02);
  transition:
    transform .65s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

/* Capa oscura */

.work-area-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(3, 8, 5, .00) 0%,
      rgba(3, 8, 5, .30) 40%,
      rgba(3, 8, 5, .96) 100%);
}

/* Contenido sobre la imagen */

.work-area-card-image> :not(.work-area-card-bg) {
  position: relative;
  z-index: 1;
}

.work-area-card-image .work-area-top {
  margin-bottom: 34px;
}

.work-area-card-image .work-area-copy {
  margin-top: auto;
}

.work-area-card-image h2 {
  color: #f3f7f1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .82);
}

.work-area-card-image p {
  color: rgba(243, 247, 241, .82);
  text-shadow: 0 3px 16px rgba(0, 0, 0, .78);
}

.work-area-card-image .tag,
.work-area-card-image .work-area-icon {
  color: var(--cyan);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .8));
}

/* Hover */

.work-area-card-image:hover .work-area-card-bg {
  transform: scale(1.09);
  filter:
    saturate(.95) contrast(1.08) brightness(1.2);
}

/* =========================================================
   HISTORIA CIREN — LÍNEA DE TIEMPO ANIMADA DE FONDO
========================================================= */

.history-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Mantiene el contenido sobre la animación */

.history-section .about-inner {
  position: relative;
  z-index: 2;
}

/* Contenedor decorativo */

.history-timeline-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  opacity: .36;

  mask-image:
    linear-gradient(180deg,
      transparent 4%,
      #000 20%,
      #000 84%,
      transparent 100%);

  -webkit-mask-image:
    linear-gradient(180deg,
      transparent 4%,
      #000 20%,
      #000 84%,
      transparent 100%);
}

/* Línea central */

.history-timeline-bg::before {
  content: "";
  position: absolute;
  top: 58%;
  left: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(90deg,
      transparent,
      rgba(127, 224, 203, .18) 8%,
      rgba(127, 224, 203, .55) 48%,
      rgba(127, 224, 203, .18) 92%,
      transparent);

  box-shadow:
    0 0 14px rgba(127, 224, 203, .15);
}

/* Grupo de años */

.history-timeline-track {
  position: absolute;
  top: calc(58% - 21px);
  left: 0;

  width: max-content;

  display: flex;
  align-items: center;
  gap: clamp(90px, 12vw, 190px);

  padding-left: 100vw;
  padding-right: 100vw;

  animation:
    historyTimelineMove 32s linear infinite;
}

/* Año */

.history-timeline-year {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 74px;
  height: 42px;

  padding: 0 14px;

  border: 1px solid rgba(127, 224, 203, .18);
  border-radius: 999px;

  background: rgba(6, 11, 8, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: rgba(127, 224, 203, .7);

  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;

  box-shadow:
    0 0 18px rgba(127, 224, 203, .05);
}

/* Punto sobre la línea */

.history-timeline-year::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -25px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--cyan);

  box-shadow:
    0 0 10px rgba(127, 224, 203, .7),
    0 0 22px rgba(127, 224, 203, .28);

  transform: translateX(-50%);
}

/* Línea que conecta cada año */

.history-timeline-year::before {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -21px;

  width: 1px;
  height: 20px;

  background:
    linear-gradient(to bottom,
      rgba(127, 224, 203, .08),
      rgba(127, 224, 203, .55));

  transform: translateX(-50%);
}

/* Movimiento continuo */

@keyframes historyTimelineMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-55%);
  }
}

/* =========================================================
   CONTACTO
========================================================= */

.contact-section {
  position: relative;
  padding: 130px 0 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%,
      rgba(127, 224, 203, .09),
      transparent 30%),
    radial-gradient(circle at 86% 78%,
      rgba(78, 154, 92, .16),
      transparent 34%),
    linear-gradient(180deg,
      #060b08 0%,
      #08110c 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(238, 243, 238, .035) 1px,
      transparent 1px);

  background-size: 56px 56px;

  mask-image:
    linear-gradient(to bottom,
      transparent,
      #000 12%,
      #000 88%,
      transparent);
}

.contact-layout {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, .9fr) minmax(420px, 1.1fr);

  gap: 72px;
  align-items: start;
}

/* Columna izquierda */

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-title {
  max-width: 10ch;
  margin: 0 0 26px;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 3vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.contact-lead {
  max-width: 580px;
  color: rgba(238, 243, 238, .7);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.7;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;

  padding: 16px 18px;

  border: 1px solid rgba(238, 243, 238, .12);
  border-radius: 18px;

  background: rgba(238, 243, 238, .035);
  color: rgba(238, 243, 238, .86);

  transition:
    transform .24s ease,
    border-color .24s ease,
    background .24s ease;
}

.contact-info-item:hover {
  transform: translateX(6px);
  border-color: rgba(127, 224, 203, .34);
  background: rgba(127, 224, 203, .07);
}

.contact-info-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(127, 224, 203, .22);
  border-radius: 14px;

  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.contact-info-content small {
  display: block;
  margin-bottom: 4px;

  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Formulario */

.contact-panel {
  padding: 34px;

  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 28px;

  background:
    linear-gradient(145deg,
      rgba(238, 243, 238, .085),
      rgba(238, 243, 238, .025));

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 9px;
}

.contact-field label {
  color: rgba(238, 243, 238, .82);
  font-size: .82rem;
  font-weight: 800;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;

  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 14px;

  background: rgba(6, 11, 8, .48);
  color: var(--ink);

  outline: none;
  padding: 14px 16px;

  transition:
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.contact-field input,
.contact-field select {
  min-height: 52px;
}

.contact-field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--cyan);
  background: rgba(6, 11, 8, .68);
  box-shadow: 0 0 0 3px rgba(127, 224, 203, .08);
}

.contact-field select option {
  color: var(--ink);
  background: #08110c;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  color: rgba(238, 243, 238, .62);
  font-size: .8rem;
  line-height: 1.45;
}

.contact-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand-bright);
}

.contact-submit {
  min-height: 54px;

  border: 0;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: #061009;

  background:
    linear-gradient(135deg,
      var(--cyan),
      var(--brand-bright));

  font-weight: 900;
  cursor: pointer;

  box-shadow:
    0 18px 60px rgba(0, 0, 0, .3),
    0 0 30px rgba(127, 224, 203, .12);

  transition:
    transform .24s ease,
    filter .24s ease,
    box-shadow .24s ease;
}

.contact-submit:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);

  box-shadow:
    0 22px 70px rgba(0, 0, 0, .38),
    0 0 40px rgba(127, 224, 203, .2);
}

.contact-submit span {
  transition: transform .24s ease;
}

.contact-submit:hover span {
  transform: translateX(5px);
}

@media (max-width: 900px) {

  .contact-section {
    padding: 100px 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact-copy {
    position: relative;
    top: auto;
  }

  .contact-title {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {

  .contact-section {
    padding: 82px 0 64px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .contact-title {
    max-width: 100%;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .contact-info-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   NAVBAR — NOTEBOOKS / MACBOOK 1440 × 900
========================================================= */

@media (min-width: 1321px) and (max-width: 1500px) {

  /* Logos laterales más compactos */

  .floating-logo {
    top: 18px;
    left: 22px;
    width: 82px;
    height: auto;
  }

  .floating-logo-minagri {
    top: 18px;
    right: 22px;
    left: auto;
    width: 62px;
    height: auto;
  }

  /* Navbar entre ambos logos */

  .main-header {
    top: 14px;
    left: 50%;
    right: auto;

    width: calc(100% - 240px);
    max-width: 1200px;
    height: 60px;

    padding: 0 16px;

    transform: translateX(-50%) translateY(-90px);
  }

  .main-header.show {
    transform: translateX(-50%) translateY(0);
  }

  /* Navegación central */

  .nav-links {
    min-width: 0;
    gap: clamp(9px, .8vw, 14px);
  }

  .nav-item {
    flex-shrink: 0;
    gap: 3px;

    font-size: clamp(.69rem, .7vw, .77rem);
    letter-spacing: -.01em;
    white-space: nowrap;
  }

  .chevron {
    width: 9px;
    height: 9px;
  }

  /* Acciones derechas */

  .header-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .main-header .navbar-social,
  .main-header .footer-social {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .main-header .navbar-social a,
  .main-header .footer-social a {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 7px;
  }

  .main-header .navbar-social svg,
  .main-header .footer-social svg {
    width: 13px;
    height: 13px;
  }

  .icon-btn {
    width: 27px;
    height: 27px;
  }

  .icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .btn {
    padding: 8px 12px;
    font-size: .72rem;
  }

  /* Asegura versión desktop */

  .nav-links,
  .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* =========================================================
   NAVBAR — HAMBURGUESA
========================================================= */

@media (max-width: 1320px) {

  .floating-logo,
  .floating-logo-minagri,
  .main-header {
    top: 16px;
  }

  .floating-logo {
    left: 24px;
    right: auto;
    width: 92px;
    height: auto;
    padding: 0;
    z-index: 140;
  }

  .floating-logo-minagri {
    left: 130px;
    right: auto;
    width: 62px;
    height: auto;
    padding: 0;
    z-index: 140;
  }

  .main-header {
    left: auto;
    right: 24px;

    width: 58px;
    height: 58px;
    padding: 0;

    justify-content: center;

    border-radius: 18px;

    transform: translateY(-90px);
    z-index: 140;
  }

  .main-header.show {
    transform: translateY(0);
  }

  .nav-links,
  .header-actions,
  .navbar-social {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    width: 58px;
    height: 58px;
    margin: 0;
  }
}

@media (max-width: 520px) {

  .floating-logo {
    left: 14px;
    width: 76px;
    height: 48px;
  }

  .floating-logo-minagri {
    left: 96px;
    width: 52px;
    height: 48px;
  }

  .main-header {
    right: 14px;
    width: 52px;
    height: 48px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
   CONTACTO — PLACEHOLDER RECAPTCHA
========================================================= */

.grecaptcha-badge {
  visibility: hidden;
}

.contact-recaptcha-note {
  margin: -6px 0 0;

  color: rgba(238, 243, 238, .45);
  font-size: .68rem;
  line-height: 1.5;
}

.contact-recaptcha-note a {
  color: rgba(238, 243, 238, .62);
  text-decoration: underline;
}

.contact-recaptcha-note a:hover {
  color: var(--cyan);
}

.contact-hp {
  position: absolute;
  left: -9999px;

  width: 1px;
  height: 1px;

  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-status {
  padding: 13px 16px;

  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 14px;

  background: rgba(6, 11, 8, .48);
  color: rgba(238, 243, 238, .86);

  font-size: .88rem;
  line-height: 1.5;
}

.contact-status.is-ok {
  border-color: rgba(78, 154, 92, .45);
  background: rgba(47, 107, 62, .18);
  color: var(--cyan);
}

.contact-status.is-error {
  border-color: rgba(232, 120, 100, .42);
  background: rgba(232, 120, 100, .12);
  color: #f2b7ac;
}

/* =========================================================
   HISTORIA — MEMORIA DESTACADA E HISTÓRICO
========================================================= */

.about-memory-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 2px;
}

/* =========================================================
   MEMORIA DESTACADA CON IMAGEN
========================================================= */

.memory-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 230px;
  padding: 28px;

  display: flex;
  align-items: flex-end;

  border: 1px solid rgba(238, 243, 238, .16);
  border-radius: 24px;

  /* background: #07100b; */

  /* box-shadow: 0 24px 70px rgba(0, 0, 0, .28); */

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.memory-feature-image {
  position: absolute;
  inset: 0;
  z-index: -3;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(.82) contrast(1.08) brightness(.68);

  transform: scale(1.02);

  transition:
    transform .65s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

.memory-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(90deg,
      rgba(3, 8, 5, .40) 0%,
      rgba(3, 8, 5, .20) 46%,
      rgba(3, 8, 5, .05) 100%),
    linear-gradient(180deg,
      transparent 40%,
      rgba(3, 8, 5, .60) 100%);
}

.memory-feature-content {
  position: relative;
  z-index: 1;

  max-width: 420px;
}

.memory-feature-label {
  display: block;
  margin-bottom: 12px;

  color: var(--cyan);

  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.memory-feature-card h3 {
  margin: 0 0 20px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 2vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.memory-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: rgba(238, 243, 238, .84);

  font-size: .85rem;
  font-weight: 800;
}

.memory-feature-link span {
  color: var(--cyan);
  transition: transform .25s ease;
}

.memory-feature-card:hover {
  transform: translateY(-6px);

  border-color: rgba(127, 224, 203, .38);

  box-shadow:
    0 34px 90px rgba(0, 0, 0, .4),
    0 0 38px rgba(127, 224, 203, .08);
}

.memory-feature-card:hover .memory-feature-image {
  transform: scale(1.08);

  filter:
    saturate(1) contrast(1.08) brightness(.8);
}

.memory-feature-card:hover .memory-feature-link span {
  transform: translateX(5px);
}

/* =========================================================
   BOTÓN HISTÓRICO DE MEMORIAS
========================================================= */

.memory-history-button {
  min-height: 230px;
  padding: 28px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  border: 1px solid rgba(238, 243, 238, .16);
  border-radius: 24px;

  color: var(--ink);

  background:
    radial-gradient(circle at 85% 15%,
      rgba(127, 224, 203, .12),
      transparent 38%),
    linear-gradient(145deg,
      rgba(238, 243, 238, .075),
      rgba(238, 243, 238, .025));

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;

  transition:
    transform .28s ease,
    color .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.memory-history-arrow {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(127, 224, 203, .24);
  border-radius: 50%;

  color: var(--cyan);

  font-size: 1.15rem;

  transition:
    transform .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.memory-history-button:hover {
  transform: translateY(-6px);

  color: var(--cyan);

  border-color: rgba(127, 224, 203, .4);

  background:
    radial-gradient(circle at 85% 15%,
      rgba(127, 224, 203, .2),
      transparent 42%),
    rgba(127, 224, 203, .07);

  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.memory-history-button:hover .memory-history-arrow {
  transform: translateX(5px);

  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 760px) {

  .about-memory-actions {
    grid-template-columns: 1fr;
  }

  .memory-feature-card,
  .memory-history-button {
    min-height: 210px;
  }
}

@media (max-width: 520px) {

  .memory-feature-card,
  .memory-history-button {
    min-height: 190px;
    padding: 22px;
    border-radius: 20px;
  }

  .memory-feature-overlay {
    background:
      linear-gradient(90deg,
        rgba(3, 8, 5, .92),
        rgba(3, 8, 5, .48)),
      linear-gradient(180deg,
        transparent 30%,
        rgba(3, 8, 5, .86));
  }
}

/* =========================================================
   PÁGINA GEOPORTALES — CLASES INDEPENDIENTES
   Distribución desktop: 3 tarjetas arriba y 2 tarjetas anchas abajo
========================================================= */
/*
.geoportals-page {
  min-height: 100svh;
  padding: 132px 0 90px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(78, 154, 92, .12), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(127, 224, 203, .08), transparent 30%),
    linear-gradient(180deg, #061009 0%, #08130d 52%, #050906 100%);
}

.geoportals-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.geoportals-inner {
  width: min(1380px, calc(100% - 64px));
}

.geoportals-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}

.geoportals-hero .display {
  max-width: 820px;
  font-size: clamp(3.4rem, 4.6vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.07em;
}

.geoportals-hero .lead {
  max-width: 620px;
  color: rgba(238, 243, 238, .72);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.62;
}

.geoportals-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.geoportal-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.geoportal-card:nth-child(n + 4) {
  grid-column: span 3;
}

.geoportal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 440px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  color: var(--ink);
  background: #061009;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
  transition:
    transform .32s cubic-bezier(.16, 1, .3, 1),
    border-color .28s ease,
    box-shadow .32s ease;
}

.geoportal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .42);
  box-shadow: 0 38px 96px rgba(0, 0, 0, .4);
}

.geoportal-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08) brightness(.48);
  transform: scale(1.02);
  transition:
    transform .65s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

.geoportal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, .05) 0%, rgba(3, 8, 5, .28) 38%, rgba(3, 8, 5, .97) 100%);
}

.geoportal-card:hover .geoportal-card-bg {
  transform: scale(1.085);
  filter: saturate(.98) contrast(1.08) brightness(.88);
}

.geoportal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.geoportal-card-index,
.geoportal-tag {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .85);
}

.geoportal-card-copy {
  margin-top: auto;
  padding-top: 80px;
}

.geoportal-card h2 {
  margin: 0 0 14px;
  color: #f3f7f1;
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-align: left;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .82);
}

.geoportal-card p {
  margin: 0;
  max-width: 68ch;
  color: rgba(243, 247, 241, .82);
  font-size: .95rem;
  line-height: 1.6;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .78);
}

.geoportal-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .2);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(6, 11, 8, .28);
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.geoportal-card:hover .geoportal-arrow {
  transform: translateX(6px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 1100px) {
  .geoportals-inner {
    width: min(100% - 48px, 980px);
  }

  .geoportals-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .geoportals-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geoportal-card:nth-child(n) {
    grid-column: span 1;
  }

  .geoportal-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .geoportals-page {
    padding: 108px 0 64px;
  }

  .geoportals-inner {
    width: calc(100% - 30px);
  }

  .geoportals-hero {
    margin-bottom: 36px;
  }

  .geoportals-hero .display {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .geoportals-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .geoportal-card:nth-child(n),
  .geoportal-card:last-child {
    grid-column: auto;
  }

  .geoportal-card {
    min-height: 390px;
    padding: 24px;
  }

  .geoportal-card-copy {
    padding-top: 64px;
  }
} */

/* =========================================================
   PÁGINA GEOPORTALES — 7 TARJETAS
   Desktop: 3 / 3 / 1
========================================================= */

.geoportals-page {
  min-height: 100svh;
  padding: 132px 0 90px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(78, 154, 92, .12), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(127, 224, 203, .08), transparent 30%),
    linear-gradient(180deg, #061009 0%, #08130d 52%, #050906 100%);
}

.geoportals-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.geoportals-inner {
  width: min(1380px, calc(100% - 64px));
}

.geoportals-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}

.geoportals-hero .display {
  max-width: 820px;
  font-size: clamp(3.4rem, 4.6vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.07em;
}

.geoportals-hero .lead {
  max-width: 620px;
  color: rgba(238, 243, 238, .72);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.62;
}

.geoportals-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Tarjetas 01–06: tres por fila. */
/* .geoportal-card:nth-child(-n + 7) {
  grid-column: span 2;
} */

/* Tarjeta 07: ocupa toda la tercera fila. */
/* .geoportal-card:nth-child(7) {
  grid-column: 1 / -1;
} */

/* La séptima es horizontal para aprovechar mejor el ancho. */
/* .geoportal-card:nth-child(6) {
  min-height: 340px;
} */

/* .geoportal-card:nth-child(7) .geoportal-card-copy {
  max-width: 760px;
  padding-top: 90px;
} */

/* =========================================================
   GEOPORTALES — 6 TARJETAS, DISTRIBUCIÓN 3 × 2
========================================================= */

.geoportal-card {
  grid-column: span 2;
  min-height: 440px;
}

/* Todas las tarjetas conservan la misma altura */

.geoportal-card:nth-child(n) {
  min-height: 440px;
}

/* Elimina cualquier formato especial heredado */

.geoportal-card:nth-child(6) .geoportal-card-copy,
.geoportal-card:nth-child(7) .geoportal-card-copy {
  max-width: none;
  padding-top: 80px;
}

.geoportal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 440px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  color: var(--ink);
  background: #061009;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
  transition:
    transform .32s cubic-bezier(.16, 1, .3, 1),
    border-color .28s ease,
    box-shadow .32s ease;
}

.geoportal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 224, 203, .42);
  box-shadow: 0 38px 96px rgba(0, 0, 0, .4);
}

.geoportal-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08) brightness(.48);
  transform: scale(1.02);
  transition:
    transform .65s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

.geoportal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, .05) 0%, rgba(3, 8, 5, .28) 38%, rgba(3, 8, 5, .97) 100%);
}

.geoportal-card:hover .geoportal-card-bg {
  transform: scale(1.085);
  filter: saturate(.98) contrast(1.08) brightness(.88);
}

.geoportal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.geoportal-card-index,
.geoportal-tag {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .85);
}

.geoportal-card-copy {
  margin-top: auto;
  padding-top: 80px;
}

.geoportal-card h2 {
  margin: 0 0 14px;
  color: #f3f7f1;
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-align: left;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .82);
}

.geoportal-card p {
  margin: 0;
  max-width: 68ch;
  color: rgba(243, 247, 241, .82);
  font-size: .95rem;
  line-height: 1.6;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .78);
}

.geoportal-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .2);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(6, 11, 8, .28);
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.geoportal-card:hover .geoportal-arrow {
  transform: translateX(6px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* @media (max-width: 1100px) {
  .geoportals-inner {
    width: min(100% - 48px, 980px);
  }

  .geoportals-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .geoportals-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .geoportal-card:nth-child(n) {
    grid-column: span 1;
  }

  .geoportal-card:nth-child(7) {
    grid-column: 1 / -1;
  } 
} */
@media (max-width: 1100px) {

  .geoportals-inner {
    width: min(100% - 48px, 980px);
  }

  .geoportals-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .geoportals-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .geoportal-card {
    grid-column: span 1;
    min-height: 440px;
  }
}

@media (max-width: 680px) {
  .geoportals-page {
    padding: 108px 0 64px;
  }

  .geoportals-inner {
    width: calc(100% - 30px);
  }

  .geoportals-hero {
    margin-bottom: 36px;
  }

  .geoportals-hero .display {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .geoportals-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* .geoportal-card:nth-child(n),
  .geoportal-card:nth-child(7) {
    grid-column: auto;
  }

  .geoportal-card,
  .geoportal-card:nth-child(7) {
    min-height: 390px;
    padding: 24px;
  }

  .geoportal-card-copy,
  .geoportal-card:nth-child(7) .geoportal-card-copy {
    max-width: none;
    padding-top: 64px;
  } */

  .geoportal-card {
    grid-column: auto;
    min-height: 390px;
    padding: 24px;
  }

  .geoportal-card-copy {
    max-width: none;
    padding-top: 64px;
  }
}


/* =========================================================
   CIREN — FICHA INTERIOR GEOportal: SITA VALPO
========================================================= */

.geoportal-detail-page {
  min-height: 100svh;
  padding: 142px 0 110px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(78, 154, 92, .16), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 56%, #050906 100%);
}

.geoportal-detail-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 94%, transparent);
}

.geoportal-detail-inner {
  width: min(1280px, calc(100% - 64px));
}

.geoportal-detail-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 850;
  transition: transform .24s ease, color .24s ease;
}

.geoportal-detail-back:hover {
  color: var(--ink);
  transform: translateX(-5px);
}

.geoportal-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr);
  gap: 84px;
  align-items: start;
  margin-bottom: 66px;
}

.geoportal-detail-region {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(127, 224, 203, .2);
  border-radius: 999px;
  color: rgba(238, 243, 238, .7);
  background: rgba(238, 243, 238, .035);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.geoportal-detail-heading .display {
  max-width: 820px;
  font-size: clamp(4.2rem, 3vw, 7.9rem);
  line-height: .84;
  letter-spacing: -.078em;
}

.geoportal-detail-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.geoportal-detail-summary p {
  margin: 0;
  color: rgba(238, 243, 238, .65);
  font-size: .98rem;
  line-height: 1.72;
}

.geoportal-detail-summary .geoportal-detail-lead {
  color: rgba(238, 243, 238, .86);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.58;
}

.geoportal-detail-primary,
.geoportal-detail-cta>a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  color: #061009;
  background: linear-gradient(135deg, var(--cyan), var(--brand-bright));
  font-size: .86rem;
  font-weight: 950;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .32), 0 0 30px rgba(127, 224, 203, .14);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.geoportal-detail-primary:hover,
.geoportal-detail-cta>a:hover {
  transform: translateY(-4px);
  filter: brightness(1.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 40px rgba(127, 224, 203, .2);
}

.geoportal-browser {
  position: relative;
  overflow: hidden;
  margin-bottom: 124px;
  border: 1px solid rgba(127, 224, 203, .2);
  border-radius: 30px;
  background: rgba(4, 9, 6, .72);
  box-shadow: 0 38px 120px rgba(0, 0, 0, .42), 0 0 70px rgba(127, 224, 203, .06);
}

.geoportal-browser-bar {
  min-height: 66px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(238, 243, 238, .1);
  background: rgba(238, 243, 238, .045);
}

.geoportal-browser-dots {
  display: flex;
  gap: 7px;
}

.geoportal-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(238, 243, 238, .24);
}

.geoportal-browser-address {
  min-width: 0;
  min-height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(238, 243, 238, .1);
  border-radius: 999px;
  color: rgba(238, 243, 238, .58);
  background: rgba(0, 0, 0, .16);
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.geoportal-browser-bar>a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 850;
}

.geoportal-browser-frame {
  position: relative;
  height: clamp(520px, 70vh, 760px);
  background:
    radial-gradient(circle at 50% 20%, rgba(127, 224, 203, .08), transparent 35%),
    #07100b;
}

.geoportal-browser-frame iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.geoportal-browser-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
}

.geoportal-browser-fallback p {
  color: rgba(238, 243, 238, .68);
}

.geoportal-browser-fallback a {
  color: var(--cyan);
  font-weight: 900;
}

.geoportal-information {
  margin-bottom: 110px;
}

.geoportal-information-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 42px;
}

.geoportal-information-header h2 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 4.7vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-align: left;
}

.geoportal-information-header>p {
  margin: 0;
  color: rgba(238, 243, 238, .66);
  font-size: 1rem;
  line-height: 1.7;
}

.geoportal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.geoportal-feature {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(238, 243, 238, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(238, 243, 238, .065), rgba(238, 243, 238, .022));
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.geoportal-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 224, 203, .36);
  background: linear-gradient(145deg, rgba(127, 224, 203, .09), rgba(238, 243, 238, .025));
}

.geoportal-feature>span {
  display: block;
  margin-bottom: 44px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .12em;
}

.geoportal-feature h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.18rem;
}

.geoportal-feature p {
  color: rgba(238, 243, 238, .62);
  font-size: .88rem;
  line-height: 1.58;
}

.geoportal-information-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 28px;
  background: #eaf0eb;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
}

.geoportal-information-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.geoportal-detail-cta {
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  border: 1px solid rgba(127, 224, 203, .2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(127, 224, 203, .14), transparent 34%),
    linear-gradient(135deg, rgba(78, 154, 92, .14), rgba(238, 243, 238, .03));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .3);
}

.geoportal-detail-cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.058em;
  text-align: left;
}

.geoportal-detail-cta>a {
  flex: 0 0 auto;
}

@media (max-width: 1050px) {

  .geoportal-detail-hero,
  .geoportal-information-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .geoportal-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geoportal-detail-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .geoportal-detail-page {
    padding: 110px 0 78px;
  }

  .geoportal-detail-inner {
    width: calc(100% - 30px);
  }

  .geoportal-detail-back {
    margin-bottom: 34px;
  }

  .geoportal-detail-hero {
    margin-bottom: 42px;
  }

  .geoportal-detail-heading .display {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .geoportal-browser {
    margin-bottom: 84px;
    border-radius: 22px;
  }

  .geoportal-browser-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .geoportal-browser-bar>a {
    display: none;
  }

  .geoportal-browser-frame {
    height: 68svh;
    min-height: 500px;
  }

  .geoportal-information {
    margin-bottom: 76px;
  }

  .geoportal-information-header {
    margin-bottom: 30px;
  }

  .geoportal-information-header h2 {
    font-size: clamp(2.55rem, 13vw, 4.3rem);
  }

  .geoportal-feature-grid {
    grid-template-columns: 1fr;
  }

  .geoportal-feature {
    min-height: auto;
  }

  .geoportal-feature>span {
    margin-bottom: 26px;
  }

  .geoportal-information-visual {
    border-radius: 20px;
  }

  .geoportal-detail-cta {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .geoportal-detail-cta>a {
    width: 100%;
  }
}

/* =========================================================
   PROYECTO EN EJECUCIÓN — CARRUSEL DE IMÁGENES
========================================================= */

.geoportal-project-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 560px;

  background: #061009;
}

/* =========================================================
   CONTENEDOR DE IMÁGENES
========================================================= */

.geoportal-project-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Evita que una regla anterior aplicada al img directo
   afecte todas las imágenes del carrusel */

.geoportal-project-carousel>img {
  display: none;
}

.geoportal-project-slide {
  position: absolute;
  inset: 0;

  margin: 0;

  opacity: 0;
  visibility: hidden;

  transform: scale(1.06);

  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    transform 1s cubic-bezier(.16, 1, .3, 1);
}

.geoportal-project-slide.is-active {
  opacity: 1;
  visibility: visible;

  transform: scale(1);
}

.geoportal-project-slide img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(.82) contrast(1.08) brightness(.7);
}

/* Oscurecimiento para asegurar legibilidad */

.geoportal-project-carousel::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(90deg,
      rgba(3, 8, 5, .82) 0%,
      rgba(3, 8, 5, .42) 52%,
      rgba(3, 8, 5, .1) 100%),
    linear-gradient(180deg,
      rgba(3, 8, 5, .08) 20%,
      rgba(3, 8, 5, .78) 100%);
}

/* =========================================================
   CONTENIDO SOBRE EL CARRUSEL
========================================================= */

.geoportal-project-carousel .geoportal-project-visual-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
}

/* =========================================================
   CONTROLES ANTERIOR / SIGUIENTE
========================================================= */

.geoportal-project-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 4;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(238, 243, 238, .22);
  border-radius: 50%;

  color: var(--cyan);
  background: rgba(6, 11, 8, .54);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 1.2rem;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    transform .24s ease,
    color .24s ease,
    background .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

.geoportal-project-carousel-prev {
  left: 22px;
}

.geoportal-project-carousel-next {
  right: 22px;
}

.geoportal-project-carousel-button:hover {
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);

  box-shadow:
    0 0 24px rgba(127, 224, 203, .24);
}

.geoportal-project-carousel-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.geoportal-project-carousel-next:hover {
  transform: translateY(-50%) translateX(3px);
}

.geoportal-project-carousel-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* =========================================================
   INDICADORES
========================================================= */

.geoportal-project-carousel-dots {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 4;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 11px;

  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 999px;

  background: rgba(6, 11, 8, .5);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.geoportal-project-carousel-dots button {
  width: 8px;
  height: 8px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(238, 243, 238, .4);

  cursor: pointer;

  transition:
    width .24s ease,
    background .24s ease,
    box-shadow .24s ease;
}

.geoportal-project-carousel-dots button.is-active {
  width: 28px;

  background: var(--cyan);

  box-shadow:
    0 0 14px rgba(127, 224, 203, .42);
}

.geoportal-project-carousel-dots button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .geoportal-project-carousel {
    min-height: 520px;
  }

  .geoportal-project-carousel-button {
    width: 44px;
    height: 44px;
  }

  .geoportal-project-carousel-prev {
    left: 16px;
  }

  .geoportal-project-carousel-next {
    right: 16px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .geoportal-project-carousel {
    min-height: 620px;
  }

  .geoportal-project-slide img {
    object-position: center;
  }

  .geoportal-project-carousel::before {
    background:
      linear-gradient(180deg,
        rgba(3, 8, 5, .08) 0%,
        rgba(3, 8, 5, .34) 38%,
        rgba(3, 8, 5, .96) 100%);
  }

  .geoportal-project-carousel-button {
    top: 42%;

    width: 40px;
    height: 40px;

    font-size: 1rem;
  }

  .geoportal-project-carousel-prev {
    left: 12px;
  }

  .geoportal-project-carousel-next {
    right: 12px;
  }

  .geoportal-project-carousel-dots {
    top: 18px;
    right: 18px;
  }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

/* @media (prefers-reduced-motion: reduce) {

  .geoportal-project-slide,
  .geoportal-project-carousel-button,
  .geoportal-project-carousel-dots button {
    transition: none;
  }
} */

/* =========================================================
   PRODUCTOS Y SERVICIOS COMO SECCIONES INDEPENDIENTES
========================================================= */

/* Ambas áreas son secciones normales y no dependen de sticky ni JavaScript. */
.catalog-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 96px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(47, 107, 62, .24), transparent 42%),
    linear-gradient(180deg, #061009 0%, #08130d 58%, #060b08 100%);
}

.catalog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: url("/assets/images/ciren-landscape-bg.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(.55) brightness(.48) contrast(1.15);
}

.catalog-section .scene-products {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 112px 0 90px;
}

.catalog-section .scene-products-shell {
  width: min(1100px, calc(100% - 48px));
  height: auto;
  margin-inline: auto;
  grid-template-rows: auto auto;
}

@media (max-width: 900px) {
  .catalog-section .scene-products {
    min-height: 0;
    padding: 72px 0;
  }

  .catalog-section .scene-products-shell {
    width: min(100% - 32px, 760px);
  }

  .catalog-section .scene-products-grid.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-section {
    scroll-margin-top: 82px;
  }

  .catalog-section .scene-products {
    padding: 62px 0;
  }

  .catalog-section .scene-products-shell {
    width: calc(100% - 30px);
  }

  .catalog-section .scene-products-grid.products-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CONSOLIDACIÓN RESPONSIVA GLOBAL
========================================================= */

@media (max-width: 1024px) {

  .about-inner,
  .about-org-inner,
  .cap-inner,
  .contact-layout,
  .geoportals-inner,
  .geoportal-detail-inner,
  .mi-inner,
  .privacy-inner,
  .product-page .section-inner,
  .products-page .section-inner,
  .team-unit-inner {
    width: min(100% - 40px, 920px);
  }

  .about-card,
  .cap-card,
  .eco-card,
  .geoportal-card,
  .memory-feature-card,
  .product-card,
  .project-glass-card,
  .service-card,
  .team-member-card,
  .team-profile-card,
  .team-unit-card,
  .work-area-glass-card {
    min-width: 0;
  }
}

@media (max-width: 768px) {

  .about-inner,
  .about-org-inner,
  .cap-inner,
  .geoportals-inner,
  .geoportal-detail-inner,
  .mi-inner,
  .privacy-inner,
  .product-page .section-inner,
  .products-page .section-inner,
  .team-unit-inner {
    width: calc(100% - 32px);
  }

  .about-card-top,
  .about-memory-actions,
  .contact-form-row,
  .cta-actions,
  .geoportal-actions,
  .geoportal-detail-actions,
  .mi-actions,
  .org-actions,
  .product-modal-controls,
  .project-actions-dark {
    flex-wrap: wrap;
  }

  .about-card h2,
  .cap-card h2,
  .contact-title,
  .geoportal-card h2,
  .geoportal-detail-hero h1,
  .privacy-hero h1,
  .product-card h3,
  .product-hero h1,
  .products-hero h1,
  .project-glass-card h2,
  .service-card h3,
  .team-unit-card h2 {
    overflow-wrap: anywhere;
  }

  .contact-form-row,
  .contact-layout,
  .geoportal-feature-grid,
  .privacy-layout,
  .team-unit-grid {
    grid-template-columns: 1fr;
  }

  .contact-field,
  .contact-form,
  .contact-panel,
  .geoportal-information,
  .product-modal-copy,
  .product-modal-gallery {
    min-width: 0;
  }

  iframe,
  embed,
  object,
  table,
  pre {
    max-width: 100%;
  }

  iframe,
  embed,
  object {
    width: 100%;
  }

  table,
  pre {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {

  .about-inner,
  .about-org-inner,
  .cap-inner,
  .geoportals-inner,
  .geoportal-detail-inner,
  .mi-inner,
  .privacy-inner,
  .product-page .section-inner,
  .products-page .section-inner,
  .team-unit-inner {
    width: calc(100% - 24px);
  }

  .about-memory-actions>*,
  .cap-card-actions>*,
  .contact-submit,
  .cta-actions>*,
  .geoportal-actions>*,
  .geoportal-detail-actions>*,
  .mi-actions>*,
  .org-actions>*,
  .project-actions-dark>* {
    width: 100%;
    justify-content: center;
  }

  .about-card,
  .cap-card,
  .contact-panel,
  .eco-card,
  .geoportal-card,
  .memory-feature-card,
  .privacy-contact,
  .project-glass-card,
  .team-member-card,
  .team-profile-card,
  .team-unit-card,
  .work-area-glass-card {
    border-radius: 20px;
  }
}

@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .mobile-menu {
    place-items: start center;
  }

  .mobile-menu-inner {
    padding-top: calc(72px + env(safe-area-inset-top));
  }

  .product-modal-panel,
  .team-modal-panel {
    max-height: calc(100dvh - 16px);
  }

  .product-modal-panel {
    padding-top: 62px;
  }

  .product-modal-slider {
    max-height: 62dvh;
  }
}


/* =========================================================
   ICONOS DE ACCIÓN — TARJETAS DE GEOPORTALES
   Cada .geoportal-action es independiente: se puede eliminar
   del HTML sin afectar la distribución de los iconos restantes.
========================================================= */

.geoportal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.geoportal-action {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .18);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(6, 11, 8, .34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.geoportal-action svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.geoportal-card:hover .geoportal-action {
  border-color: rgba(127, 224, 203, .42);
  background: rgba(6, 11, 8, .58);
}

.geoportal-card:hover .geoportal-action:hover {
  transform: translateY(-3px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26);
}

@media (max-width: 680px) {
  .geoportal-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .geoportal-action {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

/* =========================================================
   FICHA INTERIOR — PROYECTO SIN GEOPORTAL
   Complemento para el CSS de geoportal-detail
========================================================= */

.geoportal-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.geoportal-detail-primary-disabled {
  cursor: not-allowed;
  color: rgba(238, 243, 238, .52);
  background: rgba(238, 243, 238, .065);
  border: 1px solid rgba(238, 243, 238, .14);
  box-shadow: none;
  filter: grayscale(1);
}

.geoportal-detail-primary-disabled:hover {
  transform: none;
  filter: grayscale(1);
  box-shadow: none;
}

.geoportal-detail-document {
  min-height: 56px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(127, 224, 203, .055);
  font-size: .86rem;
  font-weight: 900;
  transition:
    transform .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.geoportal-detail-document svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.geoportal-detail-document:hover {
  transform: translateY(-3px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28),
    0 0 26px rgba(127, 224, 203, .15);
}

.geoportal-project-visual {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  margin-bottom: 124px;
  overflow: hidden;
  border: 1px solid rgba(127, 224, 203, .2);
  border-radius: 30px;
  background: #061009;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .42),
    0 0 70px rgba(127, 224, 203, .06);
}

.geoportal-project-visual>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.78) brightness(.62) contrast(1.05);
  transition:
    transform .8s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

.geoportal-project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, .06), rgba(3, 8, 5, .24) 42%, rgba(3, 8, 5, .95) 100%),
    linear-gradient(90deg, rgba(3, 8, 5, .72), transparent 64%);
}

.geoportal-project-visual:hover>img {
  transform: scale(1.035);
  filter: saturate(.96) brightness(.72) contrast(1.05);
}

.geoportal-project-visual-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.geoportal-project-visual-overlay>div {
  max-width: 760px;
}

.geoportal-project-status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 11, 8, .48);
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.geoportal-project-visual-overlay h2 {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4.4vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.06em;
  text-align: left;
}

.geoportal-project-visual-overlay p {
  max-width: 680px;
  margin: 0;
  color: rgba(238, 243, 238, .72);
  font-size: .98rem;
  line-height: 1.65;
}

.geoportal-project-visual-overlay>a {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(127, 224, 203, .3);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 11, 8, .52);
  font-size: .82rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  transition:
    transform .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.geoportal-project-visual-overlay>a:hover {
  transform: translateY(-3px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 900px) {
  .geoportal-project-visual-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .geoportal-detail-actions {
    align-items: stretch;
  }

  .geoportal-detail-primary-disabled,
  .geoportal-detail-document {
    width: 100%;
  }

  .geoportal-project-visual {
    min-height: 560px;
    margin-bottom: 84px;
    border-radius: 22px;
  }

  .geoportal-project-visual-overlay {
    padding: 28px 22px;
  }

  .geoportal-project-visual-overlay h2 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .geoportal-project-visual-overlay>a {
    width: 100%;
    justify-content: center;
  }
}


/* Enlaces de acción dentro de las tarjetas de geoportales */


/* Enlaces de acción dentro de las tarjetas de geoportales */
.geoportal-action {
  cursor: pointer;
}

.geoportal-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.geoportal-card-centered {
  grid-column: 3 / span 2 !important;
}

.geoportal-card {
  position: relative;
}

/* Cubre toda la tarjeta */
.geoportal-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

/* El contenido queda visualmente sobre el fondo */
.geoportal-card-top,
.geoportal-card-copy {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

/* Los botones deben quedar sobre el enlace general */
.geoportal-actions {
  position: relative;
  z-index: 4;
}

.geoportal-action {
  position: relative;
  z-index: 5;
}

/* Foco accesible del enlace general */
.geoportal-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* =========================================================
   CATASTROS — 6 tarjetas (3 arriba + 3 abajo)
   ========================================================= */

/* .area-cadastre-page .project-glass-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-cadastre-page .project-glass-card {
  position: relative;
}

.area-cadastre-page .project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.area-cadastre-page .project-card-content,
.area-cadastre-page .project-actions-dark {
  position: relative;
}

.area-cadastre-page .project-card-content {
  z-index: 2;
  pointer-events: none;
}

.area-cadastre-page .project-actions-dark {
  z-index: 3;
}

.area-cadastre-page .project-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.area-cadastre-page .project-in-progress {
  filter: grayscale(1);
  opacity: .68;
  background: linear-gradient(
    180deg,
    rgba(238, 243, 238, .045),
    rgba(238, 243, 238, .018)
  );
}

.area-cadastre-page .project-in-progress:hover {
  filter: grayscale(1);
  opacity: .78;
  border-color: rgba(238, 243, 238, .25);
  background: linear-gradient(
    180deg,
    rgba(238, 243, 238, .065),
    rgba(238, 243, 238, .025)
  );
}

.area-cadastre-page .project-in-progress .tag,
.area-cadastre-page .project-in-progress .project-actions-dark a {
  color: rgba(238, 243, 238, .55);
}

.area-cadastre-page .project-in-progress .project-actions-dark a:hover {
  color: #061009;
  background: rgba(238, 243, 238, .78);
  border-color: rgba(238, 243, 238, .78);
}

@media (max-width: 1050px) {
  .area-cadastre-page .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .area-cadastre-page .project-glass-grid {
    grid-template-columns: 1fr;
  }
} */

/* =========================================================
   CATASTROS — 6 tarjetas (3 arriba + 3 abajo)
   ========================================================= */

.area-cadastre-page .project-glass-gridarea-detail-dark {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-cadastre-page .project-glass-card {
  position: relative;
}

.area-cadastre-page .project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.area-cadastre-page .project-card-content,
.area-cadastre-page .project-actions-dark {
  position: relative;
}

.area-cadastre-page .project-card-content {
  z-index: 2;
  pointer-events: none;
}

.area-cadastre-page .project-actions-dark {
  z-index: 3;
}

.area-cadastre-page .project-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.area-cadastre-page .project-in-progress {
  opacity: .72;
  border-color: rgba(238, 243, 238, .12);
  background: linear-gradient(180deg,
      rgba(238, 243, 238, .045),
      rgba(238, 243, 238, .018));
}

.area-cadastre-page .project-in-progress:hover {
  opacity: .82;
  transform: translateY(-8px);
  border-color: rgba(238, 243, 238, .25);
  background: linear-gradient(180deg,
      rgba(238, 243, 238, .065),
      rgba(238, 243, 238, .025));
}

.area-cadastre-page .project-in-progress .tag,
.area-cadastre-page .project-in-progress h2,
.area-cadastre-page .project-in-progress p {
  color: rgba(238, 243, 238, .5);
}

/* Documento y productos permanecen deshabilitados visualmente */
.area-cadastre-page .project-in-progress .project-actions-dark a:nth-child(2),
.area-cadastre-page .project-in-progress .project-actions-dark a:nth-child(3) {
  color: rgba(238, 243, 238, .32);
  background: rgba(238, 243, 238, .025);
  border-color: rgba(238, 243, 238, .10);
  pointer-events: none;
}

/* El botón de sitio web conserva el color normal porque llevará
   a la futura página informativa del proyecto en ejecución */
.area-cadastre-page .project-in-progress .project-actions-dark a:first-child {
  color: var(--cyan);
  background: rgba(238, 243, 238, .055);
  border-color: rgba(238, 243, 238, .16);
  pointer-events: auto;
}

.area-cadastre-page .project-in-progress .project-actions-dark a:first-child:hover {
  transform: translateY(-3px);
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 1050px) {
  .area-cadastre-page .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .area-cadastre-page .project-glass-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DETALLE DE PROYECTO EN EJECUCIÓN
   Complemento para styles.css
   ========================================================= */

.project-detail-page-progress .geoportal-detail-primary-disabled {
  color: rgba(238, 243, 238, .68);
  background: rgba(238, 243, 238, .055);
  border: 1px solid rgba(238, 243, 238, .16);
  cursor: default;
}

.project-detail-page-progress .geoportal-project-status {
  color: var(--cyan);
}

.project-detail-page-progress .project-information {
  margin-top: 88px;
}

.project-detail-page-progress .geoportal-feature {
  min-height: 230px;
}

@media (max-width: 760px) {
  .project-detail-page-progress .project-information {
    margin-top: 60px;
  }
}

/* =========================================================
   CATASTROS — IMAGEN DE FONDO EN TARJETAS DE PROYECTO
   Reemplaza las rutas de las imágenes directamente en el HTML.
   ========================================================= */

.area-cadastre-page .project-glass-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a120d;
}

.area-cadastre-page .project-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.area-cadastre-page .project-card-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.76) brightness(.60) contrast(1.08);
  transform: scale(1.01);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1),
    filter .4s ease;
}

/* Oscurecimiento para mantener legibles el título, texto e iconos */
.area-cadastre-page .project-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, .32) 0%,
      rgba(6, 11, 8, .67) 44%,
      rgba(6, 11, 8, .94) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, .34),
      transparent 70%);
  transition: background .35s ease;
}

.area-cadastre-page .project-card-link {
  z-index: 2;
}

.area-cadastre-page .project-card-content {
  z-index: 3;
}

.area-cadastre-page .project-actions-dark {
  z-index: 4;
}

.area-cadastre-page .project-glass-card:hover .project-card-bg img {
  transform: scale(1.075);
  filter: saturate(.98) brightness(.90) contrast(1.08);
}

.area-cadastre-page .project-glass-card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, .22) 0%,
      rgba(6, 11, 8, .61) 44%,
      rgba(6, 11, 8, .92) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, .28),
      transparent 70%);
}

/* Los proyectos en ejecución conservan su tratamiento gris */
.area-cadastre-page .project-in-progress .project-card-bg img {
  filter: grayscale(1) saturate(0) brightness(.60) contrast(1.04);
}

.area-cadastre-page .project-in-progress:hover .project-card-bg img {
  filter: grayscale(1) saturate(0) brightness(.90) contrast(1.04);
}

@media (max-width: 640px) {
  .area-cadastre-page .project-card-bg img {
    object-position: center;
  }
}

/* =========================================================
   ÁREAS DE TRABAJO — RESPONSIVE COMPLETO
========================================================= */

/* Notebook y tablet horizontal */

@media (max-width: 1280px) {

  .work-areas-page {
    padding-top: 120px;
    padding-bottom: 90px;
  }

  .work-areas-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 42px;
  }

  .work-areas-hero .display {
    max-width: 900px;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
  }

  .work-areas-hero .lead {
    max-width: 760px;
  }

  .work-areas-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .work-area-card-image {
    min-height: 400px;
  }
}

/* Tablet vertical */

@media (max-width: 900px) {

  .work-areas-page {
    padding-top: 108px;
    padding-bottom: 74px;
  }

  .work-areas-page .section-inner {
    width: min(100% - 36px, 760px);
  }

  .work-areas-hero {
    gap: 22px;
    margin-bottom: 34px;
  }

  .work-areas-hero .display {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.94;
  }

  .work-areas-hero .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .work-areas-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .work-area-card-image {
    min-height: 380px;
    padding: 24px;
    border-radius: 22px;
  }

  .work-area-card-image h2 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
  }

  .work-area-card-image p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .work-area-card-image .work-area-icon {
    width: 58px;
    height: 58px;
  }

  .work-area-card-image .work-area-icon svg {
    width: 54px;
    height: 54px;
  }
}

/* Mobile */

@media (max-width: 640px) {

  .work-areas-page {
    padding-top: 96px;
    padding-bottom: 60px;
  }

  .work-areas-page .section-inner {
    width: calc(100% - 28px);
  }

  .work-areas-hero {
    margin-bottom: 30px;
  }

  .work-areas-hero .kicker {
    margin-bottom: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .work-areas-hero .display {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
  }

  .work-areas-hero .lead {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .work-areas-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-area-card-image {
    min-height: 390px;
    padding: 22px;
    border-radius: 22px;
  }

  .work-area-card-image .work-area-top {
    margin-bottom: 24px;
  }

  .work-area-card-image .work-area-icon {
    width: 52px;
    height: 52px;
  }

  .work-area-card-image .work-area-icon svg {
    width: 48px;
    height: 48px;
  }

  .work-area-card-image .tag {
    max-width: 150px;
    font-size: 0.62rem;
    line-height: 1.35;
    text-align: right;
  }

  .work-area-card-image h2 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.02;
  }

  .work-area-card-image p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .work-area-card-image .area-arrow {
    width: 42px;
    height: 42px;
    margin-top: 24px;
  }

  /* En táctil mantenemos la imagen un poco más clara */

  .work-area-card-bg {
    filter:
      saturate(.78) contrast(1.06) brightness(.58);
  }
}

/* Móviles pequeños */

@media (max-width: 420px) {

  .work-areas-page {
    padding-top: 90px;
  }

  .work-areas-page .section-inner {
    width: calc(100% - 24px);
  }

  .work-areas-hero .display {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .work-area-card-image {
    min-height: 360px;
    padding: 20px;
  }

  .work-area-card-image .tag {
    max-width: 125px;
    font-size: 0.58rem;
  }

  .work-area-card-image h2 {
    font-size: clamp(1.35rem, 7.4vw, 1.8rem);
  }

  .work-area-card-image p {
    font-size: 0.86rem;
  }
}

/* Dispositivos táctiles: evita depender exclusivamente del hover */

@media (hover: none) {

  .work-area-card-image:hover {
    transform: none;
  }

  .work-area-card-image:hover .work-area-card-bg {
    transform: scale(1.02);
  }

  .work-area-card-image:active {
    transform: scale(0.985);
    border-color: rgba(127, 224, 203, 0.42);
  }

  .work-area-card-image:active .work-area-card-bg {
    transform: scale(1.06);
    filter:
      saturate(.95) contrast(1.08) brightness(.78);
  }
}

/* =========================================================
   TARJETAS DE PROYECTOS — ESTILO GENERAL PARA TODAS LAS ÁREAS

   Aplica a:
   - Agua
   - Suelo
   - Catastros
   - Agrointeligencia
========================================================= */

/* =========================================================
   GRILLA
========================================================= */

.area-detail-dark .project-glass-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;

  width: 100%;
}

/* =========================================================
   TARJETA
========================================================= */

.area-detail-dark .project-glass-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-width: 0;
  min-height: 520px;
  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid rgba(238, 243, 238, 0.15);
  border-radius: 26px;

  color: var(--ink);
  background: #061009;

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.32s cubic-bezier(.16, 1, .3, 1),
    border-color 0.28s ease,
    box-shadow 0.32s ease;
}

.area-detail-dark .project-glass-card:hover {
  transform: translateY(-8px);

  border-color: rgba(127, 224, 203, 0.42);

  box-shadow:
    0 38px 96px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(127, 224, 203, 0.06);
}

/* =========================================================
   IMAGEN DE FONDO
========================================================= */

.area-detail-dark .project-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  overflow: hidden;
}

.area-detail-dark .project-card-bg img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(0.75) brightness(0.60) contrast(1.08);

  transform: scale(1.02);

  transition:
    transform 0.65s cubic-bezier(.16, 1, .3, 1),
    filter 0.4s ease;
}

/* Oscurecimiento para mantener legible el contenido */

.area-detail-dark .project-glass-card::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, 0.16) 0%,
      rgba(6, 11, 8, 0.48) 42%,
      rgba(6, 11, 8, 0.97) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, 0.34),
      transparent 75%);

  transition: background 0.35s ease;
}

.area-detail-dark .project-glass-card:hover .project-card-bg img {
  transform: scale(1.08);

  filter:
    saturate(1) brightness(0.90) contrast(1.08);
}

.area-detail-dark .project-glass-card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, 0.1) 0%,
      rgba(6, 11, 8, 0.42) 42%,
      rgba(6, 11, 8, 0.94) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, 0.26),
      transparent 75%);
}

/* =========================================================
   ENLACE GENERAL DE LA TARJETA
========================================================= */

.area-detail-dark .project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;

  border-radius: inherit;
}

.area-detail-dark .project-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -5px;
}

/* =========================================================
   CONTENIDO
========================================================= */

.area-detail-dark .project-card-content {
  position: relative;
  z-index: 2;

  margin-top: auto;

  pointer-events: none;
}

.area-detail-dark .project-card-content .tag {
  display: block;

  margin-bottom: 14px;

  color: var(--cyan);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.9);
}

.area-detail-dark .project-card-content h2 {
  margin: 0 0 14px;

  color: #f3f7f1;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 1.45vw, 1.7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-align: left;

  text-shadow:
    0 5px 24px rgba(0, 0, 0, 0.9);
}

.area-detail-dark .project-card-content p {
  margin: 0;

  color: rgba(243, 247, 241, 0.72);

  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;

  text-shadow:
    0 3px 16px rgba(0, 0, 0, 0.88);
}

/* =========================================================
   ACCIONES
========================================================= */

.area-detail-dark .project-actions-dark {
  position: relative;
  z-index: 3;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  width: 100%;
  margin-top: 24px;
}

.area-detail-dark .project-actions-dark a,
.area-detail-dark .project-actions-dark span {
  min-width: 0;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(238, 243, 238, 0.18);
  border-radius: 14px;

  color: var(--cyan);
  background: rgba(6, 11, 8, 0.56);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.area-detail-dark .project-actions-dark a:hover {
  transform: translateY(-3px);

  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(127, 224, 203, 0.16);
}

.area-detail-dark .project-actions-dark svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   TARJETA DESHABILITADA

   Para deshabilitar una tarjeta:
   <article class="
     project-glass-card
     project-glass-disabled
     reveal
   ">
========================================================= */

.area-detail-dark .project-glass-disabled {
  filter: grayscale(1);
  opacity: 0.62;
}

.area-detail-dark .project-glass-disabled:hover {
  transform: none;

  border-color: rgba(238, 243, 238, 0.15);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28);
}

.area-detail-dark .project-glass-disabled .project-card-link {
  pointer-events: none;
}

.area-detail-dark .project-glass-disabled .project-card-bg img {
  filter:
    grayscale(1) saturate(0) brightness(0.60) contrast(1.04);
}

.area-detail-dark .project-glass-disabled:hover .project-card-bg img {
  transform: scale(1.02);

  filter:
    grayscale(1) saturate(0) brightness(0.60) contrast(1.04);
}

.area-detail-dark .project-glass-disabled .project-actions-dark a,
.area-detail-dark .project-glass-disabled .project-actions-dark span {
  color: rgba(238, 243, 238, 0.34);
  background: rgba(238, 243, 238, 0.025);
  border-color: rgba(238, 243, 238, 0.1);

  pointer-events: none;
}

/* =========================================================
   NOTEBOOK
========================================================= */

@media (max-width: 1280px) {

  .area-detail-dark .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-detail-dark .project-glass-card {
    min-height: 480px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .area-detail-dark .project-glass-grid {
    gap: 18px;
  }

  .area-detail-dark .project-glass-card {
    min-height: 440px;
    padding: 24px;
  }

  .area-detail-dark .project-card-content h2 {
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .area-detail-dark .project-glass-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .area-detail-dark .project-glass-card {
    min-height: 430px;
    padding: 22px;

    border-radius: 22px;
  }

  .area-detail-dark .project-card-content h2 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .area-detail-dark .project-card-content p {
    font-size: 0.88rem;
  }

  .area-detail-dark .project-actions-dark {
    margin-top: 20px;
  }

  .area-detail-dark .project-actions-dark a,
  .area-detail-dark .project-actions-dark span {
    height: 46px;
  }
}

/* =========================================================
   DISPOSITIVOS TÁCTILES
========================================================= */

@media (hover: none) {

  .area-detail-dark .project-glass-card:hover {
    transform: none;
  }

  .area-detail-dark .project-glass-card:hover .project-card-bg img {
    transform: scale(1.02);

    filter:
      saturate(0.8) brightness(0.90) contrast(1.08);
  }

  .area-detail-dark .project-glass-card:active {
    transform: scale(0.985);
    border-color: rgba(127, 224, 203, 0.42);
  }
}

/* =========================================================
   AGUA, SUELO Y AGROINTELIGENCIA
   4 tarjetas distribuidas 2 arriba + 2 abajo

   No modifica la página de Catastros.
========================================================= */

:is(.area-agro-page) .project-glass-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px;
}

/* =========================================================
   TARJETAS MÁS ANCHAS Y MENOS ALTAS
========================================================= */

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-card {
  width: 100%;
  min-width: 0;

  /*
   * Sobrescribe los 520 px del estilo general.
   * La tarjeta queda más horizontal y similar a Catastros.
   */
  min-height: 390px;

  padding: 30px;

  justify-content: flex-end;
}

/* =========================================================
   CONTENIDO
========================================================= */

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-card-content {
  width: min(100%, 560px);
  margin-top: auto;
}

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-card-content h2 {
  max-width: 540px;

  margin-bottom: 12px;

  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-card-content p {
  max-width: 500px;

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   DEGRADADO PARA TARJETAS HORIZONTALES
========================================================= */

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-card::before {
  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, 0.08) 0%,
      rgba(6, 11, 8, 0.3) 34%,
      rgba(6, 11, 8, 0.96) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, 0.42) 0%,
      rgba(6, 11, 8, 0.08) 100%);
}

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(6, 11, 8, 0.04) 0%,
      rgba(6, 11, 8, 0.25) 34%,
      rgba(6, 11, 8, 0.94) 100%),
    linear-gradient(90deg,
      rgba(6, 11, 8, 0.34) 0%,
      rgba(6, 11, 8, 0.05) 100%);
}

/* =========================================================
   BOTONES

   Se mantienen abajo y no ocupan todo el ancho.
========================================================= */

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-actions-dark {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 22px;
}

:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-actions-dark a,
:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-actions-dark span {
  width: 64px;
  min-width: 64px;
  height: 46px;
}

/* =========================================================
   NOTEBOOK Y TABLET
========================================================= */

@media (max-width: 1050px) {

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-card {
    min-height: 400px;
    padding: 26px;
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-card-content h2 {
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-card {
    min-height: 420px;
    padding: 24px;

    border-radius: 22px;
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-card-content h2 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-card {
    min-height: 400px;
    padding: 21px;
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-card-content h2 {
    font-size: clamp(1.3rem, 7.2vw, 1.7rem);
  }

  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-actions-dark a,
  :is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-actions-dark span {
    width: 58px;
    min-width: 58px;
    height: 44px;
  }
}

/* =========================================================
   FIX FINAL — DISTRIBUCIÓN DE TARJETAS POR ÁREA

   Catastros:
   - Desktop/notebook: 3 columnas
   - Tablet: 2 columnas
   - Mobile: 1 columna

   Agua, Suelo y Agrointeligencia:
   - Desktop/tablet: 2 columnas
   - Mobile: 1 columna
========================================================= */

/* =========================================================
   CATASTROS — 3 × 2
========================================================= */

.area-detail-dark.area-cadastre-page .project-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Tarjetas proporcionadas para la grilla de tres */

.area-detail-dark.area-cadastre-page .project-glass-card {
  width: 100%;
  min-width: 0;
  min-height: 430px;
}

/* =========================================================
   AGUA, SUELO Y AGROINTELIGENCIA — 2 × 2
========================================================= */

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-card {
  width: 100%;
  min-width: 0;
  min-height: 390px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .area-detail-dark.area-cadastre-page .project-glass-grid,
  .area-detail-dark:is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .area-detail-dark.area-cadastre-page .project-glass-card,
  .area-detail-dark:is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-card {
    min-height: 410px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .area-detail-dark.area-cadastre-page .project-glass-grid,
  .area-detail-dark:is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .area-detail-dark.area-cadastre-page .project-glass-card,
  .area-detail-dark:is(.area-water-page,
    .area-soil-page,
    .area-agro-page) .project-glass-card {
    min-height: 420px;
  }
}

/* =========================================================
   CIREN — POLÍTICAS DE PRIVACIDAD
   Archivo: politicas-privacidad.css
========================================================= */

.privacy-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 150px 0 120px;
  overflow: hidden;

  background:
    radial-gradient(circle at 84% 12%,
      rgba(78, 154, 92, 0.15),
      transparent 30%),
    radial-gradient(circle at 8% 72%,
      rgba(127, 224, 203, 0.07),
      transparent 28%),
    linear-gradient(180deg,
      #061009 0%,
      #08130d 54%,
      #050906 100%);
}

.privacy-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(238, 243, 238, 0.035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(238, 243, 238, 0.035) 1px,
      transparent 1px);

  background-size: 56px 56px;

  mask-image:
    linear-gradient(to bottom,
      transparent,
      #000 8%,
      #000 94%,
      transparent);

  -webkit-mask-image:
    linear-gradient(to bottom,
      transparent,
      #000 8%,
      #000 94%,
      transparent);
}

.privacy-inner {
  width: min(1180px, calc(100% - 48px));
}

/* =========================================================
   HERO
========================================================= */

.privacy-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr) minmax(340px, 0.72fr);

  gap: 72px;
  align-items: end;

  padding-bottom: 58px;
  margin-bottom: 54px;

  border-bottom: 1px solid rgba(238, 243, 238, 0.13);
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 34px;

  color: var(--cyan);

  font-size: 0.82rem;
  font-weight: 800;

  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.privacy-back-link:hover {
  color: var(--ink);
  transform: translateX(-4px);
}

.privacy-title {
  max-width: 820px;
  margin: 0;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 6vw, 7.6rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.privacy-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.privacy-lead {
  max-width: 540px;
  margin: 0;

  color: rgba(238, 243, 238, 0.72);

  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.68;
}

.privacy-update {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 9px 13px;

  border: 1px solid rgba(127, 224, 203, 0.18);
  border-radius: 999px;

  background: rgba(127, 224, 203, 0.045);
}

.privacy-update span,
.privacy-update strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-update span {
  color: rgba(238, 243, 238, 0.5);
}

.privacy-update strong {
  color: var(--cyan);
}

/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

/* =========================================================
   ÍNDICE LATERAL
========================================================= */

.privacy-index {
  position: sticky;
  top: 108px;

  padding: 22px;

  border: 1px solid rgba(238, 243, 238, 0.13);
  border-radius: 22px;

  background:
    linear-gradient(145deg,
      rgba(238, 243, 238, 0.065),
      rgba(238, 243, 238, 0.022));

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.privacy-index-label {
  margin-bottom: 18px;
  padding-bottom: 14px;

  border-bottom: 1px solid rgba(238, 243, 238, 0.1);

  color: var(--cyan);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-index nav {
  display: grid;
  gap: 4px;
}

.privacy-index a {
  padding: 9px 10px;

  border-radius: 10px;

  color: rgba(238, 243, 238, 0.58);

  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.privacy-index a:hover {
  color: var(--cyan);
  background: rgba(127, 224, 203, 0.065);
  transform: translateX(4px);
}

/* =========================================================
   CONTENIDO
========================================================= */

.privacy-content {
  min-width: 0;
}

.privacy-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;

  margin-bottom: 22px;
  padding: 18px 20px;

  border: 1px solid rgba(232, 185, 74, 0.25);
  border-radius: 18px;

  background: rgba(232, 185, 74, 0.055);
}

.privacy-notice-label {
  padding: 5px 8px;

  border-radius: 999px;

  color: #061009;
  background: var(--amber);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.privacy-notice p {
  margin: 0;

  color: rgba(238, 243, 238, 0.7);

  font-size: 0.86rem;
  line-height: 1.55;
}

.privacy-section {
  scroll-margin-top: 110px;

  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;

  padding: 38px 0;

  border-bottom: 1px solid rgba(238, 243, 238, 0.12);
}

.privacy-section:first-of-type {
  border-top: 1px solid rgba(238, 243, 238, 0.12);
}

.privacy-section-number {
  padding-top: 7px;

  color: var(--cyan);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.privacy-section h2 {
  max-width: 780px;
  margin: 0 0 18px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: left;
}

.privacy-section p {
  max-width: 760px;
  margin: 0;

  color: rgba(238, 243, 238, 0.68);

  font-size: 0.98rem;
  line-height: 1.72;
  text-align: left;
}

.privacy-section p+p {
  margin-top: 16px;
}

.privacy-section ul {
  max-width: 760px;
  margin: 18px 0;
  padding-left: 20px;

  display: grid;
  gap: 9px;
}

.privacy-section li {
  padding-left: 6px;

  color: rgba(238, 243, 238, 0.7);

  font-size: 0.95rem;
  line-height: 1.55;
}

.privacy-section li::marker {
  color: var(--cyan);
}

/* =========================================================
   CONTACTO FINAL
========================================================= */

.privacy-contact {
  margin-top: 22px;
  padding: 34px;

  border: 1px solid rgba(127, 224, 203, 0.2);
  border-radius: 24px;

  background:
    radial-gradient(circle at 88% 12%,
      rgba(127, 224, 203, 0.12),
      transparent 34%),
    linear-gradient(145deg,
      rgba(78, 154, 92, 0.12),
      rgba(238, 243, 238, 0.025));
}

.privacy-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 52px;
  margin-top: 26px;
  padding: 13px 24px;

  border-radius: 999px;

  color: #061009;

  background:
    linear-gradient(135deg,
      var(--cyan),
      var(--brand-bright));

  font-size: 0.84rem;
  font-weight: 900;

  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(127, 224, 203, 0.13);

  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
}

.privacy-contact-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);

  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(127, 224, 203, 0.2);
}

.privacy-contact-button span {
  transition: transform 0.24s ease;
}

.privacy-contact-button:hover span {
  transform: translateX(5px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .privacy-page {
    padding-top: 122px;
  }

  .privacy-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .privacy-index {
    position: relative;
    top: auto;
  }

  .privacy-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .privacy-page {
    padding: 104px 0 72px;
  }

  .privacy-inner {
    width: calc(100% - 30px);
  }

  .privacy-hero {
    padding-bottom: 38px;
    margin-bottom: 34px;
  }

  .privacy-back-link {
    margin-bottom: 26px;
  }

  .privacy-title {
    font-size: clamp(3rem, 15vw, 4.8rem);
    line-height: 0.9;
  }

  .privacy-index {
    padding: 18px;
    border-radius: 18px;
  }

  .privacy-index nav {
    grid-template-columns: 1fr;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0;
  }

  .privacy-section-number {
    padding-top: 0;
  }

  .privacy-section h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 0.91rem;
  }

  .privacy-notice {
    grid-template-columns: 1fr;
  }

  .privacy-contact {
    padding: 26px 22px;
  }

  .privacy-contact-button {
    width: 100%;
  }
}

/* =========================================================
   POLÍTICAS DE PRIVACIDAD — CARGA VISIBLE INMEDIATA
========================================================= */

/* El encabezado y la estructura principal se ven al cargar */

.privacy-page .privacy-hero,
.privacy-page .privacy-layout,
.privacy-page .privacy-index,
.privacy-page .privacy-content {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Neutraliza la animación reveal solo dentro de esta página */

.privacy-page .reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

/********************************************/
.logo-ideminagri-network {
  width: 150px;
}

/* .bg-networks {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--verde-obscuro) 78%, transparent),
      color-mix(in srgb, var(--verde-obscuro) 42%, transparent));

  border: 1px solid rgba(255, 255, 255, 0.14);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(16px);

  border-radius: 90px;

  padding-top: 10px;

} */

/* =========================================================
   CATASTROS — TARJETAS DE PROYECTOS EN EJECUCIÓN
   Contenido alineado arriba y estado más visible
========================================================= */

.area-cadastre-page .project-in-progress {
  justify-content: flex-start;
}

/* Sube el contenido hacia la parte superior */

.area-cadastre-page .project-in-progress .project-card-content {
  width: 100%;
  margin-top: 0;
  padding-top: 34px;
}

/* Estado más grande y visible */

.area-cadastre-page .project-in-progress .project-card-content .tag {
  display: inline-flex;
  align-items: center;

  margin: 0 0 18px;
  padding: 8px 12px;

  border: 1px solid rgba(127, 224, 203, 0.25);
  border-radius: 999px;

  color: var(--cyan);
  background: rgba(127, 224, 203, 0.07);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mantiene los botones abajo */

.area-cadastre-page .project-in-progress .project-actions-dark {
  margin-top: auto;
}

/* Evita demasiado espacio sobre el título */

.area-cadastre-page .project-in-progress .project-card-content h2 {
  margin-top: 0;
}

/* =========================================================
   AGUA, SUELO Y AGROINTELIGENCIA
   Títulos alineados hacia la parte superior
========================================================= */

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-glass-card {
  justify-content: flex-start;
}

/* Sube el contenido dentro de la tarjeta */

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-card-content {
  width: 100%;
  margin-top: 0;
  padding-top: 34px;
}

/* Elimina el margen superior heredado del h2 */

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-card-content h2 {
  margin-top: 0;
}

/* Mantiene los botones pegados abajo */

.area-detail-dark:is(.area-water-page,
  .area-soil-page,
  .area-agro-page) .project-actions-dark {
  margin-top: auto;
}

/* =========================================================
   PRODUCTOS INTERNOS — CATÁLOGO EN TARJETAS

   Convierte:
   .product-list + .product-item

   De lista horizontal a grilla de tarjetas.
========================================================= */

.product-page .product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;

  border-top: 0;
}

/* =========================================================
   TARJETA
========================================================= */

.product-page .product-item {
  position: relative;
  isolation: isolate;

  min-width: 0;
  min-height: 480px;
  padding: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(238, 243, 238, 0.15);
  border-radius: 26px;

  color: inherit;
  background:
    linear-gradient(180deg,
      rgba(238, 243, 238, 0.065),
      rgba(238, 243, 238, 0.025));

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.26);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform: none;

  transition:
    transform 0.3s cubic-bezier(.16, 1, .3, 1),
    border-color 0.28s ease,
    box-shadow 0.3s ease,
    background 0.28s ease;
}

.product-page .product-item:hover {
  transform: translateY(-8px);

  border-color: rgba(127, 224, 203, 0.42);

  background:
    linear-gradient(180deg,
      rgba(127, 224, 203, 0.1),
      rgba(238, 243, 238, 0.035));

  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.38);
}

/* Neutraliza las decoraciones de la versión lista */

.product-page .product-item::before,
.product-page .product-item::after {
  display: none;
}

/* =========================================================
   IMAGEN
========================================================= */

.product-page .product-item-media {
  position: relative;

  width: 100%;
  height: 240px;

  overflow: hidden;

  border: 0;
  border-radius: 0;

  background: #0c1710;

  transform: none;
}

.product-page .product-item-media::before {
  display: none;
}

.product-page .product-item-media::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background:
    linear-gradient(180deg,
      transparent 42%,
      rgba(6, 11, 8, 0.72) 100%);

  transition: background 0.35s ease;
}

.product-page .product-item-media img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(0.85) brightness(0.60) contrast(1.04);

  transition:
    transform 0.6s cubic-bezier(.16, 1, .3, 1),
    filter 0.38s ease;
}

.product-page .product-item:hover .product-item-media {
  transform: none;

  border-color: transparent;
  box-shadow: none;
}

.product-page .product-item:hover .product-item-media img {
  transform: scale(1.07);

  filter:
    saturate(1.05) brightness(0.90) contrast(1.04);
}

.product-page .product-item:hover .product-item-media::after {
  background:
    linear-gradient(180deg,
      transparent 55%,
      rgba(6, 11, 8, 0.45) 100%);
}

/* =========================================================
   NÚMERO
========================================================= */

.product-page .product-item-number {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;

  min-width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(127, 224, 203, 0.24);
  border-radius: 999px;

  color: var(--cyan);
  background: rgba(6, 11, 8, 0.62);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.product-page .product-item:hover .product-item-number {
  transform: none;

  color: #061009;
  background: var(--cyan);

  text-shadow: none;
}

/* =========================================================
   CONTENIDO
========================================================= */

.product-page .product-item-content {
  min-width: 0;
  min-height: 100px;
  padding: 24px 24px 0px;
  display: flex;
  flex-direction: column;
}

.product-page .product-item-category {
  margin: 0 0 12px;

  color: var(--cyan);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-page .product-item-content h3 {
  margin: 0 0 14px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-page .product-item:hover .product-item-content h3 {
  color: var(--cyan);
  transform: none;
}

.product-page .product-item-content>p:last-child {
  max-width: none;
  margin: 0;

  color: rgba(238, 243, 238, 0.65);

  font-size: 0.88rem;
  line-height: 1.55;
}

/* =========================================================
   BOTÓN / FLECHA
========================================================= */

.product-page .product-item-action {
  width: calc(100% - 48px);
  height: 46px;
  margin: auto 24px 24px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(127, 224, 203, 0.22);
  border-radius: 14px;

  color: var(--cyan);
  background: rgba(238, 243, 238, 0.04);

  transition:
    color 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.product-page .product-item:hover .product-item-action {
  transform: none;

  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);

  box-shadow: none;
}

/* =========================================================
   NOTEBOOK / TABLET
========================================================= */

@media (max-width: 1100px) {

  .product-page .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-page .product-item {
    min-height: 460px;
  }

  .product-page .product-item-media {
    width: 100%;
    height: 230px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

  .product-page .product-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-page .product-item {
    min-height: 440px;
    padding: 0;
  }

  .product-page .product-item:hover {
    transform: none;
  }

  .product-page .product-item-media {
    display: block;
    width: 100%;
    height: 220px;
  }

  .product-page .product-item-content {
    min-height: auto;
    padding: 22px 22px 18px;
  }

  .product-page .product-item-content h3 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  .product-page .product-item-action {
    width: calc(100% - 44px);
    margin: auto 22px 22px;
  }
}

/*=========================================================
   ICONOS DESHABILITADOS — USO GLOBAL

   Agrega class="icon-disable" y aria-disabled="true" al
   enlace o botón que todavía no tenga una URL disponible.
========================================================= */

.icon-disable,
.icon-disable:hover,
.icon-disable:focus,
.icon-disable:active {
  color: rgba(238, 243, 238, 0.34) !important;
  background: rgba(238, 243, 238, 0.025) !important;
  border-color: rgba(238, 243, 238, 0.1) !important;
  box-shadow: none !important;
  opacity: 0.65;
  transform: none !important;
  pointer-events: none !important;
  cursor: not-allowed;
  filter: grayscale(1);
  user-select: none;
}

/*Tarjetas en home*/
/* =========================================================
   Extensión del sistema visual de styles.css para:
   - hero compacto con franja de novedades (3 layouts x 2 estados)
   - vista "más información" (evento)
   - vista "capacitaciones"
   No modifica styles.css: sólo agrega selectores nuevos o
   selectores con clase modificadora (.hero-compact, .nv-*).
========================================================= */

/* ---------- 1. Hero compacto: sube y reduce titular + isotipo ---------- */

.hero-compact .hero-logo {
  align-items: start;
  padding-top: clamp(146px, 21vh, 232px);
}

.hero-compact .logo-img {
  width: clamp(140px, 15vw, 220px);
  margin-bottom: 0;
}

.hero-compact .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  justify-content: flex-start;
  padding: clamp(78px, 12vh, 128px) clamp(24px, 8vw, 140px) 0;
}

.hero-compact .hero h1 {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  line-height: 1.12;
  max-width: 40ch;
}

/* ---------- 2. Franja de novedades ---------- */

.nv-band {
  position: absolute;
  left: 50%;
  bottom: 200px !important;
  z-index: 7;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 64px)) !important;
}

.nv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nv-eyebrow b {
  color: var(--cyan);
  font-weight: 800;
}

.nv-eyebrow span {
  color: rgba(238, 243, 238, .5);
}

.nv-stamp {
  color: rgba(238, 243, 238, .4);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
}

/* shared glass card skin used by tarjeta + panel-flotante */

.nv-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(6, 11, 8, .58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, box-shadow .28s ease;
}

.nv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 224, 203, .38);
  box-shadow: 0 28px 74px rgba(0, 0, 0, .4);
}

.nv-media {
  height: 108px;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.05) brightness(.82);
}

.nv-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nv-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--cyan);
  background: rgba(6, 11, 8, .3);
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nv-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.04rem;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.nv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: rgba(238, 243, 238, .62);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .02em;
}

.nv-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nv-meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nv-card p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .84rem;
  line-height: 1.5;
}

.nv-cta {
  margin-top: auto;
  align-self: flex-end !important;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

.nv-card:hover .nv-cta {
  color: var(--cyan);
}

/* --- layout: tarjeta (2 cards) --- */

.nv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nv-cards .nv-card {
  flex-direction: row;
}

.nv-cards .nv-media {
  flex: 0 0 118px;
  height: auto;
}

.nv-cards .nv-body {
  padding: 15px 17px;
}

/* --- layout: panel flotante (1 destacado + 1 secundario) --- */

.nv-flotante {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 14px;
  align-items: stretch;
}

.nv-flotante .nv-feature {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .36);
}

.nv-flotante .nv-feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.06) brightness(.62);
}

.nv-flotante .nv-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 5, .06) 0%, rgba(3, 8, 5, .32) 45%, rgba(3, 8, 5, .92) 100%);
}

.nv-flotante .nv-feature-copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nv-flotante .nv-feature h3 {
  font-size: 1.2rem;
}

.nv-flotante .nv-feature p {
  max-width: 42ch;
}

.nv-flotante .nv-card {
  flex-direction: row;
}

.nv-flotante .nv-card .nv-media {
  flex: 0 0 96px;
  height: auto;
}

.nv-flotante .nv-card .nv-body {
  padding: 14px 15px;
}

/* --- layout: slider (fila horizontal, varias tarjetas visibles) --- */

.nv-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.nv-track::-webkit-scrollbar {
  display: none;
}

.nv-slide-card {
  --flag-blue: #0039a6;
  --flag-red: #d52b1e;
  --flag-white: #f3f7f1;
  /* móvil: una tarjeta ancha + un adelanto de la siguiente */
  flex: 0 0 min(240px, 78%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 15px;
  border-top: 3px solid var(--flag-blue);
  border-radius: 0;
  background: var(--bg-panel);
  transition: transform .25s ease;
  /* text-align: center; */
}

.nv-slide-card.accent-blue {
  border-top-color: var(--flag-blue);
}

.nv-slide-card.accent-red {
  border-top-color: var(--flag-red);
}

.nv-slide-card.accent-white {
  border-top-color: var(--flag-white);
}

.nv-slide-card:hover {
  transform: translateY(-3px);
}

.nv-slide-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.nv-slide-card p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .nv-slide-card {
    flex-basis: 92%;
    min-height: 170px !important;
    padding: 17px;
  }
}


@media (min-width: 640px) {
  .nv-slide-card {
    /* tablet: ~2 tarjetas visibles + un adelanto */
    flex-basis: min(320px, 46%);
  }
}

@media (min-width: 1024px) {
  .nv-track {
    gap: 16px;
  }

  .nv-slide-card {
    /* escritorio: exactamente 3 tarjetas alargadas, la 4ª entra al avanzar */
    flex-basis: calc((100% - 32px) / 3);
    padding: 22px 24px 20px;
    gap: 10px;
  }

  .nv-slide-card h3 {
    font-size: 1.12rem;
  }

  .nv-slide-card p {
    font-size: .86rem;
  }
}

.nv-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nv-dots {
  display: flex;
  gap: 7px;
}

.nv-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 238, .38);
  cursor: pointer;
  transition: .22s;
}

.nv-dots button.is-active {
  width: 22px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(127, 224, 203, .42);
}

.nv-slider-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nv-slider-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .22);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(6, 11, 8, .54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: .22s;
}

.nv-slider-btn:hover {
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

.nv-slider-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --- estado vacío --- */

.nv-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 16px 26px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(6, 11, 8, .48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.nv-empty p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .86rem;
}

.nv-empty a {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .nv-band {
    bottom: 450px !important;
  }

  .nv-band .nv-card {
    background: rgba(6, 11, 8, 0.96);
    border-color: rgba(127, 224, 203, 0.2);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nv-cards {
    grid-template-columns: 1fr;
  }

  .nv-flotante {
    grid-template-columns: 1fr;
  }

  .nv-flotante .nv-feature {
    min-height: 160px;
  }

  .hero-compact .hero-logo {
    padding-top: clamp(120px, 19vh, 180px);
  }

  .hero-compact .hero-copy {
    padding-top: clamp(64px, 10vh, 96px);
  }
}

/* =========================================================
   3. Vista "capacitaciones"
========================================================= */

.cap-page {
  min-height: 100svh;
  padding: 152px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(78, 154, 92, .16), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 56%, #050906 100%);
}

.cap-page {
  position: relative;
  padding: 130px 0 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%,
      rgba(127, 224, 203, .09),
      transparent 30%),
    radial-gradient(circle at 86% 78%,
      rgba(78, 154, 92, .16),
      transparent 34%),
    linear-gradient(180deg,
      #060b08 0%,
      #08110c 100%);
}

.cap-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(238, 243, 238, .035) 1px,
      transparent 1px);

  background-size: 56px 56px;

  mask-image:
    linear-gradient(to bottom,
      transparent,
      #000 12%,
      #000 88%,
      transparent);
}


.cap-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.cap-header {
  /* max-width: 760px; */
  margin-bottom: 56px;
  text-align: justify;
}

.cap-header .display {
  font-size: clamp(2.6rem, 3vw, 4.4rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cap-grid-la {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cap-grid-ciren {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cap-card,
.cap-card-cap {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(238, 243, 238, .06), rgba(238, 243, 238, .015));
  box-shadow: 0 26px 74px rgba(0, 0, 0, .28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, background .28s ease;
}

.cap-card:hover,
.cap-card-cap:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 224, 203, .38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(150deg, rgba(127, 224, 203, .1), rgba(238, 243, 238, .02));
}

.cap-card .cap-index,
.cap-card-cap .cap-index-cap {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .14em;
  margin-bottom: 34px;
}

.cap-card h2,
.cap-card-cap h2 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.cap-card p {
  margin: 0 0 26px;
  color: rgba(238, 243, 238, .68);
  font-size: .92rem;
  line-height: 1.62;
  flex: 1;
  text-align: justify;
}

.cap-card .btn {
  align-self: flex-start;
}

/* =========================================================
   TARJETAS DE CAPACITACIONES — ACCIONES Y MODAL DE EQUIPO
========================================================= */

.cap-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 510px;
  justify-content: flex-start;
  border-color: rgba(127, 224, 203, .16);
  background:
    radial-gradient(circle at 88% 8%, rgba(78, 154, 92, .12), transparent 34%),
    linear-gradient(150deg, rgba(238, 243, 238, .065), rgba(238, 243, 238, .018));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.cap-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(127, 224, 203, .12), transparent 48%);
  transition: opacity .32s ease;
}

.cap-card:hover {
  transform: translateY(-9px);
  border-color: rgba(127, 224, 203, .52);
  background:
    radial-gradient(circle at 88% 8%, rgba(78, 154, 92, .2), transparent 36%),
    linear-gradient(150deg, rgba(127, 224, 203, .1), rgba(238, 243, 238, .025));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(127, 224, 203, .08),
    0 0 42px rgba(78, 154, 92, .1);
}

.cap-card:hover::before {
  opacity: 1;
}

.cap-card h2 {
  text-align: center;
  line-height: 1.12;
  transition: color .25s ease, transform .25s ease;
}

.cap-card:hover h2 {
  color: var(--cyan);
  transform: translateY(-2px);
}

.cap-card>p {
  flex: 0 0 auto;
}

.cap-dates {
  margin: auto 0 24px;
  padding: 18px 18px 18px 34px;
  border: 1px solid rgba(127, 224, 203, .12);
  border-radius: 16px;
  color: rgba(238, 243, 238, .78);
  background: rgba(3, 10, 6, .28);
  font-size: .86rem;
  line-height: 1.5;
}

.cap-dates>span {
  display: block;
  margin: 0 0 7px -16px;
  color: var(--ink);
  font-weight: 800;
}

.cap-dates li::marker {
  color: var(--cyan);
}

.cap-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

.cap-card-actions-single {
  grid-template-columns: 1fr;
}

.cap-action {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}

.cap-action:hover {
  transform: translateY(-2px);
}

.cap-action-primary {
  color: #061009;
  background: linear-gradient(135deg, var(--cyan), var(--brand-bright));
  box-shadow: 0 12px 28px rgba(78, 154, 92, .2);
}

.cap-action-primary:hover {
  color: #061009;
  box-shadow: 0 16px 34px rgba(78, 154, 92, .34);
  filter: brightness(1.07);
}

.cap-action-secondary {
  color: var(--cyan);
  border-color: rgba(127, 224, 203, .3);
  background: rgba(127, 224, 203, .055);
}

.cap-action-secondary:hover {
  color: var(--ink);
  border-color: rgba(127, 224, 203, .62);
  background: rgba(127, 224, 203, .12);
}

body.cap-modal-open {
  overflow: hidden;
}

.cap-team-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.cap-team-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cap-team-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cap-team-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(127, 224, 203, .26);
  border-radius: 26px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(78, 154, 92, .18), transparent 32%),
    #08130d;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .68);
  transform: translateY(18px) scale(.985);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.cap-team-modal.is-open .cap-team-dialog {
  transform: none;
}

.cap-team-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(127, 224, 203, .14);
}

.cap-team-kicker {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cap-team-header h2 {
  margin: 5px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.cap-team-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 224, 203, .22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(238, 243, 238, .05);
  font-size: 1.55rem;
  cursor: pointer;
}

.cap-team-close:hover {
  color: #061009;
  background: var(--cyan);
}

.cap-team-scroll {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 24px 26px 28px;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan) rgba(238, 243, 238, .05);
}

.cap-team-member {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(127, 224, 203, .14);
  border-radius: 20px;
  background: rgba(238, 243, 238, .035);
}

.cap-team-member img {
  width: 150px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(238, 243, 238, .06);
}

.cap-team-member h3 {
  margin: 0 0 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
}

.cap-team-member p {
  margin: 0;
  color: rgba(238, 243, 238, .7);
  font-size: .9rem;
  line-height: 1.6;
}

.cap-team-member .cap-team-role {
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {

  .cap-grid-la,
  .cap-grid-ciren {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .cap-team-modal {
    padding: 12px;
  }

  .cap-team-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .cap-team-header,
  .cap-team-scroll {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cap-team-member {
    grid-template-columns: 1fr;
  }

  .cap-team-member img {
    width: 100%;
    max-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .cap-card-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   IMÁGENES DE FONDO — TARJETAS DE CAPACITACIONES
========================================================= */

.cap-card-cap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 500px;
  justify-content: flex-end;
}

/* Imagen de fondo */
.cap-card-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.6s cubic-bezier(.16, 1, .3, 1),
    filter 0.4s ease;
}

/* Capa oscura para mantener legible el contenido */
.cap-card-cap::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(3, 10, 6, 0.12) 0%,
      rgba(3, 10, 6, 0.42) 42%,
      rgba(3, 10, 6, 0.94) 100%);
  transition: background 0.35s ease;
}

/* Contenido sobre la imagen */
.cap-card-cap .cap-index-cap {
  position: relative;
  z-index: 1;
  text-align: top;
}

.cap-card-cap .cap-index-cap {
  margin-bottom: 14px;
}

/* Animación de la imagen */
.cap-card-cap:hover .cap-card-bg {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.cap-card-cap:hover::after {
  background:
    linear-gradient(180deg,
      rgba(3, 10, 6, 0.06) 0%,
      rgba(3, 10, 6, 0.34) 38%,
      rgba(3, 10, 6, 0.9) 100%);
}

/* Tablet */
@media (max-width: 820px) {
  .cap-card-cap {
    min-height: 300px;
  }
}

/* Celular */
@media (max-width: 640px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-card-cap {
    min-height: 270px;
    padding: 24px 22px;
  }

  .cap-card-cap h2 {
    font-size: 1.3rem;
  }
}

/* Número en la esquina superior izquierda */
.cap-card-cap .cap-index-cap {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 26px;
  margin: 0;
}

/* Título centrado horizontal y verticalmente */
.cap-card-cap h2 {
  position: absolute;
  z-index: 2;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 60px 32px 32px;
  text-align: center;
  line-height: 1.15;
}

/* Ajustes para celular */
@media (max-width: 640px) {
  .cap-card .cap-index {
    top: 20px;
    left: 20px;
  }

  .cap-card h2 {
    padding: 54px 22px 24px;
    font-size: 1.3rem;
  }
}

.cap-index-cap {
  background-color: #00000080;
  padding: 4px 10px;
  border-radius: 999px;
}


/* =========================================================
   4. Vista "más información"
========================================================= */

.mi-page {
  min-height: 100svh;
  padding: 142px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(78, 154, 92, .16), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 56%, #050906 100%);
}

.mi-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.mi-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 850;
  transition: transform .24s ease, color .24s ease;
}

.mi-back:hover {
  color: var(--ink);
  transform: translateX(-5px);
}

.mi-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}

.mi-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: #eaf0eb;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
}

.mi-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.mi-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 6px;
}

.mi-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(238, 243, 238, .035);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mi-info h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.mi-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mi-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 243, 238, .8);
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  letter-spacing: .02em;
}

.mi-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
}

.mi-info p.lead {
  margin: 0;
}

.mi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.mi-actions a.geoportal-detail-primary {
  gap: 10px;
}

@media (max-width: 900px) {
  .mi-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mi-media img {
    aspect-ratio: 16 / 10;
  }
}


/* =========================================================
   CON QUIÉN TRABAJAMOS
========================================================= */

.we-work-with {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(78, 154, 92, .12), transparent 32%),
    radial-gradient(circle at 12% 78%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #07100a 0%, #09140d 52%, #060b08 100%);
}

.we-work-with::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 238, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom,
      transparent,
      #000 14%,
      #000 86%,
      transparent);
}

.we-work-with-header {
  margin-bottom: 46px;
}

.we-work-with-header .kicker {
  margin-bottom: 18px;
}

/* Ventana del carrusel */

/* .we-work-with-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 14px;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
} */

.we-work-with-carousel {
  width: 100%;
  padding: 8px 0 14px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.we-work-with-carousel.is-dragging {
  cursor: grabbing;
}


.we-work-with-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /*animation: we-work-with-scroll 50s linear infinite;*/
}

.we-work-with-track {
  animation: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.we-work-with-carousel.is-dragging .we-work-with-card {
  pointer-events: none;
}


/* .we-work-with-carousel:hover .we-work-with-track,
.we-work-with-carousel:focus-within .we-work-with-track {
  animation-play-state: paused;
} */
.we-work-with-track.is-paused {
  animation-play-state: paused;
}


.we-work-with-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 22px;
  padding-right: 22px;
}

/* Tarjeta de institución */

/* .we-work-with-card {
  width: 220px;
  height: 132px;
  flex: 0 0 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(238, 243, 238, .11);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .10),
      rgba(255, 255, 255, .035)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 42px rgba(0, 0, 0, .19);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform .3s ease,
    border-color .3s ease,
    background-color .3s ease,
    box-shadow .3s ease;
} */
.we-work-with-card {
  width: 400px;
  height: 300px;
  flex: 0 0 280px;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 22px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, .11),
      rgba(255, 255, 255, .045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 42px rgba(0, 0, 0, .19);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform .3s ease,
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}


/* .we-work-with-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    saturate(.88)
    contrast(1.02)
    brightness(.94);
  transition:
    transform .3s ease,
    filter .3s ease;
} */
.we-work-with-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.95) contrast(1.02) brightness(.98);
  transition:
    transform .3s ease,
    filter .3s ease;
}

/* .we-work-with-card:hover,
.we-work-with-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-7px);
  border-color: rgba(127, 224, 203, .45);
  background:
    linear-gradient(
      145deg,
      rgba(127, 224, 203, .14),
      rgba(255, 255, 255, .055)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 22px 48px rgba(0, 0, 0, .28),
    0 0 28px rgba(127, 224, 203, .08);
} */

.we-work-with-card:hover,
.we-work-with-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-7px);
  border-color: var(--brand-dark);
  background:
    linear-gradient(
      /* 145deg,
      rgba(255, 255, 255, .97),
      rgba(235, 245, 239, .92) */

      145deg,
      var(--brand-dark),
      rgba(255, 255, 255, .0));
  box-shadow:
    inset 0 1px 0 var(--brand-dark),
    0 24px 50px rgba(0, 0, 0, .30),
    0 0 30px rgba(127, 224, 203, .13);
}


/* .we-work-with-card:hover img,
.we-work-with-card:focus-visible img {
  transform: scale(1.055);
  filter:
    saturate(1)
    contrast(1.04)
    brightness(1.04);
} */

.we-work-with-card:hover img,
.we-work-with-card:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.06) brightness(1.03);
}

@keyframes we-work-with-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .we-work-with {
    padding: 88px 0 94px;
  }

  .we-work-with-header {
    margin-bottom: 36px;
  }

  .we-work-with-carousel {
    mask-image: linear-gradient(90deg,
        transparent 0,
        #000 4%,
        #000 96%,
        transparent 100%);
  }

  .we-work-with-card {
    width: 235px;
    height: 150px;
    flex-basis: 235px;
    padding: 21px;
    border-radius: 19px;
  }

  .we-work-with-group {
    gap: 16px;
    padding-right: 16px;
  }

  .we-work-with-track {
    animation-duration: 62s;
  }
}

@media (max-width: 640px) {

  .we-work-with {
    padding: 74px 0 80px;
  }

  .we-work-with-header {
    margin-bottom: 30px;
  }

  .we-work-with-card {
    width: 205px;
    height: 132px;
    flex-basis: 205px;
    padding: 18px;
    border-radius: 17px;
  }

  .we-work-with-group {
    gap: 13px;
    padding-right: 13px;
  }

  .we-work-with-track {
    animation-duration: 55s;
  }
}

.we-work-with {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.we-work-with-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.we-work-with-carousel::-webkit-scrollbar {
  display: none;
}

.we-work-with-track {
  overflow: visible;
}


/*organigrama*/

.ciren-org {
  --org-line: rgba(126, 224, 203, .58);
  --org-dark: #08714f;
  --org-mid: #08945e;
  --org-light: #55ad2f;
  position: relative;
  width: 100%;
  margin-top: 38px;
  color: #f5fff9;
}

.ciren-org * {
  box-sizing: border-box;
}

.ciren-org__top {
  display: grid;
  justify-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 54px;
}

.ciren-org__governance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px, 230px) 280px minmax(185px, 230px);
  grid-template-rows: auto 34px auto;
  column-gap: 14px;
  justify-content: center;
  width: min(100%, 768px);
}

.ciren-org__node--board {
  grid-column: 2;
  grid-row: 1;
}

.ciren-org__node--executive {
  grid-column: 2;
  grid-row: 4;
}

.ciren-org__node--audit {
  position: relative;
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  margin-top: 4px;
}

/* Eje Consejo Directivo → Dirección Ejecutiva. */
.ciren-org__node--executive::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -35px;
  width: 1px;
  height: 34px;
  background: var(--org-line);
}

/* Auditoría es una rama lateral del eje, no un nivel intermedio. */
.ciren-org__node--audit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 154px;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__support {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 296px));
  gap: 14px;
  justify-content: center;
  width: min(100%, 646px);
  margin-top: 44px;
  padding-top: 28px;
}

/* Línea que baja desde Dirección y se divide hacia ambos costados. */
.ciren-org__support::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__support::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -44px;
  width: 1px;
  height: 44px;
  background: var(--org-line);
}

.ciren-org__support-column {
  position: relative;
  display: grid;
  gap: 14px;
}

.ciren-org__support-column--left {
  padding-left: 26px;
}

.ciren-org__support-column--right {
  padding-right: 26px;
}

.ciren-org__support-column::before {
  content: "";
  position: absolute;
  top: -28px;
  bottom: 26px;
  width: 1px;
  background: var(--org-line);
}

.ciren-org__support-column--left::before {
  left: 0;
}

.ciren-org__support-column--right::before {
  right: 0;
}

.ciren-org__support-column .ciren-org__node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__support-column--left .ciren-org__node::before {
  right: 100%;
}

.ciren-org__support-column--right .ciren-org__node::before {
  left: 100%;
}

.ciren-org__node,
.ciren-org__unit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: .015em;
  text-transform: uppercase;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .08);
}

.ciren-org__node {
  background: linear-gradient(145deg, #087b56, #056b49);
}

.ciren-org__node--board {
  min-width: 260px;
  min-height: 52px;
}

.ciren-org__node--audit {
  min-width: 205px;
}

.ciren-org__node--executive {
  min-width: 280px;
  font-size: .86rem;
}

.ciren-org__node--support {
  min-height: 52px;
  background: linear-gradient(145deg, #0a7655, #086347);
}

.ciren-org__top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -54px;
  width: 1px;
  height: 54px;
  background: var(--org-line);
}

.ciren-org__departments {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 2.15fr 2.15fr 1.08fr .82fr;
  align-items: start;
  gap: 18px;
  padding-top: 31px;
}

.ciren-org__departments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 5%;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__department {
  position: relative;
  min-width: 0;
}

.ciren-org__department::before {
  content: "";
  position: absolute;
  top: -31px;
  left: 50%;
  width: 1px;
  height: 31px;
  background: var(--org-line);
}

.ciren-org__node--department {
  min-height: 88px;
  background: linear-gradient(145deg, #087750, #046a47);
  font-size: .77rem;
}

.ciren-org__subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.ciren-org__subgrid--single {
  grid-template-columns: 1fr;
}

.ciren-org__subdivision {
  position: relative;
  min-width: 0;
}

.ciren-org__subdivision::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--org-line);
}

.ciren-org__node--sub {
  min-height: 86px;
  background: linear-gradient(145deg, #079b61, #078650);
}

.ciren-org__units {
  position: relative;
  display: grid;
  gap: 11px;
  margin: 15px 0 0 13px;
  padding-left: 13px;
  border-left: 1px solid var(--org-line);
}

.ciren-org__unit {
  position: relative;
  min-height: 62px;
  padding: 10px 12px;
  background: linear-gradient(145deg, #5bb332, #48a42c);
  font-size: .7rem;
}

.ciren-org__unit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 13px;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__node--legal {
  min-height: 88px;
}

@media (max-width: 1500px) {
  .ciren-org__departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ciren-org__departments::before {
    display: none;
  }

  .ciren-org__department {
    margin-top: 22px;
  }

  .ciren-org__department::before {
    display: none;
  }

  .ciren-org__department--legal {
    grid-column: 1 / -1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }

  .ciren-org__node--department {
    min-height: 76px;
  }
}

@media (max-width: 900px) {
  .ciren-org__support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 646px);
  }

  .ciren-org__departments {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 10px;
  }

  .ciren-org__department,
  .ciren-org__department--legal {
    grid-column: auto;
    max-width: none;
    margin-top: 0;
  }

  .ciren-org__top {
    margin-bottom: 32px;
  }

  .ciren-org__top::after {
    height: 32px;
    bottom: -32px;
  }
}

@media (max-width: 620px) {
  .ciren-org {
    margin-top: 26px;
  }

  .ciren-org__governance {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ciren-org__node--board,
  .ciren-org__node--audit,
  .ciren-org__node--executive {
    min-width: 0;
    width: 100%;
  }

  .ciren-org__node--audit {
    order: 2;
    margin-top: 0;
  }

  .ciren-org__node--executive {
    order: 3;
  }

  .ciren-org__node--board {
    order: 1;
  }

  .ciren-org__node--audit::after,
  .ciren-org__node--executive::before {
    display: none;
  }

  .ciren-org__support {
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 20px;
  }

  .ciren-org__support::before {
    display: none;
  }

  .ciren-org__support::after {
    top: -20px;
    height: 40px;
  }

  .ciren-org__support-column--left,
  .ciren-org__support-column--right {
    padding: 0;
  }

  .ciren-org__support-column::before,
  .ciren-org__support-column .ciren-org__node::before {
    display: none;
  }

  .ciren-org__subgrid {
    grid-template-columns: 1fr;
  }

  .ciren-org__subdivision::before {
    display: none;
  }

  .ciren-org__units {
    margin-left: 9px;
  }

  .ciren-org__node,
  .ciren-org__unit {
    font-size: .72rem;
  }

  .ciren-org__node--department {
    font-size: .76rem;
  }
}


/* =========================================================
   CON QUIÉN TRABAJAMOS — VERSIÓN GRILLA
========================================================= */

.we-work-with--grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%,
      rgba(78, 154, 92, .12),
      transparent 32%),
    radial-gradient(circle at 12% 78%,
      rgba(127, 224, 203, .07),
      transparent 28%),
    linear-gradient(180deg,
      #07100a 0%,
      #09140d 52%,
      #060b08 100%);
}

.we-work-with--grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  background-image:
    linear-gradient(rgba(238, 243, 238, .035) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(238, 243, 238, .035) 1px,
      transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom,
      transparent,
      #000 14%,
      #000 86%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      #000 14%,
      #000 86%,
      transparent);
}

.we-work-with--grid .we-work-with-header {
  margin-bottom: 46px;
}

.we-work-with--grid .we-work-with-header .kicker {
  margin-bottom: 18px;
}

/* Grilla principal: cuatro entidades por fila */

.we-work-with-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

/* Tarjeta */

.we-work-with-grid-card {
  position: relative;
  min-width: 0;
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 22px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, .12),
      rgba(255, 255, 255, .045));
  /*
    linear-gradient(
      145deg, var(--brand-dark),
      rgba(255, 255, 255, .0)
    );*/
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 42px rgba(0, 0, 0, .19);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform .3s ease,
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.we-work-with-grid-card img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: contain;
  object-position: center;
  filter:
    saturate(.95) contrast(1.02) brightness(.98);
  transition:
    transform .3s ease,
    filter .3s ease;
}

/* Hover claro para logos con texto negro */

.we-work-with-grid-card:hover,
.we-work-with-grid-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-7px);
  border-color: var(--brand-dark);
  background:
    linear-gradient(
      /* 145deg,
      rgba(255, 255, 255, .97),
      rgba(235, 245, 239, .92) */

      145deg,
      var(--brand-dark),
      rgba(255, 255, 255, .0));
  box-shadow:
    inset 0 1px 0 var(--brand-dark),
    0 24px 50px rgba(0, 0, 0, .30),
    0 0 30px rgba(127, 224, 203, .13);
}

.we-work-with-grid-card:hover img,
.we-work-with-grid-card:focus-visible img {
  transform: scale(1.035);
  filter:
    saturate(1) contrast(1.06) brightness(1.03);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tres columnas */

@media (max-width: 1180px) {
  .we-work-with-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
  }

  .we-work-with-grid-card {
    min-height: 170px;
    padding: 23px;
  }

  .we-work-with-grid-card img {
    height: 118px;
  }
}

/* Dos columnas */

@media (max-width: 820px) {
  .we-work-with--grid {
    padding: 88px 0 94px;
  }

  .we-work-with--grid .we-work-with-header {
    margin-bottom: 36px;
  }

  .we-work-with-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .we-work-with-grid-card {
    min-height: 155px;
    padding: 20px;
    border-radius: 19px;
  }

  .we-work-with-grid-card img {
    height: 108px;
  }
}

/* Dos columnas compactas en celular */

@media (max-width: 560px) {
  .we-work-with--grid {
    padding: 74px 0 80px;
  }

  .we-work-with--grid .we-work-with-header {
    margin-bottom: 30px;
  }

  .we-work-with-grid {
    gap: 12px;
  }

  .we-work-with-grid-card {
    min-height: 125px;
    padding: 14px;
    border-radius: 16px;
  }

  .we-work-with-grid-card img {
    height: 88px;
  }

  .we-work-with-grid-card:hover,
  .we-work-with-grid-card:focus-visible {
    transform: translateY(-4px);
  }
}

/* Una columna solo en teléfonos extremadamente angostos */

@media (max-width: 350px) {
  .we-work-with-grid {
    grid-template-columns: 1fr;
  }

  .we-work-with-grid-card {
    min-height: 140px;
    padding: 18px;
  }

  .we-work-with-grid-card img {
    height: 98px;
  }
}

.contact-required-note {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  text-align: right;
}

.required-mark,
.contact-required-note>span {
  color: #ff7373;
  font-weight: 700;
}

.contact-consent a {
  color: #6ed6c2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-consent a:hover {
  color: #ffffff;
}

/* =========================================================
   SISTEMA DE INFORMACIÓN TERRITORIAL
   Dependencia directa de Gerencia de Investigación y Desarrollo
========================================================= */

.ciren-org__department--research::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 88px;
  bottom: 31px;
  left: 50%;
  width: 1px;
  background: var(--org-line);
}

.ciren-org__department--research>.ciren-org__node,
.ciren-org__department--research>.ciren-org__subgrid,
.ciren-org__direct-system {
  position: relative;
  z-index: 1;
}

.ciren-org__direct-system {
  width: calc(50% - 9px);
  margin-top: -10px;
}

.ciren-org__direct-system::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 100%;
  width: 27px;
  height: 1px;
  background: var(--org-line);
}

.ciren-org__direct-system .ciren-org__unit {
  position: relative;
  z-index: 1;
  margin: 0;
}

.ciren-org__direct-system .ciren-org__unit::before {
  display: none;
}

@media (max-width: 1500px) {
  .ciren-org__department--research::after {
    top: 76px;
  }
}

@media (max-width: 620px) {
  .ciren-org__department--research::after {
    display: none;
  }

  .ciren-org__direct-system {
    width: auto;
    margin: 14px 0 0 9px;
    padding-left: 13px;
    border-left: 1px solid var(--org-line);
  }

  .ciren-org__direct-system::before {
    top: 50%;
    left: 0;
    width: 13px;
    transform: translateX(-13px);
  }
}

.img-organigrama {
  width: 100%;
  height: auto;
}

.org_img_png {
  width: 100%;
  height: auto;
}

/*Iconos de areas de trabajo*/
.work-areas-icons {
  width: 50px;
}

/* Ajustes transversales para pantallas táctiles y teléfonos angostos. */
@media (hover: none) {

  .glass-card:hover,
  .work-area-glass-card:hover,
  .project-glass-card:hover,
  .product-card:hover,
  .service-card:hover,
  .news-card:hover,
  .we-work-with-grid-card:hover {
    transform: none;
  }
}

@media (max-width: 420px) {

  .section-inner,
  .sequence-content {
    width: calc(100% - 24px);
  }

  .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .kicker {
    gap: 10px;
    overflow-wrap: anywhere;
  }

  .kicker::before {
    width: 28px;
    flex: 0 0 28px;
  }
}

/* @media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
} */

.contacta-ejecutivos{
  text-align: center !important;
}

.ejecutivos {
  display: grid;
  gap: 5px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  align-items: center;
  text-align: center;
}

.ejecutivos li {
  padding: 14px 16px;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(238, 243, 238, 0.045);
  color: var(--ink-dim);
  font-size: 13px !important;
  line-height: 1.45;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.ejecutivos li::marker {
  content: "";
}

.ejecutivos li:hover {
  border-color: rgba(127, 224, 203, 0.35);
  background: rgba(127, 224, 203, 0.07);
  transform: translateY(-2px);
}

.ejecutivos strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.ejecutivos a {
  color: var(--cyan);
  text-decoration: none;
}

.ejecutivos a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   PÁGINA 404
   ========================================================= */
.error-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.error-404 {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 170px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 107, 62, .19), transparent 34%),
    linear-gradient(145deg, var(--bg-soft), var(--bg) 70%);
}

.error-404-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 224, 203, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 224, 203, .055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 82%);
}

.error-404-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(127, 224, 203, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(127, 224, 203, .018),
    0 0 0 180px rgba(127, 224, 203, .012);
  transform: translate(-50%, -50%);
}

.error-404-content {
  width: min(100%, 900px);
  text-align: center;
}

.error-404-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.error-404-kicker::before,
.error-404-kicker::after {
  content: '';
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.error-404-code {
  margin: 0 0 12px;
  color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(8rem, 19vw, 15rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.09em;
  -webkit-text-stroke: 1px rgba(127, 224, 203, .42);
  text-shadow: 0 0 70px rgba(78, 154, 92, .16);
  user-select: none;
}

.error-404-content h1 {
  max-width: 760px;
  margin: 0 auto 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.error-404-message {
  max-width: 630px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  text-wrap: balance;
}

.error-404-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  padding: 0 27px;
  border: 1px solid var(--brand-bright);
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .26);
  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.error-404-button:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .35);
}

.error-404-arrow {
  transition: transform .25s ease;
}

.error-404-button:hover .error-404-arrow {
  transform: translateX(5px);
}

.error-404-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

@media (max-width: 640px) {
  .error-404 {
    min-height: 88vh;
    padding: 135px 20px 80px;
  }

  .error-404-grid {
    background-size: 56px 56px;
  }

  .error-404-code {
    font-size: clamp(7.5rem, 38vw, 10rem);
  }

  .error-404-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .error-404-kicker {
    gap: 10px;
    font-size: .66rem;
  }

  .error-404-kicker::before,
  .error-404-kicker::after {
    width: 24px;
  }

  .error-404-button {
    width: 100%;
    max-width: 290px;
  }
}

