/* ═══════════════════════════════════════════════════════════
   RUTH · PALETA DE COLORES OFICIAL - HOME-PEOPLE (v3.0)
   Basado estrictamente en index.html
═══════════════════════════════════════════════════════════ */

@font-face { font-family:'Brother 1816'; src:url('../assets/fonts/Brother-1816-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Brother 1816'; src:url('../assets/fonts/Brother-1816-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Brother 1816'; src:url('../assets/fonts/Brother-1816-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Abril Fatface'; src:url('../assets/fonts/AbrilFatface-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }

/* ═══════════════════════════════════════
   01 · TOKENS DE PALETA OFICIAL (MODO OSCURO BY DEFAULT)
═══════════════════════════════════════ */
:root {
  /* Marca - Dorado Fijo */
  --gold: #FFEDA8;
  --gold-bright: #FFF6D9;
  --gold-ink: #FFF6D9;
  --gold-border: transparent;
  --dark-text: #0C0E0F;

  /* Estructura Base */
  --bg: #0C0E0F;
  --bg-2: #17191C;
  --bg-3: #22262A;
  --footer-bg: #07080A;

  /* Tipografía y Opacidades */
  --text-1: #FFFFFF;
  --text-1-rgb: 255,255,255;
  --text-2: rgba(255,255,255,.80);
  --text-3: rgba(255,255,255,.56);

  /* Bordes */
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  /* Categoría - Persona Natural */
  --cat-persona: #FF5C5C;
  --cat-persona-rgb: 255,92,92;

  /* Redes Sociales */
  --ig-color: #E1306C;
  --li-color: #0A66C2;
  --wa-color: #25D366;

  /* Fuentes */
  --f-display: 'Abril Fatface', Georgia, serif;
  --f-body: 'Brother 1816', system-ui, -apple-system, sans-serif;

  --gold-rgb: 255,237,168;
  --ambient-rgb: 255,237,168;
}

/* ═══════════════════════════════════════
   02 · TOKENS DE PALETA OFICIAL (MODO CLARO)
═══════════════════════════════════════ */
:root[data-theme="light"] {
  /* Marca - Dorado Adaptado */
  --gold: #FFEDA8;
  --gold-bright: #FFF6D9;
  --gold-ink: #8A6B1F;
  --gold-border: #B8860B;
  --dark-text: #0C0E0F;

  /* Estructura Base */
  --bg: #FFFFFF;
  --bg-rgb: 255,255,255;
  --bg-2: #F7F5EF;
  --bg-3: #EFEBE1;
  --footer-bg: #EFEAE0;

  /* Tipografía y Opacidades */
  --text-1: #14171A;
  --text-1-rgb: 20,23,26;
  --text-2: rgba(20,23,26,.80);
  --text-3: rgba(20,23,26,.58);

  /* Bordes */
  --border: rgba(20,23,26,.10);
  --border-strong: rgba(20,23,26,.18);

  /* Categoría - Persona Natural */
  --cat-persona: #D62F2F;
  --cat-persona-rgb: 214,47,47;

  --ambient-rgb: 138,107,31;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 40px; }
::selection { background: var(--gold); color: var(--dark-text); }
h1,h2,h3 { font-family: var(--f-display); font-weight: 600; margin: 0; }
p { margin: 0; }

.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); }

/* ═══════════════════════════════════════
   TOPBAR & HEADER NORMALIZADO (EXACTO AL INDEX)
═══════════════════════════════════════ */

/* Topbar */
.topbar { 
  background: var(--footer-bg); 
  border-bottom: 1px solid var(--border); 
  padding: 9px 0; 
  font-size: 12.5px; 
  color: var(--text-3); 
}

.topbar .wrap { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px; 
  flex-wrap: wrap; 
}

.topbar-left { 
  display: flex; 
  align-items: center; 
  gap: 22px; 
  flex-wrap: wrap; 
}

.topbar-left span { 
  display: inline-flex; 
  align-items: center; 
  gap: 7px; 
}

.topbar-left i { 
  color: var(--gold-ink); 
  font-size: 14px; 
}

.topbar-social { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
}

.topbar-social a {
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  border: 1px solid var(--border-strong);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: .2s; 
  color: var(--text-2);
}

.topbar-social a:hover { border-color: var(--gold-ink); background: rgba(var(--gold-rgb),.1); }
.topbar-social a.ig { border-color: rgba(225,48,108,.4); } .topbar-social a.ig i { color: #E1306C; }
.topbar-social a.ig:hover { border-color: #E1306C; background: rgba(225,48,108,.14); }
.topbar-social a.li { border-color: rgba(10,102,194,.4); } .topbar-social a.li i { color: #0A66C2; }
.topbar-social a.li:hover { border-color: #0A66C2; background: rgba(10,102,194,.14); }
.topbar-social a.wa { border-color: rgba(37,211,102,.4); } .topbar-social a.wa i { color: #25D366; }
.topbar-social a.wa:hover { border-color: #25D366; background: rgba(37,211,102,.14); }

/* Main Nav & Header */
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 { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 24px; 
  padding: 16px 0; 
}

.nav-logo { 
  display: block; 
  height: 47px; 
  flex-shrink: 0; 
}

.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; 
  gap: 30px; 
}

.nav-links a { 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--text-2); 
  text-decoration: none; 
  transition: .2s; 
}

.nav-links a:hover { 
  color: var(--text-1); 
}

.nav-right { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

/* Sign-in / Acceder */
.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); 
  text-decoration: none; 
  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 */
.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
═══════════════════════════════════════ */
.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; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: .2s; cursor: pointer;
}
.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-ghost {
  background: rgba(var(--text-1-rgb),.06); color: var(--text-1); padding: 15px 28px; border-radius: 12px;
  border: 1px solid var(--border-strong); font-weight: 600; font-size: 14.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; transition: .2s; backdrop-filter: blur(6px); cursor: pointer;
}
.btn-ghost:hover { background: rgba(var(--text-1-rgb),.12); }

.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%; } }

/* ═══════════════════════════════════════
   HERO CENTRADO Y METRICAS
═══════════════════════════════════════ */
.hero-c { position: relative; padding: 30px 0 60px; }
.hero-c-frame {
  position: relative; border-radius: 28px; overflow: hidden; padding: 100px 30px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--border-strong); background: var(--bg-2);
}
.hero-c-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-c-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero-c-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, transparent 20%, var(--bg-2) 90%);
}

.hero-c-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 600; line-height: 1.1; margin-bottom: 20px; color: var(--text-1);
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--gold); }
:root[data-theme="light"] .hero-title em {
  color: var(--text-1);
  background: linear-gradient(180deg, transparent 65%, var(--gold) 65%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-2);
  max-width: 620px; margin: 0 auto 36px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; gap: clamp(30px, 5vw, 80px); justify-content: center;
  padding-top: 36px; border-top: 1px solid var(--border); width: 100%; max-width: 700px;
}
.stat-num { font-family: var(--f-display); font-size: clamp(2rem, 3.5vw, 3rem); color: var(--text-1); line-height: 1; }
.stat-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; font-weight: 700; }

/* ═══════════════════════════════════════
   SECCIÓN GENÉRICA & EFECTOS FONDOS
═══════════════════════════════════════ */
.section { padding: 90px 0; position: relative; }
.section-eyebrow {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-ink); margin-bottom: 12px;
}
.section-heading h2 { font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.22; margin: 0; }
.section-heading h2 em { font-style: italic; color: var(--gold-ink); padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
:root[data-theme="light"] .section-heading 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-desc { font-size: 15.5px; color: var(--text-2); max-width: 580px; margin-top: 16px; }
.divider { width: 48px; height: 2px; background: var(--text-1); margin: 24px 0; position: relative; }
.divider::after { content:''; position:absolute; width:6px; height:6px; border-radius:50%; background:var(--gold-ink); top:-2px; right:-6px; }

.section-fx-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.section-fx-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; }
.fx-blob1 { width: 340px; height: 340px; background: var(--cat-persona); top: -80px; left: -60px; }
.fx-blob2 { width: 300px; height: 300px; background: var(--gold); bottom: -60px; right: -40px; }

/* ═══════════════════════════════════════
   STEPS-FLOW (CÓMO FUNCIONA)
   Ícono y título centrados, descripción oculta con hover alineada a la izquierda
═══════════════════════════════════════ */
.steps-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 44px; }

.sf-item {
  display: flex;
  flex-direction: column;      /* apila número, título y descripción */
  align-items: center;         /* centra horizontalmente */
  text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: border-color .2s;
}
.sf-item:hover { border-color: var(--cat-persona); }

.sf-num {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--cat-persona);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.sf-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;            /* lo controlamos con padding en la descripción */
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-item h3 i { color: var(--cat-persona); font-size: 1rem; }

.sf-item > div {
  width: 100%;                 /* para que la descripción ocupe todo el ancho */
  display: flex;
  flex-direction: column;
  align-items: center;         /* mantiene el título centrado */
}

/* Descripción oculta por defecto, se muestra al hover */
.sf-item p {
  text-align: left;            /* alineación izquierda cuando se muestra */
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.3s ease;
}

.sf-item:hover p {
  max-height: 200px;           /* suficiente para el texto */
  opacity: 1;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   BIBLIOTECA (lib-card) – Ícono y título centrados, pasos ocultos con hover
═══════════════════════════════════════ */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 44px; }

.lib-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;         /* centra ícono, título y etiqueta */
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lib-card:hover { border-color: var(--cat-persona); transform: translateY(-3px); }

.lib-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(var(--cat-persona-rgb), .16);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--cat-persona);
  margin-bottom: 0.5rem;
  transition: transform .3s;
}
.lib-card:hover .lib-icon { transform: scale(1.08); }

.lib-card h4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--text-1);
}
.lib-tag {
  font-size: 10.5px; font-weight: 800;
  color: var(--cat-persona); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px;
}

/* Descripción breve (siempre visible) */
.lib-card .lib-desc {
  font-size: .84rem;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Pasos – ocultos por defecto, se muestran al hover con alineación izquierda */
.lib-card .tram-flow {
  text-align: left;            /* alineación izquierda */
  width: 100%;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.3s ease;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-card:hover .tram-flow {
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.lib-card .tram-flow li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-2);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.lib-card:hover .tram-flow li {
  opacity: 1;
}

.lib-card .tram-flow li span:first-child {
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--cat-persona);
  background: rgba(var(--cat-persona-rgb), .15);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* PANEL INTERACTIVO DE SOLICITUD */
.lib-request-panel {
  margin-top: 32px; background: var(--bg-3); border: 1px solid var(--border-strong);
  border-radius: 28px; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden;
}
.lrp-illust {
  position: relative; padding: 30px; display: flex; align-items: center; justify-content: center;
  
  border-right: 1px solid var(--border);
}
.lrp-doc { position: relative; width: 90px; height: 110px; }
.lrp-doc svg { width: 100%; height: 100%; }
.lrp-content { padding: 32px; }
.lrp-content h4 { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 8px; }
.lrp-content p { font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; }

.lib-request-form { display: flex; flex-direction: column; gap: 12px; }
.lrp-field { position: relative; }
.lrp-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.lrp-field input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 14px 12px 40px; font-family: var(--f-body);
  font-size: 13.5px; color: var(--text-1); outline: none; transition: .2s;
}
.lrp-field input:focus { border-color: var(--cat-persona); box-shadow: 0 0 0 3px rgba(var(--cat-persona-rgb), .16); }

/* ═══════════════════════════════════════
   MODALIDADES DE PAGO (PRICING REFACTORIZADO)
═══════════════════════════════════════ */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 44px; }
.price-card {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 28px;
  overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border: 1.5px solid var(--gold); background: var(--bg-3); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.price-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--gold);
  color: var(--dark-text); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 100px;
}
.price-photo { position: relative; height: 140px; }
.price-photo img { width: 100%; height: 100%; object-fit: cover; }
.price-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, var(--bg-2) 100%);
}
.price-card.featured .price-photo::after { background: linear-gradient(180deg, transparent 20%, var(--bg-3) 100%); }

.price-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.price-kicker { font-size: 10.5px; font-weight: 800; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.price-title { font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 4px; }
.price-amount { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; margin: 12px 0 4px; color: var(--text-1); }
.price-amount sup { font-size: 1.1rem; vertical-align: super; }
.price-period { font-size: 12.5px; color: var(--text-3); margin-bottom: 20px; }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.price-features li i { color: var(--gold-ink); margin-top: 2px; }

/* ═══════════════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════════════ */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 1200; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); transition: .2s; font-size: 28px;
}
.wa-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 36px -8px rgba(0,0,0,.7); }

#network-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ═══════════════════════════════════════
   FOOTER (EXACTO AL INDEX)
═══════════════════════════════════════ */
footer { position: relative; overflow: hidden; 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-wrap { display: block; height: 57px; margin-bottom: 14px; }
.footer-logo-img { height: 100%; width: auto; }
.footer-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.6; max-width: 280px; margin-bottom: 0; }
.footer-social-circle { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-circle 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-circle a:hover { border-color: var(--gold-ink); background: rgba(var(--gold-rgb),.1); }
.footer-social-circle a.ig { border-color: rgba(225,48,108,.4); } .footer-social-circle a.ig i { color: #E1306C; }
.footer-social-circle a.ig:hover { border-color: #E1306C; background: rgba(225,48,108,.14); }
.footer-social-circle a.li { border-color: rgba(10,102,194,.4); } .footer-social-circle a.li i { color: #0A66C2; }
.footer-social-circle a.li:hover { border-color: #0A66C2; background: rgba(10,102,194,.14); }
.footer-social-circle a.wa { border-color: rgba(37,211,102,.4); } .footer-social-circle a.wa i { color: #25D366; }
.footer-social-circle a.wa:hover { border-color: #25D366; background: rgba(37,211,102,.14); }

.footer-col-nav { display: flex; flex-direction: column; }
.footer-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-2); text-decoration: none; transition: .2s; }
.footer-links a:hover { color: var(--gold-ink); }

.footer-col-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-slogan { text-align: right; }
.footer-slogan span { font-size: 14px; color: var(--text-1); display: block; }
.footer-slogan em { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--text-1); line-height: 1.3; display: block; }
.footer-contact-info { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.footer-contact-info p { margin: 0; }
.footer-contact-info a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); text-decoration: none; transition: .2s; }
.footer-contact-info a:hover { color: var(--gold-ink); }
.footer-contact-info i { font-size: 14px; color: var(--text-3); }

.footer-copy { position: relative; z-index: 1; padding-top: 32px; font-size: 12.5px; color: var(--text-3); text-align: left; }

/* ═══════════════════════════════════════
   📱 MEDIA QUERIES - RESPONSIVE
═══════════════════════════════════════ */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .hero-c-frame { padding: 70px 20px 40px; }
  .footer-top { gap: 30px; }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 900px) { 
  .lib-request-panel { grid-template-columns: 1fr; } 
  .lrp-illust { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; } 
  .footer-top { grid-template-columns: 1fr 1fr; } 
  .footer-col-contact { grid-column: 1 / -1; align-items: flex-start; } 
  .footer-slogan { text-align: left; } 
  .footer-contact-info { align-items: flex-start; }
  .section { padding: 60px 0; }
  .hero-c { padding: 20px 0 40px; }
  .price-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .steps-flow { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .lib-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Móviles */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  
  /* Topbar */
  .topbar-left span:nth-child(2) { display: none; }
  .topbar .wrap { gap: 12px; }
  .topbar-left { gap: 12px; font-size: 11px; }
  .topbar-social { gap: 8px; }
  .topbar-social a { width: 24px; height: 24px; font-size: 11px; }
  
  /* Navbar */
  nav.main-nav { padding: 12px 0; gap: 12px; }
  .nav-logo { height: 36px; }
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .nav-signin { padding: 6px 12px 6px 8px; font-size: 12px; }
  .nav-signin .avatar { width: 18px; height: 18px; font-size: 10px; }
  .nav-signin .avatar i { font-size: 10px; }
  .theme-toggle { width: 44px; height: 24px; padding: 0 4px; }
  .theme-toggle i { font-size: 11px; }
  .theme-toggle .tt-thumb { width: 18px; height: 18px; top: 2px; left: 2px; }
  .theme-toggle.is-light .tt-thumb { transform: translateX(20px); }
  .mobile-hidden { display: none !important; }
  
  /* Botones */
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 13px; }
  
  /* Hero */
  .hero-c-frame { border-radius: 16px; padding: 40px 16px 30px; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-actions { gap: 12px; margin-bottom: 40px; flex-direction: column; align-items: center; }
  .hero-actions .btn-primary, 
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; padding-top: 24px; flex-wrap: wrap; }
  .stat-num { font-size: clamp(1.4rem, 4vw, 2rem); }
  .stat-label { font-size: 0.6rem; }
  
  /* Secciones */
  .section { padding: 40px 0; }
  .section-heading h2 { font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
  .section-desc { font-size: 14px; }
  
  /* Grids */
  .steps-flow { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .sf-item { padding: 20px 16px; }
  .sf-num { font-size: 1.1rem; }
  .sf-item h3 { font-size: 14px; }
  .sf-item p { font-size: 13px; }
  
  .lib-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .lib-card { padding: 20px 16px; }
  .lib-card h4 { font-size: 1.1rem; }
  
  .price-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .price-card.featured { order: -1; }
  .price-body { padding: 0 20px 20px; }
  .price-title { font-size: 1.4rem; }
  .price-amount { font-size: 2.2rem; }
  .price-photo { height: 100px; }
  
  /* Panel de solicitud */
  .lib-request-panel { border-radius: 16px; margin-top: 24px; }
  .lrp-content { padding: 20px 16px; }
  .lrp-content h4 { font-size: 1.2rem; }
  .lrp-content p { font-size: 13px; }
  .lrp-doc { width: 60px; height: 80px; }
  .lrp-field input { font-size: 13px; padding: 10px 12px 10px 36px; }
  
  /* Footer */
  footer { padding: 40px 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-col-brand { order: 1; }
  .footer-col-nav { order: 2; }
  .footer-col-contact { grid-column: 1; order: 3; align-items: flex-start; }
  .footer-logo-wrap { height: 44px; }
  .footer-desc { max-width: 100%; font-size: 13px; }
  .footer-slogan em { font-size: 1.2rem; }
  .footer-copy { padding-top: 20px; font-size: 11px; text-align: center; }
  
  /* WhatsApp flotante */
  .wa-float { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 22px; }
  
  /* Efectos de fondo */
  .fx-blob1 { width: 200px; height: 200px; top: -40px; left: -30px; }
  .fx-blob2 { width: 180px; height: 180px; bottom: -40px; right: -20px; }
}

/* Móviles muy pequeños */
@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
  .topbar-left span:first-child { font-size: 10px; }
  .topbar-left span:first-child i { font-size: 11px; }
  .topbar-social a { width: 20px; height: 20px; font-size: 9px; }
  .hero-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .hero-c-frame { padding: 30px 12px 20px; }
  .hero-subtitle { font-size: 0.85rem; }
  .btn-primary, .btn-ghost { padding: 10px 16px; font-size: 12px; }
  .section { padding: 30px 0; }
  .sf-item { flex-direction: column; gap: 10px; align-items: flex-start; }
  .price-card .btn-primary, 
  .price-card .btn-ghost { width: 100%; justify-content: center; }
  .footer-logo-wrap { height: 36px; }
  .footer-social-circle a { width: 30px; height: 30px; font-size: 13px; }
}

/* ═══════════════════════════════════════
   MEDIA QUERY ADICIONAL - NAVBAR HAMBURGUESA (opcional)
   Para mantener la coherencia, ocultamos el botón de contacto en móvil
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-right .btn-primary { display: none; }
}

/* Ajuste para tablets medianas */
@media (min-width: 769px) and (max-width: 1024px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
  .steps-flow { grid-template-columns: repeat(2, 1fr); }
}

/* Ajuste para pantallas muy grandes */
@media (min-width: 1600px) {
  .wrap { max-width: 1400px; }
  .hero-c-frame { padding: 120px 40px 80px; }
  .hero-title { font-size: 5rem; }
}

/* ═══════════════════════════════════════
   MENÚ HAMBURGUESA MÓVIL
═══════════════════════════════════════ */
.nav-burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-burger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }

.nav-burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease;
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
  padding: 18px 0 22px;
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-menu a:last-child,
.mobile-menu a.btn-primary { border-bottom: none; }

.mobile-menu-signin {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.mobile-menu-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;
}

.mobile-menu-signin .avatar i { color: var(--dark-text); font-size: 12px; }

.mobile-menu a.btn-primary { margin-top: 8px; }

body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ========================================
   COLORES INTERCALADOS PARA CADA TARJETA
   ======================================== */

/* 1. Vehículo → Rojo (--cat-persona) */
.lib-card:nth-child(1) .lib-icon {
  color: var(--cat-persona);
  background: rgba(var(--cat-persona-rgb), 0.16);
}
.lib-card:nth-child(1):hover {
  border-color: var(--cat-persona);
}
.lib-card:nth-child(1) .tram-flow li span:first-child {
  color: var(--cat-persona);
  background: rgba(var(--cat-persona-rgb), 0.15);
}

/* 2. Promesas → Verde esmeralda */
.lib-card:nth-child(2) .lib-icon {
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.16);
}
.lib-card:nth-child(2):hover {
  border-color: #2ECC71;
}
.lib-card:nth-child(2) .tram-flow li span:first-child {
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.15);
}

/* 3. Inmobiliaria → Azul medio */
.lib-card:nth-child(3) .lib-icon {
  color: #3498DB;
  background: rgba(52, 152, 219, 0.16);
}
.lib-card:nth-child(3):hover {
  border-color: #3498DB;
}
.lib-card:nth-child(3) .tram-flow li span:first-child {
  color: #3498DB;
  background: rgba(52, 152, 219, 0.15);
}



/* ========================================
   PANEL DE SOLICITUD CON IMAGEN Y SRC
   ======================================== */

.lib-request-panel {
  margin-top: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  overflow: hidden;
  transition: box-shadow .3s;
}
.lib-request-panel:hover {
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.2);
}

/* --- Lado ilustración (contenedor de la imagen) --- */
.lrp-illust {
  position: relative;
  min-height: 280px; /* altura mínima */
  overflow: hidden;
  border-right: 1px solid var(--border);
}

/* Imagen de fondo (igual que en el hero) */
.lrp-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* recorta la imagen para llenar el espacio */
  opacity: 0.35;        /* transparencia (puedes ajustarla) */
  z-index: 0;
}

/* Capa de opacidad (como en el hero-c-bg::after) */
.lrp-illust-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, var(--bg-2) 90%);
  z-index: 1;
  pointer-events: none;
}

/* Contenido sobre la imagen */
.lrp-illust-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px;
  height: 100%;
  min-height: 280px;
}

.lrp-illust-content i {
  font-size: 4.5rem;
  color: var(--cat-persona);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: rgba(var(--bg-rgb), 0.4);
  padding: 16px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.lrp-badge {
  background: var(--cat-persona);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 18px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(var(--cat-persona-rgb), 0.4);
}

/* --- Lado contenido (sin cambios) --- */
.lrp-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lrp-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.lrp-content h4 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.lrp-content p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
  max-width: 90%;
}

.lib-request-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lrp-field {
  position: relative;
}
.lrp-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 1.1rem;
}
.lrp-field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 14px 14px 44px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-1);
  outline: none;
  transition: .2s;
}
.lrp-field input:focus {
  border-color: var(--cat-persona);
  box-shadow: 0 0 0 3px rgba(var(--cat-persona-rgb), 0.16);
}

.lrp-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.lrp-actions .btn-primary,
.lrp-actions .btn-ghost {
  flex: 1;
  justify-content: center;
  padding: 14px 12px;
  font-size: 14px;
}
.lrp-actions .btn-ghost {
  background: rgba(var(--text-1-rgb), 0.04);
  border-color: var(--border-strong);
  color: var(--text-2);
}
.lrp-actions .btn-ghost:hover {
  background: rgba(var(--text-1-rgb), 0.10);
  border-color: var(--text-2);
}

.lrp-legal {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .lib-request-panel {
    grid-template-columns: 1fr;
  }
  .lrp-illust {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 200px;
  }
  .lrp-illust-content {
    min-height: 200px;
  }
  .lrp-illust-content i {
    font-size: 3rem;
    padding: 12px;
  }
  .lrp-content {
    padding: 24px 20px;
  }
  .lrp-content p {
    max-width: 100%;
  }
  .lrp-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .lrp-content h4 {
    font-size: 1.3rem;
  }
  .lrp-field input {
    padding: 12px 12px 12px 38px;
    font-size: 13px;
  }
  .lrp-actions .btn-primary,
  .lrp-actions .btn-ghost {
    padding: 12px 10px;
    font-size: 13px;
  }
}