:root {
  --bg: #ffffff;
  --surface: #0f0f0f;
  --surface-soft: #181818;
  --text: #111111;
  --muted: #555555;
  --line: #e6e6e6;
  --white: #ffffff;
  --brand-teal: #2CBDA8;
  --brand-coral: #FF4E46;
  --brand-purple: #441867;
  --brand-gold: #FEDE3E;
  --brand-yellow: #FEDE3E;
  --tint-teal: rgba(44, 189, 168, 0.08);
  --tint-coral: rgba(255, 78, 70, 0.08);
  --tint-purple: rgba(68, 24, 103, 0.08);
  --tint-gold: rgba(254, 222, 62, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 189, 168, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(68, 24, 103, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.nav-wrap, .footer-grid, .content-grid, .hero-grid {
  display: grid;
  gap: 1rem;
}

.nav-wrap {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 1rem 0;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  white-space: nowrap;
}

.brand-accent {
  color: var(--brand-teal);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--brand-teal);
  color: var(--white);
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  justify-content: flex-end;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 15, 15, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.main-nav .nav-dropdown__item {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.main-nav .nav-dropdown__item:hover {
  background: rgba(44, 189, 168, 0.08);
  color: var(--text);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 0.9rem;
  border-bottom: 0;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(44, 189, 168, 0.08);
  color: var(--text);
}

.main-nav a.nav-link--active {
  background: rgba(68, 24, 103, 0.08);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--brand-teal);
}

.main-nav a.nav-link--active:hover {
  background: rgba(68, 24, 103, 0.12);
}

.main-nav a.nav-link--feature {
  background: linear-gradient(135deg, rgba(254, 222, 62, 0.95), rgba(255, 78, 70, 0.18));
  color: var(--surface);
  border: 1px solid rgba(255, 78, 70, 0.18);
  box-shadow: 0 10px 24px rgba(68, 24, 103, 0.12);
}

.main-nav a.nav-link--feature:hover {
  background: linear-gradient(135deg, rgba(254, 222, 62, 1), rgba(255, 78, 70, 0.25));
  transform: translateY(-1px);
}

.main-nav a.nav-link--intranet {
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(44, 189, 168, 0.55);
  border-radius: 999px;
  background: #ffffff;
  color: #0f6154;
  font-size: 0.82rem;
  font-weight: 700;
}

.main-nav a.nav-link--intranet:hover {
  background: rgba(44, 189, 168, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.hero-section, .testimonials-section, .cta-section {
  padding: 4rem 0;
}

/* INICIO PUBLICIDAD TEMPORAL: borrar este bloque cuando termine */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

  display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.popup.is-visible {
  display: flex;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

#cerrar-popup {
    float: right;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}
/* FIN PUBLICIDAD TEMPORAL */

.hero-section.hero-section--compact {
  height: 44vh;
  min-height: 44vh;
  padding: 0;
}

.hero-section.hero-section--compact .hero-grid {
  min-height: 44vh;
}

.content-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ==========================================================================
   ESTILOS COMPLEMENTARIOS PARA MISIÓN Y VISIÓN (NOSOTROS.HTML)
   ========================================================================== */

/* Contenedor principal que agrupa ambas cajas sobre la imagen */
.glass-corporate-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Separación simétrica entre Misión y Visión */
  padding: 4rem 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Caja con efecto vidrio (Glassmorphism) */
.corporate-glass-box {
  text-align: center;
  max-width: 860px;
  width: 100%;
  color: #ffffff;
  padding: 2.5rem 2rem;
  background: rgba(15, 15, 15, 0.45); /* Fondo oscuro semitransparente ajustado al diseño */
  border: 1px solid rgba(255, 255, 255, 0.15); /* Borde sutil estilo cristal */
  border-radius: 24px; /* Mantiene la consistencia de los paneles del ecosistema */
  backdrop-filter: blur(12px); /* Desenfoque de vidrio de alta definición */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Efecto interactivo sobrio al posicionar el cursor */
.corporate-glass-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Modificación del eyebrow para mantener la legibilidad sobre fondos oscuros */
.corporate-glass-box .eyebrow-light {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--brand-gold); /* Uso del tono oro de la fundación para destacar el subtítulo */
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.corporate-glass-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 800;
}

.corporate-glass-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
  text-align: center;
}

/* Ajuste de diseño en pantallas más grandes si prefiere posicionarlas en paralelo */
@media (min-width: 992px) {
  .glass-corporate-container {
    /* Si en el futuro requiere colocarlas lado a lado en lugar de vertical, 
       puede cambiar flex-direction a 'row' o mantenerlas en columna si prefiere lectura secuencial. 
       Por defecto se mantienen en una columna impecable debido al ancho de lectura. */
    max-width: 960px;
  }
}

/* ==========================================================================
   FIN ESTILOS COMPLEMENTARIOS PARA MISIÓN Y VISIÓN (NOSOTROS.HTML)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-grid--compact {
  height: 100%;
  min-height: 100%;
}

.hero-copy--compact {
  max-width: 40rem;
  padding: 1rem 0;
}

.hero-stage,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-stage {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 88vh;
}

.hero-copy {
  /* max-width: 34rem; */
  color: var(--white);
  padding: 1.5rem 0;
}

.hero-copy .eyebrow,
.hero-copy .lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy .button {
  background: var(--white);
  color: var(--surface);
}

.hero-stage {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción y cubre el área */
  position: absolute;
  top: 0;
  left: 0;
}

.hero-section--compact .hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.hero-copy h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 34rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--brand-purple);
}

h1, h2, h3 { line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.lead { 
  color: var(--muted); 
  font-size: 1.05rem; 
}

.hero-copy--home h1 {
  max-width: 12ch;
}

.hero-copy--home .lead {
  font-size: 1.02rem;
  max-width: fit-content;
}

.hero-copy--compact .lead {
  max-width: 38rem;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-purple), #2a0f41);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(68, 24, 103, 0.18);
}

.button:hover {
  background: linear-gradient(135deg, #53207c, #371154);
}

.button.button--compact {
  margin-top: 0.35rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}

.button--pending,
.button--pending:hover {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-card, .mini-panel, .stat-card, .cta-box, .testimonial, .purpose-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fafafa;
  padding: 1rem;
}

.mini-panel {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.30);
}

.stat-card {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.30);
}

.content-grid--balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.content-grid--balanced .mini-panel {
  min-height: 100%;
}

.purpose-section {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.purpose-stage,
.purpose-overlay {
  position: absolute;
  inset: 0;
}

.purpose-stage {
  z-index: 0;
}

.purpose-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
}

.purpose-slide.active {
  opacity: 1;
  transform: scale(1);
}

.purpose-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72));
}

.purpose-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  color: #ffffff;
  padding: 2.2rem 1.2rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(3px);
}

.purpose-box .eyebrow,
.purpose-box p {
  color: #f5f5f5;
}

.purpose-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.mini-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.leadership-intro .mini-panel,
.leadership-categories .value-card,
.leadership-cta {
  border-color: rgba(68, 24, 103, 0.12);
}

.leadership-intro .mini-panel:first-child {
  background: linear-gradient(180deg, #ffffff 0%, var(--tint-teal) 100%);
}

.leadership-intro .mini-panel:last-child {
  background: linear-gradient(180deg, #ffffff 0%, var(--tint-purple) 100%);
}

.leadership-summary {
  padding-top: 1rem;
}

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

.summary-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.summary-card strong {
  font-size: 1.2rem;
  color: var(--surface);
}

.summary-card--accent {
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 222, 62, 0.16) 100%);
  border-top: 4px solid var(--brand-gold);
}

.leadership-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.leadership-panel--story {
  padding: 1.45rem 1.4rem;
}

.leadership-panel--aside {
  padding: 1.35rem 1.25rem;
}

.leadership-note {
  margin: 0.5rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(68, 24, 103, 0.1);
  font-size: 0.95rem;
}

.director-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.director-photo {
  width: 30%;
  min-width: 120px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.director-text {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 0.5rem;
}

.director-quote {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  text-align: left;
}

.director-card strong,
.director-card span {
  display: block;
  text-align: right;
}

.hero-card {
  min-height: 320px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
    linear-gradient(135deg, #111, #2a2a2a);
  color: var(--white);
}

.slide, .testimonial { display: none; }
.slide.active, .testimonial.active { display: flex; }

.testimonial-slider {
  display: grid;
  gap: 0.75rem;
}

.testimonial-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.testimonial-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--surface);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.testimonial-btn:hover {
  background: #f3f3f3;
}

.testimonial {
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  min-height: 220px;
  width: 100%;
  box-sizing: border-box;
}

.testimonial-photo {
  width: 192px;
  height: 192px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.testimonial-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.testimonial-copy strong,
.testimonial-copy span {
  color: var(--surface);
  font-size: 0.95rem;
}
.stats-section {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   PUENTE VISUAL: DE TRAYECTORIA A ESTRUCTURA ORGANIZACIONAL
   ========================================================================== */

.transition-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.transition-bridge {
  padding: 2.2rem 1.4rem;
  border: 1px solid rgba(68, 24, 103, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(44, 189, 168, 0.12), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(254, 222, 62, 0.14), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f9f8fc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.transition-bridge--horizontal {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 1.4rem;
}

.transition-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 230px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

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

.transition-content {
  text-align: left;
}

.transition-content .eyebrow {
  text-align: left;
}

.transition-content .section-title-main {
  text-align: left;
  margin-bottom: 0.85rem;
}

.transition-title {
  margin-bottom: 1rem;
}

.transition-lead {
  margin: 0;
  max-width: 62ch;
}


/* ==========================================================================
   ESTILOS DE ARQUITECTURA ORGANIZACIONAL (EQUIPO EJECUTIVO Y LEGAL)
   ========================================================================== */

.team-section {
    padding: 4rem 0;
}

.bg-light-grain {
    background-color: #fbfbfd;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title-main {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--brand-purple);
    margin-bottom: 3rem;
}

.team-section--legal .section-title-main {
  margin-bottom: 2.4rem;
}

.team-section--executive {
  padding-top: 4.4rem;
  position: relative;
}

.team-section--executive::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(68, 24, 103, 0.28) 50%, transparent 100%);
}

/* --- Grillas Adaptativas de Distribución --- */
.team-grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

/* Directorio Legal (4 integrantes uniformes) */
.grid-directory-legal {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Directores de Área (5 columnas fluidas en pantallas grandes) */
.grid-directors {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Coordinadores (3 integrantes paralelos) */
.grid-coordinators {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --- Tarjeta de Perfil Profesional (Basada en .stat-card) --- */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.2rem 1.5rem 1.8rem 1.5rem;
    min-height: 380px; /* Asegura consistencia de altura */
}

  .team-section .profile-card {
    border-top: 0;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
  }

  .team-section .profile-card.card-purple,
  .team-section .profile-card.card-teal,
  .team-section .profile-card.card-yellow,
  .team-section .profile-card.card-red {
    background: #ffffff;
    border-top: 0;
  }

  .team-section .profile-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 6px;
  }

  .team-section .profile-card.card-purple::before {
    background: rgba(68, 24, 103, 0.9);
  }

  .team-section .profile-card.card-teal::before {
    background: rgba(44, 189, 168, 0.95);
  }

  .team-section .profile-card.card-yellow::before {
    background: rgba(254, 222, 62, 0.95);
  }

  .team-section .profile-card.card-red::before {
    background: rgba(255, 78, 70, 0.92);
  }

/* Centrado explícito del líder */
.hierarchy-level.level-leader {
    display: flex;
    justify-content: center;
  margin-bottom: 2.4rem;
}

.executive-leader-card {
    max-width: 320px;
    width: 100%;
}

/* --- Contenedor de Fotografía Profesional --- */
.profile-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.logo-photo {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
}

.pac-minibox {
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    font-weight: 600;
}

.pac-minibox.color-red {
  background: rgba(255, 78, 70, 0.15);
  color: var(--brand-coral); 
}

.pac-minibox.color-teal {
  background: rgba(44, 189, 168, 0.15);
  color: var(--brand-teal); 
}

.pac-minibox.color-purple {
  background: rgba(68, 24, 103, 0.15);
  color: var(--brand-purple); 
}

.pac-minibox.color-gold {
  background: rgba(254, 222, 62, 0.15);
  color: var(--brand-gold); 
}


.profile-card:hover .profile-photo {
    transform: scale(1.06);
}

/* --- Tipografía Interna de las Tarjetas --- */
.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Empuja el botón al fondo si hay mucho texto */
    width: 100%;
}

.profile-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin: 0 0 0.4rem 0;
}

.profile-role {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    min-height: 40px; /* Previene desalineación por cargos de dos líneas */
}

/* --- Botón LinkedIn Corporativo --- */
.button.button--profile-linkedin {
    margin-top: auto; /* Anclaje estricto al fondo de la tarjeta */
    width: 100%;
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    background: #0a66c2; /* Color corporativo LinkedIn */
    color: var(--white);
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button.button--profile-linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
}

/* --- Divisor de Jerarquía Operacional --- */
.hierarchy-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    position: relative;
}

.hierarchy-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--line);
    z-index: 1;
}

.divider-label {
    background-color: #ffffff;
    padding: 0.4rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-purple);
    border: 1px solid var(--line);
    border-radius: 50px;
    position: relative;
    z-index: 2;
}

.hierarchy-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  color: #3b3b3b;
    margin: 2rem 0 1.5rem 0;
  border-left: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(44, 189, 168, 0.12) 0%, rgba(68, 24, 103, 0.04) 100%);
}

/* --- Ajustes Responsivos (Media Queries) --- */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important; /* En móviles se apilan limpiamente */
    }
  .transition-bridge {
    padding: 1.7rem 1rem;
  }
  .transition-bridge--horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .transition-media {
    min-height: 190px;
  }
  .transition-content,
  .transition-content .eyebrow,
  .transition-content .section-title-main {
    text-align: center;
  }
  .transition-lead {
    margin: 0 auto;
  }
    .profile-card {
        min-height: auto;
    }
    .profile-role {
        min-height: auto;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   FIN ESTILOS DE ARQUITECTURA ORGANIZACIONAL (EQUIPO EJECUTIVO Y LEGAL)
   ========================================================================== */


.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.values-grid .value-card {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  min-height: 100%;
}

.values-grid .value-card strong {
  font-size: 1.05rem;
}

.values-grid .value-card span {
  line-height: 1.45;
}

.values-grid .value-card strong,
.values-grid .value-card span {
  text-align: left;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.counter-card {
  min-height: 150px;
}

.counter-value {
  font-variant-numeric: tabular-nums;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  justify-items: center;
  align-items: stretch;
}

.stat-card {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    
    padding: 25px 20px;
    
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    
    transition: transform 0.3s ease;
  }

/* Efecto hover sutil para mejorar la interactividad */
.stat-card:hover {
    transform: translateY(-5px);
}

/* --- Aplicación de Colores en Bordes Superiores (Grosor: 8px) --- */
.stat-card.card-purple {
    border-top: 8px solid rgba(68, 24, 103, 1);
    background: linear-gradient(to bottom, rgba(68, 24, 103, 0.03), #ffffff 20%);
}

.stat-card.card-teal {
    border-top: 8px solid rgba(44, 189, 168, 1);
    background: linear-gradient(to bottom, rgba(44, 189, 168, 0.03), #ffffff 20%);
}

.stat-card.card-yellow {
    border-top: 8px solid rgba(254, 222, 62, 1);
    background: linear-gradient(to bottom, rgba(254, 222, 62, 0.03), #ffffff 20%);
}

.stat-card.card-red {
    border-top: 8px solid rgba(255, 78, 70, 1);
    background: linear-gradient(to bottom, rgba(255, 78, 70, 0.03), #ffffff 20%);
}

/* --- Estilo para la Tarjeta de Palabras del Presidente --- */
.card-executive {
    background: #ffffff;
    border-radius: 24px;
    /* Borde lateral izquierdo sutil con el color amarillo de la paleta */
    border-left: 5px solid rgba(254, 222, 62, 0.7); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--surface);
}

.stat-card span {
  color: var(--muted);
  display: block;
  text-align: center;
}

.donation-section {
  padding-top: 2rem;
}

.donation-intro {
  margin-bottom: 0;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.donation-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.donation-card h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 0;
}

.donation-card p {
  margin-bottom: 0;
}

.donation-card .button {
  width: fit-content;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--surface);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.donation-card .button:hover {
  background: #ffffff;
}

.donation-card .button--pending,
.donation-card .button--pending:hover {
  background: rgba(255, 255, 255, 0.94);
}

.donation-card--teal {
  background: linear-gradient(135deg, rgba(44, 189, 168, 0.18), rgba(255, 255, 255, 0.96));
}

.donation-card--coral {
  background: linear-gradient(135deg, rgba(255, 78, 70, 0.18), rgba(255, 255, 255, 0.96));
}

.donation-card--purple {
  background: linear-gradient(135deg, rgba(68, 24, 103, 0.16), rgba(255, 255, 255, 0.96));
}

.donation-card--gold {
  background: linear-gradient(135deg, rgba(254, 222, 62, 0.28), rgba(255, 255, 255, 0.96));
}

.donation-card--teal .eyebrow {
  color: #107a6f;
}

.donation-card--coral .eyebrow {
  color: #c93b33;
}

.donation-card--purple .eyebrow {
  color: #441867;
}

.donation-card--gold .eyebrow {
  color: #9b7b00;
}

.content-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

.home-story h3,
.about-copy h2 {
  max-width: 70ch;
}

.home-story p,
.about-copy p {
  max-width: 70ch;
}

.home-purpose h2,
.home-testimonials h2 {
  max-width: 70ch;
}

.about-copy {
  max-width: 70rem;
}

.about-adn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
}

.about-adn-content {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.about-adn-photo {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.about-adn-photo img {
  width: min(100%, 560px);
  height: auto;
  min-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(68, 24, 103, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.about-mission-vision {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-mission-vision .mini-panel {
  min-height: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.about-mission-vision .mini-panel p {
  max-width: 34rem;
}

.section-title-center {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.about-copy > p {
  font-size: 1.03rem;
}

.about-grid .mini-panel,
.about-values .value-card,
.about-counters .counter-card {
  background: rgba(255, 255, 255, 0.88);
}

.about-values .value-card strong {
  font-size: 1.08rem;
}

.about-values .value-card span {
  font-size: 0.98rem;
  line-height: 1.5;
}

.about-counters .counter-value {
  font-size: 1.9rem;
}

.leadership-intro .leadership-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leadership-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.leadership-categories .value-card {
  min-height: 100%;
}

.leadership-categories .value-card:nth-child(1) { border-top: 4px solid var(--brand-teal); background: linear-gradient(180deg, #fff 0%, var(--tint-teal) 100%); }
.leadership-categories .value-card:nth-child(2) { border-top: 4px solid var(--brand-coral); background: linear-gradient(180deg, #fff 0%, var(--tint-coral) 100%); }
.leadership-categories .value-card:nth-child(3) { border-top: 4px solid var(--brand-purple); background: linear-gradient(180deg, #fff 0%, var(--tint-purple) 100%); }
.leadership-categories .value-card:nth-child(4) { border-top: 4px solid var(--brand-gold); background: linear-gradient(180deg, #fff 0%, var(--tint-gold) 100%); }
.leadership-categories .value-card:nth-child(5) { border-top: 4px solid var(--brand-teal); background: linear-gradient(180deg, #fff 0%, rgba(44, 189, 168, 0.06) 100%); }

.leadership-categories .value-card span {
  color: var(--brand-purple);
  font-weight: 600;
}

.leadership-categories .value-card strong,
.benefit-list strong {
  color: var(--surface);
}

.leadership-categories .value-card p,
.leadership-panel p,
.benefit-list p,
.quote-block,
.steps-list {
  color: var(--muted);
}

.section-title-center {
  display: block;
  text-align: center;
  margin-bottom: 0.9rem;
}

.leadership-categories .value-card {
  gap: 0.6rem;
}

.leadership-categories .value-card strong {
  line-height: 1.2;
}

.leadership-categories .value-card p {
  line-height: 1.55;
}

.feature-list,
.steps-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.6rem;
}

.feature-list li,
.steps-list li {
  padding-left: 0.2rem;
}

.feature-list li::marker,
.steps-list li::marker {
  color: var(--brand-coral);
}

.benefit-list {
  display: grid;
  gap: 1rem;
}

.leadership-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.leadership-split-grid .mini-panel {
  min-height: 100%;
}

.leadership-panel--benefits,
.leadership-panel--steps {
  padding: 1.35rem 1.25rem;
}

.benefit-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.quote-block {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand-purple);
  background: linear-gradient(90deg, rgba(68, 24, 103, 0.06), rgba(255, 255, 255, 0));
  border-radius: 0 18px 18px 0;
  font-weight: 600;
}

.leadership-cta {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, var(--tint-teal), var(--tint-purple));
}

.leadership-cta .button {
  margin-top: 0.75rem;
}

.leadership-cta .eyebrow {
  color: var(--brand-coral);
}

.leadership-cta h2 {
  color: var(--brand-purple);
}

.leadership-cta p:not(.eyebrow) {
  color: var(--muted);
}

.programs-intro {
  text-align: left;
  display: grid;
  gap: 0.75rem;
}

.programs-intro h2 {
  max-width: 70ch;
}

.programs-intro-lead {
  margin: 0;
  color: var(--muted);
}

/* Programas page: styles moved from template inline/style block */
.hero-slide--programas {
  background-image: url('/static/home/images/programas-banner.jpg');
}

.hero-slide--nosotros {
  background-image: url('/static/home/images/nosotros-banner.jpg');
}

.section-header-v2 {
  text-align: center;
  max-width: 100%;
}

.section-header-v2 h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
}

.section-header-v2__eyebrow-purple {
  color: var(--brand-purple);
}

.section-header-v2__eyebrow-coral {
  color: var(--brand-coral);
}

.section-header-v2__eyebrow-yellow {
  color: var(--brand-yellow);
}

.section-header-v2--video {
  margin-bottom: 5rem;
}

.section-header-v2__title-light {
  color: var(--white);
}

.section-header-v2__lead-light {
  color: rgba(255, 255, 255, 0.7);
}

.programs-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.main-card-v2 {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.main-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.main-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.main-card-purple::before {
  background: var(--brand-purple);
}

.main-card-teal::before {
  background: var(--brand-teal);
}

.main-card-v2__description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.main-card-v2__list {
  padding-left: 1.2rem;
  color: var(--text);
  font-weight: 500;
}

.main-card-v2__list-item {
  margin-bottom: 0.5rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.tag-purple {
  background: var(--tint-purple);
  color: var(--brand-purple);
}

.tag-teal {
  background: var(--tint-teal);
  color: var(--brand-teal);
}

.programs-video-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.programs-video-section__container {
  position: relative;
  z-index: 2;
}

.zigzag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.zigzag-row:nth-child(even) {
  flex-direction: row-reverse;
}

.zigzag-content {
  flex: 1;
  min-width: 300px;
}

.zigzag-content__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.zigzag-content__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.zigzag-visual {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: rgba(0, 0, 0, 0.37) 0 8px 32px 0;
  min-width: 300px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.bento-item:hover {
  border-color: var(--brand-teal);
  box-shadow: 0 8px 25px var(--tint-teal);
}

.bento-item--featured {
  grid-column: 1 / -1;
  max-width: 600px;
  justify-self: center;
  text-align: center;
}

.bento-item__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.bento-item__description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-icon--teal {
  background: var(--tint-teal);
  color: var(--brand-teal);
}

.bento-icon--purple {
  background: var(--tint-purple);
  color: var(--brand-purple);
}

.bento-icon--coral {
  background: rgba(255, 78, 70, 0.1);
  color: var(--brand-coral);
}

.bento-icon--gold {
  background: rgba(254, 222, 62, 0.15);
  color: #b59b12;
}

.bento-icon--pink {
  background: rgba(255, 105, 180, 0.1);
  color: #ff69b4;
}

.bento-icon--centered {
  margin: 0 auto 1.5rem;
}

.programs-corporate-section {
  padding: 6rem 0;
  background: var(--bg);
}

.cta-v2 {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--surface-soft) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 24px;
  margin: 4rem 0;
}

.cta-v2__eyebrow {
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.cta-v2__title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-v2__lead {
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-v2__button {
  background: var(--white);
  color: var(--surface-soft);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
  font-size: 1.1rem;
}

.cta-v2__button:hover {
  transform: translateY(-2px);
}

.methodology-article {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin: 0 auto;
  line-height: 1.8;
}

.methodology-article p {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1rem;
}

.methodology-article p:last-child {
  margin-bottom: 0;
}

/* Jornada Líderes del Mañana */
.jornada-section {
  padding: 6rem 0;
}

.jornada-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.jornada-logo-simulado {
  color: #0631e8;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.jornada-logo-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-left: 2px;
  margin-bottom: -0.3rem;
  display: block;
}

.jornada-logo-main {
  display: flex;
  align-items: baseline;
}

.jornada-logo-strong {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  display: block;
}

.jornada-logo-italic {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.2rem;
  font-style: italic;
  margin-left: 0.3rem;
  letter-spacing: -0.02em;
  display: block;
}

.jornada-logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.jornada-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.jornada-intro {
  text-align: left;
}

.jornada-title {
  text-align: left;
  color: var(--white);
  margin-bottom: 1rem;
}

.jornada-description {
  text-align: left;
}

.jornada-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.jornada-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.jornada-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.jornada-stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.cta-final-section {
  padding: 5rem 0;
  background: var(--bg);
}

.cta-final-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-v2--final {
  text-align: left;
  padding: 4rem;
}

.cta-v2__lead--justified {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin: 1.5rem 0 2.5rem 0 !important;
}

@media (max-width: 768px) {
  .jornada-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .jornada-logo-simulado {
    align-items: center;
    text-align: center;
  }

  .jornada-logo-strong {
    font-size: 2.2rem;
  }

  .jornada-logo-italic {
    font-size: 2.4rem;
  }

  .jornada-logo {
    min-height: 150px;
  }

  .jornada-intro,
  .jornada-title,
  .jornada-description {
    text-align: center;
  }

  .cta-v2--final {
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .cta-v2__lead--justified {
    text-align: center;
  }
}

.duration-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #f5f5f5;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.programs-tabs-shell {
  display: grid;
  gap: 0;
}

.program-tabs {
    display: flex; /* Cambiar a flex para que se alineen mejor como pestañas */
    gap: 1rem; /* Espacio pequeño entre pestañas */
    margin-bottom: -1px; /* Truco para que la pestaña solape el borde del panel */
    position: relative;
    z-index: 2;
}

.program-tab {
    width: 100%;
    border: 1px solid #cfcfcf;
    margin-bottom: 5px ;
    border-radius: 12px;
    background: #f5f5f5;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-tab.is-active {
    background: #f5f5f5;
    margin-bottom: 0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.program-panels {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px; /* Redondeamos todo menos la esquina superior izquierda */
    padding: 30px;
    margin-top: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
    z-index: 1;
}

.program-tab span {
  font-size: 1.15rem;
  font-weight: 800;
}

.program-tab small {
  color: var(--muted);
  font-size: 0.92rem;
}

.program-tab:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 30px rgba(68, 24, 103, 0.12);
  border-color: rgba(68, 24, 103, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 222, 62, 0.14) 100%);
}

.program-tab.is-active:hover {
    transform: none;
    box-shadow: none;
    border-color: none;
    background: #f5f5f5;
}

.program-panel[hidden] {
  display: none;
}

.program-panel-head {
  max-width: 70ch;
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.program-panel-head h3 {
  max-width: 28ch;
}

.program-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-cards-grid--tall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.experience-card {
  padding: 1.5rem;
}

.experience-card.card-purple {
    border-top: 8px solid var(--brand-purple);
}

.experience-card.card-teal {
    border-top: 8px solid var(--brand-teal);
}

.experience-card.card-yellow {
    border-top: 8px solid var(--brand-gold);
}

.experience-card.card-red {
    border-top: 8px solid var(--brand-coral);
}

.experience-card h3 {
  margin: 0.5rem 0 1rem;
  color: var(--brand-purple);
  font-size: 1.2rem;
}

.experience-card p {
  margin: 1rem 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

figure.card-thumbnail {
    position: relative;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.2) 100%), url("/static/home/images/slide-2.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    overflow: hidden;
    border-radius: 6px; /* Esquinas ligeramente redondeadas para un toque moderno */
    margin: 0;
}

figcaption.overlay-title {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 120px;
  padding: 0.5rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(68, 24, 103, 0.1);
}

.experience-meta span {
  font-size: 0.9rem;
  color: var(--muted);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.opportunity-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.opportunity-card h3 {
  margin: 0.5rem 0 1rem;
  color: var(--brand-purple);
  font-size: 1.2rem;
}

.opportunity-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.opportunity-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(68, 24, 103, 0.1);
  border-bottom: 1px solid rgba(68, 24, 103, 0.1);
  margin-bottom: 1rem;
}

.opportunity-details span {
  font-size: 0.9rem;
  color: var(--muted);
}

.opportunity-card .button {
  margin-top: auto;
  text-align: center;
}

.program-detail-card {
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-top: 8px solid var(--brand-teal);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(44, 189, 168, 0.05) 100%);
  padding: 1.15rem 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-detail-card.card-purple {
  border-top: 8px solid rgba(68, 24, 103, 1);
  background: linear-gradient(to bottom, rgba(68, 24, 103, 0.03), #ffffff 20%);
}

.program-detail-card.card-teal {
  border-top: 8px solid rgba(44, 189, 168, 1);
  background: linear-gradient(to bottom, rgba(44, 189, 168, 0.03), #ffffff 20%);
}

.program-detail-card.card-yellow {
  border-top: 8px solid rgba(254, 222, 62, 1);
  background: linear-gradient(to bottom, rgba(254, 222, 62, 0.03), #ffffff 20%);
}

.program-detail-card.card-red {
  border-top: 8px solid rgba(255, 78, 70, 1);
  background: linear-gradient(to bottom, rgba(255, 78, 70, 0.03), #ffffff 20%);
}

.program-detail-card h4 {
  margin: 0 0 0.55rem;
  color: var(--brand-purple);
  font-size: 1.05rem;
  text-align: center;
}

.program-detail-card p {
  margin: 0;
  color: var(--muted);
  text-align: left;
}

.program-detail-card span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--surface);
  font-weight: 700;
  text-align: left;
}

.program-panel.is-active .program-detail-card {
  animation: programFade 0.28s ease;
}

@keyframes programFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main p,
main li,
main blockquote,
main span {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

main .eyebrow,
main h1,
main h2,
main h3,
main .button,
main .stat-card strong,
main .director-card strong,
main .director-card span,
main .testimonial-copy strong,
main .testimonial-copy span {
  text-align: initial;
}

@media (max-width: 980px) {
  .summary-grid,
  .leadership-intro-grid,
  .leadership-split-grid,
  .program-tabs,
  .program-cards-grid,
  .program-cards-grid--tall {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .program-tab {
    padding: 1rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(68, 24, 103, 0.96) 0%, rgba(15, 15, 15, 0.98) 55%, rgba(44, 189, 168, 0.92) 155%),
    #0b0b0b;
  color: #f3f3f3;
  border-top: 1px solid rgba(254, 222, 62, 0.18);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.site-footer .brand-mark {
  background: var(--brand-teal);
}

.site-footer h3 {
  color: var(--brand-gold);
}

.site-footer .footer-grid {
  align-items: start;
  pointer-events: auto;
  position: relative;
}

.site-footer .footer-grid > div:nth-child(2),
.site-footer .footer-grid > div:nth-child(3),
.site-footer .footer-grid > div:nth-child(4) {
  text-align: right;
}

.site-footer .footer-grid > div:nth-child(2) a,
.site-footer .footer-grid > div:nth-child(3) p,
.site-footer .footer-grid > div:nth-child(2) h3,
.site-footer .footer-grid > div:nth-child(3) h3 {
  text-align: right;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

.site-footer a { color: #e8e8e8; display: block; margin-bottom: 0.35rem; }
.site-footer h3 { font-size: 1rem; margin-bottom: 0.6rem; }

/* --- Nueva Columna de Redes Sociales --- */
.footer-social-column {
  text-align: right;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.footer-social-column h3 {
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; 
  align-items: flex-end;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.social-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
  display: block;
  width: 100%;
}

.social-link span {
  pointer-events: none;
}

.social-link:hover {
  color: var(--brand-teal);
  transform: translateX(-3px);
}

.social-link--pending {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}

.social-link--pending:hover {
  color: rgba(255, 255, 255, 0.45);
  transform: none;
}

/* ==========================================================================
   ESTILOS PARA PÁGINA PARTICIPA (Convocatorias)
   ========================================================================== */

.convocatorias-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.convocatoria-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.convocatoria-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.border-teal { border-left: 6px solid var(--brand-teal); }
.border-purple { border-left: 6px solid var(--brand-purple); }
.border-coral { border-left: 6px solid var(--brand-coral); }
.border-gold { border-left: 6px solid var(--brand-gold); }

.convocatoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.convocatoria-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.color-teal { color: var(--brand-teal); }
.color-purple { color: var(--brand-purple); }
.color-coral { color: var(--brand-coral); }
.color-gold { color: var(--brand-gold); }

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.status-open {
  background-color: var(--tint-teal);
  color: var(--brand-teal);
}

.status-closed {
  background-color: var(--line);
  color: var(--muted);
}

.convocatoria-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .convocatoria-body {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.convocatoria-main {
  flex: 1;
}

.convocatoria-main h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.convocatoria-main p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  max-width: 800px;
}

.convocatoria-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  background-color: rgba(68, 24, 103, 0.06);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.tag svg {
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.7;
}

.convocatoria-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.convocatoria-btn {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-teal { background-color: var(--tint-teal); color: var(--brand-teal); }
.btn-teal:hover { background-color: var(--brand-teal); color: var(--white); }

.btn-purple { background-color: var(--tint-purple); color: var(--brand-purple); }
.btn-purple:hover { background-color: var(--brand-purple); color: var(--white); }

.btn-coral { background-color: var(--tint-coral); color: var(--brand-coral); }
.btn-coral:hover { background-color: var(--brand-coral); color: var(--white); }

.btn-gold { background-color: var(--tint-gold); color: #B39500; }
.btn-gold:hover { background-color: var(--brand-gold); color: var(--text); }

.btn-disabled {
  background-color: var(--line) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.deadline-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   ESTILOS PARA PÁGINA 100 PALABRAS
   ========================================================================== */

/* Stats Banner (Solapado bajo el hero) */
.stats-100-section {
  margin-top: 30px;
  position: relative;
}

.stats-100-wrapper {
  padding: 0 1rem;
  margin-top: 30px;
  position: relative;
}

.stats-100-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-100-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 6px solid var(--brand-purple);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-100-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.stat-100-card:nth-child(2) { border-top-color: var(--brand-teal); }
.stat-100-card:nth-child(3) { border-top-color: var(--brand-gold); }

.stat-100-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.stat-100-icon svg { width: 24px; height: 24px; }
.stat-100-icon.purple { background: var(--brand-purple); box-shadow: 0 4px 12px var(--tint-purple); }
.stat-100-icon.teal { background: var(--brand-teal); box-shadow: 0 4px 12px var(--tint-teal); }
.stat-100-icon.gold { background: var(--brand-gold); box-shadow: 0 4px 12px var(--tint-gold); color: #8a7300; }

.stat-100-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-weight: 700;
}

.stat-100-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* About Section Split */
.about-100-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 5rem;
}

@media (min-width: 900px) {
  .about-100-container { grid-template-columns: 1.2fr 0.8fr; align-items: stretch; gap: 5rem; }
}

.about-100-text h2 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--brand-purple);
}

.about-100-box {
  background: var(--brand-teal);
  color: var(--white);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(44, 189, 168, 0.2);
  position: relative;
  overflow: hidden;
}

.about-100-box::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%); border-radius: 50%;
}

.about-100-box h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  position: relative; z-index: 2;
}

.about-100-box > p { color: rgba(255,255,255,0.95); position: relative; z-index: 2; line-height: 1.6;}
.about-100-box ul {
  list-style: none; padding: 0; margin: 2rem 0; position: relative; z-index: 2;
}

.about-100-box li {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; font-weight: 500; font-size: 1.05rem;
}

.about-100-box li svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }

.box-note {
  font-size: 0.9rem; font-style: italic; opacity: 0.85; margin-top: auto; 
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem;
}

/* Categories Section */
.categories-100-section {
  background: var(--surface-soft);
}

.cat-100-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.cat-100-item {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.cat-100-item:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  transform: translateY(-8px);
  border-color: var(--brand-purple);
}

.cat-100-item::before {
  content: attr(data-num);
  position: absolute;
  top: -5px;
  right: 5px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--line);
  opacity: 0.04;
  z-index: -1;
  transition: all 0.3s ease;
  line-height: 1;
}

.cat-100-item:hover::before {
  color: var(--brand-purple);
  opacity: 0.1;
  transform: scale(1.05);
}

.cat-100-item h4 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.cat-100-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Benefits & Steps Split */
.action-100-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 900px) {
  .action-100-container { grid-template-columns: 1.1fr 0.9fr; gap: 6rem; }
}

/* Benefits list */
.benefits-100-list { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }
.benefit-100-item { display: flex; gap: 1.5rem; align-items: flex-start; }

.benefit-icon {
  width: 60px; height: 60px; border-radius: 16px; 
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.benefit-icon.purple { background: var(--tint-purple); color: var(--brand-purple); }
.benefit-icon.teal { background: var(--tint-teal); color: var(--brand-teal); }
.benefit-icon.gold { background: var(--tint-gold); color: #B39500; }
.benefit-icon svg { width: 30px; height: 30px; }

.benefit-100-text h4 { margin: 0 0 0.5rem 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.benefit-100-text p { margin: 0; font-size: 1rem; color: var(--muted); line-height: 1.6; }

/* Steps timeline */
.steps-100-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.steps-100-list {
  position: relative;
  margin-top: 2.5rem;
}

.steps-100-list::before {
  content: ''; position: absolute; left: 19px; top: 10px; bottom: 30px; width: 2px; background: var(--line);
}

.step-100-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-number {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-purple); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
  position: relative; z-index: 2; flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--bg);
}

.step-number.teal { background: var(--brand-teal); }
.step-number.gold { background: var(--brand-gold); color: var(--text); }

.step-100-text { padding-top: 8px; }
.step-100-text h4 { margin: 0 0 0.4rem 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }

.quote-100 {
  background: var(--tint-gold);
  border-left: 4px solid var(--brand-gold);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-weight: 500;
  margin-top: 3rem;
  color: var(--text);
}

/* Modern CTA */
.cta-100-banner {
  background: linear-gradient(135deg, var(--brand-purple), #2A0E40);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  color: white;
  box-shadow: 0 24px 48px rgba(68, 24, 103, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.cta-100-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-100-banner h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: white; position: relative; z-index: 2; font-weight: 800; }
.cta-100-banner p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 3rem; position: relative; z-index: 2; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.btn-100-primary {
  background: var(--brand-teal); color: white; padding: 1.25rem 3rem; font-size: 1.15rem; font-weight: 800;
  border-radius: 12px; text-decoration: none; display: inline-block; transition: all 0.3s ease; position: relative; z-index: 2;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.btn-100-primary:hover { 
  background: #23A290; 
  transform: translateY(-4px); 
  box-shadow: 0 15px 25px rgba(44, 189, 168, 0.4); 
  color: white;
}

/* ==========================================================================
   ESTILOS INLINE DE 100PALABRAS.HTML
   ========================================================================== */

.hero-100-eyebrow {
  color: var(--brand-gold);
}

.hero-100-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-100-lead {
  max-width: 700px;
}

.about-100-lead {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-100-text-p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-100-eyebrow {
  color: var(--brand-gold);
}

.categories-100-header {
  text-align: left;
  max-width: 700px;
}

.categories-100-eyebrow {
  color: var(--brand-teal);
}

.categories-100-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.categories-100-intro {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cat-100-title-teal { color: var(--brand-teal); }
.cat-100-title-coral { color: var(--brand-coral); }
.cat-100-title-gold { color: var(--brand-gold); }
.cat-100-title-purple { color: var(--brand-purple); }

.benefits-100-title {
  font-size: 2.2rem;
  line-height: 1.2;
}

.steps-100-eyebrow {
  color: var(--brand-teal);
}

.steps-100-title {
  font-size: 1.8rem;
}

.steps-100-p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.steps-100-p-mt {
  margin-top: 1.5rem;
}

.cta-100-eyebrow {
  color: var(--brand-gold);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.cta-100-section {
  padding-bottom: 5rem;
}

/* =====================================================================
   REDISEÑO PÁGINA 100 PALABRAS (2026)
   ===================================================================== */

.what-is-100-section {
  padding-top: 4rem;
}

.what-is-100-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.what-is-100-copy,
.what-is-100-highlight {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  background: #fff;
}

.what-is-100-copy h2 {
  margin-bottom: 1rem;
  color: var(--brand-purple);
}

.what-is-100-copy p {
  color: var(--text);
  margin-bottom: 0.9rem;
}

.what-is-100-highlight {
  background: linear-gradient(180deg, rgba(44, 189, 168, 0.1) 0%, rgba(68, 24, 103, 0.06) 100%);
}

.what-is-100-highlight h3 {
  margin-bottom: 0.7rem;
}

.what-is-100-highlight ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.allies-100-section {
  padding-top: 1rem;
}

.allies-100-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.allies-100-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 370px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

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

.allies-100-panel {
  border-radius: 24px;
  border: 1px solid rgba(68, 24, 103, 0.12);
  background:
    radial-gradient(circle at 15% 15%, rgba(44, 189, 168, 0.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(254, 222, 62, 0.22), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f9f8fc 100%);
  padding: 1.6rem;
  overflow: hidden;
}

.allies-100-eyebrow {
  color: var(--brand-coral);
}

.allies-100-panel h2 {
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.allies-100-marquee {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(7px);
}

.allies-100-track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  padding: 0.9rem;
  animation: alliesScroll 38s linear infinite;
}

.ally-glass-card {
  width: 148px;
  min-height: 82px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  padding: 0.6rem;
  flex-shrink: 0;
}

.ally-glass-card img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.ally-glass-card--text span {
  color: var(--brand-purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

@keyframes alliesScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.rules-100-section {
  padding-top: 1rem;
}

.rules-100-header {
  text-align: left;
  max-width: 780px;
}

.rules-100-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rule-card-100 {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem;
}

.rule-card-100 h3 {
  margin-bottom: 0.55rem;
}

.rule-card-100 p {
  margin: 0;
  color: var(--muted);
}

.rule-card-100--purple {
  border-top: 6px solid var(--brand-purple);
  background: linear-gradient(180deg, rgba(68, 24, 103, 0.05), #fff 42%);
}

.rule-card-100--teal {
  border-top: 6px solid var(--brand-teal);
  background: linear-gradient(180deg, rgba(44, 189, 168, 0.07), #fff 42%);
}

.rule-card-100--gold {
  border-top: 6px solid var(--brand-gold);
  background: linear-gradient(180deg, rgba(254, 222, 62, 0.12), #fff 42%);
}

.rule-card-100--coral {
  border-top: 6px solid var(--brand-coral);
  background: linear-gradient(180deg, rgba(255, 78, 70, 0.08), #fff 42%);
}

.categories-100-section--plain {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.categories-100-section--plain .categories-100-header {
  margin-bottom: 2.6rem;
}

.apply-100-section {
  padding-top: 3.5rem;
}

.apply-100-header {
  text-align: left;
  max-width: 720px;
}

.apply-100-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.apply-100-timeline::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-teal), var(--brand-gold), var(--brand-coral));
  z-index: 0;
}

.apply-step-100 {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.1rem;
  min-height: 185px;
}

.apply-step-100__number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.apply-step-100 h3 {
  margin-bottom: 0.5rem;
}

.apply-step-100 p {
  margin: 0;
  color: var(--muted);
}

.apply-step-100--purple .apply-step-100__number {
  background: rgba(68, 24, 103, 0.14);
  color: var(--brand-purple);
}

.apply-step-100--teal .apply-step-100__number {
  background: rgba(44, 189, 168, 0.16);
  color: var(--brand-teal);
}

.apply-step-100--gold .apply-step-100__number {
  background: rgba(254, 222, 62, 0.24);
  color: #9b7b00;
}

.apply-step-100--coral .apply-step-100__number {
  background: rgba(255, 78, 70, 0.16);
  color: var(--brand-coral);
}

.embajadores-100-section {
  padding-top: 2rem;
}

.embajadores-100-header {
  text-align: center;
  max-width: 400px;
  margin: 0 auto 1.8rem;
}

.embajadores-100-eyebrow {
  color: var(--brand-teal);
}

.phone-mockup-100 {
  width: min(100%, 360px);
  margin: 0 auto;
  background: #101010;
  border-radius: 38px;
  padding: 0.8rem;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.phone-mockup-100__notch {
  width: 130px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #151515;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-mockup-100__screen {
  appearance: none;
  border: 0;
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  overflow: hidden;
  padding: 0;
  background: #000;
  cursor: pointer;
  position: relative;
}

.phone-mockup-100__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-mockup-100__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 0.75rem;
  pointer-events: none;
}

.embajadores-100-controls {
  margin: 1.2rem auto 0;
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.embajador-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
}

.embajador-chip.is-active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
}

.cta-100-section--wide .container {
  display: flex;
  justify-content: center;
}

.cta-100-banner--wide {
  width: min(100%, 1200px);
  min-height: 0;
  padding: 3.2rem 2rem;
}

.cta-100-banner--wide p {
  max-width: 760px;
}

@media (max-width: 1100px) {
  .rules-100-grid,
  .apply-100-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apply-100-timeline::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .what-is-100-grid,
  .allies-100-layout,
  .rules-100-grid,
  .apply-100-timeline {
    grid-template-columns: 1fr;
  }

  .allies-100-photo {
    min-height: 260px;
  }

  .ally-glass-card {
    width: 132px;
  }
}

.hero-slide-100 {
  background-image: url('/static/home/images/banner-100palabras.jpg');
}

.hero-slide-participa {
  background-image: url('/static/home/images/participa-banner.jpg');
}

.convocatoria-item-closed {
  opacity: 0.85;
}

.cta-box-mt {
  margin-top: 2rem;
}

.hero-slide-experiencias {
  background-image: url('/static/home/images/slide-2.jpg');
}

/* ==========================================================================
   ESTILOS PARA PÁGINA DONA (Pricing)
   ========================================================================== */

.modern-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.modern-pricing-grid_free {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* Bordes superiores de colores */
.pricing-card--teal { border-top: 6px solid var(--brand-teal); }
.pricing-card--coral { border-top: 6px solid var(--brand-coral); }
.pricing-card--purple { border-top: 6px solid var(--brand-purple); }
.pricing-card--gold { border-top: 6px solid var(--brand-gold); }

.pricing-badge {
  position: absolute;
  top: 2rem;
  right: -3rem;
  background: var(--brand-purple);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(68, 24, 103, 0.2);
}

.pricing-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.pricing-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-card--teal .pricing-eyebrow { color: var(--brand-teal); }
.pricing-card--coral .pricing-eyebrow { color: var(--brand-coral); }
.pricing-card--purple .pricing-eyebrow { color: var(--brand-purple); }
.pricing-card--gold .pricing-eyebrow { color: var(--brand-gold); }

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-amount--small {
  font-size: 1.75rem;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.pricing-card--teal .feature-icon { color: var(--brand-teal); }
.pricing-card--coral .feature-icon { color: var(--brand-coral); }
.pricing-card--purple .feature-icon { color: var(--brand-purple); }
.pricing-card--gold .feature-icon { color: var(--brand-gold); }

.pricing-button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Colores de botones según el plan */
.btn-teal { background-color: var(--tint-teal); color: var(--brand-teal); }
.btn-coral { background-color: var(--tint-coral); color: var(--brand-coral); }
.btn-purple { background-color: var(--brand-purple); color: var(--white); }
.btn-gold { background-color: var(--tint-gold); color: #B39500; }

.btn-teal:hover { background-color: var(--brand-teal); color: var(--white); }
.btn-coral:hover { background-color: var(--brand-coral); color: var(--white); }
.btn-purple:hover { background-color: #32104D; box-shadow: 0 4px 12px rgba(68,24,103,0.3); }
.btn-gold:hover { background-color: var(--brand-gold); color: var(--text); }

.btn-pending {
  background-color: var(--line) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Estilos para la sección de impacto adicional */
.impact-banner {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  border-radius: 16px;
  padding: 3rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(44,189,168,0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.impact-banner > * { 
  position: relative; 
  z-index: 1; 
}

.impact-banner h2 { 
  color: var(--white); 
  margin-bottom: 1rem; 
}

.impact-banner p { 
  color: rgba(255,255,255,0.8); 
}

.donation-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-slide-dona {
  background-image: url('/static/home/images/dona-banner.jpg');
}

.hero-slide-nosotros {
  background-image: url('/static/home/images/nosotros-banner.jpg');
}

.hero-slide-purpose {
  background-image: url('/static/home/images/mision-vision-bg.jpg');
}

.hero-slide-middle {
  background-image: url('/static/home/images/mision-vision-bg.jpg');
}

.donation-intro a {
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: underline;
}
/* --- Fin Columna de Redes Sociales --- */

/* =========================================
   SUBMENÚ "QUIÉNES SOMOS"
   ========================================= */

/* 1. Posicionamiento del contenedor padre */
.dropdown {
    position: relative; /* Fundamental para que el submenú no rompa el diseño */
}

/* 2. Ocultar el submenú por defecto y darle estilo */
.submenu {
    display: none; /* Esto oculta el menú al cargar la página */
    position: absolute;
    top: 100%; /* Aparece justo debajo del botón */
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    border: 1px solid var(--line);
}

/* 3. ¡La Magia! Mostrar el submenú al pasar el mouse */
.dropdown:hover .submenu {
    display: block; 
}

/* 4. Limpiar los elementos de la lista (quitar márgenes base) */
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 5. Ocultar los puntos decorativos turquesas SOLO en el submenú */
.submenu li::before,
.submenu li::marker {
    display: none !important;
    content: none !important;
}

/* 6. Estilos para los textos/enlaces del submenú */
.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

/* 7. Efecto hover sobre cada opción del submenú (color corporativo) */
.submenu li a:hover {
    background-color: var(--tint-teal);
    color: var(--brand-teal);
}

li.nav-item.dropdown {
  list-style-type: none;
}

@media (max-width: 980px) {
  .hero-grid, .hero-grid--compact, .content-grid, .content-grid--balanced, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .donation-grid { grid-template-columns: 1fr; }

  .nav-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.35rem;
  }

  .main-nav a {
    justify-content: flex-start;
    white-space: normal;
  }

  .nav-dropdown {
    display: block;
  }

  .site-header.is-nav-open .main-nav {
    display: flex;
  }

  .footer-social-column {
    text-align: left;
  }

  .social-links-container {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .values-grid, .counters-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE MÓVIL — CORRECCIONES ADICIONALES
   ========================================================================== */

/* Stats: 2 columnas en tablet antes de colapsar a 1 */
@media (min-width: 480px) and (max-width: 979px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About ADN grid: minmax(320px,…) desborda en pantallas pequeñas */
@media (max-width: 820px) {
  .about-adn-grid {
    grid-template-columns: 1fr;
  }
  .about-adn-photo {
    justify-content: center;
  }
  .about-adn-photo img {
    min-height: 260px;
  }
}

/* Leadership categories: 5 columnas → 2-3 → 1 */
@media (max-width: 820px) {
  .leadership-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .leadership-categories {
    grid-template-columns: 1fr;
  }
}

/* Testimonios: apila foto y texto verticalmente en móvil */
@media (max-width: 768px) {
  .testimonial {
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }
  .testimonial-photo {
    width: 120px;
    height: 120px;
  }
  .testimonial-copy {
    text-align: center;
  }
}

/* Values grid: 2 columnas en tablets antes del colapso a 1 */
@media (min-width: 480px) and (max-width: 979px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Padding general de secciones en móvil */
@media (max-width: 768px) {
  .hero-section, .testimonials-section, .cta-section {
    padding: 2.5rem 0;
  }
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   POLITICAS DE PRIVACIDAD
   ========================================================================== */

.policy-page {
  padding: 3rem 0 4rem;
}

.policy-wrap {
  width: min(980px, calc(100% - 2rem));
}

.policy-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  padding: 2rem 1.6rem;
}

.policy-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-purple);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.policy-card h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.policy-updated {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.policy-block {
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.policy-block h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin-bottom: 0.6rem;
}

.policy-block p,
.policy-block li {
  line-height: 1.65;
  color: #222;
}

.policy-block ul {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.policy-card a {
  color: var(--brand-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .policy-page {
    padding: 2rem 0 3rem;
  }

  .policy-card {
    border-radius: 18px;
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   INTRANET (FASE 2)
   ========================================================================== */

body.intranet-layout {
  background: #f6f8fb;
}

.intranet-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(68, 24, 103, 0.12);
}

.intranet-header--compact {
  padding: 0.75rem 0;
}

.intranet-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(68, 24, 103, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(68, 24, 103, 0.05);
  border-color: rgba(68, 24, 103, 0.3);
}

.intranet-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
  transition: grid-template-columns 0.3s ease;
}

.intranet-layout-grid.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.intranet-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(68, 24, 103, 0.12);
  overflow-y: auto;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  transition: all 0.3s ease;
  min-width: 260px;
}

.intranet-sidebar--collapsed {
  transform: translateX(-100%);
  min-width: 0;
  width: 0;
  border-right: none;
  overflow: hidden;
  padding: 0;
}

.intranet-sidebar-nav {
  padding: 1.5rem 1rem;
}

.intranet-sidebar-section {
  margin-bottom: 2rem;
}

.intranet-sidebar-section:last-child {
  margin-bottom: 0;
}

.intranet-sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(68, 24, 103, 0.5);
  margin: 0 0 0.75rem 0.5rem;
}

.intranet-sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #1b1b1b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.intranet-sidebar-link:hover {
  background: rgba(68, 24, 103, 0.05);
}

.intranet-sidebar-link.is-active {
  background: rgba(44, 189, 168, 0.1);
  color: var(--brand-teal);
  font-weight: 700;
}

.intranet-sidebar-link .intranet-notif-badge {
  margin-left: auto;
}

.intranet-nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0;
}

.intranet-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.intranet-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.intranet-brand-text {
  font-weight: 800;
  color: var(--surface);
  font-size: 0.95rem;
  line-height: 1.2;
}

.intranet-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.intranet-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 24, 103, 0.18);
  background: #ffffff;
  color: #1b1b1b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.intranet-link:hover {
  background: #f2f3f5;
}

.intranet-link.is-active {
  border-color: rgba(44, 189, 168, 0.7);
  box-shadow: inset 0 0 0 1px rgba(44, 189, 168, 0.35);
}

.intranet-notif-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand-coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.intranet-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.intranet-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(68, 24, 103, 0.2);
  background: #ffffff;
}

.intranet-avatar--placeholder {
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-purple), #54227b);
}

.intranet-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--surface);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intranet-main {
  min-height: calc(100vh - 146px);
}

.intranet-footer {
  min-height: 28px;
}

.intranet-card {
  border-top: 4px solid var(--brand-teal);
}

.intranet-card .button,
.intranet-card .button--secondary,
.intranet-card .button:hover,
.intranet-card .button--secondary:hover {
  background: #ffffff;
  color: var(--surface);
  border: 1px solid rgba(68, 24, 103, 0.18);
  box-shadow: none;
  text-decoration: none;
}

.intranet-card .button:hover,
.intranet-card .button--secondary:hover {
  background: #f5f5f5;
}

.intranet-alert {
  background: rgba(255, 78, 70, 0.12);
  border: 1px solid rgba(255, 78, 70, 0.28);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: #7e1f1b;
}

.intranet-alert--success {
  background: rgba(44, 189, 168, 0.12);
  border-color: rgba(44, 189, 168, 0.28);
  color: #0d5f52;
}

.intranet-field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.intranet-field--checkbox input {
  width: 1.05rem;
  height: 1.05rem;
}

.intranet-form {
  display: grid;
  gap: 1rem;
}

.intranet-field {
  display: grid;
  gap: 0.4rem;
}

.intranet-field label {
  font-weight: 700;
  color: var(--surface);
}

.intranet-field input,
.intranet-field select,
.intranet-field textarea {
  width: 100%;
  border: 1px solid rgba(68, 24, 103, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.intranet-field input:focus,
.intranet-field select:focus,
.intranet-field textarea:focus {
  outline: 2px solid rgba(44, 189, 168, 0.35);
  border-color: rgba(44, 189, 168, 0.8);
}

.intranet-help {
  color: var(--muted);
}

.intranet-error {
  color: #b42318;
  font-weight: 600;
}

.intranet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.intranet-actions--compact {
  gap: 0.45rem;
}

.button.button--small {
  padding: 0.33rem 0.56rem;
  font-size: 0.77rem;
  border-radius: 999px;
}

.button.button--danger {
  border-color: rgba(255, 78, 70, 0.45);
  color: #8c211c;
}

.button.button--danger:hover {
  background: rgba(255, 78, 70, 0.08);
}

.intranet-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(44, 189, 168, 0.12);
  color: #0d5f52;
  font-size: 0.75rem;
  font-weight: 700;
}

.intranet-actions--top {
  margin-bottom: 1rem;
}

.intranet-card .button {
  text-decoration: none;
}

.button.button--secondary {
  background: #fff;
  color: var(--surface);
  border: 1px solid rgba(68, 24, 103, 0.18);
  box-shadow: none;
}

.button.button--secondary:hover {
  background: #f7f7f7;
}

.intranet-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}

.intranet-table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0 1.35rem;
}

.intranet-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.intranet-table th,
.intranet-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  vertical-align: top;
}

.intranet-table th {
  color: var(--brand-purple);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intranet-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel {
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-panel canvas {
  width: 100%;
  height: 280px;
}

.intranet-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(920px, 94vw);
  max-height: 86vh;
}

.intranet-modal::backdrop {
  background: rgba(15, 15, 15, 0.45);
}

.intranet-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.intranet-modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.intranet-modal-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  background: #fff;
}

.intranet-modal-content {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem;
}

.notif-chat {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.notif-bubble {
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: #fff;
}

.notif-bubble.is-unread {
  border-color: rgba(44, 189, 168, 0.45);
  box-shadow: inset 0 0 0 1px rgba(44, 189, 168, 0.2);
}

.notif-title {
  margin: 0 0 0.2rem;
  font-weight: 800;
  font-size: 0.93rem;
}

.notif-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.notif-message {
  margin: 0;
  color: #1f1f1f;
}

.notif-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.intranet-chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.chat-sidebar,
.chat-panel {
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.chat-contact-list {
  display: grid;
  gap: 0.55rem;
}

.chat-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 12px;
  background: #fff;
}

.chat-contact.is-active {
  border-color: rgba(44, 189, 168, 0.7);
  box-shadow: inset 0 0 0 1px rgba(44, 189, 168, 0.25);
  background: rgba(44, 189, 168, 0.06);
}

.chat-contact-name {
  font-weight: 700;
  color: var(--surface);
}

.chat-panel-head {
  margin-bottom: 0.85rem;
}

.chat-panel-head h2 {
  margin-bottom: 0.25rem;
}

.chat-thread {
  display: grid;
  gap: 0.7rem;
  min-height: 280px;
  max-height: min(65vh, 560px);
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.chat-message {
  max-width: min(80%, 520px);
  border-radius: 16px;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(68, 24, 103, 0.12);
}

.chat-message.is-own {
  margin-left: auto;
  background: rgba(44, 189, 168, 0.1);
  border-color: rgba(44, 189, 168, 0.28);
}

.chat-message.is-other {
  margin-right: auto;
  background: #fff;
}

.chat-message-meta {
  margin: 0 0 0.28rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.chat-message-body {
  margin: 0;
  white-space: pre-wrap;
  color: #1b1b1b;
}

.chat-form {
  margin-top: 0.95rem;
}

.profile-role-banner {
  border: 1px solid rgba(44, 189, 168, 0.18);
  border-radius: 14px;
  background: rgba(44, 189, 168, 0.06);
  padding: 0.9rem 1rem;
  margin: 0.75rem 0 1rem;
}

.profile-role-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.profile-role-banner p {
  margin: 0;
  font-weight: 700;
  color: var(--surface);
}

.data-admin-toggle {
  position: fixed;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  z-index: 100;
  border: 1px solid rgba(68, 24, 103, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: var(--surface);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.62rem 0.48rem;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.data-admin-toggle--right {
  right: 0.55rem;
  left: auto;
}

.data-admin-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #ffffff;
  border-left: 1px solid rgba(68, 24, 103, 0.16);
  box-shadow: -16px 0 36px rgba(15, 23, 42, 0.22);
  transform: translateX(104%);
  transition: transform 0.24s ease;
  z-index: 102;
  padding: 1rem 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.has-data-admin-open .data-admin-drawer {
  transform: translateX(0);
}

.data-admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 43;
  background: rgba(15, 15, 15, 0.28);
}

.data-admin-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.data-admin-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
}

.data-admin-drawer-link {
  display: block;
  border: 1px solid rgba(68, 24, 103, 0.2);
  border-radius: 12px;
  padding: 0.72rem 0.75rem;
  font-weight: 700;
  background: #fff;
}

.data-admin-drawer-link:hover,
.data-admin-drawer-link.is-active {
  border-color: rgba(255, 78, 70, 0.44);
  background: rgba(255, 78, 70, 0.08);
}

.data-admin-page {
  border-top-color: rgba(255, 78, 70, 0.85);
}

.data-admin-summary,
.data-admin-danger {
  border: 1px solid rgba(68, 24, 103, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.9rem;
}

.data-admin-summary ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.data-admin-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(68, 24, 103, 0.12);
}

.data-admin-alerts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .intranet-nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
  }

  .intranet-brand {
    grid-column: 1;
  }

  .intranet-user {
    grid-column: 2;
    justify-self: end;
  }

  .intranet-nav {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
  }

  .intranet-link {
    flex: 0 0 auto;
  }

  .intranet-user-name {
    max-width: 115px;
  }

  .intranet-metrics {
    grid-template-columns: 1fr;
  }

  .intranet-filter-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .intranet-chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-sidebar,
  .chat-panel {
    padding: 0.85rem;
  }

  .chat-contact-list {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .chat-contact {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 220px;
  }

  .chat-thread {
    min-height: 220px;
    max-height: 52vh;
  }

  .chat-message {
    max-width: 90%;
  }

  .intranet-modal {
    width: 96vw;
  }

  .dashboard-panel canvas {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .intranet-header {
    position: static;
  }

  .data-admin-toggle {
    top: auto;
    bottom: 1rem;
    left: 0.45rem;
    font-size: 0.68rem;
    padding: 0.5rem 0.36rem;
  }

  .data-admin-drawer {
    width: min(280px, 92vw);
  }

  .intranet-brand-text {
    font-size: 0.86rem;
  }

  .intranet-user-name {
    display: none;
  }

  .intranet-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.58rem;
  }

  .intranet-table {
    min-width: 620px;
  }

  .intranet-table th,
  .intranet-table td {
    font-size: 0.82rem;
    padding: 0.5rem 0.4rem;
  }

  .intranet-actions {
    gap: 0.45rem;
  }

  .intranet-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .intranet-actions--compact .button,
  .intranet-actions--compact form {
    width: auto;
  }

  .intranet-modal-head {
    padding: 0.7rem 0.75rem;
  }

  .intranet-modal-frame {
    height: 76vh;
  }

  .chat-contact {
    min-width: 160px;
  }

  .chat-panel-head h2 {
    font-size: 1rem;
  }

  .chat-message {
    max-width: 94%;
    padding: 0.68rem 0.72rem;
  }
}
