/* ==================== ESTILOS PLAN DE ACCIÓN ==================== */

/* Hero Section */
.hero-plan-accion {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-plan-accion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease;
}

.hero-plan-accion h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-plan-accion p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Timeline Progress */
.timeline-progress {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 1rem;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.timeline-years {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.year-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.year-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.year-marker.active .year-dot {
  background: white;
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.year-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.year-marker.active .year-label {
  color: white;
  transform: scale(1.1);
}

.timeline-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-text {
  font-size: 1rem;
  font-weight: 600;
}

.status-percentage {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Intro Section */
.intro-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto;
}

.intro-icon {
  width: 120px;
  height: 120px;
  min-width: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
  transition: all 0.4s ease;
}

.intro-content:hover .intro-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.4);
}

.intro-icon svg {
  width: 60px;
  height: 60px;
  color: white;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Pilares Section */
.pilares-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* Pilares Grid */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

/* Pilar Card */
.pilar-card {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pilar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pilar-card:hover::before {
  transform: scaleX(1);
}

.pilar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pilar-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(67, 97, 238, 0.05);
  line-height: 1;
  transition: all 0.4s ease;
}

.pilar-card:hover .pilar-number {
  color: rgba(67, 97, 238, 0.1);
  transform: scale(1.1);
}

.pilar-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
  transition: all 0.4s ease;
}

.pilar-card:hover .pilar-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.4);
}

.pilar-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.pilar-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.pilar-description {
  font-size: 1.063rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Pilar Metas */
.pilar-metas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.meta-card {
  flex: 1;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.meta-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
}

.meta-label {
  display: block;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.meta-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.meta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.meta-arrow svg {
  width: 32px;
  height: 32px;
}

/* Pilar Progress */
.pilar-progress {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--gray-700);
}

.progress-percentage {
  color: var(--primary);
  font-size: 1.125rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1rem;
  transition: width 1s ease;
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}

/* Expand Button */
.pilar-expand-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
  border: 2px solid #e0e7ff;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pilar-expand-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.pilar-expand-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.pilar-expand-btn.active svg {
  transform: rotate(180deg);
}

/* Pilar Acciones */
.pilar-acciones {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 0;
}

.pilar-acciones.active {
  max-height: 800px;
  margin-top: 2rem;
}

.pilar-acciones h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.acciones-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.acciones-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.acciones-list li:hover {
  background: #f0f7ff;
  transform: translateX(8px);
}

.acciones-list li svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--primary);
  margin-top: 0.25rem;
}

.acciones-list li span {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Indicadores Section */
.indicadores-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
}

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

.indicador-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.indicador-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.indicador-card:hover::before {
  transform: scaleX(1);
}

.indicador-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.indicador-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
  transition: all 0.4s ease;
}

.indicador-card:hover .indicador-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
}

.indicador-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.indicador-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem 0;
}

.indicador-card p {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.indicador-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.value-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.value-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 992px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .intro-content {
    flex-direction: column;
    text-align: center;
  }

  .indicadores-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-plan-accion {
    padding: 4rem 0 3rem;
  }

  .hero-plan-accion h1 {
    font-size: 2.25rem;
  }

  .hero-plan-accion p {
    font-size: 1.125rem;
  }

  .timeline-years {
    gap: 0.5rem;
  }

  .year-label {
    font-size: 0.75rem;
  }

  .timeline-status {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .intro-content {
    padding: 2rem;
  }

  .intro-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }

  .intro-icon svg {
    width: 50px;
    height: 50px;
  }

  .intro-text h2 {
    font-size: 1.75rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1.063rem;
  }

  .pilar-card {
    padding: 2rem;
  }

  .pilar-number {
    font-size: 3.5rem;
    top: 1.5rem;
    right: 1.5rem;
  }

  .pilar-icon {
    width: 80px;
    height: 80px;
  }

  .pilar-icon svg {
    width: 40px;
    height: 40px;
  }

  .pilar-content h3 {
    font-size: 1.5rem;
  }

  .pilar-description {
    font-size: 1rem;
  }

  .pilar-metas {
    flex-direction: column;
    gap: 1rem;
  }

  .meta-arrow {
    transform: rotate(90deg);
  }

  .meta-value {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .hero-plan-accion h1 {
    font-size: 1.875rem;
  }

  .hero-plan-accion p {
    font-size: 1rem;
  }

  .year-dot {
    width: 12px;
    height: 12px;
  }

  .year-label {
    font-size: 0.688rem;
  }

  .pilar-card {
    padding: 1.5rem;
  }

  .value-number {
    font-size: 2.5rem;
  }

  .value-unit {
    font-size: 1.25rem;
  }
}
