/* ============================================
   Estilos para la página "Nosotros"
   ============================================ */

/* Hero Section (fondo: el gris plano del body, sin franja propia) */

.nosotros-eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--secondary-color);
}

.nosotros-historia-title {
  font-size: clamp(2rem, 1.5vw + 1.5rem, 2.75rem);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.15;
  position: relative;
  padding-bottom: 1rem;
}

.nosotros-historia-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--secondary-color);
}

/* Carrusel de "Nuestra Historia" */
.nosotros-hero-carousel {
  border-radius: 1.5rem;
  overflow: hidden;
}

.nosotros-hero-carousel .carousel-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.nosotros-hero-carousel .carousel-control-prev,
.nosotros-hero-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease;
}

.nosotros-hero-carousel .carousel-control-prev { left: 1rem; }
.nosotros-hero-carousel .carousel-control-next { right: 1rem; }

.nosotros-hero-carousel .carousel-control-prev i,
.nosotros-hero-carousel .carousel-control-next i {
  font-size: 1.15rem;
  color: #fff;
}

.nosotros-hero-carousel .carousel-control-prev:hover,
.nosotros-hero-carousel .carousel-control-next:hover {
  background: var(--primary-dark);
}

/* Puntos de paginación, debajo del carrusel (no superpuestos) */
.nosotros-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.nosotros-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gray-300);
  padding: 0;
  transition: all 0.25s ease;
}

.nosotros-carousel-dots button.active {
  width: 28px;
  background: var(--primary-color);
}

/* Misión y Visión */
.mision-vision .card {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.mision-vision .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.mision-vision .icon-wrapper {
  display: inline-block;
}

.pilar-card {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.pilar-card:hover {
  border-color: var(--gue-primary, #7a1a0c);
  box-shadow: 0 8px 20px rgba(122, 26, 12, 0.1);
  transform: translateY(-5px);
}

.pilar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.pilar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pilar-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}


.normas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.norma-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.norma-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.norma-number {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--gue-primary, #7a1a0c) 0%, #a02515 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.norma-text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* CTA Section */
.cta-section .btn-primary {
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 26, 12, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros-hero h1 {
    font-size: 2rem;
  }

  .pilar-card {
    padding: 1.5rem;
  }

  .norma-item {
    padding: 1rem;
    gap: 1rem;
  }

  .norma-number {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

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

.page-nosotros section {
  animation: fadeInUp 0.6s ease-out;
}
