.casos-exito-page {
  padding: 2rem 0;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #1e3a8a;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.casos-exito-header {
  text-align: center;
  margin: 3rem 3rem;
}

.casos-exito-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.casos-exito-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.primary-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.primary-filter-btn {
  padding: 10px 25px 8px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: normal;
}

.primary-filter-btn.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.primary-filter-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.arrow-down {
  text-align: center;
  margin: 3rem 0 2rem;
  color: #1e3a8a;
  font-size: 1.5rem;
}

.arrow-down--separator {
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(237, 237, 237, 1) 5%,
    rgba(237, 237, 237, 1) 45%,
    rgba(255, 255, 255, 1) 50%,
    rgba(237, 237, 237, 1) 55%,
    rgba(237, 237, 237, 1) 95%,
    rgba(255, 255, 255, 1) 100%
  );
}
.arrow-down--icon {
  background: #1e3a8a;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  border-radius: 50%;
  margin: -28px auto 30px;
}

.secondary-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.secondary-filter-btn {
  padding: 5px 15px 3px;
  border: none;
  background: #e5e7eb;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: normal;
  transition: all 0.3s ease;
}

.secondary-filter-btn.active {
  background: #1e3a8a;
  color: white;
}

.secondary-filter-btn:hover {
  background: #1e3a8a;
  color: white;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-success {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

/* Ocultar contenido modal */
.card-success-modal-content {
  display: none;
}

.card-success:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.caso-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #1e3a8a;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.caso-image {
  height: 250px;
  overflow: hidden;
}

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

.caso-content {
  padding: 1.5rem;
}

.caso-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.caso-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.caso-link {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.caso-link:hover {
  gap: 0.75rem;
}

.caso-empresas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.caso-empresa-item {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.caso-empresa-item:hover {
  background: #e2e8f0;
  color: #334155;
}

.no-cases-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-cases-message h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.no-cases-message p {
  color: #666;
  margin-bottom: 2rem;
}

.back-to-archive {
  text-align: center;
  margin-top: 2rem;
}

.back-link,
.back-to-archive a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #1e3a8a;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-link:hover,
.back-to-archive a:hover {
  background: #1e3a8a;
  color: white;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .casos-exito-header h1 {
    font-size: 2rem;
  }

  .casos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .secondary-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .secondary-filters::-webkit-scrollbar {
    height: 4px;
  }

  .secondary-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .secondary-filters::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 2px;
  }
}
