/* QUIÉNES SOMOS*/

.hero-quienes {
  background-color: #f5f5f5;
  background-image: url('../../img/Banner-Quienes-somos-06.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Sobrescribir el contenedor dentro del hero para ancho completo */
.hero-quienes .container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Patrón decorativo de fondo */
.hero-quienes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 80px;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-quienes h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}

/* 
   SECTION HEADERS
    */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 15px;
  font-weight: 600;
}

.section-description {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* HISTORIA SECTION*/

.historia-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.historia-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text);
  font-size: 1.05rem;
}

.historia-text p:last-child {
  margin-bottom: 0;
}

.historia-text strong {
  color: var(--primary);
  font-weight: 600;
}

.historia-imagen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(47, 125, 179, 0.2);
  width: 100%;
}

.imagen-placeholder span {
  font-size: 4rem;
  display: block;
  margin-bottom: 15px;
}

.imagen-placeholder p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* 
   MISIÓN Y VISIÓN
    */

.mision-vision {
  background: var(--alt) !important;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.mv-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.mv-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mv-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.mv-card h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 600;
}

.mv-card > p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.valores-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.valores-list li {
  padding: 10px 0;
  color: var(--text);
  font-weight: 500;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.valores-list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* 
   VALORES CORPORATIVOS
    */

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.valor-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.valor-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.valor-card h4 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}

.valor-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* 
   ESTADÍSTICAS
    */

.stats-section {
  background: var(--primary) !important;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  color: var(--accent);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 500;
}

/* 
   CALL TO ACTION
    */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e5f8c 100%) !important;
  color: white;
}

.cta-content {
  text-align: center;
  padding: 40px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.btn-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 15px 40px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: var(--accent);
  color: white;
}

/* 
   NAVEGACIÓN ACTIVA
    */

nav a.active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* 
   ANIMACIONES
    */

/* Fade In */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Slide Up */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
}

.slide-up.visible {
  animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Left */
.slide-left {
  opacity: 0;
  transform: translateX(-30px);
}

.slide-left.visible {
  animation: slideLeft 0.8s ease forwards;
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide Right */
.slide-right {
  opacity: 0;
  transform: translateX(30px);
}

.slide-right.visible {
  animation: slideRight 0.8s ease forwards;
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Delay */
.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-delay.visible {
  animation: fadeInDelay 0.6s ease forwards;
}

@keyframes fadeInDelay {
  to {
    opacity: 1;
   transform: translateY(0);
  }
}

/* UTILIDADES*/

.content-wrapper {
  width: 100%;
}

/* Barra de progreso de scroll - ELIMINADA */

/*RESPONSIVE DESIGN */

@media (min-width: 1920px) {
  .hero-quienes {
    min-height: 600px;
    background-size: cover;
  }
}

@media (min-width: 1400px) and (max-width: 1919px) {
  .hero-quienes {
    min-height: 550px;
  }
}

@media (max-width: 1024px) {
  .hero-quienes {
    min-height: 420px;
    background-size: cover;
  }

  .hero-quienes h1 {
    font-size: 2.8rem;
  }

  .historia-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-quienes {
    min-height: 350px;
    background-size: cover;
  }

  .hero-content {
    padding: 80px 20px 60px;
  }

  .hero-quienes h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .mv-card {
    padding: 30px;
  }

  nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-quienes {
    min-height: 280px;
    background-size: cover;
    background-position: center center;
  }

  .hero-content {
    padding: 60px 15px 40px;
  }

  .hero-quienes h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .mv-card,
  .valor-card {
    padding: 25px 20px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .btn-cta {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* 
   MEJORAS DE ACCESIBILIDAD
    */

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
