/* ============================================================
   HOME.CSS — Hero, Testimonios, CTA Banner
   ============================================================ */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--blue-dark);
  overflow: hidden;
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 90px;
}

/* Background image on the right with smooth gradient feathering */
.hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 8%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.85) 45%, black 65%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 8%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.85) 45%, black 65%);
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--blue-dark) 0%,
    rgba(6, 32, 64, 0.7) 20%,
    rgba(6, 32, 64, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 520px;
}

.hero-content {
  max-width: 580px;
  padding-bottom: 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(115, 189, 40, 0.12);
  border: 1px solid rgba(115, 189, 40, 0.35);
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-trust-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-trust-text svg {
  width: 16px;
  height: 16px;
  fill: var(--green);
}

/* Floating badge in bottom right over the photo */
.hero-floating-badge {
  background: var(--white);
  border-radius: 17px;
  padding: 19px 29px;
  display: flex;
  align-items: center;
  gap: 19px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  white-space: nowrap;
}

.hero-floating-badge .badge-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-floating-badge .badge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.hero-floating-badge .badge-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-floating-badge .badge-content strong {
  font-size: 1.06rem;
  color: var(--blue-dark);
  line-height: 1.2;
}

.hero-floating-badge .badge-content span {
  font-size: 0.94rem;
  color: var(--gray-500);
}

.hero-floating-badge .badge-content span strong {
  color: var(--green);
  font-weight: 700;
}

/* ===== HERO BOTTOM BANNER ===== */
.hero-bottom-banner {
  background: var(--blue-dark);
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 1140px;
  margin: -40px auto 80px;
  position: relative;
  z-index: 20;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.banner-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.banner-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(115, 189, 40, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
}

.banner-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 4px;
}

.banner-text span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 50px;
  }

  .hero-backdrop {
    width: 100%;
    opacity: 0.3;
  }

  .hero-backdrop-img {
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-text {
    justify-content: center;
  }

  .hero-floating-badge {
    white-space: normal;
    text-align: left;
    margin: 0 auto;
  }

  .hero-bottom-banner {
    margin: -20px 20px 60px;
  }

  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .banner-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-floating-badge {
    flex-direction: column;
    text-align: center;
  }

  .hero-bottom-banner {
    margin: -10px 16px 50px;
    padding: 24px 20px;
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .banner-item::after {
    display: none;
  }
}

/* ===== TESTIMONIOS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.testimonial-slide {
  display: none;
  animation: fade-in 0.4s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; left: 32px;
  font-size: 6rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.12;
  font-family: Georgia, serif;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.carousel-btn:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-description { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-logo-display { width: 250px; height: 250px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .testimonial-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-logo-display { width: 200px; height: 200px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; align-items: center; text-align: center; }
}
