/*
Theme Name: Habitara
Theme URI: https://habitara.grupoarezzo.com
Author: Grupo Arezzo
Description: Landing page para Habitara - Arrendamiento integral de espacios para empresas
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: habitara
*/

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

:root {
  /* Colores oficiales Habitara (brand-visual-identity.md) */
  --hab-primary: #FFCE00;
  --hab-primary-light: #FFDA33;
  --hab-primary-dark: #D9AF00;
  --hab-dark: #1C1C1C;
  --hab-darker: #111111;
  --hab-warm: #F5EFE0;
  --hab-light: #FAFAF7;
  --hab-text: #333333;
  --hab-text-light: #777777;
  --hab-white: #FFFFFF;
  --hab-border: rgba(255,206,0,0.12);
  /* Tipografías oficiales Grupo Arezzo (sustitutos web) */
  --hab-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --hab-font-body: 'Cabin', 'Helvetica', 'Arial', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--hab-font-body); color: var(--hab-text); background: var(--hab-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .section-title, .hero h1, .section-label { font-family: var(--hab-font-display); letter-spacing: 0.02em; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--hab-primary); margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--hab-dark); margin-bottom: 16px; line-height: 1.15; }
.section-subtitle { font-size: 1.05rem; color: var(--hab-text-light); max-width: 600px; line-height: 1.7; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hab-border); transition: all 0.4s; }
.site-header.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo-text { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.site-logo { height: 68px; width: auto; display: block; }
.site-logo-tagline { font-size: 0.55rem; font-weight: 500; letter-spacing: 2.5px; color: #9aa5b1; text-transform: uppercase; font-family: var(--hab-font-body); opacity: 0.9; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--hab-text-light); }
.nav-links a:hover { color: var(--hab-primary-dark); }
.nav-back { color: var(--hab-primary-dark) !important; border: 1px solid var(--hab-border); padding: 6px 16px; border-radius: 8px; font-size: 0.8rem; }
.nav-back:hover { background: var(--hab-primary); color: var(--hab-dark) !important; }

/* DEC-006 prototipo B — boton solido (grupo) + outline (CTA principal) */
.nav-group {
  background: var(--hab-primary) !important;
  color: var(--hab-dark) !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.nav-group:hover {
  background: var(--hab-primary-dark) !important;
  color: var(--hab-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,206,0,0.35);
}
.nav-cta-outline {
  color: var(--hab-dark) !important;
  border: 1.5px solid var(--hab-primary);
  padding: 9px 20px !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: transparent;
  transition: all 0.3s;
}
.nav-cta-outline:hover {
  background: rgba(255,206,0,0.12) !important;
  color: var(--hab-primary-dark) !important;
  border-color: var(--hab-primary-dark);
}

/* DEC-006 6.3 — Indicador de seccion activa: pill amarillo (metafora facilitador practico) */
.nav-links a { position: relative; z-index: 1; }
.nav-links a[href^="#"].is-active:not(.nav-cta-outline) {
  color: var(--hab-dark) !important;
  font-weight: 700;
}
.nav-links a[href^="#"].is-active:not(.nav-cta-outline)::before {
  content: '';
  position: absolute;
  inset: -5px -12px;
  background: var(--hab-primary);
  border-radius: 14px;
  z-index: -1;
}
.nav-cta-outline.is-active {
  background: rgba(255,206,0,0.18) !important;
  border-color: var(--hab-primary-dark) !important;
  color: var(--hab-primary-dark) !important;
}

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(17,17,17,0.85), rgba(28,28,28,0.6), rgba(255,206,0,0.2)); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 120px 0 80px; }
.hero-content .container { padding: 0 24px; }

.hero-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--hab-primary); margin-bottom: 20px; padding: 8px 20px; border: 1px solid rgba(255,206,0,0.3); border-radius: 50px; background: rgba(255,206,0,0.08); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; color: var(--hab-white); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero h1 em { font-style: normal; color: var(--hab-primary); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 32px; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--hab-primary); color: var(--hab-dark); padding: 14px 32px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: var(--hab-primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,206,0,0.35); }
.btn-outline-hero { display: inline-flex; align-items: center; gap: 8px; color: var(--hab-white); padding: 14px 32px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; margin-left: 12px; }
.btn-outline-hero:hover { background: rgba(255,255,255,0.1); }

/* GOLD DIVIDER */
.gold-divider { height: 3px; background: linear-gradient(90deg, transparent, var(--hab-primary), transparent); }

/* SERVICES */
.services { padding: 80px 0; background: var(--hab-light); }
.services .section-header { text-align: center; margin-bottom: 56px; }
.services .section-subtitle { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-card { background: var(--hab-white); padding: 36px 28px; border-radius: 12px; text-align: center; border: 1px solid var(--hab-border); transition: all 0.4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(255,206,0,0.08); border-color: var(--hab-primary); }
.service-icon { width: 60px; height: 60px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--hab-warm); color: var(--hab-primary); }
.service-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--hab-dark); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--hab-text-light); line-height: 1.6; }

/* PROCESS */
.process { padding: 80px 0; background: var(--hab-white); }
.process .section-header { text-align: center; margin-bottom: 56px; }
.process .section-subtitle { margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; height: 1px; background: var(--hab-border); }
.process-step { text-align: center; position: relative; }
.step-number { width: 72px; height: 72px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hab-dark); color: var(--hab-primary); font-size: 1.4rem; font-weight: 700; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--hab-dark); margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--hab-text-light); max-width: 220px; margin: 0 auto; }

/* WHY US */
.why-us { padding: 80px 0; background: var(--hab-dark); color: var(--hab-white); }
.why-us .section-label { color: var(--hab-primary); }
.why-us .section-title { color: var(--hab-white); }
.why-us .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto; }
.why-us .section-header { text-align: center; margin-bottom: 56px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit-card { text-align: center; padding: 32px 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); transition: all 0.3s; }
.benefit-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* CONTACT */
.contact { padding: 80px 0; background: var(--hab-warm); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 800; color: var(--hab-dark); margin-bottom: 16px; }
.contact-info p { color: var(--hab-text-light); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact-detail-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--hab-dark); color: var(--hab-primary); flex-shrink: 0; }
.contact-detail-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-detail span { font-size: 0.95rem; }

.contact-form { background: var(--hab-white); padding: 40px; border-radius: 16px; border: 1px solid var(--hab-border); box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--hab-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--hab-border); border-radius: 10px; font-family: var(--hab-font-body); font-size: 0.9rem; color: var(--hab-text); background: var(--hab-light); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--hab-primary); box-shadow: 0 0 0 3px rgba(255,206,0,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit { width: 100%; padding: 14px; background: var(--hab-primary); color: var(--hab-dark); border: none; border-radius: 50px; font-family: var(--hab-font-body); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.btn-submit:hover { background: var(--hab-primary-light); transform: translateY(-2px); }
.form-success { display: none; text-align: center; padding: 40px 20px; color: var(--hab-primary); font-weight: 600; }

/* FOOTER */
.site-footer { padding: 48px 0; background: var(--hab-darker); color: rgba(255,255,255,0.6); text-align: center; }
.footer-brands { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brands a { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-brands a:hover { color: var(--hab-primary); }
.footer-divider { width: 60px; height: 1px; background: rgba(255,206,0,0.3); margin: 0 auto 24px; }
.site-footer p { font-size: 0.8rem; }
.footer-parent { display: inline-block; margin-top: 12px; font-size: 0.8rem; color: var(--hab-primary); }
.footer-group { color: var(--hab-primary) !important; font-weight: 600; transition: color 0.3s; }
.footer-group:hover { color: var(--hab-primary-light) !important; }

.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 999; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; } .stagger-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid, .benefits-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero h1 { font-size: 1.8rem; } .process-steps { grid-template-columns: 1fr; } .btn-outline-hero { margin-left: 0; margin-top: 10px; } }

/* ============================================
   REDISEÑO v2 — Stories 5.2 a 5.7
   Timeline + Configurador + Casos + Fricción
   ============================================ */

/* TIMELINE (Story 5.2) */
.habitara-timeline { padding: 80px 0; background: var(--hab-white, #fff); }
.habitara-timeline .section-header { text-align: center; margin-bottom: 48px; }
.habitara-timeline .section-subtitle { margin: 0 auto; }
.timeline-line { max-width: 860px; margin: 0 auto; list-style: none; padding: 0; position: relative; }
.timeline-line::before {
  content: ''; position: absolute; left: 130px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(180deg, var(--hab-primary, #e8b800), rgba(232,184,0,0.15));
}
.tl-step {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  margin-bottom: 32px; position: relative; align-items: start;
}
.tl-step::before {
  content: ''; position: absolute; left: 123px; top: 18px;
  width: 16px; height: 16px; background: var(--hab-primary, #e8b800);
  border: 3px solid var(--hab-white, #fff); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232,184,0,0.2);
}
.tl-step.tl-final::before { background: var(--hab-dark, #1b1b2f); box-shadow: 0 0 0 3px rgba(27,27,47,0.15); }
.tl-week {
  font-size: 0.85rem; font-weight: 700; color: var(--hab-primary, #e8b800);
  letter-spacing: 1px; text-transform: uppercase; text-align: right;
  padding-right: 16px; padding-top: 12px;
}
.tl-body { background: var(--hab-light, #fafaf8); padding: 20px 24px; border-radius: 12px; border-left: 3px solid var(--hab-primary, #e8b800); }
.tl-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--hab-dark, #1b1b2f); margin-bottom: 6px; }
.tl-body p { font-size: 0.9rem; color: #666; line-height: 1.6; margin: 0; }

/* CONFIGURADOR (Story 5.3) */
.habitara-configurador { padding: 80px 0; background: var(--hab-light, #fafaf8); }
.habitara-configurador .section-header { text-align: center; margin-bottom: 32px; }
.habitara-configurador .section-subtitle { margin: 0 auto; }
/* CONFIGURADOR 5 PASOS (DEC-003 v2 §3.6) — facilitador Habitara */
.configurador-box {
  max-width: 940px;
  margin: 0 auto;
  background: var(--hab-white, #fff);
  border-radius: 20px;
  padding: 40px 44px 44px;
  box-shadow: 0 24px 60px rgba(27,27,47,0.08);
  border: 1px solid rgba(232,184,0,0.15);
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

/* Progress bar visual 5 pasos */
.conf-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232,184,0,0.15);
}
.conf-pg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: rgba(27,27,47,0.3);
  transition: color 0.3s;
}
.conf-pg-num {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 30px;
  background: var(--hab-light, #FFFBEB);
  border: 1px solid rgba(232,184,0,0.2);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.conf-pg-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.conf-pg-step.active { color: var(--hab-dark, #1b1b2f); }
.conf-pg-step.active .conf-pg-num {
  background: var(--hab-primary, #FFCE00);
  color: var(--hab-dark, #1b1b2f);
  border-color: var(--hab-primary, #FFCE00);
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(255,206,0,0.35);
}
.conf-pg-step.done { color: var(--hab-primary-dark, #C69800); }
.conf-pg-step.done .conf-pg-num {
  background: rgba(255,206,0,0.15);
  color: var(--hab-primary-dark, #C69800);
  border-color: var(--hab-primary, #FFCE00);
}
.conf-pg-line {
  flex: 1;
  height: 2px;
  background: rgba(232,184,0,0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  min-width: 12px;
}
.conf-pg-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--hab-primary, #FFCE00), var(--hab-primary-light, #FFD633));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.conf-pg-line.done .conf-pg-fill { width: 100%; }

/* Steps */
.conf-step, .conf-result, .conf-thinking { display: none; }
.conf-step.active, .conf-result.active, .conf-thinking.active {
  display: block;
  animation: confSlideIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes confSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Botón "Anterior" en pasos 2-5 */
.conf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0 0 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.conf-back:hover {
  color: var(--hab-primary-dark, #C69800);
  transform: translateX(-2px);
}
.conf-back:focus-visible {
  outline: 2px solid var(--hab-primary, #FFCE00);
  outline-offset: 3px;
  border-radius: 4px;
}

.conf-step-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--hab-dark, #1b1b2f);
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.conf-step-hint {
  font-size: 0.92rem;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Opciones como cards con ícono */
.conf-options { display: flex; flex-direction: column; gap: 12px; }
.conf-options-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.conf-options-cards .conf-opt-wide { grid-column: 1 / -1; }
.conf-options-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.conf-options-grid-2 .conf-opt-wide { grid-column: 1 / -1; }
.conf-options-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.conf-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hab-white, #fff);
  border: 1.5px solid rgba(27,27,47,0.1);
  padding: 16px 18px;
  border-radius: 12px;
  font-family: inherit;
  color: var(--hab-dark, #1b1b2f);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  width: 100%;
}
.conf-opt:hover {
  border-color: var(--hab-primary, #FFCE00);
  background: rgba(255,206,0,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,206,0,0.1);
}
.conf-opt.selected {
  border-color: var(--hab-primary, #FFCE00);
  background: rgba(255,206,0,0.1);
  box-shadow: 0 6px 18px rgba(255,206,0,0.2);
}
.conf-opt:focus-visible {
  outline: 2px solid var(--hab-primary-dark, #C69800);
  outline-offset: 2px;
}

.conf-opt-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,206,0,0.12);
  color: var(--hab-primary-dark, #C69800);
  border-radius: 10px;
  transition: background 0.25s, color 0.25s;
}
.conf-opt-icon svg { width: 22px; height: 22px; }
.conf-opt:hover .conf-opt-icon,
.conf-opt.selected .conf-opt-icon {
  background: var(--hab-primary, #FFCE00);
  color: var(--hab-dark, #1b1b2f);
}

.conf-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.conf-opt-body strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hab-dark, #1b1b2f);
  line-height: 1.2;
}
.conf-opt-body em {
  font-style: normal;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

/* Multi-select: checkbox visual en vez de un único selected */
.conf-opt.conf-multi.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--hab-primary, #FFCE00);
  color: var(--hab-dark, #1b1b2f);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255,206,0,0.4);
}
.conf-opt.conf-multi { position: relative; }

.conf-submit {
  width: 100%;
  margin-top: 24px;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Thinking: llave girando */
.conf-thinking {
  text-align: center;
  padding: 40px 20px;
  color: var(--hab-primary-dark, #C69800);
}
.conf-thinking-key {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  animation: confKeyTurn 2.4s ease-in-out infinite;
  color: var(--hab-primary, #FFCE00);
}
.conf-thinking-key svg { width: 100%; height: 100%; }
@keyframes confKeyTurn {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(95deg); }
}
.conf-thinking-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hab-dark, #1b1b2f);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}
.conf-thinking-dots {
  display: inline-flex;
  gap: 6px;
}
.conf-thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hab-primary, #FFCE00);
  animation: confDot 1.4s infinite both;
}
.conf-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.conf-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes confDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Resultado tipo ficha técnica inmobiliaria */
.conf-result-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hab-primary-dark, #C69800);
  padding: 6px 14px;
  border: 1px solid rgba(255,206,0,0.4);
  border-radius: 30px;
  background: rgba(255,206,0,0.08);
  margin-bottom: 18px;
}
.conf-result-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--hab-dark, #1b1b2f);
  margin: 0 0 22px;
  line-height: 1.3;
}

.conf-result-body {
  background: linear-gradient(135deg, rgba(255,206,0,0.05), rgba(255,206,0,0.02));
  padding: 24px 28px;
  border-radius: 14px;
  margin-bottom: 16px;
  border-left: 4px solid var(--hab-primary, #FFCE00);
  border: 1.5px solid rgba(255,206,0,0.2);
  border-left-width: 4px;
  border-left-color: var(--hab-primary, #FFCE00);
}
.conf-result-body dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.conf-result-body dt {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hab-primary-dark, #C69800);
  margin: 0 0 4px;
  font-weight: 700;
}
.conf-result-body dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hab-dark, #1b1b2f);
  line-height: 1.4;
  font-weight: 600;
}
.conf-result-body .conf-result-full {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,206,0,0.3);
}
.conf-result-body .conf-result-full dd { font-weight: 500; }

.conf-disclaimer { font-size: 0.78rem; color: #666; text-align: center; margin-bottom: 20px; }
.conf-actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.conf-actions .btn-outline {
  background: transparent;
  border: 1.5px solid rgba(27,27,47,0.15);
  padding: 12px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #444;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.conf-actions .btn-outline:hover {
  border-color: var(--hab-primary-dark, #C69800);
  color: var(--hab-primary-dark, #C69800);
  background: rgba(255,206,0,0.05);
}

@media (max-width: 720px) {
  .conf-options-cards,
  .conf-options-grid-2,
  .conf-options-grid-3 { grid-template-columns: 1fr; }
  .conf-options-cards .conf-opt-wide,
  .conf-options-grid-2 .conf-opt-wide { grid-column: 1; }
  .configurador-box { padding: 28px 22px; }
  .conf-pg-label { display: none; }
  .conf-pg-line { min-width: 8px; }
  .conf-result-body dl { grid-template-columns: 1fr; gap: 12px; }
}

/* CASOS (Story 5.5) */
.habitara-casos { padding: 80px 0; background: var(--hab-white, #fff); }
.habitara-casos .section-header { text-align: center; margin-bottom: 48px; }
.habitara-casos .section-subtitle { margin: 0 auto; }
.casos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.caso-card {
  background: var(--hab-light, #fafaf8); padding: 28px; border-radius: 12px;
  border: 1px solid rgba(232,184,0,0.1); transition: all 0.3s;
}
.caso-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(232,184,0,0.1); border-color: rgba(232,184,0,0.3); }
.caso-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--hab-white, #fff); margin-bottom: 12px;
  padding: 4px 12px; border-radius: 50px; background: var(--hab-primary, #e8b800);
}
.caso-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--hab-dark, #1b1b2f); margin-bottom: 8px; line-height: 1.4; }
.caso-meta { font-size: 0.82rem; color: var(--hab-primary, #e8b800); letter-spacing: 0.5px; margin-bottom: 14px; font-weight: 500; }
.caso-card p { font-size: 0.88rem; color: #555; line-height: 1.6; margin-bottom: 8px; }
.caso-card strong { color: var(--hab-dark, #1b1b2f); }

/* FRICCIÓN OPERATIVA (Story 5.6) */
.habitara-friccion { padding: 80px 0; background: var(--hab-light, #fafaf8); }
.habitara-friccion .section-header { text-align: center; margin-bottom: 48px; }
.habitara-friccion .section-subtitle { margin: 0 auto; }
.friccion-table {
  max-width: 960px; margin: 0 auto; background: var(--hab-white, #fff);
  border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(27,27,47,0.06);
  border: 1px solid rgba(232,184,0,0.1);
}
.fric-row {
  display: grid; grid-template-columns: 1.3fr 1.4fr 1.3fr;
  padding: 16px 24px; border-bottom: 1px solid rgba(27,27,47,0.06);
  align-items: center; font-size: 0.92rem;
}
.fric-row:last-child { border-bottom: none; }
.fric-head { background: var(--hab-dark, #1b1b2f); color: var(--hab-white, #fff); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px; }
.fric-highlight { color: var(--hab-primary, #e8b800); font-weight: 600; }
.fric-head .fric-highlight { color: var(--hab-primary, #e8b800); }
.friccion-cta { text-align: center; margin-top: 32px; }

/* FORM SELECT (Story 5.7) */
.form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(27,27,47,0.1);
  border-radius: 10px; font-family: inherit; font-size: 0.9rem;
  background: var(--hab-light, #fafaf8); color: var(--hab-dark, #1b1b2f);
  outline: none; transition: border-color 0.3s;
}
.form-group select:focus { border-color: var(--hab-primary, #e8b800); }

/* RESPONSIVE v2 */
@media (max-width: 1024px) {
  .casos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .timeline-line::before { left: 12px; }
  .tl-step { grid-template-columns: 1fr; gap: 12px; padding-left: 36px; }
  .tl-step::before { left: 4px; top: 6px; }
  .tl-week { text-align: left; padding-right: 0; padding-top: 0; }
  .conf-options, .conf-options-multi { grid-template-columns: 1fr; }
  .fric-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
  .fric-head { display: none; }
  .fric-row > div:first-child { font-weight: 700; color: var(--hab-dark, #1b1b2f); font-size: 0.9rem; }
  .configurador-box { padding: 28px 20px; }
}
