/* ============================================================
   HABI – Réplica basada en screenshot
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #7C01FF;
  --purple-dark:  #6200CC;
  --purple-light: #F3E8FF;
  --purple-mid:   #D8B4FE;

  --dark:         #1A1A2E;
  --gray-800:     #1F2937;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-300:     #D1D5DB;
  --gray-200:     #E5E7EB;
  --gray-100:     #F9FAFB;
  --white:        #FFFFFF;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:    6px;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 48px;
  line-height: 1.25;
}
.section-title span { color: var(--purple); }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 32px; }
.logo-img { height: 32px; width: auto; }
.logo-text-fallback {
  font-size: 26px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -1.5px;
}

/* ── Panel de navegación derecho ────────────────────────── */
.nav-panel {
  position: fixed;
  top: 64px;
  right: 0;
  width: 260px;
  height: calc(100vh - 64px);
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 500;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}

.nav-panel.open { transform: translateX(0); }

.nav-panel-inner {
  display: flex;
  flex-direction: column;
  padding: 16px 0 24px;
}

.nav-panel-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 14px 24px;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-panel-link:hover {
  color: var(--purple);
  background: var(--purple-light);
  border-left-color: var(--purple);
}

.nav-panel-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 12px 24px;
}

.nav-panel .btn-arriendo,
.nav-panel .btn-login {
  margin: 4px 24px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0,0,0,.2);
}
.nav-overlay.open { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-login:hover { background: var(--gray-100); }

.country-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.country-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 1px 3px;
  font-family: var(--font);
  transition: color .15s;
}
.country-btn.active { color: var(--purple); }
.country-divider { color: var(--gray-300); font-size: 13px; margin: 0 2px; }

.btn-arriendo {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn-arriendo:hover {
  background: var(--purple);
  color: var(--white);
}

/* Botón "Menú" visible en desktop */
.btn-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color .15s, background .15s;
}
.btn-menu:hover { border-color: var(--gray-300); background: var(--gray-100); }

.btn-menu span:not(.btn-menu-label) {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gray-700);
  border-radius: 2px;
}
/* Los tres spans del hamburger dentro de btn-menu */
.btn-menu > span:nth-child(1),
.btn-menu > span:nth-child(2),
.btn-menu > span:nth-child(3) {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gray-700);
  border-radius: 2px;
}
.btn-menu-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }


/* ── HERO — fondo banner ─────────────────────────────────── */
.hero {
  background: url('assets/banner.png') center center / cover no-repeat;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}


.hero-inner { position: relative; z-index: 2; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  min-height: 420px;
}

/* Contenido izquierdo */
.hero-content {
  padding: 56px 0 48px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .03em;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.65;
}

/* Barra de búsqueda en hero */
.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px 6px 6px 14px;
  gap: 8px;
  max-width: 500px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
  min-width: 0;
}
.search-input::placeholder { color: var(--gray-500); }

.btn-hero-cta {
  background: var(--purple);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background .2s;
  flex-shrink: 0;
}
.btn-hero-cta:hover { background: var(--purple-dark); }

.hero-legal {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 10px;
}

/* Foto derecha */
.hero-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  height: 100%;
}

.hero-photo {
  width: 100%;
  max-width: 540px;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── ESTADÍSTICAS — inline, fondo blanco ─────────────────── */
.stats {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-200);
}

.stats-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stats-text {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.5;
}
.stats-text strong { color: var(--purple); font-weight: 700; }

.stats-divider {
  width: 1px;
  height: 80px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.stats-numbers {
  display: flex;
  gap: 56px;
  flex-shrink: 0;
}

.stat-item { text-align: left; }

.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.stat-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── ASÍ FUNCIONA — mockup celular + pasos ───────────────── */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Phone mockup */
.steps-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-img {
  max-width: 320px;
  width: 100%;
  drop-shadow: var(--shadow-lg);
  filter: drop-shadow(0 8px 32px rgba(124,1,255,.2));
}

/* Steps */
.steps-list { display: flex; flex-direction: column; }

.step-item { border-bottom: 1px solid var(--gray-200); }
.step-item:first-child { border-top: 1px solid var(--gray-200); }

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  transition: color .2s;
}

.step-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  transition: color .2s;
}

.step-arrow {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  transition: transform .3s;
  flex-shrink: 0;
}

.step-body {
  display: none;
  padding: 0 0 20px 46px;
}
.step-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

.step-item.active .step-body   { display: block; }
.step-item.active .step-arrow  { transform: rotate(180deg); }
.step-item.active .step-dot    { background: var(--purple); }
.step-item.active .step-number { color: var(--white); }
.step-item.active .step-title  { color: var(--purple); }

/* ── MEDIOS ──────────────────────────────────────────────── */
.media {
  padding: 56px 0;
  background: var(--gray-100);
}

.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.media-logo-item {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: -.5px;
  transition: color .2s;
  cursor: default;
}
.media-logo-item:hover { color: var(--gray-500); }

/* ── SERVICIOS ───────────────────────────────────────────── */
.services {
  padding: 80px 0;
  background: var(--white);
}

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

.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-mid);
}

.service-icon { font-size: 30px; margin-bottom: 14px; }
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-link:hover { opacity: .75; }

/* ── BENEFICIOS ──────────────────────────────────────────── */
.benefits {
  padding: 80px 0;
  background: var(--purple-light);
}

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

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.benefit-icon { font-size: 32px; margin-bottom: 14px; }
.benefit-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── ALIADOS ─────────────────────────────────────────────── */
.partners {
  padding: 64px 0;
  background: var(--white);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.partner-item {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: -.5px;
  transition: color .2s;
  cursor: default;
}
.partner-item:hover { color: var(--gray-500); }

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

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-header h4 { font-size: 14px; font-weight: 700; color: var(--dark); }
.testimonial-sub { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.testimonial-score {
  margin-left: auto;
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
}

.carousel-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--dark);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.carousel-btn:hover { border-color: var(--purple); background: var(--purple-light); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.dot.active { background: var(--purple); width: 24px; border-radius: 4px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  padding: 80px 0;
  background: var(--white);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  font-family: var(--font);
}
.faq-question svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--gray-500);
  transition: transform .3s;
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-question[aria-expanded="true"]     { color: var(--purple); }

.faq-answer { display: none; padding: 0 0 20px; }
.faq-answer p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.faq-answer.open { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #1A1A1A;
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-logo-fallback {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  display: block;
  margin-bottom: 14px;
}
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 200px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-divider { height: 1px; background: rgba(255,255,255,.1); margin-bottom: 24px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-legal a:hover { color: var(--white); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.5; }

/* ── WHATSAPP ────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 200;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .benefits-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-top       { grid-template-columns: 1fr 1fr 1fr; }
  .testimonial-card { min-width: calc(50% - 10px); }
  .stats-inner      { flex-wrap: wrap; gap: 32px; }
  .stats-divider    { display: none; }
}

@media (max-width: 768px) {
  .header-actions .btn-login,
  .header-actions .btn-arriendo,
  .header-actions .country-selector { display: none; }

  .hero-inner       { grid-template-columns: 1fr; min-height: auto; }
  .hero-image       { display: none; }
  .hero-content     { padding: 48px 0 40px; }

  .stats-inner      { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stats-numbers    { gap: 32px; }

  .steps-container  { grid-template-columns: 1fr; gap: 40px; }
  .steps-phone      { display: none; }

  .services-grid    { grid-template-columns: 1fr; }
  .benefits-grid    { grid-template-columns: 1fr 1fr; }

  .testimonial-card { min-width: 100%; }
  .footer-top       { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom    { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .stats-numbers { flex-direction: column; gap: 20px; }
  .search-wrapper { flex-wrap: wrap; padding: 8px; }
  .btn-hero-cta  { width: 100%; justify-content: center; }
}
