/* ==========================================================================
   ESTILOS DE LA PÁGINA CANAL COLOMBIA ENTIENDE - RACIONALMENTE
   Tema Ámbar / Dorado Neón (#ffb703) + Cyber-Tech Glassmorphism
   ========================================================================== */

:root {
  --bg-primary: #060913;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --accent-amber: #ffb703;
  --accent-amber-soft: #ffd166;
  --accent-cyan: #00f2fe;
  --accent-blue: #3a86ff;
  --glow-amber: rgba(255, 183, 3, 0.25);
  --border-color: rgba(255, 183, 3, 0.24);
  --border-hover: rgba(255, 183, 3, 0.58);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ==========================================================================
   Sección Hero del Canal Colombia Entiende
   ========================================================================== */

.colombia-hero-section {
  padding: 140px 20px 80px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 183, 3, 0.09) 0%, transparent 52%),
    linear-gradient(180deg, #060913 0%, #0b0f19 100%);
  position: relative;
  overflow: hidden;
}

.colombia-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .colombia-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .colombia-visual {
    order: 1;
  }

  .colombia-hero-content {
    order: 2;
  }
}

.amber-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--accent-amber);
  text-transform: uppercase;
  padding: 5px 14px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.32);
  border-radius: 20px;
  margin-bottom: 20px;
}

.colombia-hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 20px;
}

.colombia-hero-title span {
  background: linear-gradient(135deg, #ffb703 0%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.colombia-hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .colombia-hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }
}

/* Píldoras Informativas del Hero */
.colombia-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-pill {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: left;
}

.highlight-pill:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow-amber);
  transform: translateY(-2px);
}

.icon-container {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--glow-amber);
}

.icon-container svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-amber);
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.65));
}

.highlight-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.highlight-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Tarjeta Visual: Topología Institucional y Contrapesos en Canvas
   ========================================================================== */

.colombia-visual {
  position: relative;
  width: 100%;
}

.civic-card {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 183, 3, 0.14) 0%, rgba(11, 15, 25, 0.94) 68%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 28, 0.96));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 32px rgba(255, 183, 3, 0.14);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.civic-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 183, 3, 0.24);
}

/* Encabezado Superior Izquierdo */
.lib-card-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 9, 19, 0.82);
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-amber);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

.overlay-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent-amber);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.overlay-subtitle {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.overlay-author {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Ficha Técnica Superior Derecha */
.civic-top-meta {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 9, 19, 0.82);
  border: 1px solid rgba(255, 183, 3, 0.32);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: right;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.civic-code {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1.2;
}

.civic-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Canvas Institucional */
#civicCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}

/* Panel Inferior con Datos Institucionales */
.civic-data-footer {
  position: relative;
  z-index: 10;
  margin: auto 16px 16px 16px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(255, 183, 3, 0.26);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.civic-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.civic-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid var(--accent-amber);
  font-size: 1.15rem;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
}

.civic-name-group strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.civic-name-group span {
  display: block;
  font-size: 0.74rem;
  color: var(--accent-amber-soft);
}

.civic-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  text-align: left;
}

.civic-spec-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 5px 7px;
}

.spec-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.spec-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
}

/* Leyenda de Nodos */
.civic-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-item i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-amber {
  background: #ffb703;
  box-shadow: 0 0 6px #ffb703;
}

.dot-blue {
  background: #3a86ff;
  box-shadow: 0 0 6px #3a86ff;
}

.dot-cyan {
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
}

@media (max-width: 540px) {
  .civic-card {
    min-height: 460px;
  }

  .lib-card-overlay {
    top: 12px;
    left: 12px;
    padding: 8px 10px;
  }

  .overlay-title {
    font-size: 0.68rem;
  }

  .overlay-subtitle {
    font-size: 0.95rem;
  }

  .overlay-author {
    font-size: 0.7rem;
  }

  .civic-top-meta {
    top: 12px;
    right: 12px;
    padding: 6px 9px;
  }

  .civic-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Sección de Tarjetas de Estudios del Canal Colombia Entiende
   ========================================================================== */

.estudios-section {
  padding: 60px 0 110px 0;
  background: linear-gradient(180deg, #0b0f19 0%, #060913 100%);
  position: relative;
}

.estudios-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cuadrícula Modular de Estudios */
.estudios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .estudios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .estudios-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta Individual de Estudio */
.study-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.study-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 183, 3, 0.22);
}

.study-card:hover .card-glow {
  opacity: 1;
}

.study-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.study-title {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.study-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.btn-study {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: rgba(30, 41, 59, 0.65);
  color: var(--text-main);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.study-card:hover .btn-study,
.btn-study:hover {
  background: rgba(255, 183, 3, 0.18);
  border-color: var(--accent-amber);
  color: #ffb703;
  box-shadow: 0 0 15px var(--glow-amber);
}