/* ==================== ESTILOS QUIÉNES SOMOS ==================== */

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

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
  pointer-events: none;
}

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

.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);
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero-section p {
  font-size: 1.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background: var(--gray-50);
}

/* Misión y Visión */
.mision-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.mision-card,
.vision-card {
  background: white;
  padding: 3.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.mision-card:hover,
.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
  border-top-width: 6px;
}

.mision-card:hover::before,
.vision-card:hover::before {
  transform: scaleX(1);
}

.mision-card h3,
.vision-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.mision-card h3::before,
.vision-card h3::before {
  content: "";
  width: 6px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.mision-card p,
.vision-card p {
  font-size: 1.188rem;
  line-height: 1.9;
  color: var(--gray-700);
  font-weight: 400;
}

/* Organigrama */
.organigrama-container {
  background: white;
  padding: 4rem 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.organigrama-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

.organigrama-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.organigrama-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
}

.organigrama-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.organigrama-level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.organigrama-node {
  background: white;
  border: 3px solid var(--primary);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.organigrama-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.organigrama-node:hover::before {
  left: 100%;
}

.organigrama-node:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.25);
  border-color: var(--primary-dark);
}

.organigrama-node.principal {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
  z-index: 2;
}

.organigrama-node h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.organigrama-node p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.organigrama-node.principal p {
  color: rgba(255, 255, 255, 0.9);
}

/* Equipo de Trabajo */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.equipo-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.equipo-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.2);
  border-color: var(--primary);
}

.equipo-card-image {
  width: 100%;
  height: 300px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.equipo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipo-card-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.equipo-card-content {
  padding: 1.5rem;
}

.equipo-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.equipo-card .cargo {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.equipo-card .descripcion {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Plan de Acción */
.plan-accion {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.plan-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

.plan-tab {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}

.plan-tab:hover {
  color: var(--primary);
}

.plan-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.plan-content {
  display: none;
}

.plan-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.plan-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.plan-item {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.plan-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.plan-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.plan-item p {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* Misión y Visión Cards */
.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
}

.card-icon svg {
  width: 36px;
  height: 36px;
  color: white;
  stroke-width: 2.5;
}

.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mision-card:hover .card-accent,
.vision-card:hover .card-accent {
  opacity: 1;
}

/* Valores Institucionales */
.valores-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
  padding: 5rem 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.valor-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(46, 125, 50, 0.1);
  position: relative;
  overflow: hidden;
}

.valor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.valor-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.valor-card:hover .valor-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.1) rotate(5deg);
}

.valor-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  stroke-width: 2;
  transition: color 0.3s ease;
}

.valor-card:hover .valor-icon svg {
  color: white;
}

.valor-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.valor-card p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Organigrama Mejorado */
.node-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.organigrama-node.subsecretario {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(46, 125, 50, 0.02));
  border-color: var(--primary);
  border-width: 2px;
}

.organigrama-node.subsecretario:hover {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
}

.node-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.node-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  stroke-width: 2;
}

/* Equipo Section */
.equipo-section {
  background: var(--gray-50);
  padding: 5rem 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder svg {
  width: 100px;
  height: 100px;
  color: white;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* Logros Section */
.logros-section {
  background: white;
  padding: 5rem 0;
}

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

.logro-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.logro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.logro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.logro-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.logro-card:hover .logro-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.1) rotate(10deg);
}

.logro-icon svg {
  width: 45px;
  height: 45px;
  color: var(--primary);
  stroke-width: 2;
  transition: color 0.3s ease;
}

.logro-card:hover .logro-icon svg {
  color: white;
}

.logro-card h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.logro-card p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 1s ease-in-out;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* Responsive */

/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    padding: 4.5rem 0;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .mision-vision {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

/* Mobile: < 768px */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .mision-vision {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .organigrama-tree {
    gap: 1.5rem;
  }

  .organigrama-level {
    gap: 1rem;
  }

  .organigrama-node {
    min-width: 100%;
  }

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

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

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

  .plan-tab {
    width: 100%;
    text-align: left;
  }

  .plan-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile pequeño: < 480px */
@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

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

  .mision-vision {
    gap: 1.5rem;
  }

  .valores-grid {
    gap: 1.25rem;
  }

  .equipo-grid {
    gap: 1.5rem;
  }

  .logros-grid {
    gap: 1.5rem;
  }
}
