@font-face {
  font-family: Cocogoose;
  src: url('assets/cocogoose.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Arciform;
  src: url('assets/arciform.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url('assets/lato.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --teal: #005b67;
  --teal-dark: #00414a;
  --teal-light: #e8f4f5;
  --mint: #1cc8a7;
  --mint-light: #e4f9f4;
  --pink: #ffbcd3;
  --pink-light: #fff2f6;
  --lavender: #d5b0eb;
  --lavender-light: #f7f0fd;
  --purple: #7c54e7;
  --cyan: #34ccd6;
  --cyan-light: #e8fafb;
  --yellow: #f8dc71;
  --yellow-light: #fefbeb;
  --coral: #f75d5d;
  --coral-light: #fdf0f0;
  --green: #00664e;
  --ink: #070606;
  --text-muted: #4a5555;
  --cream: #e9e0cf;
  --cream-light: #f7f4ee;
  --line: #d8e0df;
  --display: Cocogoose, Arial, sans-serif;
  --round: Arciform, Arial, sans-serif;
  --body: Lato, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}

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

h1, h2, h3, h4, h5, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: clamp(30px, 3.3vw, 54px);
  letter-spacing: -.025em;
}

h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}

h4 {
  font-size: 19px;
  font-family: var(--round);
}

.arc-text {
  font-family: var(--round);
  font-size: 1.14em;
  line-height: 1.05;
}

.section-shell {
  width: min(100%, 1600px);
  padding-inline: 5.5vw;
  margin-inline: auto;
}

.section-space {
  padding-block: 90px;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: bold;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 28px;
  min-height: 54px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: transform .2s, box-shadow .2s;
  border: none;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 var(--coral);
}

.button > span:not(.sr-only) {
  font-size: 22px;
  line-height: 1;
}

.button-teal {
  background: var(--teal);
  color: white;
}

.button-mint {
  background: var(--mint);
  color: var(--ink);
}

.button-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.button-outline-white:hover {
  background: white;
  color: var(--teal);
  box-shadow: 5px 5px 0 var(--mint);
}

.button-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.button-outline-teal:hover {
  background: var(--teal);
  color: white;
  box-shadow: 5px 5px 0 var(--mint);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid;
  padding-bottom: 4px;
  font-size: 17px;
  font-weight: bold;
  width: fit-content;
}

.text-link span {
  font-size: 20px;
}

.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: 10px;
  left: 10px;
  z-index: 100;
  background: var(--yellow);
  padding: 12px 20px;
  font-weight: bold;
  transform: translateY(-200%);
  border-radius: 4px;
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  height: 112px;
  padding: 10px 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: bold;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--teal);
  transition: border-color .2s, color .2s;
}

.desktop-nav a:hover {
  border-color: var(--mint);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero Section */
.hero {
  background: var(--teal);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  padding-top: 32px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  letter-spacing: .08em;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
  padding: 44px 0 54px;
}

.hero-copy h1 {
  font-size: clamp(38px, 4.4vw, 72px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hero-copy h1 > span {
  color: var(--mint);
}

.hero-copy p {
  max-width: 540px;
  font-size: 18.5px;
  line-height: 1.6;
  margin: 24px 0;
  color: #e5f4f4;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: white;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-width: 0;
  height: 520px;
}

.hero-photo {
  position: absolute;
  top: 55px;
  left: 0;
  width: 100%;
  height: 350px;
  background: var(--cyan);
  border: 9px solid white;
  transform: rotate(-3deg);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
}

.hero-photo:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 65, 70, .85));
}

.photo-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 12px;
  z-index: 1;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: bold;
  color: white;
}

.hero-sun {
  position: absolute;
  width: 155px;
  right: -30px;
  top: 10px;
  transform: rotate(9deg);
  animation: brand-float 6s ease-in-out infinite;
}

.hero-tree {
  position: absolute;
  width: 135px;
  left: -40px;
  bottom: 15px;
  transform: rotate(-12deg);
}

.hero-note {
  position: absolute;
  bottom: 0px;
  right: 0px;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: var(--pink);
  padding: 20px 24px;
  transform: rotate(3deg);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-note span {
  font-family: var(--round);
  font-size: 28px;
  line-height: 1.1;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 20px 0;
  font-size: 14px;
}

.hero-bottom > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 2px;
}

/* Brand Ribbon */
.brand-ribbon {
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  padding: 18px 4vw;
  overflow: hidden;
}

.brand-ribbon > span {
  font-family: var(--round);
  font-size: clamp(20px, 2.3vw, 36px);
  color: var(--teal-dark);
}

.ribbon-sep {
  font-size: clamp(20px, 2.3vw, 32px);
  color: var(--teal-dark);
  opacity: 0.4;
  user-select: none;
}

/* Sección Marco Institucional / Nosotros */
.about {
  padding-top: 80px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
  align-items: start;
}

.about-intro-grid .eyebrow {
  color: var(--teal);
  margin-bottom: 24px;
}

.about-intro-grid h2 {
  color: var(--teal);
}

.about-intro-grid .arc-text {
  color: var(--purple);
}

.about-copy > p {
  margin-top: 18px;
}

.about-copy > p:first-of-type {
  font-size: 21px;
  line-height: 1.55;
  color: var(--teal-dark);
}

.about-cta {
  margin-top: 28px;
}

.about-eye {
  width: 100px;
  height: 60px;
  object-fit: contain;
  transform: rotate(-8deg);
  margin-bottom: 15px;
}

/* Legal Banner */
.legal-banner {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.legal-badge-icon {
  font-size: 34px;
  line-height: 1;
}

.legal-banner-content h4 {
  font-family: var(--display);
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 6px;
}

.legal-banner-content p {
  font-size: 15px;
  color: var(--teal-dark);
  line-height: 1.5;
}

/* Misión y Visión */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.mv-card {
  padding: 34px 32px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.mv-mission {
  background: var(--cyan-light);
  border: 2px solid var(--cyan);
}

.mv-vision {
  background: var(--pink-light);
  border: 2px solid var(--pink);
}

.mv-card .eyebrow {
  color: var(--teal);
  margin-bottom: 14px;
}

.mv-card h3 {
  color: var(--teal);
  margin-bottom: 16px;
  font-size: 26px;
}

.mv-card p {
  font-size: 16.5px;
  line-height: 1.6;
}

/* 5 Principios Orientadores */
.principles-section {
  margin-bottom: 70px;
}

.subheading-block {
  text-align: left;
  margin-bottom: 30px;
}

.subheading-block .eyebrow {
  color: var(--teal);
  margin-bottom: 10px;
}

.subheading-block h3 {
  color: var(--teal);
  font-size: clamp(24px, 2.4vw, 34px);
}

.subheading-block p {
  color: var(--text-muted);
  max-width: 700px;
  margin-top: 8px;
}

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

.principle-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(0, 91, 103, 0.1);
}

.principle-num {
  font-family: var(--round);
  font-size: 32px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.principle-card h4 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 8px;
}

.principle-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Equipo Multidisciplinario (Sin nombres) */
.team-section {
  background: var(--cream-light);
  border-radius: 12px;
  padding: 48px 5vw;
  margin-bottom: 60px;
  border: 1px solid var(--cream);
}

.team-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.discipline-card {
  background: white;
  border-radius: 8px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.discipline-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
}

.discipline-card h4 {
  color: var(--teal);
  font-size: 17.5px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.discipline-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Aliados Estratégicos */
.allies-section {
  margin-bottom: 40px;
}

.allies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.ally-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  background: white;
}

.ally-card h4 {
  color: var(--teal);
  font-size: 16.5px;
  margin-bottom: 6px;
}

.ally-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Líneas de Trabajo */
.work {
  padding-top: 30px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 45px;
}

.section-heading .eyebrow {
  color: var(--teal);
  margin-bottom: 16px;
}

.section-heading h2 {
  color: var(--teal);
}

.section-heading > p {
  max-width: 380px;
  font-size: 17px;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.work-card {
  padding: 30px 28px 24px;
  border-radius: 8px;
  min-width: 0;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.work-learn {
  background: var(--cyan-light);
  border: 2px solid var(--cyan);
}

.work-create {
  background: var(--pink-light);
  border: 2px solid var(--pink);
}

.work-care {
  background: var(--lavender-light);
  border: 2px solid var(--lavender);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-number {
  font-family: var(--round);
  font-size: 40px;
  line-height: 1;
  color: var(--teal);
}

.status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: .04em;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
}

.status-active {
  background: var(--mint);
  color: var(--ink);
}

.status-planned {
  background: var(--yellow);
  color: var(--ink);
}

.status-expanded {
  background: var(--purple);
  color: white;
}

.work-card h3 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--teal);
}

.work-card > p {
  font-size: 16.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.work-card details {
  margin-top: 15px;
  border-top: 1px solid rgba(7, 6, 6, 0.15);
}

.work-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--teal);
  cursor: pointer;
}

.work-card summary::-webkit-details-marker {
  display: none;
}

.work-card summary > span {
  font-size: 26px;
  font-family: var(--round);
  line-height: 1;
}

.work-card details[open] summary > span {
  transform: rotate(45deg);
}

.details-content {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 18px;
}

.details-content h5 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: var(--teal);
  font-family: var(--body);
  font-weight: bold;
}

.details-content ul, .details-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.details-content li {
  margin-bottom: 6px;
}

.targets-tag {
  background: white;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 14px;
  border: 1px dashed var(--teal);
}

/* Transversal: Bienes Públicos Digitales */
.commons-banner {
  background: var(--teal);
  color: white;
  border-radius: 10px;
  padding: 38px 45px;
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
}

.commons-banner h3 {
  font-size: 28px;
  color: var(--mint);
  margin-bottom: 10px;
}

.commons-banner p {
  font-size: 17px;
  color: #e2f5f4;
  max-width: 800px;
}

/* Sección Innovaciones Propias y Proyectos Emblemáticos */
.innovations {
  background: white;
}

.innovations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 40px;
}

.innovation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px 34px;
  background: white;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.innovation-offline {
  border-top: 6px solid var(--coral);
}

.innovation-geoportal {
  border-top: 6px solid var(--teal);
}

.innovation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.innovation-header .eyebrow {
  color: var(--teal);
}

.innovation-card h3 {
  color: var(--teal);
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.innovation-lead {
  font-size: 16.5px;
  color: var(--teal-dark);
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.5;
}

.feature-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: bold;
  font-size: 17px;
}

.highlight-box {
  background: var(--teal-light);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--teal-dark);
  margin-top: auto;
  border-left: 3px solid var(--mint);
}

/* Repositorio Histórico de Proyectos */
.history-section {
  margin-top: 70px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  transition: transform .2s, border-color .2s;
}

.history-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.history-badge {
  font-family: var(--round);
  font-size: 18px;
  color: var(--teal);
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.history-card h4 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 8px;
}

.history-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Metodología / Cómo Trabajamos */
.methodology {
  background: var(--cream);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.method-card {
  background: white;
  border-radius: 8px;
  padding: 26px 22px;
  border: 1px solid rgba(7, 6, 6, 0.08);
}

.method-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.method-card h4 {
  color: var(--teal);
  font-size: 18.5px;
  margin-bottom: 10px;
}

.method-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.gender-focus-banner {
  background: white;
  border: 2px solid var(--purple);
  border-radius: 8px;
  padding: 26px 30px;
  margin-top: 35px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.gender-icon {
  font-size: 36px;
  color: var(--purple);
}

.gender-focus-banner h4 {
  color: var(--purple);
  font-size: 20px;
  margin-bottom: 6px;
}

.gender-focus-banner p {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
}

/* Territorios y Geoportal Banner */
.territories {
  background: var(--teal);
  color: white;
}

.portal-banner {
  position: relative;
  overflow: hidden;
}

.portal-background {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: .45;
  mix-blend-mode: luminosity;
}

.portal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 70, 80, .94), rgba(0, 80, 85, .35));
}

.portal-content {
  position: relative;
  padding-top: 67px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  padding: 38px 0 46px;
}

.portal-lead-block {
  max-width: 520px;
}

.portal-name {
  display: block;
  font-family: var(--round);
  font-size: 26px;
  margin-bottom: 20px;
}

.portal-grid h2 {
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.1;
}

.portal-grid h2 span {
  color: var(--mint);
}

.portal-grid p {
  font-size: 18.5px;
  max-width: 480px;
  margin: 24px 0 28px;
  color: #e5f5f4;
  line-height: 1.55;
}

/* Geovisor Interactivo Insertado a la Derecha */
.portal-map-preview {
  position: relative;
  background: rgba(0, 42, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 20, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.portal-map-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 20, 25, 0.6), 0 0 0 1px rgba(28, 200, 167, 0.35);
}

.map-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(0, 32, 38, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}

.map-frame-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5f5f4;
  font-weight: 500;
  letter-spacing: .02em;
}

.status-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(28, 200, 167, 0.7);
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(28, 200, 167, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(28, 200, 167, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(28, 200, 167, 0);
  }
}

.map-frame-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 12.5px;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(28, 200, 167, 0.12);
  border: 1px solid rgba(28, 200, 167, 0.3);
  transition: background .2s, color .2s, border-color .2s;
}

.map-frame-action:hover {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}

.map-iframe-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: #002b33;
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Catálogo Aula Virtual Insertado a la Derecha en Sección 04 */
.aula-catalog-preview {
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--mint);
  background: white;
}

.aula-catalog-preview:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 var(--mint);
}

.aula-catalog-preview .map-frame-header {
  background: rgba(0, 32, 38, 0.95);
  border-bottom: 2px solid var(--ink);
}

.aula-catalog-preview .map-iframe-container {
  height: 520px;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .aula-catalog-preview .map-iframe-container {
    height: 480px;
  }
}

@media (max-width: 600px) {
  .aula-catalog-preview .map-iframe-container {
    height: 380px;
  }
}

@media (max-width: 1100px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portal-lead-block {
    max-width: 100%;
  }
  .map-iframe-container {
    height: 440px;
  }
}

@media (max-width: 600px) {
  .map-iframe-container {
    height: 340px;
  }
  .map-frame-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.portal-art {
  align-self: center;
  position: relative;
  text-align: center;
  padding: 45px 25px 70px;
}

.portal-art > img:first-child {
  width: 280px;
  margin: 0 auto 22px;
  transform: rotate(-8deg);
}

.portal-art > span {
  display: block;
  font-family: var(--round);
  font-size: 37px;
  line-height: 1.2;
  transform: rotate(-4deg);
}

.portal-ring {
  position: absolute;
  bottom: -40px;
  right: -10px;
  width: 130px;
  transform: rotate(20deg);
}

.portal-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 14px;
}

.portal-foot a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.territory-apps {
  padding-block: 70px 85px;
}

.applications-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}

.applications-heading > h3 {
  font-size: 33px;
}

.applications-heading > p {
  font-size: 17px;
  max-width: 320px;
  color: #c9eceb;
}

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

.learning-apps .app-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.territory-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 31px 30px 24px;
  color: var(--ink);
  transition: transform .25s, box-shadow .25s;
  border-radius: 8px;
  text-decoration: none;
}

.territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.25);
}

.tolupan {
  background: var(--mint);
}

.nicaragua {
  background: var(--lavender);
}

.costarica {
  background: var(--yellow);
}

.method-cyan {
  background: var(--cyan);
}

.territory-card.has-media {
  padding: 0;
}

.territory-card.has-media .territory-card-media {
  height: 185px;
  width: 100%;
  overflow: hidden;
  background: #002228;
}

.territory-card.has-media .territory-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.territory-card.has-media:hover .territory-card-media img {
  transform: scale(1.05);
}

.territory-card.has-media .territory-card-body {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.territory-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.outbound {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 6, 6, 0.4);
  border-radius: 50%;
  font-size: 22px;
}

.territory-card h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.18;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.territory-card p {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  min-height: 80px;
  line-height: 1.5;
}

.territory-motif {
  position: absolute;
  right: 20px;
  top: 90px;
  width: 75px;
  transform: rotate(8deg);
  opacity: .35;
}

.nicaragua .territory-motif {
  width: 90px;
  top: 95px;
  right: 18px;
}

.costarica .territory-motif {
  width: 70px;
  top: 85px;
  right: 18px;
}

.app-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(7, 6, 6, 0.2);
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: bold;
  color: var(--ink);
}

.app-link > span {
  font-size: 20px;
}

/* Sección Recursos y Publicaciones */
.resources-section {
  background: white;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.resource-type {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .08em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.resource-card h4 {
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.resource-card .text-link {
  margin-top: auto;
}

/* Súmate a eiT */
.join {
  background: var(--pink);
  overflow: hidden;
}

.join-inner {
  display: block;
  max-width: 780px;
  padding-top: 75px;
  padding-bottom: 50px;
}

.join-heading .eyebrow {
  font-size: 12px;
  margin-bottom: 24px;
  color: var(--teal-dark);
}

.join h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  color: var(--teal);
}

.join .arc-text {
  color: var(--ink);
}

.join-heading p {
  font-size: 18px;
  max-width: 500px;
  margin: 22px 0 28px;
}

.join-pattern {
  width: 600px;
  max-width: none;
  transform: rotate(-6deg);
  margin-left: 0;
}

.join-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding-bottom: 60px;
}

.channel-card {
  background: white;
  border-radius: 8px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.channel-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.channel-card h4 {
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 10px;
}

.channel-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.channel-card .button {
  margin-top: auto;
  width: 100%;
  font-size: 15px;
  padding: 12px 18px;
  min-height: 46px;
}

/* Footer */
.site-footer {
  padding-block: 50px 30px;
  background: white;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  margin-bottom: 15px;
}

.footer-brand-col .legal-name {
  font-weight: bold;
  font-size: 15px;
  color: var(--teal);
  line-height: 1.3;
}

.footer-brand-col .legal-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.footer-col h4 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.credits {
  margin-top: 20px;
  font-size: 12.5px;
  color: #667575;
}

.credits summary {
  cursor: pointer;
  width: fit-content;
}

.credits p {
  max-width: 950px;
  margin-top: 8px;
  line-height: 1.6;
}

.credits a {
  text-decoration: underline;
}

/* Animaciones */
@keyframes brand-float {
  0%, 100% {
    transform: rotate(9deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-10px);
  }
}

/* Responsividad */
@media(max-width: 1200px) {
  .desktop-nav {
    gap: 16px;
    font-size: 14px;
  }
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .allies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media(max-width: 900px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 91, 103, 0.12);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .brand-title {
    font-size: 16.5px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .header-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 91, 103, 0.2);
    transition: transform .15s, background .15s;
  }

  .header-cta:active {
    transform: scale(0.96);
  }

  .menu-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--teal);
    background: white;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background .15s, border-color .15s;
  }

  .menu-toggle:active {
    background: #f0fdfa;
    transform: scale(0.95);
  }

  .menu-toggle > span {
    width: 20px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    height: calc(100dvh - 64px);
    padding: 20px 20px 90px;
    background: #004b55;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--round);
    font-size: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: drawerFadeIn .2s ease-out;
  }

  @keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-nav > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 6px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color .15s, padding-left .15s;
  }

  .mobile-nav > a:active,
  .mobile-nav > a.nav-active {
    color: var(--mint);
    padding-left: 10px;
  }

  .mobile-nav-group {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mint);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
  }

  .mobile-sublink {
    font-family: var(--body, sans-serif);
    font-size: 14.5px !important;
    padding: 10px 8px !important;
    border-radius: 8px;
    border-bottom: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
  }

  .mobile-sublink:active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mint) !important;
  }

  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-visual {
    height: 420px;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .innovations-grid {
    grid-template-columns: 1fr;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .join-inner {
    grid-template-columns: 1fr;
  }
  .join-channels {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .commons-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .gender-focus-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .legal-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media(max-width: 600px) {
  .section-shell {
    padding-inline: 6vw;
  }
  .section-space {
    padding-block: 65px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .team-disciplines-grid {
    grid-template-columns: 1fr;
  }
  .allies-grid {
    grid-template-columns: 1fr;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 8.5vw, 48px);
  }
  .hero-visual {
    height: 360px;
  }
  .hero-photo {
    height: 240px;
  }
  .hero-sun {
    width: 105px;
  }
  .hero-note {
    min-width: 190px;
    padding: 16px 20px;
  }
  .hero-note span {
    font-size: 24px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-art {
    display: none;
  }
  .portal-foot {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}


/* --- Subpage & Decoupled Architecture Styles --- */
.desktop-nav a.nav-active {
  border-color: var(--mint);
  color: var(--ink);
}

.page-hero {
  background: var(--teal);
  color: white;
  padding: 48px 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  color: #c0dede;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #e4f9f4;
}

.breadcrumb span {
  margin-inline: 6px;
}

.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 10px 0 16px;
  line-height: 1.15;
}

.page-hero-lead {
  font-size: 19px;
  max-width: 820px;
  color: #e5f4f4;
  line-height: 1.55;
}

.overview-box {
  background: var(--cream-light);
  border: 1px solid var(--cream);
  border-radius: 10px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.overview-box-text h3 {
  font-size: 26px;
  color: var(--teal);
  margin-bottom: 8px;
}

.overview-box-text p {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 800px;
}

.section-more-bar {
  background: var(--cream-light);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

.work-detail-block {
  padding: 10px 0;
}

.detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-subtitle {
  font-size: 18.5px;
  color: var(--teal-dark);
  font-weight: bold;
  margin-top: 8px;
}

.curriculum-box {
  background: var(--cream-light);
  border-radius: 10px;
  padding: 35px;
  margin: 30px 0;
  border: 1px solid var(--cream);
}

.curriculum-box h3 {
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 8px;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.curr-item {
  display: flex;
  gap: 14px;
  background: white;
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.curr-num {
  font-family: var(--round);
  font-size: 20px;
  color: var(--teal);
  font-weight: bold;
  flex-shrink: 0;
}

.curr-item strong {
  display: block;
  font-size: 15.5px;
  color: var(--teal);
  margin-bottom: 4px;
}

.curr-item p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.project-spec-box {
  background: var(--pink-light);
  border: 2px solid var(--pink);
  border-radius: 10px;
  padding: 32px;
  margin: 25px 0;
}

.project-spec-box h4 {
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 12px;
}

.project-spec-box h5 {
  font-size: 17px;
  color: var(--teal);
  margin: 18px 0 8px;
  font-family: var(--body);
  font-weight: bold;
}

.project-spec-box ul {
  padding-left: 20px;
  margin: 10px 0;
}

.project-spec-box li {
  margin-bottom: 6px;
  font-size: 15.5px;
}

.method-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 25px 0;
}

.split-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.split-col h4 {
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 10px;
}

.split-col p {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 60px 0;
}

.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.tech-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.tech-card h4 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.territory-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0;
}

.app-detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.app-detail-card h3 {
  font-size: 24px;
  color: var(--teal);
  margin: 10px 0 14px;
}

.app-detail-card ul {
  padding-left: 20px;
  margin: 12px 0 24px;
}

.app-detail-card li {
  margin-bottom: 8px;
  font-size: 15px;
}

.app-detail-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.contact-direct-box {
  background: var(--teal-light);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  padding: 32px;
  margin-top: 40px;
  text-align: center;
}

.contact-direct-box h3 {
  color: var(--teal);
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-direct-box a {
  color: var(--teal);
  text-decoration: underline;
  font-size: 20px;
}

@media(max-width: 900px) {
  .overview-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-more-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
  .method-split-grid {
    grid-template-columns: 1fr;
  }
  .tech-specs-grid {
    grid-template-columns: 1fr;
  }
  .territory-apps-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Home Page Alternating Section Backgrounds & Uniform Cards --- */
body.home-page {
  background: white;
}

/* Full-bleed edge-to-edge section backgrounds with aligned centered content */
body.home-page section.section-shell,
body.home-page footer.site-footer {
  width: 100%;
  max-width: 100%;
  padding-inline: max(5.5vw, calc((100% - 1480px) / 2));
}

body.home-page .hero-inner,
body.home-page .portal-content,
body.home-page .territory-apps,
body.home-page .showcase-content,
body.home-page .learning-apps,
body.home-page .entrepreneur-apps {
  width: 100%;
  max-width: 100%;
  padding-inline: max(5.5vw, calc((100% - 1480px) / 2));
}

/* Grids alignment */
body.home-page .work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body.home-page .resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

body.home-page .join-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  padding-bottom: 0;
}

body.home-page .methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}

/* Cabeceras de sección base para home */
body.home-page .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 40px;
}

/* ============================================================
   SECCIÓN 01: La Fundación (Fondo Blanco Limpio Institucional)
   ============================================================ */
body.home-page .about {
  background: #ffffff;
  color: var(--ink);
  padding-top: 80px;
  border-bottom: 1px solid var(--line);
}

body.home-page .about .about-intro-grid .eyebrow {
  color: var(--teal);
  margin-bottom: 14px;
}

body.home-page .about .about-intro-grid h2 {
  color: var(--teal);
  margin: 0;
}

body.home-page .about .about-intro-grid .arc-text {
  color: var(--purple);
}

body.home-page .about .about-copy > p {
  color: var(--text-muted);
}

body.home-page .about .about-copy > p:first-of-type {
  color: var(--teal-dark);
}

/* ============================================================
   SECCIÓN 02: Líneas de Trabajo (Fondo Aguamarina Suave / Teal Light)
   ============================================================ */
body.home-page .work {
  background: var(--teal-light); /* #e8f4f5 */
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

body.home-page .work .section-heading .eyebrow {
  color: var(--teal);
}

body.home-page .work .section-heading h2 {
  color: var(--teal);
  margin: 0;
}

body.home-page .work .section-heading h2 .arc-text {
  color: var(--purple);
}

body.home-page .work .section-heading > p {
  color: var(--text-muted);
}

body.home-page .work .territory-card {
  border: 1px solid rgba(0, 91, 103, 0.15);
}

body.home-page .work .territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 rgba(0, 65, 74, 0.35);
}

body.home-page .work .section-more-bar {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

body.home-page .work .section-more-bar span {
  color: var(--teal-dark);
}

/* ============================================================
   SECCIÓN 03: Territorios y Geoportal (Fondo Azul Petróleo / Dark Teal)
   ============================================================ */
body.home-page .territories {
  background: var(--teal); /* #005b67 */
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-page .territories .applications-heading .eyebrow {
  color: var(--mint);
}

body.home-page .territories .applications-heading h3 {
  color: white;
}

body.home-page .territories .applications-heading p {
  color: #c9eceb;
}

body.home-page .territories .territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.28);
}

body.home-page .territories .section-more-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: white;
}

body.home-page .territories .section-more-bar span {
  color: #e5f5f4;
}

/* ============================================================
   SECCIÓN 04: Línea 01 · Aprender para la vida (Fondo Crema Cálido / Humanista)
   ============================================================ */
body.home-page .learning,
body.home-page .methodology {
  background: var(--cream-light); /* #f7f4ee */
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

body.home-page .learning .showcase-lead-block .eyebrow,
body.home-page .learning .applications-heading .eyebrow,
body.home-page .methodology .section-heading .eyebrow {
  color: var(--teal);
}

body.home-page .learning .showcase-lead-block h2,
body.home-page .learning .applications-heading h3,
body.home-page .methodology .section-heading h2 {
  color: var(--teal);
  margin: 0;
}

body.home-page .learning .showcase-lead-block h2 .arc-text,
body.home-page .methodology .section-heading h2 .arc-text {
  color: var(--coral);
}

body.home-page .learning .showcase-lead-block p,
body.home-page .learning .applications-heading p,
body.home-page .methodology .section-heading > p {
  color: var(--text-muted);
}

body.home-page .learning .territory-card,
body.home-page .methodology .territory-card {
  border: 1px solid rgba(0, 91, 103, 0.15);
}

body.home-page .learning .territory-card:hover,
body.home-page .methodology .territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 rgba(0, 65, 74, 0.35);
}

body.home-page .learning .section-more-bar,
body.home-page .methodology .section-more-bar {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

body.home-page .learning .section-more-bar span,
body.home-page .methodology .section-more-bar span {
  color: var(--teal-dark);
}

/* ============================================================
   SECCIÓN 05: Línea 02 · Emprender entre generaciones (Fondo Azul Petróleo Oscuro / Dark Teal)
   ============================================================ */
body.home-page .entrepreneurship,
body.home-page .resources-section {
  background: var(--teal-dark); /* #00414a */
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-page .entrepreneurship .showcase-lead-block .eyebrow,
body.home-page .entrepreneurship .applications-heading .eyebrow,
body.home-page .resources-section .section-heading .eyebrow {
  color: var(--mint);
}

body.home-page .entrepreneurship .showcase-lead-block h2,
body.home-page .entrepreneurship .applications-heading h3,
body.home-page .resources-section .section-heading h2 {
  color: white;
  margin: 0;
}

body.home-page .entrepreneurship .showcase-lead-block h2 .arc-text,
body.home-page .resources-section .section-heading h2 .arc-text {
  color: var(--mint);
}

body.home-page .entrepreneurship .showcase-lead-block p,
body.home-page .entrepreneurship .applications-heading p,
body.home-page .resources-section .section-heading > p {
  color: #c9eceb;
}

body.home-page .entrepreneurship .territory-card:hover,
body.home-page .resources-section .territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.28);
}

body.home-page .entrepreneurship .section-more-bar,
body.home-page .resources-section .section-more-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: white;
}

body.home-page .entrepreneurship .section-more-bar span,
body.home-page .resources-section .section-more-bar span {
  color: #e5f5f4;
}

/* Showcase Banners & Hub Previews for Section 04 and 05 */
.showcase-banner {
  position: relative;
  overflow: hidden;
}

.showcase-content {
  position: relative;
  padding-top: 67px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  padding: 38px 0 46px;
}

.showcase-lead-block {
  max-width: 520px;
}

.showcase-name {
  display: block;
  font-family: var(--round);
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--teal);
}

.showcase-lead-block h2 {
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.1;
  margin: 0;
}

.showcase-lead-block p {
  font-size: 18.5px;
  max-width: 480px;
  margin: 24px 0 28px;
  line-height: 1.55;
}

.showcase-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 14px;
}

.showcase-foot a {
  border-bottom: 1px solid rgba(0, 91, 103, 0.6);
  font-weight: 500;
}

.learning-apps,
.entrepreneur-apps {
  padding-block: 70px 85px;
}

.showcase-hub-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.offline-hub {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 65, 74, 0.08);
}

.offline-hub:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 65, 74, 0.14);
}

.entrepreneur-hub {
  background: rgba(0, 32, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 15, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.entrepreneur-hub:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 15, 20, 0.6), 0 0 0 1px rgba(28, 200, 167, 0.35);
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fdfdfd;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.hub-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--teal-dark);
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--mint-light);
  color: var(--teal-dark);
  border: 1px solid rgba(28, 200, 167, 0.4);
}

.hub-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hub-card {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--teal-light);
  border: 1px solid rgba(0, 91, 103, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, border-color .2s;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.hub-card-icon {
  font-size: 22px;
  line-height: 1;
}

.hub-card h4 {
  font-size: 14.5px;
  color: var(--teal-dark);
  margin: 0;
  font-weight: bold;
}

.hub-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.hub-card-dark {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, border-color .2s;
}

.hub-card-dark:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
}

.hub-card-dark h4 {
  font-size: 14.5px;
  color: white;
  margin: 0;
  font-weight: bold;
}

.hub-card-dark p {
  font-size: 12.5px;
  color: #c9eceb;
  line-height: 1.4;
  margin: 0;
}

.hub-footer {
  padding: 12px 20px;
  background: #f8faf9;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--teal-dark);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hub-footer a {
  color: var(--teal);
  font-weight: bold;
  text-decoration: underline;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase-lead-block {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .hub-body {
    grid-template-columns: 1fr;
  }
  .hub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   SECCIÓN 06: Súmate a eiT (Fondo Lavanda Muy Suave / Acogedor)
   ============================================================ */
body.home-page .join {
  background: var(--lavender-light); /* #f7f0fd */
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

body.home-page .join .section-heading .eyebrow {
  color: var(--purple);
}

body.home-page .join .section-heading h2 {
  color: var(--teal);
  margin: 0;
}

body.home-page .join .section-heading h2 .arc-text {
  color: var(--purple);
}

body.home-page .join .section-heading > p {
  color: var(--text-muted);
}

body.home-page .join .territory-card {
  border: 1px solid rgba(124, 84, 231, 0.2);
}

body.home-page .join .territory-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 rgba(124, 84, 231, 0.3);
}

body.home-page .join .section-more-bar {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 22px 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

body.home-page .join .section-more-bar span {
  color: var(--teal-dark);
}

/* ============================================================
   Pie de página en Home Page (Azul Petróleo Noche)
   ============================================================ */
body.home-page .site-footer {
  background: var(--teal-dark);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.home-page .footer-brand-col .legal-name {
  color: white;
}

body.home-page .footer-brand-col .legal-detail {
  color: #c9eceb;
}

body.home-page .footer-col h4 {
  color: var(--mint);
}

body.home-page .footer-col a {
  color: #e5f5f4;
}

body.home-page .footer-col a:hover {
  color: var(--mint);
}

body.home-page .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #c9eceb;
}

body.home-page .credits {
  color: #a0c4c3;
}

/* ============================================================
   NUEVAS ESTRUCTURAS VISUALES Y REORGANIZACIÓN DINÁMICA (HOME)
   ============================================================ */

/* SECCIÓN 01: Somos Fundación eiT - Split Editorial con Fotografía y Badge Flotante */
.about-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-editorial-copy {
  display: flex;
  flex-direction: column;
}

.about-editorial-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.about-media-box {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 65, 74, 0.14);
}

.about-media-frame {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 8px solid white;
  background: var(--sand);
}

.about-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 43, 49, 0.45), transparent 60%);
  pointer-events: none;
}

.floating-stat-badge {
  position: absolute;
  bottom: -22px;
  left: 20px;
  right: 20px;
  background: rgba(0, 43, 49, 0.94);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--mint);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.floating-stat-badge .badge-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.floating-stat-badge strong {
  display: block;
  font-size: 15px;
  color: var(--mint);
  margin-bottom: 2px;
}

.floating-stat-badge span {
  display: block;
  font-size: 13.5px;
  color: #e5f5f4;
  line-height: 1.35;
}

/* SECCIÓN 02: Tríptico Visual con Cabeceras Fotográficas */
.work-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.triptych-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}

.triptych-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 65, 74, 0.12);
  border-color: var(--teal);
}

.triptych-card.card-featured {
  border-top: 5px solid var(--purple);
}

.card-photo-header {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.card-photo-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.triptych-card:hover .card-photo-header img {
  transform: scale(1.06);
}

.card-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 43, 49, 0.85);
  backdrop-filter: blur(6px);
  color: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-photo-header .outbound {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.triptych-card:hover .card-photo-header .outbound {
  transform: translateX(4px);
  background: var(--teal);
  color: white;
}

.triptych-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.triptych-body h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.triptych-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #3b5055;
  margin-bottom: 20px;
  flex: 1;
}

.triptych-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
  font-weight: bold;
  color: var(--teal);
}

/* SECCIÓN 03: Dossiers Territoriales Ilustrados (Línea 03) */
.territory-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.territory-dossier-card {
  background: rgba(0, 25, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.territory-dossier-card:hover {
  transform: translateY(-6px);
  border-color: var(--mint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.dossier-photo-wrap {
  height: 180px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.dossier-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.territory-dossier-card:hover .dossier-photo-wrap img {
  transform: scale(1.06);
}

.dossier-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 25, 30, 0.95), transparent 60%);
}

.dossier-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: var(--mint);
  border: 1px solid rgba(28, 200, 167, 0.4);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dossier-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.territory-dossier-card:hover .dossier-arrow {
  background: var(--mint);
  color: var(--ink);
  transform: translateX(3px);
}

.dossier-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dossier-body h3 {
  font-size: 21px;
  line-height: 1.25;
  color: white;
  margin-bottom: 10px;
}

.dossier-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #c9eceb;
  margin-bottom: 18px;
  flex: 1;
}

.dossier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: bold;
  color: var(--mint);
}

/* SECCIÓN 04: Asymmetric Magazine Split Layout (Línea 01 · Aprender) */
.magazine-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  margin-top: 36px;
  align-items: stretch;
}

.module-feature-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 65, 74, 0.05);
}

.module-feature-media {
  height: 280px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.module-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.module-feature-card:hover .module-feature-media img {
  transform: scale(1.04);
}

.module-feature-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 43, 49, 0.88);
  backdrop-filter: blur(6px);
  color: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.module-feature-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-feature-body h3 {
  font-size: 24px;
  line-height: 1.25;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.module-feature-body p {
  font-size: 16px;
  line-height: 1.6;
  color: #3b5055;
  margin-bottom: 20px;
}

.competencies-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.competency-pill {
  background: rgba(0, 65, 74, 0.06);
  border: 1px solid rgba(0, 65, 74, 0.14);
  color: var(--teal-dark);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
}

.module-stacked-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-subcard {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}

.module-subcard:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(0, 65, 74, 0.08);
}

.module-subcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.module-subcard-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 65, 74, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.module-subcard h4 {
  font-size: 19px;
  line-height: 1.3;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.module-subcard p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a6369;
  margin-bottom: 16px;
  flex: 1;
}

.subcard-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: bold;
  color: var(--teal);
}

/* SECCIÓN 05: Dynamic Ecosistema Mosaic (Línea 02 · Emprender) */
.entrepreneur-mosaic-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  margin-top: 36px;
  align-items: stretch;
}

.mosaic-hero-card {
  background: rgba(0, 25, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}

.mosaic-hero-card:hover {
  transform: translateY(-6px);
  border-color: var(--mint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.mosaic-hero-media {
  height: 280px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.mosaic-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mosaic-hero-card:hover .mosaic-hero-media img {
  transform: scale(1.05);
}

.mosaic-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 25, 30, 0.95), transparent 60%);
}

.mosaic-hero-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mosaic-hero-body h3 {
  font-size: 23px;
  line-height: 1.25;
  color: white;
  margin-bottom: 12px;
}

.mosaic-hero-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #c9eceb;
  margin-bottom: 18px;
}

.territory-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.territory-pill-dark {
  background: rgba(28, 200, 167, 0.12);
  border: 1px solid rgba(28, 200, 167, 0.3);
  color: var(--mint);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.mosaic-side-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mosaic-side-card {
  background: rgba(0, 25, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease;
}

.mosaic-side-card:hover {
  transform: translateY(-5px);
  border-color: var(--mint);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.mosaic-card-media-split {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  height: 100%;
}

.mosaic-thumb-img {
  width: 130px;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.mosaic-side-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mosaic-side-card-content h4 {
  font-size: 18px;
  color: white;
  margin-bottom: 6px;
}

.mosaic-side-card-content p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #c9eceb;
  margin-bottom: 10px;
}

.mosaic-link-text {
  font-size: 13px;
  font-weight: bold;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SECCIÓN 06: Mosaico 2x2 Participativo (Súmate a eiT) */
.join-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.join-mosaic-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.join-mosaic-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(0, 65, 74, 0.1);
}

.join-mosaic-header {
  height: 170px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.join-mosaic-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.join-mosaic-card:hover .join-mosaic-header img {
  transform: scale(1.05);
}

.join-mosaic-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 43, 49, 0.88);
  backdrop-filter: blur(6px);
  color: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.join-mosaic-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.join-mosaic-body h3 {
  font-size: 21px;
  line-height: 1.25;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.join-mosaic-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3b5055;
  margin-bottom: 18px;
  flex: 1;
}

.join-mosaic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: bold;
  color: var(--teal);
}

/* Responsive Queries for New Layouts */
@media (max-width: 960px) {
  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-media-frame {
    height: 320px;
  }
  .work-triptych {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .territory-dossier-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .magazine-split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .entrepreneur-mosaic-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .join-mosaic-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .mosaic-card-media-split {
    grid-template-columns: 1fr;
  }
  .mosaic-thumb-img {
    width: 100%;
    height: 140px;
  }
}


/* ========================================================
   SECCION AULA VIRTUAL OFFLINE (KOLIBRI CATALOG & REA)
   ======================================================== */

.kolibri-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.kolibri-stat-card {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 20px;
  background: white;
  transition: transform .2s, box-shadow .2s;
}

.kolibri-stat-card:hover {
  transform: translateY(-3px);
}

.kolibri-stat-card.stat-mint {
  box-shadow: 4px 4px 0 var(--mint);
  border-top: 5px solid var(--mint);
}
.kolibri-stat-card.stat-lilac {
  box-shadow: 4px 4px 0 var(--lilac);
  border-top: 5px solid var(--lilac);
}
.kolibri-stat-card.stat-yellow {
  box-shadow: 4px 4px 0 var(--yellow);
  border-top: 5px solid var(--yellow);
}
.kolibri-stat-card.stat-coral {
  box-shadow: 4px 4px 0 var(--coral);
  border-top: 5px solid var(--coral);
}

.stat-number {
  font-family: var(--round), 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 2.7vw, 38px);
  color: var(--teal);
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 13.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  margin-top: 4px;
  display: block;
}

.stat-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

/* Explicador de Arquitectura Offline */
.offline-architecture-box {
  background: #f0fdf9;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 6px 6px 0 var(--mint);
  margin-bottom: 50px;
}

.offline-architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.arch-step-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.arch-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--display);
  font-size: 14px;
  margin-bottom: 12px;
}

.arch-step-card h4 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 8px;
}

.arch-step-card p {
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
  margin: 0;
}

/* Barra de Controles y Filtros de Kolibri */
.kolibri-controls-panel {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 6px 6px 0 var(--yellow);
  margin-bottom: 32px;
}

.controls-top-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-input-wrap input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 42px 10px 16px;
  font-size: 15px;
  font-family: var(--body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 91, 103, 0.15);
}

.search-input-wrap .search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #94a3b8;
  display: none;
}

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

.sort-select-wrap select {
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--body);
  font-weight: bold;
  color: var(--ink);
  background: white;
  cursor: pointer;
  outline: none;
}

.connection-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.connection-status-pill.status-offline {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

/* Píldoras de Filtro Temático */
.filter-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-pill-btn {
  background: #f1f5f9;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  transition: all .2s;
}

.filter-pill-btn:hover {
  border-color: var(--teal);
  background: #e6f7f5;
  color: var(--teal);
}

.filter-pill-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 3px 3px 0 var(--mint);
}

/* Barra de Resumen de Resultados */
.kolibri-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.kolibri-results-meta strong {
  color: var(--teal);
}

/* Rejilla de Canales Kolibri */
.kolibri-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.kolibri-channel-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.kolibri-channel-card.theme-mint:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--mint);
}
.kolibri-channel-card.theme-lilac:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--lilac);
}
.kolibri-channel-card.theme-yellow:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--yellow);
}
.kolibri-channel-card.theme-coral:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--coral);
}

.channel-media-header {
  height: 180px;
  background: #f8fafc;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.channel-media-header img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.kolibri-channel-card:hover .channel-media-header img {
  transform: scale(1.05);
}

.channel-floating-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.badge-item {
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink);
}

.badge-item.badge-resources {
  background: var(--yellow);
  color: var(--ink);
}

.badge-item.badge-size {
  background: var(--ink);
  color: white;
}

.channel-content-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.channel-content-body h3 {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  color: var(--teal);
  margin-bottom: 10px;
}

.channel-description {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.channel-tag-pill {
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.channel-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.channel-card-actions .button {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  min-height: 42px;
  text-align: center;
  gap: 6px;
}

/* Modal de Ficha Tecnica Kolibri */
.kolibri-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 35, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.kolibri-modal-backdrop.is-open {
  display: flex;
}

.kolibri-modal-window {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--yellow);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalPop .2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 2px solid var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.modal-close-btn:hover {
  background: var(--coral);
  color: white;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-channel-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

.modal-title-group h3 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 4px;
}

.modal-code-box {
  background: #0f172a;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-code-box code {
  color: #38bdf8;
  font-family: monospace;
  font-size: 13.5px;
  word-break: break-all;
}

.modal-copy-btn {
  background: var(--teal);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.modal-copy-btn:hover {
  background: var(--mint);
  color: var(--ink);
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.modal-spec-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: bold;
}

.modal-spec-item strong {
  font-size: 14px;
  color: var(--ink);
}


/* Pestañas del Encabezado del Marco Cartográfico / Catálogo */
.map-frame-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.frame-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e5f5f4;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s ease;
  font-family: inherit;
}

.frame-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.frame-tab-btn.active {
  background: rgba(28, 200, 167, 0.22);
  border-color: var(--mint, #1cc8a7);
  color: var(--mint, #1cc8a7);
  box-shadow: 0 0 8px rgba(28, 200, 167, 0.25);
}


/* ============================================================
   MENÚ DESPLEGABLE DE RECURSOS EN NAVEGACIÓN PRINCIPAL
   ============================================================ */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--teal);
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color .2s, color .2s;
}

.nav-dropdown-btn:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-btn,
.nav-dropdown-wrapper:focus-within .nav-dropdown-btn,
.nav-dropdown-btn.nav-active {
  border-color: var(--mint);
  color: var(--ink);
}

.dropdown-caret {
  font-size: 11px;
  transition: transform .2s ease;
  line-height: 1;
}

.nav-dropdown-wrapper:hover .dropdown-caret,
.nav-dropdown-wrapper:focus-within .dropdown-caret,
.nav-dropdown-wrapper.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--mint);
  width: 330px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1000;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
.nav-dropdown-wrapper.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 8px 10px !important;
  border-radius: 8px;
  border: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  text-decoration: none;
  color: var(--ink) !important;
  transition: all .15s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: #e6f7f5;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
}

.nav-drop-icon {
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.nav-drop-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nav-drop-text strong {
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: bold;
}

.nav-dropdown-menu a:hover .nav-drop-text strong {
  color: var(--teal);
}

.nav-drop-text span {
  font-size: 11px;
  line-height: 1.3;
  color: #64748b;
  font-weight: 500;
}

.nav-drop-divider {
  border-top: 1.5px solid #e2e8f0 !important;
  margin-top: 4px;
  padding-top: 8px !important;
}

/* Menú móvil organizado */
.mobile-nav-group {
  margin: 10px 0;
  padding-left: 10px;
  border-left: 3px solid var(--mint);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-heading {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mint);
  font-family: inherit;
  font-weight: bold;
  margin-bottom: 4px;
}

.mobile-sublink {
  font-size: 16px !important;
  padding: 6px 0 !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white !important;
}

.mobile-sublink:hover {
  color: var(--mint) !important;
}

/* ============================================================
   ESTILOS DE RECURSOS & IA EDUCATIVA
   ============================================================ */
.ia-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.ia-generator-section {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--mint);
  padding: 36px 32px;
  margin-bottom: 50px;
}

.ia-generator-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.ia-role-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ia-role-btn {
  background: #f1f5f9;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s ease;
  font-family: inherit;
}

.ia-role-btn:hover {
  background: #e6f7f5;
  transform: translateY(-2px);
}

.ia-role-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--mint);
}

.ia-fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ia-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ia-field-group label {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--teal);
}

.ia-field-group select,
.ia-field-group input {
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  outline: none;
  transition: border-color .2s;
}

.ia-field-group select:focus,
.ia-field-group input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 91, 103, 0.15);
}

.ia-quick-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.ia-suggestion-chip {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.ia-suggestion-chip:hover {
  background: #e6f7f5;
  border-color: var(--teal);
  color: var(--teal);
}

.ia-output-card {
  margin-top: 24px;
  background: #f8fafc;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.ia-output-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
}

.ia-output-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  font-family: var(--body, sans-serif);
}

.ia-output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 2px solid #e2e8f0;
  padding-top: 14px;
}

/* Banco de Prompts */
.prompts-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.prompt-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--teal);
}

.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prompt-text-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  margin: 12px 0 16px;
  font-family: monospace;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* ============================================================
   HUB DE ACCESO RÁPIDO Y CATÁLOGO UNIVERSAL (RECURSOS.HTML)
   ============================================================ */
.recursos-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.recursos-hub-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.recursos-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--mint);
  color: var(--ink);
}

.recursos-hub-icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}

.recursos-hub-title {
  font-family: var(--round);
  font-size: 16px;
  color: var(--teal);
  font-weight: bold;
  margin-bottom: 4px;
}

.recursos-hub-count {
  font-size: 12px;
  font-weight: bold;
  color: #64748b;
  margin-bottom: 6px;
}

.recursos-hub-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: #475569;
  margin-bottom: 12px;
}

.recursos-hub-link {
  font-size: 12.5px;
  font-weight: bold;
  color: var(--teal);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================================
   MODAL VISOR GEOLIBRE (SOLUCIÓN 1 - POSTMESSAGE INTERACTIVO)
   ======================================================== */
.geolibre-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 24, 30, 0.82) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.geolibre-modal-backdrop[style*="display: none"] {
  display: none !important;
}

.geolibre-modal-window {
  background: white;
  border: 3px solid var(--ink, #1c2826);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--teal, #005b67);
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: geoModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes geoModalPop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.geolibre-modal-header {
  padding: 12px 18px;
  background: white;
  border-bottom: 2.5px solid var(--ink, #1c2826);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.geolibre-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 260px;
}

.geolibre-modal-tag {
  background: var(--mint, #1cc8a7);
  color: #002228;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink, #1c2826);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.geolibre-modal-title {
  font-family: var(--round, 'Arciform'), sans-serif;
  font-size: 18px;
  color: var(--teal, #005b67);
  margin: 0;
  line-height: 1.25;
  font-weight: bold;
}

.geolibre-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint, #1cc8a7);
  display: inline-block;
}

.status-dot.pulse {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; background: #10b981; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.geolibre-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.geolibre-modal-actions .button {
  padding: 6px 12px;
  font-size: 12px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.geolibre-close-btn {
  background: white;
  border: 2px solid var(--ink, #1c2826);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  line-height: 1;
}

.geolibre-close-btn:hover {
  background: var(--coral, #ff6e5a);
  color: white;
  transform: rotate(90deg);
}

.geolibre-modal-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #08242b;
  overflow: hidden;
}

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

.geolibre-spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 36, 43, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity .3s ease;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}

.geolibre-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(28, 200, 167, 0.25);
  border-top-color: var(--mint, #1cc8a7);
  border-radius: 50%;
  animation: spin-geo .8s linear infinite;
}

@keyframes spin-geo {
  to { transform: rotate(360deg); }
}

.geolibre-modal-footer {
  padding: 8px 18px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.geolibre-modal-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .geolibre-modal-window {
    width: 98vw;
    height: 94vh;
    border-width: 2px;
  }
  .geolibre-modal-header {
    padding: 10px 14px;
  }
  .geolibre-modal-title {
    font-size: 15px;
  }
  .geolibre-modal-actions .button span {
    display: none;
  }
}

/* ========================================================
   TARJETAS DE MAPAS: IMÁGENES DE BORDE A BORDE (SIN MARCO OSCURO)
   ======================================================== */
.catalogo-datos-page .channel-media-header,
.embed-shell .channel-media-header,
.kolibri-channel-card[data-cat="geoportal"] .channel-media-header,
.kolibri-channel-card[data-id^="geo-"] .channel-media-header {
  padding: 0 !important;
  background: #e2e8f0 !important;
}

.catalogo-datos-page .channel-media-header img,
.embed-shell .channel-media-header img,
.kolibri-channel-card[data-cat="geoportal"] .channel-media-header img,
.kolibri-channel-card[data-id^="geo-"] .channel-media-header img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 0.95;
}





/* ============================================================
   EXPERIENCIA APP MÓVIL NATIVA — TAB BAR Y CONTROL TÁCTIL
   ============================================================ */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-tab-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 91, 103, 0.12);
    z-index: 90;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-tab-bar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, transform .15s ease;
    position: relative;
  }

  .mobile-tab-bar .tab-item:active {
    transform: scale(0.92);
  }

  .mobile-tab-bar .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .mobile-tab-bar .tab-label {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
  }

  .mobile-tab-bar .tab-item.active {
    color: var(--teal);
  }

  .mobile-tab-bar .tab-item.active .tab-label {
    font-weight: 700;
  }

  .mobile-tab-bar .tab-item.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    background: var(--mint);
    border-radius: 50%;
  }

  .mobile-tab-bar .tab-item-highlight {
    color: var(--teal);
  }

  .mobile-tab-bar .tab-item-highlight .tab-icon {
    background: #e6f7f5;
    border-radius: 999px;
    width: 30px;
    height: 30px;
  }

  /* Ajustes de ergonomía móvil */
  .section-shell {
    padding-inline: 16px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .section-space {
    padding-block: 45px !important;
  }

  .section-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  .section-heading > p {
    max-width: 100% !important;
    font-size: 15px !important;
  }

  .join-pattern {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 16px 0 !important;
    height: auto !important;
  }

  .join-inner {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
    max-width: 100% !important;
  }

  .brand-ribbon {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 12px !important;
    padding: 12px 14px !important;
  }

  .brand-ribbon > span {
    font-size: 13px !important;
  }

  .ribbon-sep {
    font-size: 12px !important;
  }

  .hero-inner {
    padding-top: 20px !important;
    padding-bottom: 32px !important;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
  }

  .hero-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 11px !important;
    margin-bottom: 14px !important;
  }

  .hero-tags {
    gap: 6px !important;
    margin: 16px 0 20px !important;
  }

  .hero-tag {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-actions .button {
    width: 100% !important;
    justify-content: center !important;
    height: 48px !important;
    font-size: 15px !important;
  }

  .ia-generator-section {
    padding: 18px 14px !important;
    border-radius: 10px !important;
    box-shadow: 4px 4px 0 var(--mint) !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .ia-role-selector {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .ia-role-btn {
    padding: 8px 10px !important;
    font-size: 12.5px !important;
    justify-content: center !important;
  }

  .ia-fields-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ia-output-card {
    padding: 16px 12px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .ia-output-body {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 13.5px !important;
  }
}


.ia-field-group input,
.ia-field-group select,
.ia-field-group textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
