/* ========================================
   POLITICALCHECK - ESTILOS ESPECÍFICOS
   Extensión del estilo minimalista de ValuesCheck
   ======================================== */

/* Colores adicionales para categorías y competencias */
:root {
  /* Categorías de crisis (tonos cálidos - peligro) */
  --crisis-red: #DC2626;
  --crisis-orange: #F97316;
  --crisis-yellow: #F59E0B;

  /* Competencias (tonos fríos - positivo) */
  --comp-blue: #3B82F6;
  --comp-green: #10B981;
  --comp-purple: #8B5CF6;

  /* Tonos específicos */
  --political-primary: var(--black);
  --political-accent: var(--gray-700);
}

/* ========================================
   HERO POLÍTICO
   ======================================== */

.political-hero {
  padding: var(--spacing-3xl) 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.4;
}

/* ========================================
   CATEGORÍAS DE CRISIS
   ======================================== */

.categories {
  background: var(--gray-50);
  padding: var(--spacing-3xl) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: all 0.2s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card.expanded {
  border-color: var(--black);
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.category-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--crisis-red);
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.category-count {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.category-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.category-details {
  display: none;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
}

.category-card.expanded .category-details {
  display: block;
}

.category-subcategory {
  margin-bottom: var(--spacing-md);
}

.category-subcategory:last-child {
  margin-bottom: 0;
}

.subcategory-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.subcategory-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
}

.category-indicators {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0 0 0;
}

.category-indicators li {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.category-indicators li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--crisis-red);
  font-weight: bold;
}

.category-expand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
  margin-top: var(--spacing-sm);
}

.category-expand svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.category-card.expanded .category-expand svg {
  transform: rotate(180deg);
}

/* ========================================
   COMPETENCIAS
   ======================================== */

.competencias {
  padding: var(--spacing-3xl) 0;
}

.competencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.competencia-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: all 0.2s;
  cursor: pointer;
}

.competencia-card:hover {
  border-color: var(--comp-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.competencia-card .category-icon {
  background: var(--gray-50);
  color: var(--comp-blue);
}

/* ========================================
   METODOLOGÍA
   ======================================== */

.metodologia {
  background: var(--white);
  padding: var(--spacing-3xl) 0;
}

.metodologia-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

.metodologia-step {
  position: relative;
}

.metodologia-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.metodologia-step-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.metodologia-step-description {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.metodologia-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metodologia-step-list li {
  font-size: var(--text-sm);
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}

.metodologia-step-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

.metodologia-callout {
  background: var(--gray-50);
  border-left: 4px solid var(--black);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  border-radius: 4px;
}

.metodologia-callout p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ========================================
   BASE DE DATOS
   ======================================== */

.database {
  background: var(--gray-50);
  padding: var(--spacing-3xl) 0;
}

.database-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.dashboard-stat {
  text-align: center;
}

.dashboard-stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
  color: var(--black);
}

.dashboard-stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.database-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

/* Filtros */
.database-filters {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
  position: sticky;
  top: 80px;
}

.filters-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-lg) 0;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--gray-200);
}

.filter-group {
  margin-bottom: var(--spacing-md);
}

.filter-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--black);
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: var(--text-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:hover {
  border-color: var(--gray-400);
}

.filter-select:focus {
  outline: none;
  border-color: var(--black);
}

.filter-actions {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

.filter-summary {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--gray-50);
  border-radius: 4px;
  font-size: var(--text-sm);
  text-align: center;
}

/* Resultados */
.database-results {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
}

.results-count {
  font-size: var(--text-lg);
  font-weight: 600;
}

.results-count span {
  color: var(--black);
}

.results-view {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 4px;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  border-color: var(--black);
}

.view-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Casos Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.case-card {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: var(--spacing-md);
  transition: all 0.2s;
  cursor: pointer;
}

.case-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-header {
  margin-bottom: var(--spacing-sm);
}

.case-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.case-cargo {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--spacing-sm) 0;
}

.case-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-700);
}

.case-badge.partido {
  background: var(--gray-200);
  color: var(--black);
}

.case-badge.region {
  background: var(--gray-100);
  color: var(--gray-700);
}

.case-badge.crisis {
  background: #FEE2E2;
  color: var(--crisis-red);
}

.case-headline {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.5;
  margin: var(--spacing-sm) 0;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--gray-200);
}

.case-date {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.case-link {
  font-size: var(--text-sm);
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
}

.case-link:hover {
  text-decoration: underline;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 4px;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--black);
  background: var(--gray-50);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pagination-info {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* Modal de caso */
.case-modal {
  max-width: 800px;
}

.case-modal-header {
  margin-bottom: var(--spacing-lg);
}

.case-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.case-detail-section {
  margin-bottom: var(--spacing-lg);
}

.case-detail-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-xs);
}

.case-detail-value {
  font-size: var(--text-base);
  color: var(--gray-900);
  line-height: 1.6;
}

/* ========================================
   ÁREAS DE ANÁLISIS
   ======================================== */

.analysis-areas {
  padding: var(--spacing-3xl) 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.area-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: all 0.2s;
}

.area-card:hover {
  border-color: var(--gray-400);
  transform: translateY(-2px);
}

.area-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--black);
  margin-bottom: var(--spacing-md);
}

.area-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-list li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.area-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: bold;
}

/* ========================================
   CASOS DE USO
   ======================================== */

.use-cases {
  background: var(--gray-50);
  padding: var(--spacing-3xl) 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.use-case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-xl);
  transition: all 0.2s;
}

.use-case-card:hover {
  border-color: var(--black);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--black);
  margin-bottom: var(--spacing-md);
}

.use-case-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-xs) 0;
}

.use-case-description {
  font-size: var(--text-base);
  color: var(--gray-700);
  font-weight: 500;
  margin: 0 0 var(--spacing-md) 0;
}

.use-case-detail {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.use-case-benefits {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.use-case-benefits li {
  font-size: var(--text-sm);
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}

.use-case-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat-number {
    font-size: var(--text-3xl);
  }

  .categories-grid,
  .competencias-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .metodologia-timeline {
    grid-template-columns: 1fr;
  }

  .database-content {
    grid-template-columns: 1fr;
  }

  .database-filters {
    position: static;
  }

  .dashboard-stat-number {
    font-size: var(--text-3xl);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ========================================
   ESTADOS DE CARGA
   ======================================== */

.loading {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--gray-500);
}

.loading:after {
  content: "...";
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

.no-results {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--gray-500);
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-crisis {
  color: var(--crisis-red);
}

.text-comp {
  color: var(--comp-blue);
}

.bg-crisis {
  background-color: #FEE2E2;
  color: var(--crisis-red);
}

.bg-comp {
  background-color: #DBEAFE;
  color: var(--comp-blue);
}

/* ========================================
   FRAMEWORK INTRO
   ======================================== */

.framework-intro {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

/* ========================================
   METODOLOGÍA - PHASES
   ======================================== */

.metodologia-phase {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid var(--gray-200);
}

.metodologia-phase:last-child {
  border-bottom: none;
}

.phase-header {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
}

.phase-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
}

.phase-info {
  flex: 1;
}

.phase-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
}

.phase-description {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.phase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.phase-text h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
}

.phase-text ul, .phase-text ol {
  margin: 0;
  padding-left: 20px;
}

.phase-text li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  color: var(--gray-700);
}

.phase-chart {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-lg);
}

.phase-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--gray-50);
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.callout-box {
  background: var(--gray-50);
  border-left: 4px solid var(--black);
  padding: var(--spacing-xl);
  border-radius: 4px;
}

.callout-box h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
}

.callout-box p {
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.6;
}

.callout-box ul {
  margin: 0;
  padding-left: 20px;
}

.callout-box li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

/* ========================================
   INSIGHTS
   ======================================== */

.insights {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-xl);
}

.insight-card.full-width {
  grid-column: 1 / -1;
}

.insight-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
}

.insight-stat {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1;
  margin: var(--spacing-md) 0;
  color: var(--black);
}

.insight-description {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 var(--spacing-lg) 0;
}

.insight-chart {
  margin-top: var(--spacing-lg);
}

/* ========================================
   CHARTS
   ======================================== */

.chart-container {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-xl);
}

.chart-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--spacing-lg);
}

.chart-box h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
  text-align: center;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-xl);
}

/* ========================================
   TABS
   ======================================== */

.results-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.tab-content {
  display: none;
  margin-top: var(--spacing-lg);
}

.tab-content.active {
  display: block;
}

/* ========================================
   TABLA DE CASOS
   ======================================== */

.table-container {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.cases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.cases-table thead {
  background: var(--gray-50);
}

.cases-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.cases-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.cases-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.cases-table tbody tr:hover {
  background: var(--gray-50);
}

/* ========================================
   CONCLUSIONS
   ======================================== */

.conclusions {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.conclusions-content {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl) auto;
  text-align: center;
}

.conclusions-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: var(--spacing-lg);
}

.conclusions-cta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.conclusions-footer {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   RESPONSIVE ADICIONAL
   ======================================== */

@media (max-width: 768px) {
  .phase-header {
    flex-direction: column;
  }

  .phase-number {
    width: 48px;
    height: 48px;
    font-size: var(--text-2xl);
  }

  .phase-content {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-stat {
    font-size: var(--text-5xl);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .results-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .conclusions-cta {
    flex-direction: column;
  }

  .conclusions-cta .btn-lg {
    width: 100%;
  }
}

/* ========================================
   NUEVA ESTRUCTURA - ACORDEONES
   ======================================== */

/* Hero Simple - Más Espectacular */
.hero-simple {
  padding: calc(var(--spacing-3xl) + 80px) 0 calc(var(--spacing-3xl) + 40px) 0;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-simple::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-simple .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: var(--spacing-lg) 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  color: #000000;
  position: relative;
}

.hero-simple .hero-title .brand-name {
  color: #374151;
  font-weight: 900;
}

.hero-simple .hero-description {
  font-size: 1.25rem;
  color: var(--gray-700);
  max-width: 850px;
  margin: var(--spacing-xl) auto;
  line-height: 1.8;
  position: relative;
}

/* Framework Sections */
.framework-section {
  padding: var(--spacing-3xl) 0;
}

.framework-section.gray-bg {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl) auto;
}

.section-header .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.section-header .section-description {
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: 1.7;
}

/* Estadísticas Hero - Más Espectaculares */
.hero-stats .stat-item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats .stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hero-stats .stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #000000 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats .stat-label {
  margin-top: var(--spacing-xs);
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Acordeones - Más Espectaculares */
.accordion-container {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-item:hover {
  border-color: var(--gray-200);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.accordion-item.active {
  border-color: var(--black);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  cursor: pointer;
  user-select: none;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.01), transparent);
}

.accordion-header:hover {
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.02), transparent);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-right: var(--spacing-lg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray-400);
  stroke-width: 2.5;
}

.accordion-item.active .accordion-icon {
  transform: rotate(90deg);
  color: var(--black);
}

.accordion-title-group {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.accordion-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: var(--black);
  letter-spacing: -0.01em;
}

.accordion-count {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
  display: none; /* Oculto por defecto */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 8000px;
  padding: 0 var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.accordion-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: var(--spacing-lg);
}

.subcategory-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-top: 1px solid var(--gray-200);
  padding-top: var(--spacing-lg);
}

.subcategories-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.subcategory-item {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-left: 4px solid var(--black);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.subcategory-item:hover {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  border-left-width: 6px;
  transform: translateX(4px);
}

.subcategory-item h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--black);
}

.subcategory-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 var(--spacing-sm) 0;
}

.indicators-details {
  margin-top: var(--spacing-sm);
}

.indicators-details summary {
  font-size: var(--text-sm);
  color: var(--gray-600);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  padding: var(--spacing-xs) 0;
}

.indicators-details summary:hover {
  color: var(--black);
}

.indicators-list {
  margin: var(--spacing-sm) 0 0 0;
  padding-left: var(--spacing-lg);
}

.indicators-list li {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xs);
}

.indicators-more {
  font-style: italic;
  color: var(--gray-500);
}

/* Loading y error messages */
.loading-message {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--gray-600);
}

.error-message {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--crisis-red);
  background: #FEE2E2;
  border-radius: 8px;
}

/* Database Section */
.database-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

/* Filters */
.filters-container {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--spacing-md);
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-lg);
  background: var(--gray-50);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.filter-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.filter-group select {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: var(--text-base);
  background: var(--white);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

.result-count {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: var(--spacing-md) 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-simple .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-container {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: row;
  }

  .accordion-title {
    font-size: var(--text-lg);
  }

  .accordion-title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* Base de datos - Más Espectacular */
.database-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

.filters-container {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: var(--spacing-xs);
  align-items: flex-end;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
  flex: 0 0 auto;
}

.filter-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-group select {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--white);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-group select:hover {
  border-color: var(--gray-400);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  margin-left: var(--spacing-sm);
}

.filter-actions .btn-secondary {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: var(--text-sm);
  margin: 0;
}

.filter-actions .btn-text {
  white-space: nowrap;
  padding: 4px 16px;
  font-size: var(--text-xs);
  margin: 0;
  text-align: center;
}

.result-count {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: var(--spacing-sm) 0 var(--spacing-lg) 0;
  font-weight: 500;
}

/* Logo del footer más pequeño */
.footer-logo {
  max-width: 120px !important;
  height: auto !important;
}

/* Section headers más espectaculares */
.section-header .section-title {
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--black), transparent);
  border-radius: 2px;
}

/* Badge del hero más espectacular */
.hero-badge {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

/* Casos grid - tarjetas más profesionales */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: var(--spacing-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000, #374151);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover::before {
  opacity: 1;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--gray-300);
}

.case-header {
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.case-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  color: var(--black);
  line-height: 1.3;
  flex: 1;
}

.case-party {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-position {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: 500;
  margin: var(--spacing-xs) 0;
  line-height: 1.4;
}

.case-region {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin: var(--spacing-xs) 0;
  font-weight: 500;
}

.case-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin: var(--spacing-md) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--gray-100);
}

.case-date {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 500;
}

/* Tabs más espectaculares */
.tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.tab-btn.active::before {
  transform: translateX(0);
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .hero-simple .hero-title {
    font-size: 2.25rem;
  }

  .hero-stats .stat-number {
    font-size: 2.25rem;
  }

  .accordion-title {
    font-size: 1.125rem;
  }

  .filters-container {
    flex-wrap: wrap;
    padding: var(--spacing-md);
  }

  .filter-group {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .filter-group select {
    width: 100%;
  }

  .filter-actions {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
    margin-top: var(--spacing-xs);
  }

  .filter-actions button {
    flex: 1;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMACIONES Y FORMAS EN MOVIMIENTO
   ======================================== */

/* Formas geométricas animadas para sección de categorías */
.framework-section {
  position: relative;
  overflow: hidden;
}

.framework-section::before,
.framework-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

.framework-section::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #000000 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.framework-section::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #DC2626 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: 10s;
}

.framework-section.gray-bg::before {
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  top: 50%;
  right: -150px;
  width: 500px;
  height: 500px;
}

.framework-section.gray-bg::after {
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
  bottom: -100px;
  left: 10%;
  width: 350px;
  height: 350px;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* Partículas flotantes decorativas */
.section-header::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle, rgba(0,0,0,0.05) 2px, transparent 2px),
    radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  background-position: 0 0, 15px 15px;
  animation: particleMove 30s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes particleMove {
  from {
    background-position: 0 0, 15px 15px;
  }
  to {
    background-position: 50px 50px, 65px 65px;
  }
}

/* Animación de entrada para acordeones */
.accordion-item {
  animation: slideUp 0.5s ease backwards;
}

.accordion-item:nth-child(1) { animation-delay: 0.05s; }
.accordion-item:nth-child(2) { animation-delay: 0.1s; }
.accordion-item:nth-child(3) { animation-delay: 0.15s; }
.accordion-item:nth-child(4) { animation-delay: 0.2s; }
.accordion-item:nth-child(5) { animation-delay: 0.25s; }
.accordion-item:nth-child(6) { animation-delay: 0.3s; }
.accordion-item:nth-child(7) { animation-delay: 0.35s; }
.accordion-item:nth-child(8) { animation-delay: 0.4s; }
.accordion-item:nth-child(9) { animation-delay: 0.45s; }
.accordion-item:nth-child(10) { animation-delay: 0.5s; }
.accordion-item:nth-child(11) { animation-delay: 0.55s; }

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

/* Iconos con animación de pulso */
.accordion-icon svg {
  animation: pulse 3s ease-in-out infinite;
}

.accordion-item:hover .accordion-icon svg {
  animation: spin 0.5s ease;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

/* Animación de gradiente en el hero */
.hero-simple {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Estadísticas con animación de entrada */
.hero-stats .stat-item {
  animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.hero-stats .stat-item:nth-child(1) { animation-delay: 0.1s; }
.hero-stats .stat-item:nth-child(2) { animation-delay: 0.2s; }
.hero-stats .stat-item:nth-child(3) { animation-delay: 0.3s; }
.hero-stats .stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Formas decorativas en la base de datos */
.database-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Iconos de categorías con colores únicos */
.accordion-item[data-category="1"] .accordion-icon { color: #DC2626; }
.accordion-item[data-category="2"] .accordion-icon { color: #EA580C; }
.accordion-item[data-category="3"] .accordion-icon { color: #D97706; }
.accordion-item[data-category="4"] .accordion-icon { color: #65A30D; }
.accordion-item[data-category="5"] .accordion-icon { color: #059669; }
.accordion-item[data-category="6"] .accordion-icon { color: #0891B2; }
.accordion-item[data-category="7"] .accordion-icon { color: #3B82F6; }
.accordion-item[data-category="8"] .accordion-icon { color: #6366F1; }
.accordion-item[data-category="9"] .accordion-icon { color: #8B5CF6; }
.accordion-item[data-category="10"] .accordion-icon { color: #A855F7; }
.accordion-item[data-category="11"] .accordion-icon { color: #EC4899; }

/* Efecto shimmer en títulos */
.accordion-title {
  background: linear-gradient(90deg, 
    currentColor 0%, 
    currentColor 40%, 
    rgba(255,255,255,0.3) 50%, 
    currentColor 60%, 
    currentColor 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.accordion-item.active .accordion-title {
  animation: none;
  background: none;
  -webkit-text-fill-color: inherit;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Reducir animaciones en móviles para mejor performance */
@media (max-width: 768px) {
  .framework-section::before,
  .framework-section::after,
  .database-section::before,
  .section-header::before {
    display: none;
  }

  .accordion-title {
    animation: none;
  }
}

/* ========================================
   GRID DE CARDS 3 COLUMNAS CON MODAL
   ======================================== */

/* Grid de Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin: 0 auto;
  max-width: 1200px;
}

/* Card Individual */
.framework-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--spacing-xl);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease backwards;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.framework-card:hover::before {
  left: 100%;
}

.framework-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000, #374151, #6B7280);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.framework-card:hover::after {
  opacity: 1;
}

.framework-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 0 60px -15px rgba(0, 0, 0, 0.1);
  border-color: var(--black);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Icono de la Card */
.framework-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--spacing-md) auto;
  color: var(--black);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.framework-card-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.framework-card:hover .framework-card-icon::before {
  transform: scale(1.5);
}

.framework-card:hover .framework-card-icon {
  transform: scale(1.2) translateY(-4px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.framework-card-icon svg {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.framework-card:hover .framework-card-icon svg {
  stroke-width: 2.5;
}

/* Título de la Card */
.framework-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--black);
  line-height: 1.3;
  transition: all 0.3s ease;
  position: relative;
}

.framework-card:hover .framework-card-title {
  transform: translateY(-2px);
  letter-spacing: 0.02em;
}

/* Descripción breve */
.framework-card-snippet {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.framework-card:hover .framework-card-snippet {
  color: var(--gray-700);
}

/* Staggered animations */
.framework-card:nth-child(1) { animation-delay: 0.05s; }
.framework-card:nth-child(2) { animation-delay: 0.1s; }
.framework-card:nth-child(3) { animation-delay: 0.15s; }
.framework-card:nth-child(4) { animation-delay: 0.2s; }
.framework-card:nth-child(5) { animation-delay: 0.25s; }
.framework-card:nth-child(6) { animation-delay: 0.3s; }
.framework-card:nth-child(7) { animation-delay: 0.35s; }
.framework-card:nth-child(8) { animation-delay: 0.4s; }
.framework-card:nth-child(9) { animation-delay: 0.45s; }
.framework-card:nth-child(10) { animation-delay: 0.5s; }
.framework-card:nth-child(11) { animation-delay: 0.55s; }

/* Iconos de categorías en gris oscuro */
.framework-card[data-category] .framework-card-icon {
  color: #374151;
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.framework-card:hover .framework-card-icon {
  animation: none;
}

/* Modal de Contenido */
.content-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.2s ease;
}

.content-modal.active {
  display: flex;
}

.content-modal-wrapper {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header del Modal */
.content-modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.content-modal-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--black);
}

.content-modal-icon svg {
  width: 100%;
  height: 100%;
}

.content-modal-title-group {
  flex: 1;
}

.content-modal-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--black);
}

.content-modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.content-modal-close:hover {
  background: var(--black);
  color: var(--white);
  transform: rotate(90deg);
}

/* Cuerpo del Modal */
.content-modal-body {
  padding: var(--spacing-2xl);
}

.modal-description {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: var(--spacing-2xl);
}

.modal-subcategories-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--spacing-2xl) 0 var(--spacing-lg) 0;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--gray-200);
}

.modal-subcategory {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-left: 4px solid var(--black);
  border-radius: 8px;
}

.modal-subcategory-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--black);
}

.modal-subcategory-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 var(--spacing-md) 0;
}

.modal-indicators-details summary {
  font-size: var(--text-sm);
  color: var(--gray-600);
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  padding: var(--spacing-xs) 0;
}

.modal-indicators-details summary:hover {
  color: var(--black);
}

.modal-indicators-list {
  margin: var(--spacing-sm) 0 0 0;
  padding-left: var(--spacing-lg);
}

.modal-indicators-list li {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xs);
}

/* Responsive Grid Cards */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .content-modal-wrapper {
    max-height: 95vh;
  }

  .content-modal-header {
    padding: var(--spacing-lg);
  }

  .content-modal-body {
    padding: var(--spacing-lg);
  }

  .content-modal-title {
    font-size: var(--text-xl);
  }

  .content-modal-icon {
    width: 48px;
    height: 48px;
  }
}
