/* ============================================= */
/* HERO SECTION */
/* ============================================= */
.hero-nosotros {
  background: linear-gradient(135deg, rgba(12, 50, 120, 0.9) 0%, rgba(26, 109, 223, 0.8) 100%), 
              url('/imagenes-nosotros/img-fondo-section.jpg') center/cover no-repeat;
  padding: 180px 20px 100px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-nosotros .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-nosotros h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-nosotros p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================= */
/* SECTIONS */
/* ============================================= */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-texts {
  padding-right: 20px;
}

.section-title {
  font-size: 2.5rem;
  color: #0c3278;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0c3278 0%, #1a6ddf 100%);
  border-radius: 2px;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.section-image {
  border-radius: 12px;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.section-image:hover img {
  transform: scale(1.05);
}

/* ============================================= */
/* CARDS */
/* ============================================= */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c3278 0%, #1a6ddf 100%);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
}

.card h3 {
  font-size: 1.5rem;
  color: #0c3278;
  margin-bottom: 20px;
  font-weight: 700;
}

.card p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* ============================================= */
/* VALUES SECTION */
/* ============================================= */
.values-section {
  background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 100%);
  padding: 100px 20px;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-item {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e55422 0%, #ff8f3f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

.value-item h4 {
  font-size: 1.3rem;
  color: #0c3278;
  margin-bottom: 15px;
  font-weight: 600;
}

.value-item p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================= */
/* RESPONSIVE DESIGN - CORREGIDO Y COMPLETADO */
/* ============================================= */

/* Tablets y laptops pequeñas (992px o menos) */
@media (max-width: 992px) {
  .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .section-texts {
    padding-right: 0;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* Tablets (768px o menos) */
@media (max-width: 768px) {
  .hero-nosotros {
    padding: 150px 20px 80px;
  }
  
  .hero-nosotros h1 {
    font-size: 2.8rem;
  }
  
  .hero-nosotros p {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  
  .card {
    padding: 35px 25px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .card h3 {
    font-size: 1.4rem;
  }
  
  .values-section {
    padding: 80px 20px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .value-item {
    padding: 25px 20px;
  }
  
  .value-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
  
  .value-item h4 {
    font-size: 1.2rem;
  }
}

/* Móviles (480px o menos) */
@media (max-width: 480px) {
  .hero-nosotros {
    padding: 120px 15px 60px;
  }
  
  .hero-nosotros h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .hero-nosotros p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 50px 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .section-text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .cards-container {
    gap: 20px;
  }
  
  .card {
    padding: 30px 20px;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .card p {
    font-size: 0.95rem;
  }
  
  .values-section {
    padding: 60px 15px;
  }
  
  .values-grid {
    margin-top: 30px;
  }
  
  .value-item {
    padding: 20px 15px;
  }
  
  .value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .value-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Móviles muy pequeños (360px o menos) */
@media (max-width: 360px) {
  .hero-nosotros h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .value-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}