/* ============================================================
   HOME — Page-specific styles
   ============================================================ */

/* ===== Banner necesidad (full-bleed image + 4 CTAs + house btn) ===== */
.banner-necesidad {
  position: relative;
  min-height: clamp(360px, 40vw, 600px);
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 100%),
              url("../img/garantia-1.jpg") center 70% / cover no-repeat;
  display: flex;
  align-items: stretch;
  color: var(--c-white);
  overflow: hidden;
}
.banner-overlay {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 64px) var(--gutter);
}
.banner-questions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 80px);
  justify-content: space-between;
  align-items: start;
}
.banner-question {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-white);
  text-align: center;
  position: relative;
  padding-bottom: 18px;
  transition: transform 0.3s var(--ease-out);
}
.banner-question::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--c-white);
  transition: width 0.4s var(--ease-out);
}
.banner-question:hover::after { width: 100%; }
.banner-question:hover { transform: translateY(-2px); }

.banner-house-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.banner-house-btn:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.banner-house-btn svg { width: 36px; height: 30px; }

.banner-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
}
.banner-tabs .pill {
  color: var(--c-white);
  border-color: var(--c-white);
}
.banner-tabs .pill:hover { background: var(--c-white); color: var(--c-blue); }

@media (max-width: 720px) {
  .banner-questions { grid-template-columns: 1fr 1fr; gap: 24px; }
  .banner-house-btn { width: 60px; height: 60px; }
}

/* ===== Servicios (big rolling words) ===== */
.servicios {
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}
.servicios-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-ink);
  align-items: flex-start;
}
.servicios-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
  margin-left: auto;
}

.servicios-list { position: relative; }
.servicio-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--c-blue-light);
  padding: clamp(24px, 3vw, 48px) 0;
  cursor: pointer;
  overflow: hidden;
}
.servicio-row:first-child { border-top: none; }
.servicio-illu {
  width: clamp(80px, 9vw, 130px);
  opacity: 0;
  transform: translateX(-30px) rotate(-8deg);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.servicio-row:hover .servicio-illu,
.servicio-row.is-active .servicio-illu {
  opacity: 1;
  transform: translateX(0) rotate(0);
}
.servicio-illu img { width: 100%; height: auto; }

.servicio-word {
  text-align: center;
}
.servicio-word h3 {
  font-family: var(--ff-serif);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--c-blue);
  transition: transform 0.4s var(--ease-out), letter-spacing 0.4s var(--ease-out);
}
.servicio-row:hover .servicio-word h3 {
  transform: translateX(8px);
}

.servicio-desc {
  max-width: 280px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.5s var(--ease-out) 0.1s;
}
.servicio-row:hover .servicio-desc {
  opacity: 1;
  transform: translateX(0);
}
.servicio-desc p {
  font-family: var(--ff-serif);
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-blue);
  margin-bottom: 16px;
}
.servicio-desc a {
  font-size: 14px;
  color: var(--c-gray);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out);
}
.servicio-desc a:hover { color: var(--c-blue); }

.servicios-cta {
  text-align: center;
  margin-top: 56px;
}

@media (max-width: 900px) {
  .servicios-head { grid-template-columns: 1fr; }
  .servicios-intro { margin-left: 0; }
  .servicio-row { grid-template-columns: 1fr; text-align: center; }
  .servicio-illu { display: none; }
  .servicio-desc { max-width: none; opacity: 1; transform: none; margin: 16px auto 0; }
}

/* ===== Inmuebles grid ===== */
.inmuebles {
  padding: clamp(60px, 8vw, 120px) 0;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 46px);
  margin-bottom: 48px;
}
.inmuebles-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .property-grid { grid-template-columns: 1fr; } }

/* ===== Form needs grid (4 options) ===== */
.needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.need-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--c-blue-soft);
  border-radius: 12px;
  color: var(--c-blue);
  font-family: var(--ff-serif);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: left;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.need-option img { width: 28px; height: 28px; flex-shrink: 0; margin-left: 12px; }
.need-option:hover { background: var(--c-white); border-color: var(--c-blue); transform: translateY(-2px); }
.need-option.is-selected { background: var(--c-blue); color: var(--c-white); }
.need-option.is-selected img { filter: invert(1) brightness(2); }

.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ===== Carrusel garantías ===== */
.garantias {
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
}
.garantias-head {
  text-align: center;
  max-width: 460px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.carrusel-garantias {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.carrusel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.7s var(--ease-out);
  padding: 12px 0;
}
.garantia-card,
.garantia-photo {
  flex: 0 0 clamp(280px, 32vw, 560px);
  height: clamp(440px, 38vw, 680px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.garantia-card {
  background: var(--c-blue);
  color: var(--c-white);
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.garantia-card h3 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--c-white);
}
.garantia-card .illu {
  width: clamp(80px, 8vw, 110px);
  height: auto;
  filter: brightness(0) invert(1);
}
.garantia-card p {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.garantia-photo { background: #ddd; }
.garantia-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.garantia-photo img.overlay-png {
  z-index: 2;
  background: transparent;
}
.garantia-photo.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}
.garantia-photo.soft { background: var(--c-blue-soft); }
.garantia-photo .photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.garantia-photo .photo-overlay.bottom {
  align-items: flex-end;
  padding-bottom: 60px;
}
.garantia-photo .photo-overlay h4 {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  color: var(--c-white);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.carrusel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}
.carrusel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.carrusel-btn:hover { background: var(--c-blue); color: var(--c-white); transform: scale(1.05); }
.carrusel-progress {
  width: clamp(160px, 30vw, 320px);
  height: 2px;
  background: var(--c-blue-light);
  border-radius: 999px;
  overflow: hidden;
}
.carrusel-progress-bar {
  height: 100%;
  background: var(--c-blue);
  width: 20%;
  transition: width 0.5s var(--ease-out);
}

/* ===== FAQs ===== */
.faqs-section {
  padding: clamp(60px, 8vw, 120px) 0;
}
.faqs-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.faqs-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}
.faqs-aside .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .faqs-grid { grid-template-columns: 1fr; }
  .faqs-aside { position: relative; top: auto; }
}

/* ===== Números ===== */
.numeros {
  padding: clamp(60px, 8vw, 120px) 0;
}
.numeros-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
