/*
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 {
  --hab-primary: #D4A017;
  --hab-primary-light: #E6B422;
  --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(212,160,23,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--hab-text); background: var(--hab-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
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(28,28,28,0.95); backdrop-filter: blur(12px); transition: all 0.4s; }
.site-header.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--hab-primary); letter-spacing: 2px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-text small { display: block; width: 100%; text-align: center; font-size: 0.55rem; font-weight: 500; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin-top: 6px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.nav-links a:hover { color: var(--hab-primary); }
.nav-back { color: var(--hab-primary) !important; border: 1px solid rgba(212,160,23,0.4); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; }
.nav-back:hover { background: var(--hab-primary); color: var(--hab-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(212,160,23,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(212,160,23,0.3); border-radius: 50px; background: rgba(212,160,23,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(212,160,23,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(212,160,23,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: 'Inter', sans-serif; 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(212,160,23,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: 'Inter', sans-serif; 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(212,160,23,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); }

.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-box {
  max-width: 780px; margin: 0 auto; background: var(--hab-white, #fff);
  border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 12px 36px rgba(27,27,47,0.06);
  min-height: 360px;
}
.conf-step, .conf-result { display: none; }
.conf-step.active, .conf-result.active { display: block; animation: confFadeIn 0.35s ease; }
@keyframes confFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.conf-progress { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--hab-primary, #e8b800); margin-bottom: 16px; }
.conf-step h3, .conf-result-title { font-size: 1.4rem; font-weight: 700; color: var(--hab-dark, #1b1b2f); margin-bottom: 24px; }
.conf-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.conf-options-multi { grid-template-columns: repeat(2, 1fr); }
.conf-opt {
  background: var(--hab-light, #fafaf8); border: 1px solid rgba(27,27,47,0.1);
  padding: 14px 18px; border-radius: 10px; font-family: inherit; font-size: 0.92rem;
  color: var(--hab-dark, #1b1b2f); text-align: left; cursor: pointer; transition: all 0.25s;
}
.conf-opt:hover { border-color: var(--hab-primary, #e8b800); background: rgba(232,184,0,0.06); }
.conf-opt.selected { border-color: var(--hab-primary, #e8b800); background: rgba(232,184,0,0.12); font-weight: 600; }
.conf-submit { width: 100%; margin-top: 20px; justify-content: center; }
.conf-result-body { background: var(--hab-light, #fafaf8); padding: 24px; border-radius: 10px; margin-bottom: 16px; border-left: 3px solid var(--hab-primary, #e8b800); }
.conf-result-body dl { margin: 0; }
.conf-result-body dt { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hab-primary, #e8b800); margin-bottom: 4px; font-weight: 700; }
.conf-result-body dd { margin: 0 0 14px; font-size: 0.95rem; color: var(--hab-dark, #1b1b2f); line-height: 1.6; }
.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: 1px solid rgba(27,27,47,0.2); padding: 10px 20px;
  border-radius: 50px; font-family: inherit; font-size: 0.85rem; cursor: pointer;
  color: var(--hab-dark, #1b1b2f); transition: all 0.3s;
}
.conf-actions .btn-outline:hover { border-color: var(--hab-primary, #e8b800); color: var(--hab-primary, #e8b800); }

/* 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; }
}
