/* ============================================
   HOME.CSS - Estilos para home.html
   Conforme a CSP: Sin inline styles ni scripts
   ============================================ */

/* ========== COLORES CORPORATIVOS ========== */
:root {
  --navy-primary: #001a4d;
}

.bg-navy-primary {
  background-color: var(--navy-primary);
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
}

.hero-img {
  height: calc(100vh - 120px); /* navbar + topbar */
  min-height: 480px;
  max-height: 800px;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  bottom: 15%;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  transition: all .4s ease;
  position: relative;
  height: 100%;
}

.feature-card:hover {
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .15);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  transition: transform .3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-text {
  max-height: 6.5rem;
  overflow: hidden;
  transition: max-height .4s ease;
}

.feature-text.expanded {
  max-height: 100vh;
}

.feature-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: #0d6efd;
  transition: width .4s ease;
  border-radius: 0 0 1rem 1rem;
}

.feature-card:hover .feature-progress {
  width: 100%;
}

/* ========== AGREEMENTS CAROUSEL ========== */
.agreements-title {
  font-size: 3rem;
  font-weight: 500;
}

.agreements-carousel img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.agreements-carousel img:hover {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .agreements-title {
    font-size: 2rem;
  }
}

/* ========== MEMBERS CAROUSEL ========== */
#members-splide .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-logo-container {
  background-color: transparent;
  padding: 40px;
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.members-logo-container img {
  width: 200px;
  filter: invert(1);
  max-height: 150px;
  object-fit: contain;
}

#members-splide img {
  max-height: 64px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

#members-splide img:hover {
  filter: grayscale(0%);
}

/* ========== FOOTER ========== */
.footer-logo {
  max-height: 990px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
  color: #f59e0b; /* dorado suave */
  padding-left: 6px;
}

.social-icon {
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  color: #f59e0b;
  transform: translateY(-4px) scale(1.1);
}
