/* Maneja Tu Alquiler — Redesign 2026 */

/* ===== TOKENS ===== */
:root {
  --brand: #0ea5e9;
  --brand-light: #E0F2FE;
  --brand-lighter: #F0F9FF;
  --brand-dark: #0284C7;
  --accent: #22c55e;
  --accent-light: #DCFCE7;
  --bg: #FAFBFD;
  --bg-tinted: #F1F5F9;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.08);
  --shadow-card: 0 1px 3px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.container { width: min(1120px, 100% - 48px); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; font-weight: 600; z-index: 999; }
.skip-link:focus { left: 12px; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,251,253,.85); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--border-light); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 10px; transition: transform .2s var(--ease); }
.brand:hover .brand-icon { transform: scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.3px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; }
.nav-links > li > a:not(.btn) { padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14.5px; color: var(--text-secondary); transition: color .2s, background .2s; }
.nav-links > li > a:not(.btn):hover { color: var(--text); background: rgba(0,0,0,.04); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; text-decoration: none !important; transition: all .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(14,165,233,.2); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 4px 16px rgba(14,165,233,.25); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: #ccc; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.btn-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,.15); transform: translateY(-1px); }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }

/* ===== HERO ===== */
.hero { position: relative; padding: 80px 0 48px; overflow: hidden; text-align: center; }
.hero-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(14,165,233,.07) 0%, transparent 70%); pointer-events: none; }
.badge { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 100px; background: var(--brand-lighter); color: var(--brand-dark); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .2px; }
h1 { font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin: 24px 0 20px; color: var(--text); }
h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: 18px; line-height: 1.7; color: var(--text-secondary); max-width: 520px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-metrics { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 56px; padding: 20px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.metric { display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.metric-check { width: 32px; height: 32px; display: grid; place-items: center; background: var(--brand-lighter); color: var(--brand); border-radius: 8px; flex-shrink: 0; }
.metric-label { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); }
.metric-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-tinted { background: var(--bg-tinted); }
.section-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 12px; }
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 52ch; margin-bottom: 40px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.feature-card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-num { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--brand-light); letter-spacing: -1px; margin-bottom: 16px; line-height: 1; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ===== APP SHOWCASE ===== */
.showcase-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 32px; gap: 2px; }
.showcase-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-muted); border-radius: 9px; transition: all .25s var(--ease); }
.showcase-tab:hover { color: var(--text-secondary); }
.showcase-tab.active { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(14,165,233,.2); }
.showcase-tab svg { opacity: .7; }
.showcase-tab.active svg { opacity: 1; }
.showcase-panel { display: none; }
.showcase-panel.active { display: block; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.showcase-card { padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.showcase-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.showcase-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-lighter); color: var(--brand); border-radius: 12px; margin-bottom: 18px; }
.showcase-icon--alt { background: var(--accent-light); color: var(--accent); }
.showcase-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.showcase-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.showcase-cta { text-align: center; margin-top: 40px; }
[data-theme="dark"] .showcase-tab.active { background: var(--brand); color: #0b1220; }
[data-theme="dark"] .showcase-icon--alt { background: rgba(74,222,128,.1); color: var(--accent); }

/* ===== ANNUAL BANNER ===== */
.annual-banner { display: flex; align-items: center; gap: 24px; padding: 28px 32px; background: var(--accent-light); border: 1px solid rgba(34,197,94,.15); border-radius: var(--radius-lg); }
.annual-badge { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #16a34a; padding: 6px 14px; background: rgba(34,197,94,.12); border-radius: 8px; flex-shrink: 0; }
.annual-body { flex: 1; }
.annual-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.annual-body p { color: var(--text-secondary); font-size: 15px; }

/* ===== PRICING ===== */
.plan-toggle { display: inline-flex; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 40px; }
.toggle-btn { position: relative; z-index: 1; padding: 10px 24px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-secondary); border-radius: 9px; transition: color .25s; }
.toggle-btn.active { color: var(--text); }
.toggle-save { display: inline-flex; padding: 2px 8px; margin-left: 4px; background: var(--brand-light); color: var(--brand-dark); border-radius: 6px; font-size: 12px; font-weight: 700; }
.toggle-bg { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); background: var(--bg-tinted); border-radius: 9px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), width .3s var(--ease); pointer-events: none; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.price-card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); position: relative; }
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.price-card--pop { border-color: var(--brand); border-width: 2px; box-shadow: 0 8px 32px rgba(26,107,80,.1); }
.popular-tag { position: absolute; top: -13px; left: 24px; padding: 4px 14px; background: var(--brand); color: #fff; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .3px; }
.price-tier { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.price-range { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.price-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.currency { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text-secondary); }
.amount { font-family: var(--font-display); font-weight: 800; font-size: 48px; letter-spacing: -2px; line-height: 1; transition: opacity .2s; }
.price-period { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.price-example { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--bg-tinted); border-radius: 10px; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.price-example strong { color: var(--text); }
.pricing-note { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-tinted); color: var(--text-muted); flex-shrink: 0; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--brand-lighter); color: var(--brand); }
.faq-item p { padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ===== FINAL CTA ===== */
.section-cta { padding: 80px 0; }
.cta-block { text-align: center; padding: 64px 48px; background: var(--brand); border-radius: var(--radius-xl); color: #fff; position: relative; overflow: hidden; }
.cta-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.1), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(0,0,0,.15), transparent 60%); pointer-events: none; }
.cta-block > * { position: relative; }
.cta-block h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; }
.cta-block p { font-size: 17px; opacity: .85; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-phone { font-size: 13px; opacity: .6; margin-top: 20px; }

/* ===== FOOTER ===== */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; }
.footer-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; padding-top: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ===== WHATSAPP FAB ===== */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; background: #25D366; color: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(37,211,102,.35); text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s; }
.wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 30px rgba(37,211,102,.4); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .features-grid, .pricing-cards, .showcase-grid { grid-template-columns: 1fr; max-width: 480px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .annual-banner { flex-direction: column; text-align: center; }
  .hero-metrics { flex-direction: column; gap: 0; padding: 8px 20px; }
  .metric { padding: 14px 0; }
  .metric-sep { width: 100%; height: 1px; }
}

@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; right: 0; top: 60px; width: min(300px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
  .nav-links.open { display: flex; }
  .nav-links > li > a:not(.btn) { padding: 12px 16px; }
  .hero { padding: 48px 0 32px; }
  h1 { margin: 20px 0 16px; }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .cta-block { padding: 48px 24px; border-radius: var(--radius-lg); }
  .price-card--pop { order: -1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); flex-shrink: 0; }
.theme-toggle:hover { color: var(--text); background: var(--bg-tinted); transform: scale(1.05); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  height: 40px;
  padding: 0 13px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .8px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  flex-shrink: 0;
}
.lang-toggle:hover {
  color: var(--brand);
  background: var(--brand-lighter);
  border-color: var(--brand);
  transform: scale(1.05);
}
.lang-toggle:active { transform: scale(.95); }

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-tinted: #111827;
  --surface: #1E293B;
  --border: #334155;
  --border-light: #1E293B;
  --text: #EAF2FF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --brand: #38BDF8;
  --brand-light: rgba(56,189,248,.15);
  --brand-lighter: rgba(56,189,248,.08);
  --brand-dark: #7DD3FC;
  --accent: #4ADE80;
  --accent-light: rgba(74,222,128,.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
  --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}
[data-theme="dark"] .site-header { background: rgba(11,18,32,.75); border-bottom-color: var(--border-light); }
[data-theme="dark"] .badge { background: rgba(56,189,248,.1); color: var(--brand); }
[data-theme="dark"] .btn-primary { background: var(--brand); border-color: var(--brand); color: #0b1220; box-shadow: 0 2px 12px rgba(56,189,248,.2); }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 4px 20px rgba(56,189,248,.3); }
[data-theme="dark"] .btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .btn-outline:hover { border-color: #475569; }
[data-theme="dark"] .feature-num { color: rgba(56,189,248,.2); }
[data-theme="dark"] .annual-banner { background: rgba(74,222,128,.06); border-color: rgba(74,222,128,.12); }
[data-theme="dark"] .annual-badge { background: rgba(74,222,128,.12); color: var(--accent); }
[data-theme="dark"] .price-card--pop { border-color: var(--brand); box-shadow: 0 8px 32px rgba(56,189,248,.08); }
[data-theme="dark"] .popular-tag { background: var(--brand); color: #0b1220; }
[data-theme="dark"] .toggle-save { background: rgba(56,189,248,.15); color: var(--brand); }
[data-theme="dark"] .cta-block { background: linear-gradient(135deg, #0C4A6E, #082F49); }
[data-theme="dark"] .cta-block::before { background: radial-gradient(ellipse at 30% 0%, rgba(56,189,248,.12), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(0,0,0,.2), transparent 60%); }
[data-theme="dark"] .btn-white { background: #fff; color: #0C4A6E; }
[data-theme="dark"] .btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .wa-fab { box-shadow: 0 4px 20px rgba(37,211,102,.25); }
[data-theme="dark"] .hero-glow { background: radial-gradient(ellipse, rgba(56,189,248,.06) 0%, transparent 70%); }
[data-theme="dark"] .nav-links > li > a:not(.btn):hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .faq-icon { background: var(--surface); }
[data-theme="dark"] .faq-item[open] .faq-icon { background: rgba(56,189,248,.12); color: var(--brand); }
[data-theme="dark"] .lang-toggle { background: var(--surface); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .lang-toggle:hover { color: var(--brand); background: rgba(56,189,248,.08); border-color: var(--brand); }
@media (max-width: 768px) {
  [data-theme="dark"] .nav-links { background: var(--surface); border-color: var(--border); }
}
