/* HERO */
.contracts-hero {
  position: relative;
  padding-top: 260px;
  /* para compensar navbar fixed */
  padding-bottom: 48px;
}

@media (max-width: 991px) {
  .contracts-hero {
    padding-top: 140px;
    padding-bottom: 30px;
  }
}

.contracts-hero .banner-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.contracts-hero .banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contracts-hero-content {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contracts-main-title {
  font-family: "Quicksand", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .contracts-main-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

.highlight-gradient {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  /* soft purple gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: none;
  font-weight: 800;
  position: relative;
}

.highlight-gradient::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  border-radius: 2px;
  opacity: 0.6;
}

.title-icon {
  font-size: 0.75em;
  color: #fbc2eb;
  transform: translateY(-4px) rotate(-15deg);
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(251, 194, 235, 0.4));
}

.contracts-hero-content p {
  margin: 0 auto 18px auto;
}

.contracts-subtitle {
  max-width: 850px;
  margin: 0 auto 18px auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .contracts-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

.highlight-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: default;
}

.highlight-step i {
  color: var(--dark-purple);
  background: #fff;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.highlight-step:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.highlight-step:hover i {
  transform: scale(1.1);
}

/* SEARCH */
.contracts-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  max-width: 520px;
  margin: 24px auto 0 auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contracts-search:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contracts-search i {
  color: #fbc2eb;
  font-size: 1.1rem;
}

.contracts-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  color: #fff;
}

.contracts-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* CHIPS */
.contracts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.chip.active {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  border-color: transparent;
  color: var(--dark-purple);
  box-shadow: 0 8px 20px rgba(251, 194, 235, 0.3);
  transform: translateY(-1px);
}

/* LISTADO y CONTENEDOR BLANCO GLOBAL */
.contracts-list,
.history-container {
  padding: 80px 0 80px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.25'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {

  .contracts-list,
  .history-container {
    padding: 40px 0 50px;
  }
}

.contract-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .contract-card {
    padding: 14px;
    border-radius: 14px;
  }
}

.contract-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--bright-blue);
}

.contract-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contract-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .contract-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

.contract-card h3 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: var(--dark-purple);
}

@media (max-width: 768px) {
  .contract-card h3 {
    font-size: 1rem;
  }

  .contract-card p {
    font-size: 0.9rem;
  }

  .pill {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

.contract-card p {
  margin: 0;
  opacity: 0.85;
}

.contract-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Quicksand", sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.75);
}

.contract-actions {
  margin-top: auto;
}

/* Empty state */
.contracts-empty {
  text-align: center;
  padding: 36px 0 0;
  opacity: 0.85;
}

/* CARROUSEL */
.contract-carousel {
  margin: 12px 0 14px;
  border-radius: 16px;
  overflow: hidden;
}

.contract-carousel .carousel-inner {
  height: 480px;
  /* Ajusta: 240-320 según te guste */
}

.contract-carousel img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Indicadores un poco más discretos */
.contract-carousel .carousel-indicators [data-bs-target] {
  width: 20px;
  height: 5px;
  border-radius: 999px;
}

/* Flechas */
.contract-carousel .carousel-control-prev-icon,
.contract-carousel .carousel-control-next-icon {
  filter: invert(1);
  /* las vuelve negras */
}

/* Indicadores normales */
.contract-carousel .carousel-indicators [data-bs-target] {
  background-color: #666;
}

/* Indicador activo */
.contract-carousel .carousel-indicators .active {
  background-color: #1e2a78;
}