/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

/* Hero 1 */
.hero-home {
  position: relative;
  background-image: url('/assets/img/hero-home.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0 120px;
  color: #fff;
  text-align: center;
}

.hero-home-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-home-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-subtitle-top {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-desc-top {
  font-size: 21px;
  font-weight: 400;
  color: #f1f1f1;
  margin-bottom: 40px;
}

/* Buscador */
.search-box-home {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr auto;
  gap: 15px;
  align-items: center;
}

.custom-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--c-azul);
  border-radius: 5px;
  padding: 0 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--c-texto);
  background-color: #fff;
  cursor: pointer;
  outline: none;
}

.custom-select:focus {
  border-color: var(--c-morado);
  box-shadow: 0 0 0 3px rgba(154, 87, 241, 0.2);
}

.btn-buscar {
  height: 48px;
  padding: 0 32px;
  background-color: var(--c-morado);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-buscar:hover {
  background-color: var(--c-amarillo);
  color: var(--c-negro);
}

/* Top 6 Section */
.section-top6 {
  padding: 70px 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--c-negro);
  margin-bottom: 45px;
}

.cards-grid-top6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Lawyer Card */
.lawyer-card {
  background: #fff;
  border: 1px solid var(--c-borde);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(3, 23, 72, 0.2);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--c-gris-fondo);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lawyer-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-title a {
  color: var(--c-azul);
}

.card-title a:hover {
  color: var(--c-morado);
  text-decoration: underline;
}

.card-divider {
  height: 1px;
  background-color: var(--c-borde);
  margin: auto 0 16px 0;
}

.card-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-azul);
  transition: color 0.2s;
}

.card-cta-contact:hover {
  color: var(--c-morado);
}

/* Hero 2: Ranking Section */
.hero-ranking-section {
  position: relative;
  background-image: url('/assets/img/hero-ranking.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0 90px;
  color: #fff;
  text-align: center;
  margin-top: 20px;
}

.hero-ranking-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-ranking-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-h1-main {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.hero-h2-sub {
  font-size: 22px;
  font-weight: 400;
  color: #e2e8f0;
  margin-bottom: 40px;
}

.ranking-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.ranking-col {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.col-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-amarillo);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.ranking-link-list {
  list-style: none;
}

.ranking-link-list li {
  margin-bottom: 10px;
}

.ranking-link-list a {
  color: #fff;
  font-size: 15px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.ranking-link-list a:hover {
  color: var(--c-amarillo);
  padding-left: 6px;
}

/* Features Boxes */
.section-features {
  padding: 80px 20px 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-box {
  background-color: var(--c-azul);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  color: var(--c-magenta);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.feature-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .search-fields {
    grid-template-columns: 1fr;
  }
  .cards-grid-top6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ranking-columns-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-subtitle-top {
    font-size: 30px;
  }
  .hero-h1-main {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .cards-grid-top6 {
    grid-template-columns: 1fr;
  }
}
