/* ═══════════════════════════════════════════════════════════
   RUTH · INDEX (HOME GENERAL) - v1.0
   Estilos exclusivos para la página principal (Softlanding).
   Los tokens base y fuentes se cargan por separado.
═══════════════════════════════════════════════════════════ */

/* Variables locales (fallback y colores de categorías) */
:root {
  --bg: #0C0E0F; --bg-rgb: 12,14,15; --bg-2: #17191C; --bg-3: #22262A; --footer-bg: #07080A;
  --gold: #FFEDA8; --gold-bright: #FFF6D9; --gold-rgb: 255,237,168; --gold-ink: var(--gold-bright);
  --text-1: #FFFFFF; --text-1-rgb: 255,255,255;
  --text-2: rgba(255,255,255,.80); --text-3: rgba(255,255,255,.56);
  --dark-text: #0C0E0F; --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.16);
  --cat-empresa: #B3D4FF; --cat-empresa-rgb: 179,212,255;
  --cat-persona: #C42A8E; --cat-persona-rgb: 196, 42, 142;
  --cat-abogado: #A9F5C8; --cat-abogado-rgb: 169,245,200;
  --cat-notaria: #CFC0FF; --cat-notaria-rgb: 207,192,255;
  --f-display: 'Abril Fatface', serif; --f-body: 'Brother 1816', sans-serif;
  --ambient-rgb: 255,237,168;
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --bg-rgb: 255,255,255; --bg-2: #F7F5EF; --bg-3: #EFEBE1; --footer-bg: #EFEAE0;
  --gold-ink: #8A6B1F; --text-1: #14171A; --text-1-rgb: 20,23,26;
  --text-2: rgba(20,23,26,.80); --text-3: rgba(20,23,26,.58);
  --border: rgba(20,23,26,.10); --border-strong: rgba(20,23,26,.18);
  --cat-empresa: #2E6FD9; --cat-empresa-rgb: 46,111,217;
  --cat-persona: #8E1C66; --cat-persona-rgb: 142, 28, 102;
  --cat-abogado: #178C4E; --cat-abogado-rgb: 23,140,78;
  --cat-notaria: #6B46E8; --cat-notaria-rgb: 107,70,232;
  --gold-border: #B8860B; --ambient-rgb: 138,107,31;
}

/* Reset y Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text-1); font-family: var(--f-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open, body.video-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
::selection { background: var(--gold); color: var(--dark-text); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; }
p { margin: 0; }

/* Utilidades */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
section, footer { position: relative; overflow: hidden; }
.ambient-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; user-select: none; touch-action: none; opacity: .55; }
section > .wrap, footer > .wrap { position: relative; z-index: 2; }

/* Header / Navbar */
header.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(var(--bg-rgb),.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
nav.main-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.nav-logo { display: block; height: 47px; flex-shrink: 0; z-index: 1002; }
.nav-logo img { height: 100%; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-2); transition: .2s; }
.nav-links a:hover { color: var(--text-1); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.nav-signin { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-1); padding: 9px 16px 9px 10px; border-radius: 100px; border: 1px solid rgba(var(--gold-rgb),.35); background: rgba(var(--gold-rgb),.08); white-space: nowrap; transition: .2s; }
.nav-signin:hover { border-color: var(--gold-ink); background: rgba(var(--gold-rgb),.16); }
.nav-signin .avatar { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); flex-shrink: 0; }
.nav-signin .avatar i { color: var(--dark-text); font-size: 12px; }
:root[data-theme="light"] .nav-signin { border-color: var(--gold-border); background: rgba(184,134,11,.10); }
:root[data-theme="light"] .nav-signin:hover { background: rgba(184,134,11,.16); }
:root[data-theme="light"] .nav-signin .avatar { border: 1.5px solid var(--gold-border); }
.theme-toggle { position: relative; width: 52px; height: 28px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--bg-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 6px; flex-shrink: 0; transition: .2s; }
.theme-toggle:hover { border-color: var(--gold-ink); }
.theme-toggle i { font-size: 13px; position: relative; z-index: 1; transition: .2s; }
.theme-toggle .tt-sun { color: var(--text-3); }
.theme-toggle .tt-moon { color: var(--gold-ink); }
.theme-toggle .tt-thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.theme-toggle.is-light .tt-thumb { transform: translateX(24px); }
.theme-toggle.is-light .tt-sun { color: var(--gold-ink); }
.theme-toggle.is-light .tt-moon { color: var(--text-3); }

/* Botones principales */
.btn-primary { background: var(--gold); color: var(--dark-text); padding: 15px 28px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: .2s; cursor: pointer; text-align: center; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-primary i { font-size: 18px; }
:root[data-theme="light"] .btn-primary { border-color: var(--gold-border); box-shadow: 0 10px 24px -14px rgba(184,134,11,.5); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before { content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); }
.btn-shine:hover::before { animation: btnShine .9s ease-in-out; }
@keyframes btnShine { from { left: -60%; } to { left: 130%; } }

/* Menú Móvil */
.mobile-menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-3); color: var(--text-1); cursor: pointer; align-items: center; justify-content: center; font-size: 21px; transition: .2s; z-index: 1002; }
.mobile-menu-btn:hover { border-color: var(--gold-ink); }
.mobile-menu { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: rgba(var(--bg-rgb),.98); border-bottom: 1px solid var(--border); padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 600; transition: .2s; }
.mobile-menu a:hover { background: var(--bg-3); color: var(--text-1); }
.mobile-menu .mobile-contact { margin-top: 8px; background: var(--gold); color: var(--dark-text); justify-content: center; }
.mobile-menu .mobile-contact:hover { background: var(--gold-bright); color: var(--dark-text); }
.mobile-menu.open { display: block; }

/* Secciones generales */
section { padding: 120px 0; }
.section-head { width: 100%; max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.22; margin: 0; }
.section-head h2 em { font-style: italic; color: var(--gold-ink); padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
:root[data-theme="light"] .section-head h2 em { font-weight: 500; color: var(--dark-text); border-bottom: none; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.section-head p { font-size: 15.5px; color: var(--text-2); margin-top: 16px; }
.how-band { position: relative; overflow: hidden; background: var(--bg-2); }

/* Toggle Cómo Funciona */
.how-toggle { display: flex; justify-content: center; gap: 10px; margin: 0 0 44px; flex-wrap: wrap; }
.how-toggle button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border-strong); background: var(--bg-3); color: var(--text-2); font-weight: 700; font-size: 13.5px; padding: 13px 26px; border-radius: 100px; cursor: pointer; transition: .2s; font-family: var(--f-body); }
.how-toggle button i { font-size: 16px; }
.how-toggle button:hover { border-color: var(--gold-ink); color: var(--text-1); }
.how-toggle button.active { background: var(--gold); border-color: var(--gold); color: var(--dark-text); }
.how-toggle button[data-target="how-abogado"].active { background: var(--cat-abogado); border-color: var(--cat-abogado); color: #fff; }
.how-toggle button[data-target="how-notaria"].active { background: var(--cat-notaria); border-color: var(--cat-notaria); color: #fff; }
.how-toggle button[data-target="how-persona"].active { background: var(--cat-persona); border-color: var(--cat-persona); color: #fff; }
.how-toggle button[data-target="how-negocios"].active { background: var(--cat-empresa); border-color: var(--cat-empresa); color: #fff; }
:root[data-theme="light"] .how-toggle button[data-target="how-abogado"].active { background: rgba(var(--cat-abogado-rgb),.20); color: var(--dark-text); }
:root[data-theme="light"] .how-toggle button[data-target="how-notaria"].active { background: rgba(var(--cat-notaria-rgb),.20); color: var(--dark-text); }
:root[data-theme="light"] .how-toggle button[data-target="how-persona"].active { background: rgba(var(--cat-persona-rgb),.20); color: var(--dark-text); }
:root[data-theme="light"] .how-toggle button[data-target="how-negocios"].active { background: rgba(var(--cat-empresa-rgb),.20); color: var(--dark-text); }

/* Grid de Tarjetas (hf-steps) */
.how-panel-audience { display: none; }
.how-panel-audience.active { display: grid; }

.hf-steps { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.hf-steps.active { 
  opacity: 1; 
  visibility: visible; 
  height: auto;
  overflow: visible;
}
.how-panel-audience.cat-abogado { --cat-color: var(--cat-abogado); --cat-color-rgb: var(--cat-abogado-rgb); }
.how-panel-audience.cat-notaria { --cat-color: var(--cat-notaria); --cat-color-rgb: var(--cat-notaria-rgb); }
.how-panel-audience.cat-persona { --cat-color: var(--cat-persona); --cat-color-rgb: var(--cat-persona-rgb); }
.how-panel-audience.cat-empresa { --cat-color: var(--cat-empresa); --cat-color-rgb: var(--cat-empresa-rgb); }

.hf-step { position: relative; overflow: hidden; background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 36px 24px; transition: border-color .3s, transform .3s, box-shadow .3s, background .3s; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; }
.hf-step:hover { border-color: var(--cat-color, var(--gold)); transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0,0,0,0.45); }
.hf-step-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.hf-step:hover .hf-step-img { transform: scale(1.08); }
.hf-step::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb), 0.95) 10%, rgba(var(--bg-rgb), 0.65) 100%); z-index: 1; transition: opacity 0.3s ease; }
.hf-step::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(var(--cat-color-rgb, var(--gold-rgb)), 0) 0%, rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.18) 100%); z-index: 1; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.hf-step:hover::after { opacity: 1; }
.hf-step-head, .hf-step h4, .hf-step p { position: relative; z-index: 2; }
.hf-step-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.hf-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(var(--cat-color-rgb, var(--gold-rgb)), .25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; backdrop-filter: blur(6px); border: 1px solid rgba(var(--cat-color-rgb, var(--gold-rgb)), .5); transition: transform .3s ease, background .3s ease; }
.hf-step:hover .hf-icon { transform: scale(1.08) translateY(-2px); background: rgba(var(--cat-color-rgb, var(--gold-rgb)), .38); }
.hf-icon i { font-size: 22px; color: var(--cat-color, var(--gold)); }
:root[data-theme="light"] .hf-icon { background: rgba(var(--cat-color-rgb, var(--gold-rgb)), .10); border-color: rgba(var(--cat-color-rgb, var(--gold-rgb)), .35); }
.hf-step .hf-num { font-family: var(--f-display); font-size: 1.6rem; color: var(--cat-color, var(--gold)); text-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.hf-step h4 { font-family: var(--f-body); font-weight: 700; font-size: 16px; margin-bottom: 0; color: var(--text-1); display: flex; align-items: center; justify-content: center; gap: 8px; }
.hf-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; }
.hf-step:hover p, .hf-step.is-open p { max-height: 160px; opacity: 1; margin-top: 12px; }
.hf-step.is-clicking { transform: scale(.97); }

/* Softlanding (colores de tarjetas específicos) */
#softlanding .hf-step { border-top: 3px solid var(--cat-color, var(--gold)); background: linear-gradient(180deg, rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.10) 0%, var(--bg-3) 70%); }
#softlanding .hf-step:hover { border-color: var(--cat-color, var(--gold)); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.4), 0 0 30px -6px rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.35); }
#softlanding .hf-icon { background: rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.20); border-color: rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.55); }
#softlanding .hf-icon i { color: var(--cat-color, var(--gold)); }
:root[data-theme="light"] #softlanding .hf-icon { background: rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.12); border-color: rgba(var(--cat-color-rgb, var(--gold-rgb)), 0.40); }
#softlanding .hf-step:nth-child(1) { --cat-color: var(--cat-empresa); --cat-color-rgb: var(--cat-empresa-rgb); }
#softlanding .hf-step:nth-child(2) { --cat-color: var(--cat-notaria); --cat-color-rgb: var(--cat-notaria-rgb); }
#softlanding .hf-step:nth-child(3) { --cat-color: var(--cat-abogado); --cat-color-rgb: var(--cat-abogado-rgb); }
#softlanding .hf-step:nth-child(4) { --cat-color: var(--cat-persona); --cat-color-rgb: var(--cat-persona-rgb); }
#softlanding .hf-step::before { background: linear-gradient(to top, rgba(var(--bg-rgb), 0.88) 10%, rgba(var(--bg-rgb), 0.55) 100%); }

/* CTA Final */
.cta-final { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 90px, var(--bg-2) 100%); padding: 100px 0; }
.cta-split-text h2 em { font-style: italic; color: var(--gold-ink); padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
:root[data-theme="light"] .cta-split-text h2 em { font-weight: 500; color: var(--dark-text); border-bottom: none; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.btn-titan { position: relative; background: var(--gold); color: var(--dark-text); border: 1.5px solid transparent; border-radius: 14px; padding: 16px 50px 16px 28px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; font-family: var(--f-body); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: 0 16px 35px -10px rgba(var(--gold-rgb),.5); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; }
.btn-titan:hover { background: var(--gold-bright); transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 45px -10px rgba(var(--gold-rgb),.7); }
.btn-titan i { position: absolute; right: 20px; top: 50%; font-size: 18px; transform: translateY(-50%); transition: transform .25s; }
.btn-titan:hover i { transform: translateY(-50%) translateX(3px); }
:root[data-theme="light"] .btn-titan { border-color: var(--gold-border); box-shadow: 0 12px 30px -12px rgba(184,134,11,.4), 0 1px 3px rgba(0,0,0,.06); }
:root[data-theme="light"] .btn-titan:hover { box-shadow: 0 16px 38px -10px rgba(184,134,11,.5); }
.cta-split-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; align-items: stretch; background: var(--bg-3); border: 1px solid var(--border-strong); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 90px -45px rgba(0,0,0,.7); }
.cta-split-text { padding: 64px 56px; text-align: left; }
.cta-split-text h2 { font-size: clamp(2rem,3.8vw,2.8rem); line-height: 1.14; margin-bottom: 18px; }
.cta-split-text p { font-size: 16px; color: var(--text-2); margin: 0 0 30px; max-width: 420px; }
.cta-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--gold-rgb),.12); border: 1px solid rgba(var(--gold-rgb),.35); color: var(--gold-ink); font-size: 12.5px; font-weight: 700; padding: 8px 16px 8px 12px; border-radius: 100px; margin-bottom: 24px; }
:root[data-theme="light"] .cta-badge { background: rgba(var(--gold-rgb),.35); border-color: rgba(138,107,31,.35); }
.cta-badge i { font-size: 14px; color: var(--gold-ink); }
.cta-proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.cta-proof .avatars { display: flex; }
.cta-proof .avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-3); object-fit: cover; margin-left: -10px; }
.cta-proof .avatars img:first-child { margin-left: 0; }
.cta-proof-text { font-size: 12.5px; color: var(--text-2); text-align: left; }
.cta-proof-text strong { display: block; color: var(--text-1); font-size: 13.5px; }
.cta-split-photo { position: relative; min-height: 360px; }
.cta-split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Burbuja flotante RUTH Chat */
.wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 1200; width: 68px; height: 68px; border-radius: 50%; display: block; background-color: #FFEDA8; background-image: url('../../../assets/img/logos/Chatbot.png'); background-repeat: no-repeat; background-position: center; background-size: cover; transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 0 0 3px rgba(255,237,168,.10), 0 0 12px 3px rgba(255,237,168,.20), 0 0 22px 8px rgba(255,237,168,.10), 0 10px 22px -8px rgba(0,0,0,.55); }
.wa-float::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: radial-gradient(circle, rgba(255,237,168,.20) 0%, rgba(255,237,168,.10) 45%, rgba(255,237,168,0) 72%); filter: blur(7px); z-index: -1; pointer-events: none; animation: waPulse 3.2s ease-in-out infinite; }
.wa-float img { display: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 4px rgba(255,237,168,.16), 0 0 16px 5px rgba(255,237,168,.30), 0 0 30px 12px rgba(255,237,168,.16), 0 14px 28px -8px rgba(0,0,0,.65); }
@keyframes waPulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* Footer */
footer { background: linear-gradient(180deg, var(--bg-2) 0%, var(--footer-bg) 90px, var(--footer-bg) 100%); padding: 70px 0 28px; }
footer::before { content: ""; position: absolute; top: -140px; right: -120px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gold-rgb),.09), transparent 70%); pointer-events: none; }
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-logo { display: block; height: 57px; margin-bottom: 14px; }
.footer-logo img { height: 100%; width: auto; }
.footer-top p { font-size: 13.5px; color: var(--text-3); line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: .2s; color: var(--text-2); }
.footer-social a:hover { border-color: var(--gold-ink); background: rgba(var(--gold-rgb),.1); }
.footer-social a.fb { border-color: rgba(24,119,242,.4); }
.footer-social a.fb i { color: #1877F2; }
.footer-social a.fb:hover { border-color: #1877F2; background: rgba(24,119,242,.14); }
.footer-social a.wa { border-color: rgba(37,211,102,.4); }
.footer-social a.wa i { color: #25D366; }
.footer-social a.wa:hover { border-color: #25D366; background: rgba(37,211,102,.14); }
.footer-col h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 12px; transition: .2s; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-tagline-col { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-tagline { text-align: right; }
.footer-tagline .l1 { font-size: 14px; color: var(--text-1); }
.footer-tagline .l2 { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--text-1); line-height: 1.3; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); transition: .2s; }
.footer-contact a:hover { color: var(--gold-ink); }
.footer-contact i { font-size: 14px; color: var(--text-3); }
.footer-bottom { position: relative; z-index: 1; padding-top: 32px; }
.footer-copy { font-size: 12.5px; color: var(--text-3); }

/* Hero Section */
.hero { position: relative; width: calc(100% - 80px); max-width: 1435px; min-height: 680px; margin: 24px auto 90px; padding: 100px 70px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 32px; isolation: isolate; box-sizing: border-box; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; overflow: hidden; aspect-ratio: auto; box-shadow: none; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: .46; filter: grayscale(12%); transform: scale(1.02); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,12,.35) 0%, rgba(8,10,12,.62) 48%, rgba(8,10,12,.94) 100%); z-index: 1; }
.hero .ambient-fx { z-index: 1; opacity: .38; }
.hero-text { position: relative; z-index: 3; width: 100%; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-text h1 { font-weight: 600; font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.08; margin: 0 auto 24px; max-width: 1000px; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.hero-text h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-text p.lead { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.9); max-width: 760px; margin: 0 auto 32px; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-text p.lead .lead-logo-inline { display: inline-block; height: 56px; width: auto; vertical-align: middle; margin-right: 10px; transform: translateY(-4px); filter: none; }
.hero-audience-chips { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 34px; }
.hero-audience-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; background: rgba(10,12,14,.48); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 12.5px; font-weight: 700; transition: .2s; }
.hero-audience-chips a:hover { background: rgba(var(--gold-rgb),.18); border-color: var(--gold); transform: translateY(-2px); }
.hero-audience-chips i { color: var(--gold); font-size: 14px; }
.hero .btn-row { display: flex; justify-content: center; }
.hero .btn-primary { padding: 16px 30px; box-shadow: 0 14px 35px rgba(0,0,0,.35); }
.hero + section { margin-top: 0; }

/* Botones de colores en Hero y CTA */
.hero .btn-primary, .cta-final .btn-titan { background: var(--cat-abogado); color: var(--dark-text); border-color: transparent; }
:root[data-theme="light"] .hero .btn-primary, :root[data-theme="light"] .cta-final .btn-titan { color: #fff; border-color: var(--cat-abogado); }
.hero .btn-primary:hover, .cta-final .btn-titan:hover { background: var(--cat-abogado); filter: brightness(1.1); }
.hero .btn-primary.btn-demo-empresa { background: var(--cat-empresa); color: var(--dark-text); border-color: transparent; }
:root[data-theme="light"] .hero .btn-primary.btn-demo-empresa { color: #fff; border-color: var(--cat-empresa); }
.hero .btn-primary.btn-demo-empresa:hover { background: var(--cat-empresa); filter: brightness(1.1); }
.hero .btn-primary.btn-demo-red { background: var(--cat-notaria); color: var(--dark-text); border-color: transparent; }
:root[data-theme="light"] .hero .btn-primary.btn-demo-red { color: #fff; border-color: var(--cat-notaria); }
.hero .btn-primary.btn-demo-red:hover { background: var(--cat-notaria); filter: brightness(1.1); }

/* Modal de Video */
.video-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-modal.open { display: flex; }
.video-modal-inner { position: relative; width: 100%; max-width: 1000px; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.video-modal-inner video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; }
.video-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; }
.video-modal-close:hover { background: rgba(255,255,255,.3); }
body.video-is-open .wa-float, body.video-is-open #ruth-chat { display: none !important; opacity: 0 !important; pointer-events: none !important; }

/* Media Queries */
@media (max-width: 1100px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .nav-links { gap: 20px; }
  .nav-right { gap: 10px; }
  .nav-right > .btn-primary { padding: 11px 18px !important; }
  .hf-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-right > .btn-primary { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; margin-top: 16px; }
  .hero-text { text-align: center; }
  .hero-text p.lead { margin-left: auto; margin-right: auto; max-width: 590px; }
  .hero-text h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
  .hero-audience-chips, .btn-row { justify-content: center; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-tagline-col { grid-column: 1 / -1; align-items: flex-start; }
  .footer-tagline { text-align: left; }
  .footer-contact { align-items: flex-start; }
}
@media (max-width: 700px) {
  section { padding: 80px 0; }
  .wrap { padding-left: 22px; padding-right: 22px; }
  nav.main-nav { min-height: 68px; }
  .nav-logo { height: 40px; }
  .nav-signin { display: none; }
  .theme-toggle { width: 48px; height: 27px; }
  .hero { padding: 32px 18px; }
  .hero-text h1 { font-size: clamp(2rem, 10vw, 2.8rem); margin-bottom: 18px; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .hf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hf-step { min-height: 220px; padding: 24px 16px; }
  .cta-final { padding: 70px 0; }
  .cta-split-card { grid-template-columns: 1fr; }
  .cta-split-photo { min-height: 240px; order: -1; }
  .cta-split-text { padding: 44px 26px; text-align: center; }
  .cta-split-text p { margin-left: auto; margin-right: auto; }
  .cta-proof { flex-direction: column; align-items: center; text-align: center; }
  .cta-proof-text { text-align: center; }
  .wa-float { right: 18px; bottom: 18px; width: 62px; height: 62px; }
  footer { padding: 56px 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; padding-bottom: 34px; }
  .footer-logo { height: 50px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  nav.main-nav { gap: 10px; }
  .nav-logo { height: 36px; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 45px; height: 26px; padding: 0 5px; }
  .theme-toggle .tt-thumb { width: 20px; height: 20px; }
  .theme-toggle.is-light .tt-thumb { transform: translateX(19px); }
  .mobile-menu-btn { width: 40px; height: 40px; font-size: 19px; }
  .hero-text h1 { font-size: clamp(1.9rem, 10vw, 2.45rem); }
  .hero-audience-chips a { padding: 9px 14px; font-size: 12px; }
  .hero .btn-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: center; }
  .hero .btn-row .btn-primary { width: auto; flex: 1 1 45%; min-width: 0; padding: 12px 12px; font-size: 12.5px; gap: 6px; }
  .hero .btn-row .btn-primary i { font-size: 15px; }
  .btn-row .btn-titan { width: 100%; justify-content: center; }
  .btn-titan { padding: 14px 44px 14px 22px; font-size: 15px; }
  .btn-titan i { right: 16px; font-size: 16px; }
  .how-toggle { gap: 8px; }
  .how-toggle button { padding: 11px 18px; font-size: 12.5px; }
  .hf-steps { gap: 10px; }
  .hf-step { min-height: 200px; padding: 20px 12px; }
  .hf-step h4 { font-size: 14px; }
  .hf-step p { font-size: 12px; }
  .cta-badge { font-size: 11.5px; padding: 7px 12px 7px 10px; }
  .cta-split-text { padding: 36px 18px; }
  .footer-social a { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .hero-text h1 { font-size: 1.85rem; }
  .nav-logo { height: 32px; }
  .theme-toggle, .mobile-menu-btn { transform: scale(.92); transform-origin: center right; }
  .wa-float { width: 56px; height: 56px; }
  .hero .btn-row .btn-primary { padding: 9px 6px; font-size: 10.5px; gap: 3px; }
  .hero .btn-row .btn-primary i { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}