/* ====== Hero Nosotros Fullscreen ====== */
.hero-nosotros {
  position: relative;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  background-image: url("../assets/img/portada_clientes.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Espacio por el navbar */
  overflow: hidden;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* oscurece para que se lea bien el texto */
  z-index: 1;
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
}

.hero-nosotros h1,
.hero-nosotros p {
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* ===== Main Container ===== */
.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ===== General Sections ===== */
.testimonials-section {
  padding-top: 25px;
}

.section-title {
  color: #003366;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #80c542;
  margin: 15px auto 0;
}

.section-subtitle {
  color: #5a6a7e;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: #80c542;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 15px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
}

.author-info h5 {
  color: #003366;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.author-info p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Case Studies ===== */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.case-study-card.reverse {
  direction: rtl;
}

.case-study-card.reverse > * {
  direction: ltr;
}

.case-study-image {
  position: relative;
}

.case-study-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

.case-study-image:hover img {
  transform: scale(1.05);
}

.case-study-content h3 {
  color: #005b8c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.case-study-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-study-results {
  display: flex;
  gap: 30px;
}

.result-item {
  text-align: center;
}

.result-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 0.3rem;
}

.result-label {
  font-size: 0.9rem;
  color: #777;
}

.case-study-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
  font-style: italic;
}

.case-study-footer {
  background: #f8fafc;
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
  text-align: center;
  border-left: 4px solid #80c542;
}

.case-study-footer p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: #555;
}

.btn-primary {
  background-color: #003366;
  border: none;
  padding: 10px 25px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #005b8c;
}

/* ===== Corporate Clients ===== */
.client-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 2.5rem;
  color: #80c542;
  margin-bottom: 1rem;
}

.category-card h4 {
  color: #003366;
  margin-bottom: 1.5rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.client-logos img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(70%);
  transition: all 0.3s;
}

.client-logos img:hover {
  filter: grayscale(0%) opacity(100%);
}

/* ===== All Clients ===== */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-logos-grid img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(70%);
  transition: all 0.3s;
  padding: 20px;
}

.client-logos-grid img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.05);
}

.client-logos-grid a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Responsive ajustado */
@media (max-width: 992px) {
  .client-logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .client-logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
  }

  .client-logos-grid img {
    max-height: 80px;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .client-logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
  }

  .client-logos-grid img {
    max-height: 60px;
    padding: 10px;
  }
}
