
    :root {
      --deep: #054680;            /* R5 G70 B128 — aprox primario azul oscuro */
      --ocean: #066EC8;           /* R6 G110 B200 — azul primario principal */
      --tide: #23A5FA;            /* R35 G165 B250 — derivado azul claro */
      --aqua: #23D2FA;            /* R35 G210 B250 — azul secundario cyan */
      --foam: #c3eafd;            /* tinte muy claro del azul */
      --mist: #EBF7FF;            /* tinte mínimo */
      --paper: #f7fbfc;           /* sin cambio */
      --white: #ffffff;           /* sin cambio */
      --ink: #0b2635;             /* sin cambio */
      --slate: #456475;           /* sin cambio */
      --muted: #7894a3;           /* sin cambio */
      --line: rgba(10, 58, 84, .13);
      --line-soft: rgba(10, 58, 84, .07);

      /* Secundarios adaptados */
      --green: #46A500;           /* R70 G165 B0 — verde primario */
      --amber: #73CD1E;           /* R115 G205 B30 — verde secundario lima */
      --rust: #05509B;            /* R5 G80 B155 — azul oscuro secundario */
      --violet: #C8E600;          /* R200 G230 B0 — amarillo-lima secundario */

      --shadow: 0 24px 60px -34px rgba(6, 38, 56, .58);
      --shadow-soft: 0 12px 32px -24px rgba(6, 38, 56, .45);
      --radius: 18px;
      --header-height: 76px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--paper);
      color: var(--ink);
      line-height: 1.6;
      font-size: 15.5px;
    }

    h1, h2, h3, h4 {
      font-family: "Roboto", system-ui, sans-serif;
      color: var(--rust);
      line-height: 1.08;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    img, svg { max-width: 100%; }
    section { scroll-margin-top: calc(var(--header-height) + 24px); }

    :focus-visible {
      outline: 3px solid var(--aqua);
      outline-offset: 3px;
      border-radius: 10px;
    }

    .wrap { max-width: 1220px; margin: 0 auto; padding: 0 26px; }
    .mono { font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 999;
      background: var(--rust);
      color: var(--white);
      padding: 10px 14px;
      border-radius: 10px;
      transform: translateY(-140%);
      transition: transform .2s;
    }
    .skip-link:focus { transform: translateY(0); }

    .brand {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
    }

    .brand-logo {
      display: block;
      width: auto;
      height: 3rem;
      object-fit: contain;
    }

    .topbar {
      background: var(--rust);
      color: #badce8;
      font-size: 12px;
    }
    .topbar .wrap {
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .topbar strong {
      color: var(--foam);
      font-weight: 600;
    }
    .topbar nav { display: flex; gap: 18px; }
    .topbar a:hover { color: var(--white); }

    header {
      position: sticky;
      top: 0;
      z-index: 80;
      background: rgba(247, 251, 252, .92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      height: var(--header-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 13px;
      min-width: max-content;
    }
    .brand-mark {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: linear-gradient(150deg, var(--ocean), var(--aqua));
      box-shadow: var(--shadow-soft);
    }
    .brand b { display: block; font-family: "Roboto"; font-size: 21px; line-height: 1; color: var(--rust); }
    .brand span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 800; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
    }
    .nav-links a {
      font-size: 14px;
      font-weight: 800;
      color: var(--slate);
    }
    .nav-links a:hover { color: var(--ocean); }

    .btn {
      border: 0;
      border-radius: 12px;
      padding: 11px 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 800;
      font-size: 14px;
      transition: transform .2s, box-shadow .2s, background .2s;
      min-height: 44px;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--ocean); color: var(--white); box-shadow: 0 14px 28px -18px var(--ocean); }
    .btn-primary:hover { background: var(--deep); }
    .btn-secondary { background: var(--white); color: var(--rust); border: 1px solid var(--line); }
    .btn-ghost { background: rgba(255, 255, 255, .12); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
    .menu-toggle { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; min-width: 44px; min-height: 44px; }

    .mobile-panel {
      display: none;
      border-top: 1px solid var(--line);
      background: var(--white);
      padding: 12px 26px 22px;
    }
    .mobile-panel a { display: block; padding: 12px 0; color: var(--slate); font-weight: 800; border-bottom: 1px solid var(--line-soft); }
    .mobile-panel.open { display: block; }

    .hero {
      position: relative;
      overflow: hidden;
      background: radial-gradient(circle at 88% 12%, rgba(50, 199, 207, .18), transparent 34%), linear-gradient(150deg, #fff, var(--mist));
      padding: 64px 0 0;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
      gap: 46px;
      align-items: center;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 7px 14px;
      border-radius: 999px;
      background: rgba(15, 111, 153, .08);
      color: var(--ocean);
      border: 1px solid rgba(15, 111, 153, .16);
      font: 700 11px/1 "Roboto Mono";
      letter-spacing: .11em;
      text-transform: uppercase;
    }
    .pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--aqua);
      box-shadow: 0 0 0 5px rgba(50, 199, 207, .22);
    }
    .hero h1 { margin-top: 20px; font-size: clamp(38px, 5.3vw, 66px); max-width: 720px; }
    .hero h1 span { background: linear-gradient(transparent 62%, var(--foam) 0); padding: 0 6px; }
    .lead { margin-top: 20px; max-width: 610px; color: var(--slate); font-size: 18px; }

    .search-card {
      margin-top: 28px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 12px;
      box-shadow: var(--shadow-soft);
    }
    .search-form {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 10px;
      align-items: center;
    }
    .search-form input, .search-form select {
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0 14px;
      color: var(--ink);
      background: #fff;
      outline: none;
    }
    .quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .chip {
      border: 1px solid var(--line);
      background: var(--mist);
      color: var(--ocean);
      border-radius: 999px;
      padding: 7px 11px;
      font: 700 12px/1 "Roboto Mono";
    }

    .status-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 24px;
      box-shadow: var(--shadow);
    }
    .status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
    .status-head h2 { font-size: 24px; }
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--green);
      background: #e7f5ee;
      border-radius: 999px;
      padding: 7px 10px;
      font: 800 11px/1 "Roboto Mono";
      text-transform: uppercase;
      white-space: nowrap;
    }
    .metric-stack { display: grid; gap: 12px; }
    .metric {
      border: 1px solid var(--line-soft);
      border-radius: 14px;
      padding: 15px;
      background: linear-gradient(180deg, #fff, #fbfeff);
    }
    .metric .row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
    .metric strong { font-family: "Roboto"; font-size: 27px; color: var(--rust); }
    .metric span { color: var(--slate); font-size: 13px; font-weight: 700; }
    .trace {
      margin-top: 18px;
      border-top: 1px dashed var(--line);
      padding-top: 14px;
      color: var(--muted);
      font-size: 12.5px;
    }
    .trace b { color: var(--slate); }

    .wave { margin-top: 54px; line-height: 0; }
    .wave svg { display: block; width: 100%; height: 64px; }

    .section { padding: 76px 0; }
    .section.alt { background: var(--white); }
    .section.dark {
      position: relative;
      color: var(--white);
      background: linear-gradient(
        108deg,
        var(--rust) 0%,
        var(--rust) 78%,
        var(--green) 78.1%,
        var(--green) 100%
      );
    }
    .section.mist { background: var(--mist); }
    .section-head { max-width: 760px; margin-bottom: 38px; }
    .section-head .kicker {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      color: var(--tide);
      font: 800 12px/1 "Roboto Mono";
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .section-head .kicker::before { content: ""; width: 28px; height: 2px; background: var(--aqua); }
    .section-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
    .section-head p { margin-top: 13px; color: var(--slate); font-size: 16.5px; }
    .dark .section-head h2 { color: var(--white); }
    .dark .section-head p { color: #a8c8d4; }

    .personas {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    #perfiles .personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

#perfiles .persona {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  user-select: none;
  transition:
    transform .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

#perfiles .persona:hover {
  transform: translateY(-4px);
  border-color: var(--tide);
  box-shadow: 0 18px 38px -22px rgba(6, 110, 200, .45);
}

#perfiles .persona:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
}

#perfiles .persona .icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--ocean);
  margin-bottom: 14px;
  font-weight: 800;
  transition:
    background-color .22s ease,
    color .22s ease;
}

#perfiles .persona h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color .22s ease;
}

#perfiles .persona p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0;
  transition: color .22s ease;
}

#perfiles .persona-action {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  color: var(--ocean);
  font-weight: 800;
  font-size: 13px;
  transition: color .22s ease;
}

/* CARD SELECCIONADO */
#perfiles .persona.active,
#perfiles .persona.is-active {
  background: var(--ocean);
  border-color: var(--ocean);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px rgba(5, 70, 128, .65);
}

#perfiles .persona.active .icon,
#perfiles .persona.is-active .icon {
  background: rgba(255, 255, 255, .18);
  color: var(--white);
}

#perfiles .persona.active h3,
#perfiles .persona.active p,
#perfiles .persona.active .persona-action,
#perfiles .persona.is-active h3,
#perfiles .persona.is-active p,
#perfiles .persona.is-active .persona-action {
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #perfiles .personas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #perfiles .personas {
    grid-template-columns: 1fr;
  }

  #perfiles .persona {
    min-height: auto;
  }
}
    .persona {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow-soft);
    }
    .persona .icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--mist); color: var(--ocean); margin-bottom: 14px; }
    .persona h3 { font-size: 20px; margin-bottom: 8px; }
    .persona p { color: var(--slate); font-size: 14px; }
    .persona a { display: inline-flex; margin-top: 14px; color: var(--ocean); font-weight: 800; font-size: 13px; }

    .product-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 24px;
    }
    .filter-btn {
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--white);
      color: var(--slate);
      font-weight: 800;
      font-size: 13px;
    }
    .filter-btn.active { background: var(--ocean); color: var(--white); border-color: var(--ocean); }

    /*CARDS DE PRODUCTO*/

    .products {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 28px;
      width: 100%;
      align-items: start;
    }

    .product-card {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
      min-width: 0;
      min-height: 320px;
      overflow: hidden;

      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      cursor: pointer;

      opacity: 0;
      transform: translateY(22px);
      animation: aparecerProducto 600ms ease-out forwards;
      animation-delay: var(--card-delay, 0ms);

      transition:
        transform 420ms ease,
        box-shadow 420ms ease,
        border-color 420ms ease;
    }

    .product-card:hover {
      z-index: 5;
      transform: translateY(-7px) scale(1.125);
      border-color: rgba(6, 110, 200, 0.24);
      box-shadow: 0 30px 56px -28px rgba(6, 38, 56, 0.68);
    }

    .product-card:focus-within {
      border-color: rgba(6, 110, 200, 0.24);
      box-shadow: 0 26px 50px -28px rgba(6, 38, 56, 0.65);
    }

    @keyframes aparecerProducto {
      from {
        opacity: 0;
        transform: translateY(22px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* IMAGEN SUPERPUESTA: NO CAMBIA LA ALTURA DE LA CARD */
    .product-image {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;

      opacity: 0;
      transform: scale(0.985);

      transition:
        opacity 620ms ease,
        transform 720ms ease;
    }

    .product-image img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;

      transform: scale(1.14);
      transition: transform 1100ms ease;
    }

    .product-image-overlay {
      position: absolute;
      inset: 0;
      opacity: 0;

      background:
        linear-gradient(
          180deg,
          rgba(5, 51, 95, 0.30) 0%,
          rgba(5, 51, 95, 0.70) 44%,
          rgba(5, 51, 95, 0.95) 100%
        );

      transition: opacity 560ms ease;
    }

    .product-card:hover .product-image {
      opacity: 1;
      transform: scale(1);
      transition-delay: 90ms;
    }

    .product-card:hover .product-image img {
      transform: scale(1.03);
    }

    .product-card:hover .product-image-overlay {
      opacity: 1;
      transition-delay: 90ms;
    }

    /* CONTENIDO SOBRE LA IMAGEN */

    .product-card-content {
      position: relative;
      z-index: 1;

      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 24px;
    }

    .product-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
    }

    .product-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--mist);
      color: var(--ocean);

      transition:
        transform 420ms ease,
        background-color 420ms ease,
        color 420ms ease;
    }

    .product-card:hover .product-icon {
      transform: scale(1.06);
      background: rgba(255, 255, 255, 0.94);
      color: var(--deep);
      transition-delay: 80ms;
    }

    .state {
      transition:
        transform 420ms ease,
        background-color 420ms ease;
    }

    .product-card:hover .state {
      transform: translateY(-2px);
      transition-delay: 80ms;
    }

    /* TEXTOS */

    .product-card h3 {
      font-size: 22px;
      margin-bottom: 8px;

      transition:
        color 480ms ease,
        transform 480ms ease;
    }

    .product-card p {
      color: var(--slate);
      font-size: 14px;
      flex: 1;

      transition: color 480ms ease;
    }

    .product-meta {
      display: grid;
      gap: 6px;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--line-soft);
      color: var(--muted);
      font-size: 12.5px;

      transition:
        color 480ms ease,
        border-color 480ms ease;
    }

    .product-meta b {
      color: var(--slate);
      transition: color 480ms ease;
    }

    .product-card .go {
      display: inline-flex;
      margin-top: 16px;
      color: var(--ocean);
      font-weight: 800;

      transition:
        color 480ms ease,
        transform 420ms ease;
    }

    /* TEXTOS SOBRE FONDO DE IMAGEN */

    .product-card:hover h3 {
      color: var(--white);
    }

    .product-card:hover p {
      color: rgba(255, 255, 255, 0.88);
    }

    .product-card:hover .product-meta {
      color: rgba(255, 255, 255, 0.76);
      border-top-color: rgba(255, 255, 255, 0.22);
    }

    .product-card:hover .product-meta b {
      color: rgba(255, 255, 255, 0.96);
    }

    .product-card:hover .go {
      color: var(--white);
      transform: translateX(5px);
    }
    
    .state {
      border-radius: 999px;
      padding: 6px 9px;
      font: 800 10.5px/1 "Roboto Mono";
      text-transform: uppercase;
      white-space: nowrap;
    }
    .state.validado { background: #e6f5ee; color: var(--green); }
    .state.piloto { background: #fff3d8; color: var(--amber); }
    .state.desarrollo { background: #eeeafd; color: var(--violet); }
    .product-card h3 { font-size: 22px; margin-bottom: 8px; }
    .product-card p { color: var(--slate); font-size: 14px; flex: 1; }
    .product-meta { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }
    .product-meta b { color: var(--slate); }
    .product-card .go { margin-top: 16px; color: var(--ocean); font-weight: 800; }

    .impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .impact-card {
      background: rgba(255,255,255,.045);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 18px;
      padding: 24px;
    }
    .impact-card .label { color: var(--foam); font: 700 11px/1.25 "Roboto Mono"; text-transform: uppercase; letter-spacing: .06em; min-height: 28px; }
    .impact-card .num { margin-top: 14px; font-family: "Roboto"; font-size: 40px; font-weight: 700; color: var(--white); line-height: 1; }
    .impact-card .num small { font-size: 18px; color: var(--aqua); }
    .impact-card p { margin-top: 9px; color: #a9c8d4; font-size: 13px; }
    .impact-card .trace-mini { margin-top: 13px; color: #7fb0c1; font-size: 11.5px; border-top: 1px dashed rgba(255,255,255,.15); padding-top: 10px; }

    .explorer {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
    }
    .tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--line);
      overflow-x: auto;
    }
    .tab {
      border: 0;
      background: transparent;
      padding: 18px 22px;
      color: var(--slate);
      font-weight: 800;
      border-bottom: 3px solid transparent;
      white-space: nowrap;
    }
    .tab[aria-selected="true"] { color: var(--ocean); border-bottom-color: var(--ocean); }
    .tabpanel { display: none; }
    .tabpanel.active { display: block; }
    .map-layout { display: grid; min-height: 430px; }
    .map-box {
      position: relative;
      min-height: 430px;
      border-right: 1px solid var(--line-soft);
      background: radial-gradient(circle at 40% 22%, #ffffff, #e9f6f7 56%, #d9eef1);
    }
    .map-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .legend {
      position: absolute;
      left: 18px;
      bottom: 18px;
      background: rgba(255,255,255,.94);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      box-shadow: var(--shadow-soft);
    }
    .legend .bar { width: 170px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--rust), var(--amber), var(--green)); margin: 7px 0 5px; }
    .legend .scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10.5px; }
    .side-panel { padding: 26px; }
    .side-panel .loc { color: var(--tide); font: 800 11px/1 "Roboto Mono"; letter-spacing: .08em; text-transform: uppercase; }
    .side-panel h3 { margin-top: 8px; font-size: 26px; }
    .data-row { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
    .data-row .top { display: flex; justify-content: space-between; gap: 12px; color: var(--slate); font-size: 13px; font-weight: 800; }
    .progress { height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; margin-top: 8px; }
    .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--tide), var(--aqua)); border-radius: inherit; }

    .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px; }
    .dash-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
    .dash-card h3 { font-size: 19px; margin-bottom: 10px; }
    .bars { display: grid; gap: 10px; margin-top: 16px; }
    .bar-row { display: grid; grid-template-columns: 86px 1fr 42px; align-items: center; gap: 10px; font-size: 12px; color: var(--slate); }
    .barline { height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
    .barline i { display: block; height: 100%; border-radius: 999px; background: var(--ocean); }

    .table-wrap { overflow-x: auto; padding: 24px; }
    table { width: 100%; border-collapse: collapse; min-width: 720px; }
    th, td { text-align: left; border-bottom: 1px solid var(--line-soft); padding: 14px 12px; }
    th { color: var(--slate); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
    td { color: var(--ink); font-size: 14px; }

    /* ── Contenedor principal ──────────────────── */
    .governance {
      position: relative;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      padding-top: 52px;   /* espacio para la línea y puntos */
      counter-reset: step;
    }

    /* ── Línea y puntos ────────────────────────── */
    .gov-track {
      position: absolute;
      top: 18px;
      left: 0;
      right: 0;
      height: 3px;
    }


    .gov-line {
      position: absolute;
      top: 0; left: 0;
      height: 100%;
      width: 0;
      border-radius: 99px;
      background: linear-gradient(to right, var(--aqua), var(--ocean), var(--deep));
      animation: govLineGrow .9s cubic-bezier(.4,0,.2,1) .3s forwards;
    }

    .gov-dot {
      position: absolute;
      top: 50%;
      transform: translateX(-50%) scale(0);
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--white);
      border: 3px solid var(--aqua);
      opacity: 0;
      animation: govDotPop .4s cubic-bezier(.34,1.56,.64,1) forwards;
      z-index: 2;
      margin-top: -9px;
    }

    .gov-dot:nth-child(2) { animation-delay: .5s; }
    .gov-dot:nth-child(3) { animation-delay: .65s; }
    .gov-dot:nth-child(4) { animation-delay: .80s; }
    .gov-dot:nth-child(5) { animation-delay: .95s; }
    .gov-dot:nth-child(6) { animation-delay: 1.1s; }

    .gov-dot--last {
      border-color: var(--ocean);
      background: var(--ocean);
      animation: govDotPop .4s cubic-bezier(.34,1.56,.64,1) 1.1s forwards,
                govPulse 2s ease 1.55s 2;
    }

    .gov-step {
      position: relative;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 22px;
      opacity: 0;
      transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }
    .gov-step:nth-child(2) { animation: govFadeUp .5s ease .5s forwards; }
    .gov-step:nth-child(3) { animation: govFadeUp .5s ease .65s forwards; }
    .gov-step:nth-child(4) { animation: govFadeUp .5s ease .80s forwards; }
    .gov-step:nth-child(5) { animation: govFadeUp .5s ease .95s forwards; }
    .gov-step:nth-child(6) { animation: govFadeUp .5s ease 1.1s forwards; }

    .gov-step:hover {
      transform: translateY(-5px);
      border-color: var(--tide);
      box-shadow: 0 18px 38px -22px rgba(6,110,200,.45);
    }

    .gov-step:last-child {
      background: linear-gradient(135deg, var(--mist), var(--foam));
      border-color: rgba(35,165,250,.3);
    }
    .gov-step:last-child h3 { color: var(--ocean); }

    .gov-step-num {
      font: 800 12px/1 "Roboto Mono", monospace;
      color: var(--aqua);
      letter-spacing: .06em;
      margin-bottom: 12px;
    }

    .gov-step::before {
      counter-increment: step;
      content: counter(step, decimal-leading-zero);
      display: inline-flex;
      margin-bottom: 16px;
      color: var(--aqua);
      font: 800 13px/1 "Roboto Mono";
    }
    .gov-step h3 {
      font-size: 19px;
      margin-bottom: 8px;
      color: var(--rust);
    }
    .gov-step p {
      color: var(--slate);
      font-size: 13.5px;
      line-height: 1.58;
    }

    .gov-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 13px;
      padding: 6px 11px;
      border-radius: 999px;
      background: var(--mist);
      border: 1px solid rgba(35,165,250,.2);
      font: 700 11px/1 "Roboto Mono", monospace;
      color: var(--ocean);
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .gov-tag::before {
      content: "";
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--aqua);
      flex-shrink: 0;
    }

    /* ── Responsive ────────────────────────────── */
    @media (max-width: 1024px) {
      .governance {
        grid-template-columns: repeat(3, 1fr);
        padding-top: 0;
      }
      .gov-track { display: none; }
    }

    @media (max-width: 640px) {
      .governance {
        grid-template-columns: 1fr;
      }
    }

    .alerts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .alert-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
    .alert-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
    .severity { border-radius: 999px; padding: 6px 11px; font: 800 10.5px/1 "Roboto Mono"; text-transform: uppercase; }
    .severity.high { background: #fbe7e1; color: var(--rust); }
    .severity.medium { background: #fff2d8; color: var(--amber); }
    .severity.low { background: #e7f5ee; color: var(--green); }
    .alert-card h3 { font-family: "Roboto"; font-size: 16px; letter-spacing: 0; margin-bottom: 6px; }
    .alert-card p { color: var(--slate); font-size: 13.5px; }
    .alert-card .place { margin-top: 13px; color: var(--ocean); font-weight: 800; font-size: 12.5px; }

    .data-quality {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .quality-card, .open-data-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      box-shadow: var(--shadow-soft);
    }
    .quality-list { display: grid; gap: 14px; margin-top: 18px; }
    .quality-item { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
    .quality-item span { color: var(--slate); }
    .quality-item b { color: var(--rust); }

    .formats { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }
    .format { border: 1px solid var(--line); background: var(--mist); color: var(--ocean); border-radius: 999px; padding: 8px 12px; font: 800 12px/1 "Roboto Mono"; }

    .glossary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .term { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 20px; }
    .term h3 { color: var(--white); font-family: "Roboto"; font-size: 16px; letter-spacing: 0; margin-bottom: 7px; }
    .term p { color: #a8c8d4; font-size: 13.5px; }

    /* CARD */
    .term {
      position: relative;
      overflow: hidden;

      padding: 24px;
      border-radius: 22px;

      background:
        linear-gradient(
          180deg,
          rgba(255,255,255,.09),
          rgba(255,255,255,.04)
        );

      border: 1px solid rgba(255,255,255,.12);

      backdrop-filter: blur(12px);

      transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        background .28s ease;
    }

    /* Glow sutil */
    .term::before {
      content: "";
      position: absolute;
      inset: 0;

      background:
        radial-gradient(
          circle at top right,
          rgba(35,210,250,.12),
          transparent 34%
        );

      pointer-events: none;
    }

    /* Línea superior elegante */
    .term::after {
      content: "";
      position: absolute;
      top: 0;
      left: 24px;

      width: 64px;
      height: 3px;
      border-radius: 999px;

      background:
        linear-gradient(
          90deg,
          var(--aqua),
          var(--tide)
        );
    }
    /* Hover */
    .term:hover {
      transform: translateY(-6px);

      border-color: rgba(255,255,255,.20);

      background:
        linear-gradient(
          180deg,
          rgba(255,255,255,.12),
          rgba(255,255,255,.06)
        );

      box-shadow:
        0 18px 44px -24px rgba(0,0,0,.35);
    }

    /* Título */
    .term h3 {
      position: relative;

      display: inline-flex;
      align-items: center;
      gap: 10px;

      margin-bottom: 14px;

      color: var(--white);
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    /* Punto visual */
    .term h3::before {
      content: "";
      width: 10px;
      height: 10px;
      border-radius: 999px;

      background: var(--aqua);

      box-shadow:
        0 0 0 6px rgba(35,210,250,.12);
    }

    /* Texto */
    .term p {
      color: rgba(255,255,255,.78);
      font-size: 14.5px;
      line-height: 1.75;
    }

    /* Hover tipografía */
    .term:hover h3 {
      transform: translateX(2px);
      transition: transform .25s ease;
    }

    /* Tablet */
    @media (max-width: 1060px) {
      .glossary {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* Mobile */
    @media (max-width: 760px) {
      .glossary {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .term {
        padding: 22px;
        border-radius: 18px;
      }
    }

    .cta {
      text-align: center;
      background: linear-gradient(150deg, var(--ocean), var(--deep));
      color: var(--white);
      border-radius: 28px;
      padding: 58px 32px;
      position: relative;
      overflow: hidden;
    }
    .cta::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(50,199,207,.24), transparent 70%); }
    .cta > * { position: relative; z-index: 1; }
    .cta h2 { color: var(--white); font-size: clamp(28px, 3.5vw, 44px); max-width: 720px; margin: 0 auto; }
    .cta p { color: #cae7ee; max-width: 620px; margin: 16px auto 28px; font-size: 17px; }
    .cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

    footer { background: var(--rust); color: #9fc2cf; padding: 56px 0 26px; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.10); }
    footer .brand b { color: var(--white); }
    footer .brand span { color: var(--foam); }
    footer p { color: #85aab8; max-width: 310px; margin-top: 14px; font-size: 13.5px; }
    .footer-col h3 { color: var(--aqua); font: 800 12px/1 "Roboto Mono"; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
    .footer-col a { display: block; color: #9fc2cf; margin-bottom: 9px; font-size: 13.5px; }
    .footer-col a:hover { color: var(--white); }
    .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font: 600 11.5px/1.5 "Roboto Mono"; color: #6d92a1; }

    @media (max-width: 1060px) {
      .hero-grid, .map-layout, .data-quality { grid-template-columns: 1fr; }
      .map-box { border-right: 0; border-bottom: 1px solid var(--line-soft); }
      .personas, .impact-grid { grid-template-columns: repeat(2, 1fr); }
      .products, .dashboard-grid, .alerts-grid, .glossary { grid-template-columns: repeat(2, 1fr); }
      .governance { grid-template-columns: repeat(2, 1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 760px) {
      .wrap { padding: 0 18px; }
      .topbar nav, .nav-links, .nav-cta { display: none; }
      .menu-toggle { display: inline-grid; place-items: center; }
      .hero { padding-top: 42px; }
      .search-form { grid-template-columns: 1fr; }
      .personas, .products, .impact-grid, .dashboard-grid, .alerts-grid, .data-quality, .glossary, .governance, .footer-grid { grid-template-columns: 1fr; }
      .hero-grid { grid-template-columns: 1fr; }
      .hero h1 { font-size: clamp(34px, 11vw, 48px); }
      .status-card { padding: 20px; }
      .section { padding: 58px 0; }
      .topbar .wrap { justify-content: center; text-align: center; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
      }
    }

    @media (max-width: 640px) {
      .map-layout { display: grid; min-height: 430px; }
    }
    
/* CARRUSEL SECTION */


.carousel-section {
  background-color: var(--color-background, #ffffff);
}

.home-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0b3446;
  box-shadow: 0 16px 40px rgba(15, 52, 70, 0.16);
}

.home-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

.home-carousel__track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.home-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: clamp(480px, 58vw, 680px); /* antes: clamp(390px, 44vw, 520px) */
}


.home-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-carousel__overlay,
.home-carousel__overlay_1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;

  /* en lugar de padding fijo, usamos un contenedor interno tipo .wrap */
  padding: 0;

  background:
    linear-gradient(
      90deg,
      rgba(6, 34, 48, 0.88) 0%,
      rgba(6, 34, 48, 0.62) 42%,
      rgba(6, 34, 48, 0.12) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6, 34, 48, 0.38) 0%,
      transparent 55%
    );
}

.home-carousel__overlay_1 {
  justify-content: flex-end; /* el slide 2 alinea a la derecha */
}

.home-carousel__overlay_1 .home-carousel__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-carousel__overlay_1 .home-carousel__content > * {
  max-width: 560px;
}


.home-carousel__content {
  width: 100%;
  max-width: 1220px;         /* mismo max-width que tu .wrap */
  margin: 0 auto;
  padding: 0 26px 52px;      /* mismo padding lateral que tu .wrap, más padding abajo */
  color: #ffffff;
  box-sizing: border-box;
}

.home-carousel__content > * {
  max-width: 560px;
}

.home-carousel__tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.home-carousel__tag_1 {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-content: end;
  backdrop-filter: blur(6px);
}

.home-carousel__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}

.home-carousel__description {
  max-width: 490px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.55;
}

.home-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
}

.home-carousel__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background-color: rgba(7, 44, 58, 0.38);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(6px);
}

.home-carousel__control:hover {
  background-color: rgba(7, 44, 58, 0.72);
}

.home-carousel__control:active {
  transform: translateY(-50%) scale(0.95);
}

.home-carousel__control--prev {
  left: 18px;
}

.home-carousel__control--next {
  right: 18px;
}

.home-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.home-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    width 200ms ease,
    background-color 200ms ease;
}

.home-carousel__dot.is-active {
  width: 30px;
  background-color: #ffffff;
}

.home-carousel__control:focus-visible,
.home-carousel__dot:focus-visible,
.home-carousel__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Tablet */
@media (max-width: 900px) {
  .carousel-section {
    padding: 0; /* quitamos el padding que desplazaba el carrusel */
  }

  .home-carousel__slide {
    height: 520px;
  }

  .home-carousel__overlay,
  .home-carousel__overlay_1 {
    background:
      linear-gradient(
        0deg,
        rgba(6, 34, 48, 0.92) 0%,
        rgba(6, 34, 48, 0.58) 65%,
        rgba(6, 34, 48, 0.2) 100%
      );
  }

  .home-carousel__content {
    padding: 0 26px 44px;
  }

  .home-carousel__description {
    font-size: 16px;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .carousel-section {
    padding: 0;
  }

  .home-carousel__slide {
    height: 520px;
  }

  .home-carousel__control {
    display: none;
  }

  .home-carousel__overlay,
  .home-carousel__overlay_1 {
    justify-content: flex-start; /* en móvil todo va a la izquierda */
    background:
      linear-gradient(
        0deg,
        rgba(6, 34, 48, 0.94) 0%,
        rgba(6, 34, 48, 0.78) 48%,
        rgba(6, 34, 48, 0.22) 100%
      );
  }

  .home-carousel__content {
    padding: 0 20px 52px;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .home-carousel__content > * {
    max-width: 100%;
  }

  .home-carousel__tag,
  .home-carousel__tag_1 {
    margin-bottom: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .home-carousel__title {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .home-carousel__description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.45;
  }

  .home-carousel__dots {
    bottom: 18px;
  }
}


.territorio-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 16px;
  margin: 36px 0 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.06);
}

.territorio-filter__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.territorio-filter__field label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
}

.territorio-filter__field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background-color: #ffffff;
  color: #18323d;
  cursor: pointer;
}

.territorio-filter__field select:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.territorio-filter__button {
  min-height: 48px;
  white-space: nowrap;
}

.indicadores-impacto__territorio {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.impact-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .territorio-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .territorio-filter__button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .territorio-filter {
    grid-template-columns: 1fr;
    margin-top: 26px;
    padding: 16px;
  }

  .territorio-filter__button {
    width: 100%;
  }
}

.pdf-carousel {
  position: relative;
  overflow: hidden;
}

.pdf-track {
  display: flex;
  gap: 20px;
  transition: transform .35s ease;
}

.pdf-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* fila superior: imagen pequeña + texto lado a lado */
.pdf-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.pdf-cover {
  flex-shrink: 0;
  width: 72px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #054680; /* borde naranja/dorado como en la imagen */
  background: var(--mist);
}

.pdf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.pdf-info h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--abyss);
  margin: 0;
}

.pdf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.pdf-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.pdf-sep {
  color: var(--line);
  font-size: 14px;
}

.pdf-size {
  font-size: 12px;
  color: var(--muted);
}

.pdf-btn {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.pdf-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--ocean);
  transition: background .2s;
}

.pdf-arrow:hover { background: var(--mist); }
.pdf-arrow:disabled { opacity: .35; cursor: default; }

.pdf-dots {
  display: flex;
  gap: 6px;
}

.pdf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.pdf-dot.active {
  background: var(--ocean);
  transform: scale(1.3);
}

@media (max-width: 700px) {
  .pdf-card { flex: 0 0 calc(100% - 0px); }
}


/* ── Animaciones ───────────────────────────── */
@keyframes govLineGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes govDotPop {
  0%   { transform: translateX(-50%) scale(0); opacity: 0; }
  70%  { transform: translateX(-50%) scale(1.3); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes govFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes govPulse {
  0%   { box-shadow: 0 0 0 0 rgba(35,210,250,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(35,210,250,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,210,250,0); }
}


/* =========================================
   CARRUSEL DE PUBLICACIONES
   Solo portada PDF + título
   ========================================= */

#estudios .pdf-carousel {
  overflow: hidden;
}

#estudios .pdf-track {
  display: flex;
  gap: 24px;
  transition: transform .4s ease;
  will-change: transform;
}

#estudios .pdf-card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  background: transparent;
}

/* Imagen / portada del PDF */
#estudios .pdf-cover {
  width: 100%;
  height: 300px;
  cursor: pointer;
  background: var(--mist);
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(5, 70, 128, .22);
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

#estudios .pdf-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Efecto sutil al pasar el mouse */
#estudios .pdf-card:hover .pdf-cover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(5, 70, 128, .30);
}

/* Título debajo de la portada */
#estudios .pdf-title {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

/* Navegación actual del carrusel */
#estudios .pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

#estudios .pdf-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--ocean);
  cursor: pointer;
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}

#estudios .pdf-arrow:hover:not(:disabled) {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

#estudios .pdf-arrow:disabled {
  opacity: .4;
  cursor: default;
}

#estudios .pdf-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

#estudios .pdf-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--foam);
  cursor: pointer;
}

#estudios .pdf-dot.active {
  width: 25px;
  border-radius: 999px;
  background: var(--ocean);
}

/* Responsive compatible con tu JavaScript */
@media (max-width: 1024px) {
  #estudios .pdf-card {
    flex-basis: calc((100% - 48px) / 3);
  }
  #estudios .pdf-cover {
    height: 390px;
  }
}

@media (max-width: 700px) {
  #estudios .pdf-card {
    flex-basis: calc((100% - 24px) / 2);
  }
  #estudios .pdf-cover {
    height: 360px;
  }

  #estudios .pdf-title {
    font-size: 16px;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  #estudios .pdf-card {
    flex-basis: 100%;
  }
  #estudios .pdf-cover {
    height: 470px;
  }
}



#contacto {
  background: var(--deep);
  padding: 34px 0;
}

#contacto .footer-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

#contacto .footer-logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: 350px;
  object-fit: contain;
}

#contacto .footer-logo-left {
  object-position: left center;
}

#contacto .footer-logo-right {
  object-position: right center;
}

@media (max-width: 600px) {
  #contacto {
    padding: 26px 0;
  }

  #contacto .footer-logos {
    flex-direction: column;
    justify-content: center;
    gap: 22px;
  }

  #contacto .footer-logo {
    height: 50px;
    max-width: 230px;
  }
}

.Olas {
  position: relative;
  margin: 0;
  padding: 0;
}

#olas {
  position: relative;
  width: 100%;
  height: 45vh; /* o la altura que necesites */
  min-height: 200px;
}

.olas-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

.olas-titulo {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.olas-logo {
  width: clamp(180px, 30vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.olas-subtitulo {
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
  border-left: 2px solid rgba(255,255,255,0.4);
  padding-left: 1.2rem;
  font-size: 2rem;
  white-space: normal;
}

/* ── MÓVIL — hasta 600px ── */
@media (max-width: 600px) {

  .olas-overlay {
    flex-direction: column;       /* apila título arriba, subtítulo abajo */
    align-items: center;
    text-align: center;
    gap: 1rem;
    white-space: normal;
    width: 90%;                   /* evita que se salga del borde */
  }

  #olas {
    position: relative;
    width: 100%;
    height: 25vh; /* o la altura que necesites */
    min-height: 100px;
  }

  .olas-titulo {
    font-size: clamp(2.8rem, 14vw, 4rem);   /* más grande en vw porque la pantalla es angosta */
    letter-spacing: 0.08em;
  }

  .olas-subtitulo {
    font-size: clamp(0.8rem, 3.8vw, 1rem);
    max-width: 100%;
    border-left: none;                        /* el borde lateral no queda bien centrado */
    border-top: 2px solid rgba(255,255,255,0.4);
    padding-left: 0;
    padding-top: 0.8rem;
    text-align: center;
  }
}

/* ── TABLET — 601px a 900px ── */
@media (min-width: 601px) and (max-width: 900px) {

  .olas-overlay {
    gap: 1.2rem;
  }

  .olas-titulo {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .olas-subtitulo {
    font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    max-width: 220px;
  }
}

/* Fila tabs + botón */
.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* para que el botón se alinee a la derecha */
  gap: 12px;
  margin-bottom: 0; /* el margen lo maneja .tabs si ya lo tiene */
  flex-wrap: wrap;
}

.explorer-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--ocean);
  border: 1px solid var(--line);
  background: var(--white);
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
  min-height: 38px;
}

.explorer-expand-btn:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

/* Cuadro de descripción */
.iframe-desc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.iframe-desc__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.iframe-desc__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.iframe-desc__text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* Móvil */
@media (max-width: 640px) {
  .tabs-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .explorer-expand-btn {
    align-self: flex-end;
  }
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Chips de filtros activos */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--foam);
  border: 1px solid var(--tide);
  color: var(--ocean);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip svg {
  opacity: 0.6;
}

/* Botón limpiar */
.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-clear-filters:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

/* Contador */
.products-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  font-family: "Roboto Mono", monospace;
}

#counter-visible {
  color: var(--ocean);
  font-size: 15px;
}

/* Móvil */
@media (max-width: 640px) {
  .product-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* estado vacío cuando no hay resultados */
.pdf-empty {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ── Contenedor general ── */
.eventos-explorer {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Panel ── */
.eventos-panel {
  display: none;
}
.eventos-panel.active {
  display: block;
}

/* ── Layout info + media ── */
.evento-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
}

/* ── Info lateral ── */
.evento-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--foam);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.evento-titulo {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.evento-desc {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
  margin: 0 0 20px;
}

.evento-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evento-meta li {
  font-size: 14px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-weight: 700;
  color: var(--ink);
  min-width: 110px;
}

/* ── iframe media ── */
.evento-media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--mist);
}

.evento-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Tablet ── */
@media (max-width: 860px) {
  .evento-layout {
    grid-template-columns: 1fr;
  }
  .evento-media {
    aspect-ratio: 16 / 9;
  }
}

/* ── Móvil ── */
@media (max-width: 600px) {
  .evento-layout {
    gap: 20px;
    padding-top: 20px;
  }
  .evento-titulo {
    font-size: 1.2rem;
  }
}
/* ══ Fix scroll tabs #eventos ══ */

/* El wrap no puede cortar el scroll horizontal */
#eventos .wrap {
  overflow-x: visible;
}

/* La barra scrollea, no el wrap */
#eventos .tabs-bar {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -ms-overflow-style: auto;
}

#eventos .tabs-bar::-webkit-scrollbar {
  height: 4px;
}

#eventos .tabs-bar::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

#eventos .tabs {
  display: flex;
  gap: 6px;
  min-width: max-content;
  padding-bottom: 6px;
}

#eventos .tabs .tab {
  flex-shrink: 0;
  white-space: nowrap;
}