/* ============================================================
   RADICAYA - Design System (vanilla CSS, sin dependencias)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --ink-900: #0A1628;
  --ink-800: #0F172A;
  --ink-700: #1E293B;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-50:  #EFF6FF;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --emerald-500: #10B981;
  --red-500: #EF4444;
  --white: #FFFFFF;

  /* ── Variables del sistema visual premium — fondo oscuro global ── */
  /* Fondos base (idénticos a .ryp-hero para coherencia total) */
  --ry-bg:    #060c18;
  --ry-bg-2:  #07111d;
  --ry-bg-3:  #080d1a;

  /* Superficies glass sobre fondo oscuro */
  --ry-glass-xs: rgba(255,255,255,.04);
  --ry-glass-sm: rgba(255,255,255,.07);
  --ry-glass-md: rgba(255,255,255,.10);
  --ry-glass-lg: rgba(255,255,255,.16);

  /* Bordes sobre fondo oscuro */
  --ry-line:   rgba(255,255,255,.08);
  --ry-line-2: rgba(255,255,255,.14);

  /* Texto sobre fondo oscuro — escala WCAG AA */
  --ry-t1: #f1f5f9;                       /* principal: ratio ≥7:1 */
  --ry-t2: rgba(241,245,249,.76);          /* secundario: ratio ≥4.5:1 */
  --ry-t3: rgba(241,245,249,.50);          /* terciario / meta */
  --ry-t4: rgba(241,245,249,.30);          /* placeholder */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Fondo premium oscuro extendido desde el Hero a todo el sitio */
  color: var(--ry-t1);
  background:
    radial-gradient(ellipse 80% 55% at 18% 28%, rgba(79,70,229,.09) 0%, transparent 64%),
    radial-gradient(ellipse 65% 50% at 82% 68%, rgba(139,92,246,.08) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 50% 90%, rgba(14,165,233,.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--ry-bg-2) 0%, var(--ry-bg-3) 50%, var(--ry-bg) 100%);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
/* SVG reset — prevents full-screen blowout */
svg { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; flex-shrink: 0; }
svg:not([width]):not([height]) { width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* Headings claros para contraste sobre fondo oscuro global */
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; color: var(--ry-t1); }

/* ====== LAYOUT ====== */
.ry-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ry-section { padding: 96px 0; }
@media (max-width: 768px) { .ry-section { padding: 64px 0; } }

/* ====== NAVBAR — cristal oscuro sobre fondo premium ====== */
.ry-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(6,12,24,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ry-line);
  transition: box-shadow 0.2s;
}
.ry-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.ry-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ry-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ry-glass-md); color: var(--white);
  border: 1px solid var(--ry-line-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; flex-shrink: 0;
}
/* white-space: nowrap evita que "Radica Ya" se parta o se corte en móvil */
.ry-logo-text { font-weight: 900; font-size: 18px; color: var(--ry-t1); white-space: nowrap; }
.ry-nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ry-t2); }
.ry-nav-links a:hover { color: var(--ry-t1); }
.ry-nav-actions { display: flex; align-items: center; gap: 12px; }
.ry-nav-hamburger {
  display: none; padding: 8px; border-radius: 8px;
  background: none; border: none; cursor: pointer; color: var(--ry-t2);
}
@media (max-width: 768px) {
  .ry-nav-links { display: none; }
  .ry-nav-hamburger { display: flex; align-items: center; justify-content: center; }
  /* Ocultar botones de acción en móvil: el menú hamburguesa ya los incluye */
  .ry-nav-actions { display: none; }
}
/* Mobile menu — oscuro */
.ry-nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  background: rgba(6,12,24,.96);
  border-top: 1px solid var(--ry-line);
}
.ry-nav-mobile.open { display: flex; }
.ry-nav-mobile a {
  padding: 10px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ry-t2);
}
.ry-nav-mobile a:hover { background: var(--ry-glass-sm); color: var(--ry-t1); }
.ry-nav-mobile-actions { display: flex; gap: 8px; padding-top: 8px; }

/* ====== MESSAGES (Django) ====== */
.ry-messages { padding: 12px 24px 0; max-width: 1200px; margin: 0 auto; }
.ry-msg {
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; margin-bottom: 8px;
}
.ry-msg-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.ry-msg-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ry-msg-info    { background: var(--blue-50); color: #1E40AF; border: 1px solid #BFDBFE; }

/* ====== BUTTONS ====== */
.ry-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
/* Botón primario: azul visible sobre fondo oscuro global (ratio texto ≥7:1)
   Antes era var(--ink-900) = #0A1628 que se mimetizaba con el fondo oscuro.
   Ahora usa var(--blue-600) = #2563EB para ser claramente identificable. ── */
.ry-btn-primary {
  background: var(--blue-600); color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}
.ry-btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.40); }
.ry-btn-accent {
  background: var(--amber-500); color: var(--ink-900);
  box-shadow: 0 8px 24px -4px rgba(12, 9, 4, 0.45);
}
.ry-btn-accent:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 12px 28px -4px rgba(12, 8, 0, 0.55); }
/* Botones outline y ghost sobre fondo oscuro */
.ry-btn-outline {
  background: var(--ry-glass-sm); color: var(--ry-t1);
  border: 2px solid var(--ry-line-2);
}
.ry-btn-outline:hover { background: var(--ry-glass-md); border-color: rgba(255,255,255,.28); }
.ry-btn-ghost {
  background: var(--ry-glass-sm); color: var(--ry-t1);
  border: 2px solid var(--ry-line-2);
}
.ry-btn-ghost:hover { background: var(--ry-glass-md); border-color: rgba(255,255,255,.30); }
.ry-btn-sm { padding: 10px 18px; font-size: 14px; }
.ry-btn-lg { padding: 18px 32px; font-size: 17px; }

/* ====== HERO (versión base — hereda fondo oscuro del body) ====== */
.ry-hero {
  position: relative; padding: 140px 0 100px;
  background: transparent;
  overflow: hidden;
}
/* Grid texture adaptada para fondo oscuro */
.ry-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 28px 28px;
}
.ry-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 968px) {
  .ry-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .ry-hero { padding: 120px 0 72px; }
}
@media (max-width: 640px) { .ry-hero { padding: 100px 0 56px; } }

.ry-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--ink-100);
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  font-size: 12px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.ry-hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
  animation: ry-pulse 2s ease infinite; flex-shrink: 0;
}
@keyframes ry-pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

.ry-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink-900); margin-bottom: 24px;
}
.ry-hero-title-accent {
  position: relative; display: inline-block; color: var(--ink-900);
}
.ry-hero-title-accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cpath d='M2,7 Q75,1 150,5 T298,7' stroke='%23F59E0B' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
}
.ry-hero-subtitle {
  font-size: 20px; color: var(--ink-500); max-width: 480px;
  margin-bottom: 36px; line-height: 1.6;
}
.ry-hero-subtitle strong { color: var(--ink-900); font-weight: 700; }
.ry-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.ry-hero-trust { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-500); }
.ry-hero-trust-item { display: flex; align-items: center; gap: 6px; }

/* ====== HERO VISUAL (mockup) ====== */
.ry-hero-visual {
  position: relative; min-height: 460px;
}
@media (max-width: 968px) { .ry-hero-visual { min-height: 360px; } }

.ry-doc-card {
  background: var(--white); border-radius: 24px; padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.04);
  transform: rotate(-2deg); transition: transform 0.5s ease;
}
.ry-doc-card:hover { transform: rotate(0deg); }
.ry-doc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); margin-bottom: 24px;
}
.ry-doc-title-row { display: flex; gap: 12px; align-items: center; }
.ry-doc-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; color: var(--blue-600);
  flex-shrink: 0;
}
.ry-doc-type { font-size: 11px; font-weight: 800; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.05em; }
.ry-doc-time { font-size: 11px; color: var(--ink-300); margin-top: 2px; }
.ry-doc-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px; background: #ECFDF5;
  color: #059669; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.ry-doc-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); flex-shrink: 0; }
.ry-doc-lines { display: flex; flex-direction: column; gap: 10px; }
.ry-doc-line { height: 10px; border-radius: 999px; background: var(--ink-100); width: 100%; }
.ry-doc-line.w-92 { width: 92%; }
.ry-doc-line.w-85 { width: 85%; }
.ry-doc-line.w-78 { width: 78%; }
.ry-doc-line.accent { background: #E0E7FF; width: 60%; }
.ry-doc-foot {
  display: flex; justify-content: space-between; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--ink-100);
  font-size: 11px; color: var(--ink-400);
}

.ry-sat-card {
  position: absolute; background: var(--white); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px -8px rgba(15,23,42,0.14), 0 0 0 1px var(--ink-100);
}
.ry-sat-ia { top: -24px; left: -36px; }
.ry-sat-shield { bottom: 32px; right: -28px; background: var(--ink-900); }
.ry-sat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--ink-900));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
}
.ry-sat-label { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.ry-sat-sub { font-size: 11px; color: var(--ink-400); }
.ry-sat-shield .ry-sat-label { color: var(--white); }
.ry-sat-shield .ry-sat-sub { color: var(--ink-300); }
@media (max-width: 968px) {
  .ry-sat-ia { top: -12px; left: 0; }
  .ry-sat-shield { bottom: 8px; right: 0; }
}

/* ====== BANNER SOFÍA IA ====== */
.ry-sofia-banner {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  padding: 64px 0;
}
.ry-sofia-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 50%, rgba(37,99,235,0.30), transparent 55%),
              radial-gradient(circle at 90% 20%, rgba(245,158,11,0.18), transparent 45%);
}
.ry-sofia-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
@media (max-width: 768px) {
  .ry-sofia-inner { grid-template-columns: 1fr; }
}
.ry-sofia-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(37,99,235,0.25); border: 1px solid rgba(37,99,235,0.45);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-300, #93C5FD); margin-bottom: 20px;
}
.ry-sofia-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400, #60A5FA);
  animation: blink 1.6s ease-in-out infinite;
}
.ry-sofia-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 36px); font-weight: 900;
  color: var(--white); margin-bottom: 14px; line-height: 1.2;
}
.ry-sofia-desc {
  font-size: 16px; line-height: 1.65; color: var(--ink-200, #CBD5E1);
  max-width: 560px; margin-bottom: 24px;
}
.ry-sofia-desc strong { color: var(--white); }
.ry-sofia-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.ry-sofia-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; font-weight: 600; color: var(--ink-100, #F1F5F9);
}
.ry-sofia-cta { display: inline-flex; align-items: center; gap: 10px; color: #000000 !important;}
/* Visual */
.ry-sofia-visual {
  display: flex; align-items: center; justify-content: center;
  min-width: 180px;
}
@media (max-width: 768px) { .ry-sofia-visual { display: none; } }
.ry-sofia-avatar-wrap {
  position: relative; width: 140px; height: 140px;
}
.ry-sofia-avatar-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed rgba(37,99,235,0.45);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ry-sofia-avatar {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600,#2563EB), var(--ink-800,#1E293B));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: 0 0 40px rgba(37,99,235,0.45);
}
.ry-sofia-bubble {
  position: absolute;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.ry-sofia-bubble-1 {
  top: 0; right: -20px;
  background: var(--amber-500,#F59E0B); color: var(--ink-900,#0F172A);
}
.ry-sofia-bubble-2 {
  bottom: 8px; left: -24px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}

/* ====== SECTION COMMON ====== */
.ry-section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.ry-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-600);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.ry-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.ry-lead { font-size: 18px; color: var(--ink-500); line-height: 1.65; }

/* ====== METRICS STRIP ====== */
.ry-metrics {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 32px; border-radius: 28px;
  background: linear-gradient(135deg, var(--ink-900) 0%, #1E3A8A 100%);
}
@media (max-width: 640px) { .ry-metrics { grid-template-columns: repeat(2, 1fr); } }
.ry-metric { text-align: center; }
.ry-metric-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px; font-weight: 900; line-height: 1; margin-bottom: 6px; color: var(--white);
}
.ry-metric-l { font-size: 13px; color: var(--ink-300); }

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN CÓMO FUNCIONA — Sistema visual premium (prefijo cf-)
   Propósito: layout 40/60 (timeline izq / video der), timeline vertical,
              tarjeta de video con miniatura oficial de YouTube.
   Dependencias: variables --ry-* del :root, .ry-container, .ry-section.
   Impacto: exclusivo de #como-funciona en inicio.html.
   ══════════════════════════════════════════════════════════════════════════ */

/* Iluminación difusa adicional exclusiva de esta sección */
#como-funciona {
  position: relative;
}
#como-funciona::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 18% 35%, rgba(37,99,235,.06) 0%, transparent 60%),
    radial-gradient(ellipse 48% 45% at 82% 65%, rgba(139,92,246,.05) 0%, transparent 58%),
    radial-gradient(ellipse 40% 38% at 50% 92%, rgba(16,185,129,.04) 0%, transparent 55%);
  z-index: 0;
}
/* Contenedor sobre el pseudo-elemento de fondo */
#como-funciona > .ry-container { position: relative; z-index: 1; }

/* Encabezado de sección — más espacio y tipografía dominante */
#como-funciona .ry-section-head { max-width: 760px; margin-bottom: 72px; }

/* El h2 de esta sección domina visualmente — jerarquía máxima */
#como-funciona .ry-h2 {
  font-size: clamp(38px, 5.8vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

/* ── Layout principal: 40% izquierda / 60% derecha ───────────────────────── */
/* Desktop: 2fr (timeline) + 3fr (video). Tablet: adaptado. Móvil: columna única */
.cf-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .cf-layout { grid-template-columns: 1fr 1.3fr; gap: 32px; }
}

@media (max-width: 640px) {
  /* Móvil: columna única — pasos primero, video después */
  .cf-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Línea temporal vertical ─────────────────────────────────────────────── */
.cf-timeline {
  display: flex;
  flex-direction: column;
}

/* Paso completo: spine (nodo + conector) + tarjeta */
.cf-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Spine: columna de nodo circular y línea vertical conectora */
.cf-step-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Nodo circular numerado — premium, 56px */
.cf-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cf-step:hover .cf-node { transform: scale(1.12); }

.cf-node-num {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Variantes de color con gradiente y glow premium */
.cf-node--blue {
  background: linear-gradient(135deg, rgba(37,99,235,.35) 0%, rgba(37,99,235,.18) 100%);
  border: 1.5px solid rgba(37,99,235,.58);
  color: #93c5fd;
  box-shadow: 0 0 26px rgba(37,99,235,.32), 0 0 8px rgba(37,99,235,.18) inset;
}
.cf-step:hover .cf-node--blue {
  background: linear-gradient(135deg, rgba(37,99,235,.48) 0%, rgba(37,99,235,.28) 100%);
  box-shadow: 0 0 38px rgba(37,99,235,.52), 0 0 14px rgba(37,99,235,.28) inset;
}

.cf-node--purple {
  background: linear-gradient(135deg, rgba(139,92,246,.35) 0%, rgba(139,92,246,.18) 100%);
  border: 1.5px solid rgba(139,92,246,.58);
  color: #c4b5fd;
  box-shadow: 0 0 26px rgba(139,92,246,.32), 0 0 8px rgba(139,92,246,.18) inset;
}
.cf-step:hover .cf-node--purple {
  background: linear-gradient(135deg, rgba(139,92,246,.48) 0%, rgba(139,92,246,.28) 100%);
  box-shadow: 0 0 38px rgba(139,92,246,.52), 0 0 14px rgba(139,92,246,.28) inset;
}

.cf-node--emerald {
  background: linear-gradient(135deg, rgba(16,185,129,.30) 0%, rgba(16,185,129,.16) 100%);
  border: 1.5px solid rgba(16,185,129,.54);
  color: #6ee7b7;
  box-shadow: 0 0 26px rgba(16,185,129,.28), 0 0 8px rgba(16,185,129,.16) inset;
}
.cf-step:hover .cf-node--emerald {
  background: linear-gradient(135deg, rgba(16,185,129,.42) 0%, rgba(16,185,129,.24) 100%);
  box-shadow: 0 0 38px rgba(16,185,129,.46), 0 0 14px rgba(16,185,129,.24) inset;
}

/* Línea vertical conectora — color graduado entre pasos */
.cf-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  margin-top: 8px;
  border-radius: 2px;
}

/* Conector azul→morado (entre paso 1 y 2) */
.cf-step:first-child .cf-connector {
  background: linear-gradient(180deg, rgba(37,99,235,.48) 0%, rgba(139,92,246,.38) 100%);
}

/* Conector morado→esmeralda (entre paso 2 y 3) */
.cf-step:nth-child(2) .cf-connector {
  background: linear-gradient(180deg, rgba(139,92,246,.42) 0%, rgba(16,185,129,.34) 100%);
}

/* Tarjeta glass de cada paso — más padding, glassmorphism premium */
.cf-step-card {
  flex: 1;
  background: var(--ry-glass-sm);
  border: 1px solid var(--ry-line);
  border-radius: 18px;
  padding: 26px 28px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Acento lateral de color — identidad visual de cada paso */
.cf-step-card::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 0;
  width: 3px;
  height: 64%;
  border-radius: 0 3px 3px 0;
  opacity: 0.55;
  transition: opacity 0.28s ease, height 0.28s ease;
}
.cf-step:first-child  .cf-step-card::before { background: #3b82f6; }
.cf-step:nth-child(2) .cf-step-card::before { background: #8b5cf6; }
.cf-step--last        .cf-step-card::before { background: #10b981; }

.cf-step:hover .cf-step-card::before { opacity: 1; height: 70%; }

/* El último paso no lleva margen inferior */
.cf-step--last .cf-step-card { margin-bottom: 0; }

/* Hover de tarjeta con sombra de color del nodo */
.cf-step:first-child .cf-step-card:hover {
  border-color: rgba(37,99,235,.40);
  box-shadow: 0 20px 44px -12px rgba(37,99,235,.24);
  transform: translateX(5px);
}
.cf-step:nth-child(2) .cf-step-card:hover {
  border-color: rgba(139,92,246,.40);
  box-shadow: 0 20px 44px -12px rgba(139,92,246,.24);
  transform: translateX(5px);
}
.cf-step--last .cf-step-card:hover {
  border-color: rgba(16,185,129,.38);
  box-shadow: 0 20px 44px -12px rgba(16,185,129,.20);
  transform: translateX(5px);
}

/* Cabecera del paso: icono + título en línea */
.cf-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

/* Icono cuadrado redondeado — 42px con borde sutil */
.cf-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf-icon--blue   { background: rgba(37,99,235,.16);  color: #93c5fd; border: 1px solid rgba(37,99,235,.28); }
.cf-icon--purple { background: rgba(139,92,246,.16); color: #c4b5fd; border: 1px solid rgba(139,92,246,.28); }
.cf-icon--emerald{ background: rgba(16,185,129,.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,.26); }

/* Título del paso */
.cf-step-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ry-t1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Descripción del paso */
.cf-step-desc {
  font-size: 14px;
  color: var(--ry-t2);
  line-height: 1.68;
}

/* ── Columna de video — elemento dominante de la sección ─────────────────── */
/* Sticky: la tarjeta de video permanece visible al desplazar los pasos */
.cf-video-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px; /* Altura navbar + margen de seguridad */
  align-self: center;
  justify-content: center;
  width: 100%;
}

/* Tarjeta principal del video */
.cf-video-card {
  background: var(--ry-glass-sm);
  border: 1px solid var(--ry-line-2);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.30);
  width: 100%;
}
.cf-video-card:hover {
  border-color: rgba(79,70,229,.38);
  box-shadow: 0 28px 60px -16px rgba(79,70,229,.24);
}

/* Miniatura 16/9 */
.cf-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Imagen oficial de YouTube — ocupa toda la miniatura */
.cf-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.45s ease, opacity 0.30s ease;
}
.cf-video-card:hover .cf-yt-thumb { transform: scale(1.04); }

/* Logo YouTube — esquina superior izquierda */
.cf-yt-logo {
  position: absolute;
  top: 13px;
  left: 15px;
  z-index: 3;
  opacity: 0.90;
  transition: opacity 0.22s ease;
}
.cf-video-card:hover .cf-yt-logo { opacity: 1; }

/* Caption inferior — título del video sobre la miniatura */
.cf-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px 16px;
  z-index: 3;
  background: linear-gradient(to top, rgba(6,12,24,.78) 0%, rgba(6,12,24,.18) 70%, transparent 100%);
}

/* Etiqueta de tipo sobre el título */
.cf-thumb-tag {
  display: inline-block;
  background: rgba(37,99,235,.75);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Título del video sobre la miniatura */
.cf-thumb-caption-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
}

/* Botón play central — estilo YouTube con rojo reconocible */
.cf-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(220,38,38,.88);  /* Rojo YouTube */
  border: 2px solid rgba(255,255,255,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 4;
  color: #fff;
  box-shadow: 0 6px 28px rgba(220,38,38,.40);
}
.cf-play-btn:hover {
  background: rgba(220,38,38,.98);
  border-color: rgba(255,255,255,.55);
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 10px 38px rgba(220,38,38,.58);
}
.cf-play-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
}

/* Anillo exterior del botón play — pulso suave */
.cf-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  animation: cf-ring-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cf-ring-pulse {
  0%, 100% { opacity: .80; transform: scale(1);    }
  50%       { opacity: .20; transform: scale(1.17); }
}

.cf-play-icon { position: relative; z-index: 1; margin-left: 4px; }

/* Indicador de duración sobre la miniatura */
.cf-thumb-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.82);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 5;
  letter-spacing: 0.04em;
}

/* Meta del video principal */
.cf-video-meta { padding: 18px 20px 20px; }

/* Badge de novedad */
.cf-video-badge {
  display: inline-block;
  background: rgba(245,158,11,.16);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.cf-video-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ry-t1);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cf-video-desc {
  font-size: 13.5px;
  color: var(--ry-t3);
  line-height: 1.62;
}

/* ── Responsive específico del módulo cf- ────────────────────────────────── */
@media (max-width: 900px) {
  .cf-step-card  { padding: 20px 22px 22px; }
  .cf-step-title { font-size: 16px; }
  .cf-video-meta { padding: 16px 18px 18px; }
  /* Desactivar sticky en tablet: el layout comprimido no lo necesita */
  .cf-video-col  { position: static; }
}

@media (max-width: 640px) {
  .cf-step-card { padding: 16px 18px 18px; margin-bottom: 16px; }
  .cf-connector { min-height: 32px; }
  .cf-play-btn  { width: 60px; height: 60px; }
  #como-funciona .ry-h2 { font-size: clamp(32px, 9vw, 42px); }
}

/* ── FIN SECCIÓN CÓMO FUNCIONA ────────────────────────────────────────────── */

/* ====== DOCS GRID ====== */
/* Transparente: hereda fondo oscuro del body */
.ry-docs-section { background: transparent; }
.ry-docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 968px) { .ry-docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ry-docs-grid { grid-template-columns: 1fr; } }

.ry-doc-item {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 24px; padding: 28px; transition: all 0.3s;
  display: flex; flex-direction: column; gap: 14px; min-height: 230px;
  text-decoration: none; color: inherit;
}
.ry-doc-item:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(15,23,42,0.14); }
.ry-doc-item-head { display: flex; justify-content: space-between; align-items: flex-start; }
.ry-doc-item-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.ry-doc-item-tag {
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.ry-doc-item h3 { font-size: 18px; font-weight: 900; color: var(--ink-900); }
.ry-doc-item-desc { font-size: 14px; color: var(--ink-500); flex: 1; line-height: 1.6; }
.ry-doc-item-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--ink-100); margin-top: auto;
}
.ry-doc-item-price { font-size: 12px; font-weight: 700; color: var(--ink-400); }
.ry-doc-item-cta { font-size: 14px; font-weight: 800; transition: transform 0.2s; }
.ry-doc-item:hover .ry-doc-item-cta { transform: translateX(4px); }

/* Color variants */
.doc-blue .ry-doc-item-icon { background: #EFF6FF; color: var(--blue-600); }
.doc-blue .ry-doc-item-cta { color: var(--blue-600); }
.doc-blue:hover { border-color: var(--blue-600); }
.doc-red .ry-doc-item-icon { background: #FEF2F2; color: #DC2626; }
.doc-red .ry-doc-item-cta { color: #DC2626; }
.doc-red:hover { border-color: #DC2626; }
.doc-green .ry-doc-item-icon { background: #ECFDF5; color: var(--emerald-500); }
.doc-green .ry-doc-item-cta { color: var(--emerald-500); }
.doc-green:hover { border-color: var(--emerald-500); }
.doc-purple .ry-doc-item-icon { background: #F5F3FF; color: #8B5CF6; }
.doc-purple .ry-doc-item-cta { color: #8B5CF6; }
.doc-purple:hover { border-color: #8B5CF6; }
.doc-amber .ry-doc-item-icon { background: #FFFBEB; color: var(--amber-500); }
.doc-amber .ry-doc-item-cta { color: var(--amber-500); }
.doc-amber:hover { border-color: var(--amber-500); }

.tag-popular { background: #FFFBEB; color: var(--amber-600); }
.tag-hot { background: #FEF2F2; color: #DC2626; }
.tag-new { background: #ECFDF5; color: #059669; }

.ry-doc-item-dark {
  background: linear-gradient(135deg, var(--ink-900), #1E3A8A);
  color: var(--white); border: none;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.ry-doc-item-dark h3 { color: var(--white); font-size: 20px; }
.ry-doc-item-dark p { color: var(--ink-200); font-size: 14px; line-height: 1.6; }
.ry-doc-item-dark:hover { border: none; transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(37,99,235,0.35); }
.ry-doc-item-dark-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--white); color: var(--ink-900);
  font-weight: 800; font-size: 14px; transition: all 0.2s;
  align-self: flex-start; margin-top: 16px; border: none; cursor: pointer;
}
.ry-doc-item-dark-btn:hover { background: var(--amber-500); color: var(--ink-900); }

/* ====== FAQ ====== */
.ry-faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ry-faq-item {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 14px; overflow: hidden; transition: border-color 0.2s;
}
.ry-faq-item:hover { border-color: var(--blue-600); }
.ry-faq-q {
  width: 100%; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16px; color: var(--ink-900);
  text-align: left; background: none; border: none; cursor: pointer;
}
.ry-faq-q svg { transition: transform 0.3s; color: var(--blue-600); flex-shrink: 0; margin-left: 16px; }
.ry-faq-item.open .ry-faq-q svg { transform: rotate(180deg); }
.ry-faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  color: var(--ink-500); line-height: 1.7; font-size: 15px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.ry-faq-item.open .ry-faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ====== CTA FINAL ====== */
.ry-cta-final {
  position: relative; padding: 120px 0; overflow: hidden;
  background: var(--ink-900); color: var(--white); text-align: center;
}
.ry-cta-final::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 25% 40%, rgba(37,99,235,0.35), transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(245,158,11,0.25), transparent 50%);
}
.ry-cta-final-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.ry-cta-final h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 62px); font-weight: 900;
  color: var(--white); margin-bottom: 20px; letter-spacing: -0.03em;
}
.ry-cta-final h2 .accent { color: var(--amber-500); }
.ry-cta-final p { font-size: 18px; color: var(--ink-200); margin-bottom: 40px; line-height: 1.65; }
.ry-cta-final-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ====== FOOTER ====== */
.ry-footer { background: #050B18; color: var(--ink-200); padding: 64px 0 32px; }
.ry-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
@media (max-width: 768px) { .ry-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.ry-footer-brand { max-width: 360px; }
.ry-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ry-footer-logo .ry-logo-icon { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.ry-footer-logo .ry-logo-text { color: var(--white); }
.ry-footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; color: var(--ink-300); }
.ry-footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); font-size: 12px;
}
.ry-footer-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); flex-shrink: 0; }
.ry-footer h4 {
  font-size: 12px; font-weight: 800; color: var(--white); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ry-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-300); }
.ry-footer-links a:hover { color: var(--white); }
.ry-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--emerald-500); color: var(--white);
  font-weight: 800; font-size: 14px; transition: all 0.2s; margin-bottom: 12px;
}
.ry-wa-btn:hover { background: #059669; transform: translateY(-1px); }
.ry-footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--ink-400);
}
.ry-footer-bottom-links { display: flex; gap: 24px; }
.ry-footer-bottom-links a:hover { color: var(--white); }

/* ====== FORM / OTHER PAGES ====== */
.ry-page-wrap { padding-top: 88px; min-height: 100vh; }
.ry-form-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: 20px; padding: 40px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  max-width: 560px; margin: 40px auto;
}
@media (max-width: 640px) { .ry-form-card { padding: 24px; margin: 20px 16px; } }
.ry-field {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--ink-200); background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.ry-field:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.ry-field::placeholder { color: var(--ink-300); }
.ry-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--ink-700); margin-bottom: 6px; letter-spacing: 0.01em;
}
.ry-field-group { display: flex; flex-direction: column; gap: 20px; }

/* ====== ALPINE/CHATBOT COMPAT ====== */
[x-cloak] { display: none !important; }

/* ====================================================================
   INTERNAL PAGES — shared layout for authenticated/action pages
   ==================================================================== */

/* Page wrapper — transparente, hereda fondo oscuro del body */
.ry-page { padding-top: 88px; min-height: 100vh; background: transparent; }

/* Page hero banner (internal pages) */
.ry-page-head {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
  padding: 56px 0 48px; color: var(--white); position: relative; overflow: hidden;
}
.ry-page-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 50%, rgba(37,99,235,0.25), transparent 55%);
}
.ry-page-head-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ry-page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-200); margin-bottom: 16px;
}
.ry-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  color: var(--white); margin-bottom: 10px; letter-spacing: -0.02em;
}
.ry-page-lead { font-size: 16px; color: var(--ink-300); max-width: 540px; line-height: 1.65; }

/* Generic card */
.ry-card {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.ry-card-head {
  padding: 20px 28px; border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between;
}
.ry-card-head h2 { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.ry-card-head span { font-size: 12px; color: var(--ink-400); }
.ry-card-body { padding: 28px; }

/* ====== DOCUMENT SELECTOR (/documentos/) ====== */
/* Transparente: hereda fondo oscuro del body */
.ry-docs-hero { background: transparent; padding: 40px 0 0; }
.ry-docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
@media (max-width: 900px) { .ry-docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ry-docs-grid { grid-template-columns: 1fr; } }

.ry-doc-select {
  position: relative; display: block;
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 16px; padding: 22px; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.ry-doc-select:hover { border-color: var(--blue-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.12); }
.ry-doc-select-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0;
}
.ry-doc-select-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.ry-doc-select-icon svg { width: 22px; height: 22px; }
.ry-doc-select h3 { font-size: 14px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.ry-doc-select p { font-size: 13px; color: var(--ink-400); line-height: 1.55; margin-bottom: 14px; }
.ry-doc-select-cta { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* Color variants */
.ry-doc-select.blue .ry-doc-select-bar { background: var(--blue-600); }
.ry-doc-select.blue .ry-doc-select-icon { background: var(--blue-50); color: var(--blue-600); }
.ry-doc-select.blue .ry-doc-select-cta { color: var(--blue-600); }

/* Green (Salud) */
.ry-doc-select.green { background: linear-gradient(145deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.ry-doc-select.green:hover { border-color: #16a34a !important; box-shadow: 0 8px 28px rgba(22,163,74,0.18) !important; }
.ry-doc-select.green .ry-doc-select-bar { background: var(--emerald-500); }
.ry-doc-select.green .ry-doc-select-icon { background: #fff; color: var(--emerald-500); }
.ry-doc-select.green .ry-doc-select-cta { color: var(--emerald-500); }

/* Purple (Servicios) */
.ry-doc-select.purple { background: linear-gradient(145deg, #eef2ff, #e0e7ff); border-color: #a5b4fc; }
.ry-doc-select.purple:hover { border-color: #7c3aed !important; box-shadow: 0 8px 28px rgba(124,58,237,0.18) !important; }
.ry-doc-select.purple .ry-doc-select-bar { background: #7C3AED; }
.ry-doc-select.purple .ry-doc-select-icon { background: #fff; color: #7C3AED; }
.ry-doc-select.purple .ry-doc-select-cta { color: #7C3AED; }

/* Orange (Tránsito) */
.ry-doc-select.orange { background: linear-gradient(145deg, #fff7ed, #ffedd5); border-color: #fdba74; }
.ry-doc-select.orange:hover { border-color: #f97316 !important; box-shadow: 0 8px 28px rgba(249,115,22,0.18) !important; }
.ry-doc-select.orange .ry-doc-select-bar { background: #f97316; }
.ry-doc-select.orange .ry-doc-select-icon { background: #fff; color: #c2410c; }
.ry-doc-select.orange .ry-doc-select-cta { color: #ea580c; }

.ry-doc-select.amber .ry-doc-select-bar { background: var(--amber-500); }
.ry-doc-select.amber .ry-doc-select-icon { background: #FFFBEB; color: var(--amber-600); }
.ry-doc-select.amber .ry-doc-select-cta { color: var(--amber-600); }
.ry-doc-select.cyan .ry-doc-select-bar { background: #06B6D4; }
.ry-doc-select.cyan .ry-doc-select-icon { background: #ECFEFF; color: #0E7490; }
.ry-doc-select.cyan .ry-doc-select-cta { color: #0E7490; }

/* Sofia AI card (chatbot CTA) */
.ry-sofia-card {
  background: var(--ink-900); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 22px; text-decoration: none;
  display: block; transition: transform 0.2s, box-shadow 0.2s;
}
.ry-sofia-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,23,42,0.25); }
.ry-sofia-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  font-size: 11px; font-weight: 700; color: var(--amber-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.ry-sofia-card h3 { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.ry-sofia-card p { font-size: 13px; color: var(--ink-300); line-height: 1.55; margin-bottom: 16px; }
.ry-sofia-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--amber-500);
}

/* WA help strip */
.ry-wa-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 20px 28px; border-radius: 16px;
  background: var(--blue-50); border: 1.5px solid #BFDBFE;
  margin-top: 24px;
}
.ry-wa-strip-text strong { font-size: 14px; font-weight: 800; color: var(--ink-900); display: block; margin-bottom: 2px; }
.ry-wa-strip-text span { font-size: 13px; color: var(--ink-500); }
.ry-wa-strip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  background: var(--emerald-500); color: var(--white);
  font-size: 13px; font-weight: 700; transition: all 0.2s; flex-shrink: 0;
}
.ry-wa-strip-btn:hover { background: #059669; transform: translateY(-1px); }
.ry-wa-strip-btn svg { width: 16px; height: 16px; }

/* ====== CONTACT PAGE (/soporte/contacto/) ====== */
.ry-contact-grid {
  display: grid; grid-template-columns: 3fr 2fr; gap: 28px; margin-top: 40px;
}
@media (max-width: 768px) { .ry-contact-grid { grid-template-columns: 1fr; } }

.ry-channels { display: flex; flex-direction: column; gap: 12px; }
.ry-channel {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; border-radius: 14px; color: var(--white);
}
.ry-channel-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ry-channel-icon svg { width: 22px; height: 22px; }
.ry-channel-body strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.ry-channel-body span { font-size: 13px; opacity: 0.85; line-height: 1.5; }
.ry-channel.blue { background: var(--blue-600); }
.ry-channel.green { background: #059669; }
.ry-channel.dark { background: var(--ink-700); }

/* Contact form */
.ry-contact-form { display: flex; flex-direction: column; gap: 18px; }
.ry-contact-form textarea.ry-field { resize: none; height: 130px; }

/* Schedule card */
.ry-schedule { margin-top: 16px; }
.ry-schedule-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--ink-100);
  font-size: 14px; color: var(--ink-600);
}
.ry-schedule-row:last-child { border-bottom: none; }
.ry-schedule-row span:last-child { font-weight: 700; color: var(--ink-800); }
.ry-schedule-row.closed span:last-child { color: var(--ink-400); font-weight: 400; }

/* WA card within contact */
.ry-wa-card {
  background: #065F46; color: var(--white);
  border-radius: 14px; padding: 24px;
}
.ry-wa-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ry-wa-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ry-wa-card-icon svg { width: 22px; height: 22px; }
.ry-wa-card .number { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.ry-wa-card .sub { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 16px; }
.ry-wa-card-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--white); color: #065F46;
  font-size: 14px; font-weight: 800; transition: all 0.2s;
}
.ry-wa-card-btn:hover { background: #F0FDF4; transform: translateY(-1px); }
.ry-wa-card-btn svg { width: 18px; height: 18px; }

/* ====== PROFILE PAGE (/cuenta/perfil/) ====== */
.ry-profile-banner {
  background: linear-gradient(135deg, var(--ink-900) 0%, #1D4ED8 100%);
  padding: 36px 0; color: var(--white); position: relative; overflow: hidden;
}
.ry-profile-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(245,158,11,0.18), transparent 55%);
  pointer-events: none;
}
.ry-profile-banner-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.ry-avatar {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: var(--white); flex-shrink: 0;
}
.ry-profile-name { font-size: 20px; font-weight: 900; color: var(--white); line-height: 1.2; }
.ry-profile-meta { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 3px; }

.ry-profile-grid {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
@media (max-width: 900px) { .ry-profile-grid { grid-template-columns: 1fr; } }

/* Form grid inside card */
.ry-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .ry-form-grid-2 { grid-template-columns: 1fr; } }
.ry-form-grid-2 .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .ry-form-grid-2 .span-2 { grid-column: span 1; } }
.ry-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }

/* Stats sidebar */
.ry-stats-stack { display: flex; flex-direction: column; gap: 12px; }
.ry-stat-card {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 14px; padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.ry-stat-card .stat-label { font-size: 11px; font-weight: 800; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.ry-stat-card .stat-value { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.ry-stat-card .stat-sub { font-size: 12px; color: var(--ink-400); }
.ry-stat-card.blue .stat-value { color: var(--blue-600); }
.ry-stat-card.green .stat-value { color: var(--emerald-500); }
.ry-stat-card.plain .stat-value { font-size: 18px; color: var(--ink-900); font-weight: 700; }

/* Profile documents table */
.ry-table-wrap {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.ry-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ry-table thead tr { background: var(--ink-900); color: var(--white); }
.ry-table thead th { padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ry-table tbody tr { border-top: 1px solid var(--ink-100); }
.ry-table tbody tr:nth-child(even) { background: var(--ink-50); }
.ry-table tbody td { padding: 14px 20px; color: var(--ink-600); }
.ry-table tbody td:first-child { font-weight: 700; color: var(--ink-900); }
.ry-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.ry-badge.green { background: #F0FDF4; color: #166534; }
.ry-badge.blue  { background: var(--blue-50); color: #1E40AF; }
.ry-badge.red   { background: #FEF2F2; color: #991B1B; }
.ry-badge.gray  { background: var(--ink-100); color: var(--ink-500); }

/* ====== MIS DOCUMENTOS (/mis-documentos/) ====== */
.ry-docs-list { display: flex; flex-direction: column; gap: 10px; }
.ry-doc-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 14px; padding: 18px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ry-doc-row:hover { border-color: var(--blue-600); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.ry-doc-row-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--blue-50); display: flex; align-items: center; justify-content: center;
}
.ry-doc-row-icon svg { width: 20px; height: 20px; color: var(--blue-600); }
.ry-doc-row-info { flex: 1; min-width: 0; }
.ry-doc-row-info h3 { font-size: 15px; font-weight: 800; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-doc-row-info p { font-size: 13px; color: var(--ink-400); margin-top: 2px; }
.ry-doc-row-actions { flex-shrink: 0; }

/* Empty state */
.ry-empty {
  background: var(--white); border: 2px dashed var(--ink-200);
  border-radius: 18px; text-align: center; padding: 64px 24px;
}
.ry-empry-icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--ink-50);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--ink-300);
}
.ry-empry-icon svg { width: 28px; height: 28px; }
.ry-empty h3 { font-size: 18px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.ry-empty p { font-size: 14px; color: var(--ink-400); line-height: 1.6; max-width: 360px; margin: 0 auto 24px; }

/* ====== INLINE-FORM FIELDS (internal pages use Django widgets) ====== */
select.ry-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
textarea.ry-field { resize: vertical; min-height: 120px; }

/* ── .ry-input / .ry-textarea — same styles as .ry-field, for form templates ── */
.ry-input, .ry-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--ink-200); background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.ry-input:focus, .ry-textarea:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.ry-input::placeholder, .ry-textarea::placeholder { color: var(--ink-300); }
.ry-textarea { resize: vertical; min-height: 100px; }

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO DE GENERACIÓN DE DOCUMENTOS (/formulario/<tipo>/)
   ═══════════════════════════════════════════════════════════════ */

.ry-form-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.ry-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-400); margin-bottom: 20px;
}
.ry-breadcrumb a { color: var(--blue-600); font-weight: 600; }
.ry-breadcrumb a:hover { text-decoration: underline; }
.ry-breadcrumb span { color: var(--ink-300); }

/* Header oscuro con acento IA */
.ry-form-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  border-radius: 24px 24px 0 0;
  padding: 36px 36px 48px;
  color: var(--white);
}
.ry-form-header::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 60%);
  pointer-events: none;
}
.ry-form-header::after {
  content: ''; position: absolute; bottom: -60%; left: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 60%);
  pointer-events: none;
}
.ry-form-header-inner { position: relative; display: flex; gap: 20px; align-items: center; }
.ry-form-header-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ry-form-header-icon svg { width: 30px; height: 30px; color: var(--amber-500); }
.ry-form-header-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  color: var(--white); margin-bottom: 6px; letter-spacing: -0.02em;
}
.ry-form-header-text p { color: var(--ink-200); font-size: 14px; line-height: 1.5; }

/* Barra IA bajo el header */
.ry-ai-bar {
  position: relative; z-index: 1;
  margin: 0 36px; margin-top: -20px;
  background: var(--white); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 8px 20px rgba(15,23,42,0.08);
  display: flex; align-items: center; gap: 12px;
}
.ry-ai-bar-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #8B5CF6);
  box-shadow: 0 0 12px rgba(139,92,246,0.5);
  animation: ry-pulse-ai 1.5s ease-in-out infinite;
}
@keyframes ry-pulse-ai {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}
.ry-ai-bar-text { font-size: 13px; color: var(--ink-700); }
.ry-ai-bar-text strong { color: var(--ink-900); }

/* Cuerpo del formulario */
.ry-form-body {
  background: var(--white);
  border: 1px solid var(--ink-100); border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 32px 36px 36px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

/* Field wrapper dentro del formulario */
.ry-fld { margin-bottom: 22px; }
.ry-fld:last-of-type { margin-bottom: 0; }

.ry-field-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--ink-700);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em;
}
.ry-field-label-icon { color: var(--blue-600); flex-shrink: 0; }
.ry-field-label-req { color: var(--red-500); }
.ry-field-hint { font-size: 12px; color: var(--ink-400); margin-top: 6px; line-height: 1.5; }

/* Caja de features de la IA */
.ry-ai-features {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(139,92,246,0.04));
  border: 1px solid rgba(37,99,235,0.15); border-radius: 16px; padding: 18px 20px;
}
.ry-ai-features-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--blue-700); margin-bottom: 12px;
}
.ry-ai-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #8B5CF6);
  animation: ry-pulse-ai 2s ease-in-out infinite;
}
.ry-ai-features-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ry-ai-feature {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(37,99,235,0.2);
  font-size: 12px; font-weight: 700; color: var(--ink-700);
}
.ry-ai-feature svg { color: var(--emerald-500); flex-shrink: 0; }

/* Submit row */
.ry-form-submit {
  display: flex; gap: 12px; align-items: center;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink-100);
}
.ry-form-submit-btn {
  flex: 1; justify-content: center;
  background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
  color: var(--white); padding: 16px 24px;
  border: none; border-radius: 14px;
  font-weight: 800; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(37,99,235,0.45);
  transition: all 0.25s;
}
.ry-form-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(37,99,235,0.55);
}
.ry-form-submit-btn:disabled { opacity: 0.6; cursor: wait; }

/* Error box */
.ry-form-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #991B1B; padding: 14px 18px; border-radius: 12px;
  font-size: 14px; margin-top: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.ry-form-error.hidden { display: none; }

/* Loading state */
.ry-loading { display: none; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; }
.ry-loading.active { display: flex; flex-direction: column; }
.ry-loading-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.ry-loading-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #8B5CF6);
  animation: ry-loading-bounce 1.2s ease-in-out infinite;
}
.ry-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.ry-loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ry-loading-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 1; }
}
.ry-loading-text { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.ry-loading-sub { font-size: 13px; color: var(--ink-400); margin-top: 4px; }

@media (max-width: 600px) {
  .ry-form-header { padding: 28px 24px 40px; border-radius: 20px 20px 0 0; }
  .ry-form-header-inner { flex-direction: column; text-align: center; }
  .ry-ai-bar { margin: -16px 16px 0; }
  .ry-form-body { padding: 24px 20px; border-radius: 0 0 20px 20px; }
}

/* ════════════════════════════════════════════════════════════
   AJUSTES VISUALES v5 — formulario más claro y con más aire
   ════════════════════════════════════════════════════════════ */

/* Páginas internas — transparente, hereda fondo oscuro del body */
.ry-page { background: transparent; }

/* Header azul más claro y moderno */
.ry-form-header {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 8px 24px -8px rgba(37,99,235,0.3);
}
.ry-form-header-icon {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
}
.ry-form-header-icon svg { color: #FEF3C7; }

/* Campos con más aire y fondo muy suave */
.ry-fld { margin-bottom: 24px; }
.ry-field-label {
  color: var(--ink-800); text-transform: none;
  letter-spacing: 0; font-size: 14px; font-weight: 700;
}
.ry-input, .ry-textarea {
  background: #F8FAFC; border-color: #E2E8F0;
}
.ry-input:hover, .ry-textarea:hover { background: var(--white); }
.ry-input:focus, .ry-textarea:focus { background: var(--white); }
.ry-textarea { min-height: 120px; }

/* ═══ MODAL DE SESIÓN ═══════════════════════════════════════ */
.ry-sess-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
  animation: ry-fade-in 0.2s ease;
}
@keyframes ry-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ry-sess-box {
  background: var(--white); border-radius: 20px;
  padding: 32px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  animation: ry-slide-up 0.3s ease;
}
@keyframes ry-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ry-sess-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #FFFBEB; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.ry-sess-icon svg { width: 28px; height: 28px; }
.ry-sess-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 900; color: var(--ink-900); margin-bottom: 8px;
}
.ry-sess-box p { color: var(--ink-500); font-size: 14px; margin-bottom: 16px; }
.ry-sess-timer {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px; font-weight: 900; color: var(--ink-900);
  letter-spacing: -0.02em; margin-bottom: 12px;
  font-variant-numeric: tabular-nums; transition: color 0.3s;
}
.ry-sess-bar {
  height: 6px; background: var(--ink-100); border-radius: 999px;
  overflow: hidden; margin-bottom: 24px;
}
.ry-sess-bar-fill {
  height: 100%; background: linear-gradient(90deg, #F59E0B, #EF4444);
  border-radius: 999px; transition: width 1s linear;
}
.ry-sess-actions { display: flex; gap: 10px; }

/* ════════════════════════════════════════════════════════════
   PLANTILLAS DE MOTIVO/HECHOS (chips en formulario)
   ════════════════════════════════════════════════════════════ */
.ry-plantillas { margin-bottom: 10px; }
.ry-plantillas-label { font-size: 12px; color: var(--ink-400); margin-bottom: 8px; font-weight: 600; }
.ry-plantillas-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ry-plantilla-chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(37,99,235,0.2);
  font-size: 12px; font-weight: 600; color: var(--blue-700);
  transition: all 0.2s;
}
.ry-plantilla-chip:hover {
  background: var(--blue-600); color: var(--white);
  border-color: var(--blue-600); transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   PREVIEW DOCUMENTO (/documento/<id>/preview/)
   ════════════════════════════════════════════════════════════ */
.ry-preview-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Head */
.ry-preview-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.ry-preview-head-left { flex: 1; min-width: 0; }
.ry-preview-title {
  font-size: 32px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--ink-900) !important; margin-bottom: 8px; line-height: 1.15;
}
.ry-preview-lead {
  font-size: 15px; color: var(--ink-500); line-height: 1.6; margin: 0;
}

/* Meta pill */
.ry-preview-meta {
  display: flex; gap: 0; align-items: stretch;
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  flex-shrink: 0;
}
.ry-preview-meta-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 20px;
}
.ry-preview-meta-sep {
  width: 1px; background: var(--ink-100); margin: 10px 0;
}
.ry-preview-meta-label {
  font-size: 10px; color: var(--ink-400); text-transform: uppercase;
  font-weight: 700; letter-spacing: 0.06em;
}
.ry-preview-meta-value { font-size: 14px; font-weight: 800; color: var(--ink-900); }

/* Alert */
.ry-alert-warn {
  background: #FEF3C7; border: 1px solid #FCD34D; color: #92400E;
  padding: 14px 20px; border-radius: 12px; margin-bottom: 24px;
  font-size: 14px; line-height: 1.5;
}

/* Grid */
.ry-preview-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .ry-preview-grid { grid-template-columns: 1fr; } }

/* PDF panel */
.ry-preview-pdf {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}
.ry-preview-pdf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100);
}
.ry-preview-pdf-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--ink-900);
}
.ry-preview-pdf-title svg { color: var(--blue-600); flex-shrink: 0; }
.ry-preview-pdf-status {
  padding: 4px 10px; border-radius: 999px;
  background: #ECFDF5; color: #059669;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.ry-preview-pdf-frame { padding: 12px; background: #F1F5F9; min-height: 200px; }
.ry-pdf-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 24px;
  color: var(--ink-400); font-size: 13px; font-weight: 500;
}

/* Sidebar */
.ry-preview-sidebar {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 88px;
}
.ry-preview-card {
  background: var(--white); border: 1.5px solid var(--ink-100);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.ry-preview-card h3 { font-size: 15px; font-weight: 900; margin-bottom: 6px; color: var(--ink-900); }
.ry-preview-card p { color: var(--ink-500); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }

/* Card icon */
.ry-preview-card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.ry-preview-card-icon-green { background: #ECFDF5; color: #059669; }
.ry-preview-card-icon-amber { background: #FFFBEB; color: #D97706; }
.ry-preview-card-icon-red   { background: #FEF2F2; color: #DC2626; }

/* Card variants */
.ry-preview-card-main {
  border-color: #BBF7D0;
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
}
.ry-preview-card-main h3 { color: #065F46; }

.ry-preview-card-edit {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-color: #FCD34D;
}
.ry-preview-card-edit h3 { color: #92400E; }
.ry-preview-card-edit p { color: #B45309; }

.ry-preview-card-locked {
  background: linear-gradient(135deg, #FFF1F2, #FEE2E2);
  border-color: #FECACA;
}
.ry-preview-card-locked h3 { color: #991B1B; }
.ry-preview-card-locked p  { color: #B91C1C; }

.ry-preview-btn { width: 100%; justify-content: center; }

/* Edit button */
.ry-btn-edit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--white); border: none; cursor: pointer; transition: opacity 0.15s;
  text-decoration: none;
}
.ry-btn-edit:hover { opacity: 0.9; color: var(--white); }

/* Link row */
.ry-link-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; background: var(--ink-50);
  border-radius: 14px; border: 1px solid var(--ink-100);
}
.ry-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-500); transition: color 0.15s; font-weight: 500;
}
.ry-link:hover { color: var(--blue-600); }

/* ─── BOTÓN "MI CUENTA" — azul degradado ─────────────────────────────────── */
.ry-btn-primary-blue {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.ry-btn-primary-blue:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

/* ─── BOTÓN PELIGRO ────────────────────────────────────────────────────────── */
.ry-btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: #DC2626; color: var(--white); border: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.ry-btn-danger:hover {
  background: #B91C1C; color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ─── MODAL ELIMINAR ───────────────────────────────────────────────────────── */
@keyframes ry-modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ry-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.ry-modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.ry-modal-overlay.is-open .ry-modal-card {
  animation: ry-modal-in 0.22s cubic-bezier(0.34,1.56,0.64,1) both;
}

.ry-modal-card {
  background: var(--white); border-radius: 20px;
  padding: 36px 32px 28px; max-width: 440px; width: 100%;
  box-shadow: 0 24px 64px rgba(15,23,42,0.18), 0 4px 16px rgba(15,23,42,0.08);
  text-align: center;
}

.ry-modal-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: #FEE2E2; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.ry-modal-title {
  font-size: 19px; font-weight: 900; color: var(--ink-900);
  margin-bottom: 10px; line-height: 1.3;
}

.ry-modal-body {
  font-size: 14px; color: var(--ink-500); line-height: 1.65;
  margin-bottom: 28px;
}

.ry-modal-actions {
  display: flex; gap: 10px; justify-content: center;
}
.ry-modal-actions .ry-btn {
  flex: 1; justify-content: center; padding: 11px 20px;
}


/* ══════════════════════════════════════════════════════════════
   FASE 1 — MÓDULOS DE CATEGORÍA (home y /documentos/)
   ══════════════════════════════════════════════════════════════ */

/* ── Sección wrapper ───────────────────────────────────────────── */
/* Transparente: hereda fondo oscuro del body */
.ry-modules {
  padding: 80px 0;
  background: transparent;
  border-top: 1px solid var(--ry-line);
  border-bottom: 1px solid var(--ry-line);
}
@media (max-width: 768px) { .ry-modules { padding: 56px 0; } }

/* ── Grid 3 columnas → 1 en móvil ─────────────────────────────── */
.ry-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .ry-modules-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Card base ─────────────────────────────────────────────────── */
.ry-module-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: 16px;
  padding: 32px 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.ry-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.ry-module-card-icon {
  margin-bottom: 20px;
  line-height: 1;
}

.ry-module-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.ry-module-card p {
  font-size: 14px;
  color: var(--ink-400);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.ry-module-card-foot {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}

/* ── Variantes de color ────────────────────────────────────────── */
.ry-module-card.amber .ry-module-card-icon { color: var(--amber-500); }
.ry-module-card.amber:hover               { border-color: var(--amber-500); }
.ry-module-card.amber .ry-module-card-foot { color: var(--amber-600); }

.ry-module-card.green .ry-module-card-icon { color: var(--emerald-500); }
.ry-module-card.green:hover               { border-color: var(--emerald-500); }
.ry-module-card.green .ry-module-card-foot { color: #059669; }

.ry-module-card.blue .ry-module-card-icon { color: var(--blue-600); }
.ry-module-card.blue:hover               { border-color: var(--blue-600); }
.ry-module-card.blue .ry-module-card-foot { color: var(--blue-600); }


/* ── Grilla 3 categorías en /documentos/ ──────────────────────── */
/* ══ Tarjetas categorías /documentos/ — rediseño con color ══ */
.ry-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 640px) { .ry-cat-grid { grid-template-columns: 1fr; gap: 16px; } }

.ry-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-decoration: none;
  color: #111827;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.ry-cat-card:hover {
  transform: translateY(-6px);
}

/* Ícono emoji — contenedor heredado del template */
.ry-cat-card-icon {
  margin-bottom: 18px;
  line-height: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  display: block;
}
.ry-cat-card-icon span {
  display: block;
  transition: transform 0.3s ease;
}
.ry-cat-card:hover .ry-cat-card-icon span {
  transform: scale(1.12) rotate(-4deg);
}

/* Badge de categoría */
.ry-cat-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 16px;
  width: fit-content;
}

/* Etiqueta IA */
.ry-cat-card-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #6C5CE7;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

/* Título */
.ry-cat-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  transition: color .2s;
}

/* Descripción */
.ry-cat-card > p {
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Lista de ejemplos */
.ry-cat-card-examples {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.ry-cat-card-examples li {
  font-size: 13px;
  color: #374151;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ry-cat-card-examples li::before {
  content: '→';
  font-weight: 700;
  color: #6366f1;
  flex-shrink: 0;
}

/* Pie de tarjeta */
.ry-cat-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: auto;
}
.ry-cat-card-count {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.ry-cat-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.ry-cat-card:hover .ry-cat-card-cta { color: #3730a3; }

/* ── Variante orange — Tránsito y Movilidad (clase Python: orange) ── */
.ry-cat-card.orange {
  background: linear-gradient(145deg, #fff7ed 0%, #fee2e2 100%);
  border-color: #fdba74;
  box-shadow: 0 4px 24px rgba(249,115,22,0.12);
}
.ry-cat-card.orange:hover {
  border-color: #f97316;
  box-shadow: 0 20px 48px rgba(249,115,22,0.22);
}
.ry-cat-card.orange .ry-cat-card-cta { color: #c2410c; }
.ry-cat-card.orange:hover .ry-cat-card-cta { color: #9a3412; }
.ry-cat-card.orange .ry-cat-card-examples li::before { color: #f97316; }
.ry-cat-card.orange h3 { color: #7c2d12; }

/* ── Variante green — Salud (clase Python: green) ── */
.ry-cat-card.green {
  background: linear-gradient(145deg, #f0fdf4 0%, #d1fae5 100%);
  border-color: #6ee7b7;
  box-shadow: 0 4px 24px rgba(16,185,129,0.12);
}
.ry-cat-card.green:hover {
  border-color: #10b981;
  box-shadow: 0 20px 48px rgba(16,185,129,0.22);
}
.ry-cat-card.green .ry-cat-card-cta { color: #065f46; }
.ry-cat-card.green:hover .ry-cat-card-cta { color: #064e3b; }
.ry-cat-card.green .ry-cat-card-examples li::before { color: #10b981; }
.ry-cat-card.green h3 { color: #064e3b; }

/* ── Variante purple — Servicios Públicos (clase Python: purple) ── */
.ry-cat-card.purple {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  box-shadow: 0 4px 24px rgba(59,130,246,0.12);
}
.ry-cat-card.purple:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 48px rgba(59,130,246,0.22);
}
.ry-cat-card.purple .ry-cat-card-cta { color: #1d4ed8; }
.ry-cat-card.purple:hover .ry-cat-card-cta { color: #1e3a8a; }
.ry-cat-card.purple .ry-cat-card-examples li::before { color: #3b82f6; }
.ry-cat-card.purple h3 { color: #1e3a8a; }

/* ── Variante red — Laboral y Pensión (clase Python: red) ── */
.ry-cat-card.red {
  background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  box-shadow: 0 4px 24px rgba(220,38,38,0.12);
}
.ry-cat-card.red:hover {
  border-color: #dc2626;
  box-shadow: 0 20px 48px rgba(220,38,38,0.22);
}
.ry-cat-card.red .ry-cat-card-cta { color: #b91c1c; }
.ry-cat-card.red:hover .ry-cat-card-cta { color: #991b1b; }
.ry-cat-card.red .ry-cat-card-examples li::before { color: #dc2626; }
.ry-cat-card.red h3 { color: #7f1d1d; }

/* ── Variante gray — Otros Documentos (clase Python: gray) ── */
.ry-cat-card.gray {
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #d1d5db;
  box-shadow: 0 4px 24px rgba(107,114,128,0.12);
}
.ry-cat-card.gray:hover {
  border-color: #6b7280;
  box-shadow: 0 20px 48px rgba(107,114,128,0.22);
}
.ry-cat-card.gray .ry-cat-card-cta { color: #374151; }
.ry-cat-card.gray:hover .ry-cat-card-cta { color: #111827; }
.ry-cat-card.gray .ry-cat-card-examples li::before { color: #6b7280; }
.ry-cat-card.gray h3 { color: #111827; }

/* Conservar amber/blue/indigo por si hay otras páginas que los usen */
.ry-cat-card.amber { background:linear-gradient(145deg,#fff7ed,#fee2e2); border-color:#fdba74; box-shadow:0 4px 24px rgba(249,115,22,.12); }
.ry-cat-card.amber:hover { border-color:#f97316; box-shadow:0 20px 48px rgba(249,115,22,.22); }
.ry-cat-card.blue { background:linear-gradient(145deg,#f5f3ff,#ede9fe); border-color:#c4b5fd; box-shadow:0 4px 24px rgba(124,58,237,.12); }
.ry-cat-card.blue:hover { border-color:#7c3aed; box-shadow:0 20px 48px rgba(124,58,237,.22); }

/* Responsive móvil */
@media (max-width: 640px) {
  .ry-cat-card { padding: 24px 20px 20px; }
  .ry-cat-card h3 { font-size: 19px; }
}


/* ── Estado vacío en seleccion_categoria ────────────────────────── */
.ry-empry-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
}
.ry-empry-state-icon {
  color: var(--ink-300);
  margin: 0 auto 20px;
  width: fit-content;
}
.ry-empry-state h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-700);
  margin-bottom: 10px;
}
.ry-empry-state p {
  font-size: 15px;
  color: var(--ink-400);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.ry-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-400);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ry-breadcrumb a { color: var(--ink-400); text-decoration: none; }
.ry-breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }
.ry-breadcrumb span { color: var(--ink-700); font-weight: 600; }

/* ── Sección vehículo/comparendo en formulario ────────────────── */
.ry-section-block {
  margin-bottom: 24px;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.ry-section-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.ry-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .ry-grid-2 { grid-template-columns: 1fr; }
}

/* ── Widget consulta multas tránsito (Fase 5) ─────────────────────── */
.ry-multas-widget {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 36px;
}
.ry-multas-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.ry-multas-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #FDE68A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400E;
}
.ry-multas-title {
  font-size: 18px;
  font-weight: 800;
  color: #78350F;
  margin: 0 0 4px;
  line-height: 1.3;
}
.ry-multas-subtitle {
  font-size: 14px;
  color: #92400E;
  margin: 0;
}
.ry-multas-form-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ry-multas-tabs {
  display: flex;
  gap: 0;
  background: #FDE68A;
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.ry-multas-tab {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #92400E;
  transition: background 0.15s, color 0.15s;
}
.ry-multas-tab.active {
  background: #fff;
  color: #78350F;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.ry-multas-input {
  max-width: 320px;
  background: #fff;
  border-color: #FCD34D;
}
.ry-multas-input:focus {
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,.15);
}
.ry-multas-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #B45309;
  margin: 0;
}
.ry-multas-error {
  font-size: 13px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 380px;
}
.ry-multas-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #D97706;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: fit-content;
}
.ry-multas-btn:hover { background: #B45309; }
.ry-multas-btn:active { transform: scale(.98); }

/* ── Paso 2 — CTAs ─────────────────────────────────────────────────── */
.ry-multas-paso2 {
  border-top: 1.5px solid #FCD34D;
  margin-top: 24px;
  padding-top: 24px;
}
.ry-multas-paso2-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #78350F;
  margin: 0 0 16px;
}
.ry-multas-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.ry-multas-cta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.ry-multas-cta-card:hover {
  border-color: #D97706;
  box-shadow: 0 4px 16px rgba(217,119,6,.18);
  transform: translateY(-2px);
}
.ry-multas-cta-ico {
  font-size: 22px;
  line-height: 1;
}
.ry-multas-cta-card strong {
  font-size: 13px;
  font-weight: 700;
  color: #78350F;
  line-height: 1.3;
}
.ry-multas-cta-card span {
  font-size: 12px;
  color: #92400E;
  line-height: 1.4;
}
.ry-multas-reset {
  background: none;
  border: none;
  font-size: 13px;
  color: #B45309;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}
.ry-multas-reset:hover { text-decoration-color: #B45309; }

@media (max-width: 900px) {
  .ry-multas-cta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ry-multas-widget { padding: 20px 18px; }
  .ry-multas-cta-grid { grid-template-columns: 1fr; }
  .ry-multas-input { max-width: 100%; }
  .ry-multas-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   FASE 7 — Navbar dropdown + Category badges + Footer 4 columnas
   ══════════════════════════════════════════════════════════════════ */

/* ── Navbar dropdown (desktop) ──────────────────────────────────── */
.ry-nav-dropdown { position: relative; }

/* Dropdown del navbar — dark glass */
.ry-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #0c1929;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.55);
  border: 1px solid var(--ry-line-2);
  padding: 6px;
  min-width: 260px;
  display: none;
  z-index: 200;
}
.ry-nav-dropdown:hover .ry-nav-dropdown-menu { display: block; }
.ry-nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ry-t2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.ry-nav-dropdown-menu a:hover {
  background: var(--ry-glass-sm);
  color: var(--ry-t1);
}

/* ── Navbar dropdown (mobile) ───────────────────────────────────── */
@media (max-width: 768px) {
  .ry-nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: 0;
    padding: 0;
    margin: 0;
  }
  /* Botón dropdown mobile — texto claro */
  .ry-mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ry-t2);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
  }
  .ry-mobile-dropdown .ry-nav-dropdown-menu { display: none; }
  .ry-mobile-dropdown.open .ry-nav-dropdown-menu {
    display: block;
    padding-left: 16px;
  }
}

/* ── Category badges en mis-documentos ─────────────────────────── */
.ry-badge-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.ry-badge-cat.transito  { background: #FEF3C7; color: #B45309; }
.ry-badge-cat.salud     { background: #D1FAE5; color: #065F46; }
.ry-badge-cat.servicios { background: #DBEAFE; color: #1D4ED8; }

/* ── Footer 4 columnas ──────────────────────────────────────────── */
.ry-footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 900px) {
  .ry-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .ry-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FASE 8 — AI Helper card, FAQ modern, Search bar, Indigo transit
   ══════════════════════════════════════════════════════════════════ */

/* ── AI Helper card (/documentos/) ─────────────────────────────── */
.ry-ai-helper {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
  border-radius: 20px;
  padding: 40px 48px;
  margin-top: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ry-ai-helper-glow {
  position: absolute;
  top: -60px;
  right: 120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  pointer-events: none;
}
.ry-ai-helper-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.ry-ai-helper-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #A5B4FC;
  margin-bottom: 16px;
}
.ry-ai-helper-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #6366F1;
  border-radius: 50%;
  animation: ry-pulse 1.6s ease-in-out infinite;
}
@keyframes ry-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.75); }
}
.ry-ai-helper-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.ry-ai-helper-sub {
  font-size: 15px;
  color: #CBD5E1;
  margin: 0 0 20px;
  line-height: 1.6;
}
.ry-ai-helper-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.ry-ai-helper-features span {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 5px 14px;
  color: #E2E8F0;
}
.ry-ai-helper-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #6366F1;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.ry-ai-helper-cta:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.ry-ai-helper-robot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: ry-float 3.5s ease-in-out infinite;
}
@keyframes ry-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (max-width: 768px) {
  .ry-ai-helper { padding: 32px 24px; flex-direction: column; gap: 24px; }
  .ry-ai-helper-robot { display: none; }
  .ry-ai-helper-title { font-size: 21px; }
}

/* ── FAQ modern (<details>/<summary>) ──────────────────────────── */
.ry-faq-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ry-faq-item {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.ry-faq-item[open] {
  border-color: #6366F1;
}
.ry-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  user-select: none;
}
.ry-faq-q::-webkit-details-marker { display: none; }
.ry-faq-q::marker { display: none; }
.ry-faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #EEF2FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366F1;
}
.ry-faq-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: #9CA3AF;
  transition: transform 0.25s;
}
.ry-faq-item[open] .ry-faq-chevron {
  transform: rotate(180deg);
}
.ry-faq-a {
  padding: 0 22px 18px 72px;
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 600px) {
  .ry-faq-a { padding-left: 22px; }
}

/* ── Search bar (category listing pages) ────────────────────────── */
.ry-search-bar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ry-search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.ry-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}
.ry-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.ry-search-input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ry-search-input::placeholder { color: #9CA3AF; }
.ry-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.ry-search-clear:hover { color: #374151; }
.ry-search-counter {
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
}
.ry-search-empty {
  background: #F9FAFB;
  border: 1.5px dashed #E5E7EB;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  font-size: 14px;
  color: #6B7280;
  margin-top: 16px;
}
.ry-search-empty a {
  color: #6366F1;
  text-decoration: underline;
}

/* ── Indigo transit variants ────────────────────────────────────── */
.ry-cat-card.indigo .ry-cat-card-icon { color: #6366F1; }
.ry-cat-card.indigo:hover             { border-color: #6366F1; }
.ry-cat-card.indigo .ry-cat-card-cta  { color: #4F46E5; }

.ry-module-card.indigo .ry-module-card-icon { color: #6366F1; }
.ry-module-card.indigo:hover                { border-color: #6366F1; }
.ry-module-card.indigo .ry-module-card-foot { color: #4F46E5; }

.ry-doc-select.indigo .ry-doc-select-bar  { background: #6366F1; }
.ry-doc-select.indigo .ry-doc-select-icon { background: #EEF2FF; color: #4F46E5; }
.ry-doc-select.indigo .ry-doc-select-cta  { color: #4F46E5; }

/* Override amber transit badge to indigo */
.ry-badge-cat.transito { background: #EEF2FF; color: #4338CA; }

/* ── Widget consulta multas — override amber → indigo ───────────── */
.ry-multas-widget {
  background: linear-gradient(135deg, #F0F0FF 0%, #EEF2FF 100%);
  border-color: #C7D2FE;
}
.ry-multas-icon {
  background: #E0E7FF;
  color: #4338CA;
}
.ry-multas-title  { color: #312E81; }
.ry-multas-subtitle { color: #4338CA; }
.ry-multas-tabs   { background: #E0E7FF; }
.ry-multas-tab    { color: #4338CA; }
.ry-multas-tab.active { color: #312E81; }
.ry-multas-input  { border-color: #C7D2FE; }
.ry-multas-input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.ry-multas-privacy { color: #4F46E5; }
.ry-multas-btn {
  background: #4338CA;
}
.ry-multas-btn:hover  { background: #3730A3; }
.ry-multas-paso2      { border-top-color: #C7D2FE; }
.ry-multas-paso2-title { color: #312E81; }
.ry-multas-cta-card   { border-color: #E0E7FF; }
.ry-multas-cta-card:hover {
  border-color: #6366F1;
  box-shadow: 0 4px 16px rgba(99,102,241,.18);
}
.ry-multas-cta-card strong { color: #312E81; }
.ry-multas-cta-card span   { color: #4338CA; }
.ry-multas-reset           { color: #4F46E5; }
.ry-multas-reset:hover     { text-decoration-color: #4F46E5; }

/* ══════════════════════════════════════════════════════════════
   HERO MOCKUP CORREGIDO — fondo con vida + imagen grande
   ══════════════════════════════════════════════════════════════ */

.ry-hero-mockup {
  position: relative;
  min-height: calc(100vh - 68px);
  padding: 140px 0 100px;
  background:
    radial-gradient(circle at 1px 1px, rgba(37,99,235,0.06) 1px, transparent 0),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(16,185,129,0.08) 0%, transparent 70%),
    linear-gradient(170deg, #EFF6FF 0%, #F8FAFC 50%, #FFFFFF 100%);
  background-size:
    28px 28px,
    100% 100%,
    100% 100%,
    100% 100%;
  overflow: hidden;
}

#inicio.ry-hero-mockup {
  padding-top: 140px !important;
}

/* Orbe azul — arriba derecha */
.ry-hero-mockup::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Orbe verde — abajo izquierda */
.ry-hero-mockup::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ry-hero-mockup .ry-container {
  position: relative;
  z-index: 1;
}

/* Grid 55%/45%: texto más espacio que imagen */
.ry-hero-grid-mockup {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
}

/* ── Columna izquierda ─────────────────────────────────── */
.ry-hero-left-content {
  max-width: 580px;
}

.ry-badge-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 1.5px solid #6EE7B7;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #065F46;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}

.ry-badge-stats .badge-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.3);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.25); opacity:0.75; }
}

.ry-hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 20px;
}

.ry-hero-h1 .h1-line1,
.ry-hero-h1 .h1-line2 {
  display: block;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ry-hero-h1 .h1-line3 {
  display: block;
  margin-top: 6px;
}

.ry-hero-h1 .accent-5min {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ry-hero-h1 .accent-5min::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M0,4 Q75,0 150,4 T300,4' stroke='%23FF6B35' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.55;
}

.ry-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 32px;
}

.ry-hero-desc strong { color: #1E40AF; font-weight: 700; }

.ry-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.5);
  color: #fff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.9);
  color: #1E40AF;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid #CBD5E1;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}

.btn-hero-secondary:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  color: #1E40AF;
}

.ry-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(203,213,225,0.6);
}

.ry-hero-badges .badge-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.ry-hero-badges .badge-item svg { color: #10B981; flex-shrink:0; }

/* ── Columna derecha: Mockup GRANDE ───────────────────── */
.ry-hero-right-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: -20px;
}

.hero-mockup-img {
  width: 110%;
  max-width: 680px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 32px 64px rgba(15,23,42,0.18))
    drop-shadow(0 8px 24px rgba(37,99,235,0.12));
  animation: float-mockup 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float-mockup {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-10px) rotate(0.3deg); }
  66%      { transform: translateY(-5px) rotate(-0.2deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 968px) {
  .ry-hero-mockup {
    padding: 120px 0 70px;
    min-height: auto;
  }

  #inicio.ry-hero-mockup {
    padding-top: 120px !important;
  }

  .ry-hero-grid-mockup {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Texto primero, imagen abajo */
  .ry-hero-left-content  { order: 0; max-width: 100%; text-align: center; }
  .ry-hero-right-mockup  { order: 1; margin: 0 auto; width: 100%; max-width: 420px; }

  .hero-mockup-img       { width: 100%; max-width: 380px; margin: 0 auto; }
  .ry-badge-stats        { margin: 0 auto 24px; }
  .ry-hero-ctas          { justify-content: center; }
  .ry-hero-badges        { justify-content: center; }
}

@media (max-width: 640px) {
  .ry-hero-mockup {
    padding: 100px 0 56px;
  }

  #inicio.ry-hero-mockup {
    padding-top: 100px !important;
  }

  .ry-hero-h1   { font-size: clamp(30px, 9vw, 44px); }
  .ry-hero-desc { font-size: 16px; }

  .ry-hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 15px 24px;
    font-size: 15px;
  }

  .hero-mockup-img { max-width: 300px; }

  .ry-hero-mockup::before { width: 280px; height: 280px; top: -40px; right: -40px; }
  .ry-hero-mockup::after  { width: 200px; height: 200px; bottom: -30px; left: -30px; }

  .ry-hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIN HERO MOCKUP CORREGIDO
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   VISUALIZADOR IA — Hero derecho animado (sin imagen externa)
   ══════════════════════════════════════════════════════════════ */

/* Contenedor del visualizador */
.ry-ia-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Tarjeta principal: documento ──────────────────────────── */
.ry-ia-card-main {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 4px 6px rgba(15,23,42,0.04),
    0 20px 48px rgba(37,99,235,0.10),
    0 0 0 1px rgba(37,99,235,0.04);
  position: relative;
  z-index: 2;
  animation: float-card 7s ease-in-out infinite;
}

@keyframes float-card {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

/* Cabecera de la tarjeta */
.ry-ia-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.ry-ia-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ry-ia-card-tipo {
  font-size: 11px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ry-ia-card-sub {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 2px;
}

/* Punto de estado pulsante (IA activa) */
.ry-ia-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulse-ia 1.8s ease-in-out infinite;
}

@keyframes pulse-ia {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
  50%      { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(16,185,129,0.1); }
}

/* Líneas simulando texto del documento */
.ry-ia-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ry-ia-line {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Anchos de línea */
.w-full { width: 100%; }
.w-90   { width: 90%; }
.w-80   { width: 80%; }
.w-95   { width: 95%; }
.w-70   { width: 70%; }
.w-85   { width: 85%; }
.w-60   { width: 60%; }

/* Línea con color acento (IA escribiendo) */
.ry-ia-line--accent {
  background: linear-gradient(90deg,
    #DBEAFE 0%, #BFDBFE 50%, #DBEAFE 100%);
  background-size: 200% 100%;
}

/* Shimmer effect: simula que la IA está escribiendo */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Chips del footer de tarjeta */
.ry-ia-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ry-ia-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.ry-ia-chip--green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.ry-ia-chip--blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* ── Tarjetas flotantes ─────────────────────────────────────── */
.ry-ia-float {
  position: absolute;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  z-index: 3;
  white-space: nowrap;
}

/* Posiciones de cada tarjeta flotante */
.ry-ia-float--tl {
  top: -10px;
  left: -20px;
  animation: float-tl 6s ease-in-out infinite;
}

.ry-ia-float--br {
  bottom: 30px;
  right: -24px;
  animation: float-br 7s ease-in-out infinite;
  animation-delay: 0.5s;
}

.ry-ia-float--bl {
  bottom: -14px;
  left: 10px;
  animation: float-bl 5.5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float-tl {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(4px,-8px); }
}
@keyframes float-br {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-4px,-6px); }
}
@keyframes float-bl {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(2px,-7px); }
}

.ry-ia-float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ry-ia-float-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.ry-ia-float-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}

/* ── Orbe decorativo de fondo ───────────────────────────────── */
.ry-ia-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(37,99,235,0.07) 0%,
    rgba(16,185,129,0.04) 50%,
    transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: orb-pulse 8s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity:0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.12); opacity:1; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 968px) {
  .ry-ia-visual {
    max-width: 360px;
  }

  /* Las flotantes se reposicionan en tablet */
  .ry-ia-float--tl { left: 0; top: -8px; }
  .ry-ia-float--br { right: 0; }
  .ry-ia-float--bl { left: 0; }
}

@media (max-width: 640px) {
  /* En móvil las flotantes se ocultan para no desbordar */
  .ry-ia-float { display: none; }

  .ry-ia-visual {
    max-width: 300px;
    padding: 10px;
  }

  .ry-ia-card-main {
    padding: 18px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIN VISUALIZADOR IA
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   DISEÑO PREMIUM V2 — prefijo ryp-  (sin conflictos con base)
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ryp-blue:    #4F46E5;
  --ryp-violet:  #8B5CF6;
  --ryp-cyan:    #06B6D4;
  --ryp-gray-900:#111827;
  --ryp-gray-600:#4B5563;
  --ryp-gray-400:#9CA3AF;
  --ryp-green:   #10B981;
  --ryp-bg:      #FAFBFC;
}

/* ── Container ─────────────────────────────────────────────── */
.ryp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.ryp-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--ryp-bg);
  overflow: hidden;
}

/* Fondo animado */
.ryp-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 12% 28%, rgba(79,70,229,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 55% 55% at 88% 72%, rgba(139,92,246,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 100%);
  animation: ryp-mesh-anim 10s ease-in-out infinite;
}

@keyframes ryp-mesh-anim {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.75; transform: scale(1.04); }
}

/* Grid 55 / 45 */
.ryp-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .ryp-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* Texto PRIMERO, mockup DESPUÉS */
  .ryp-copy {
    order: 1;
    text-align: center;
  }
  .ryp-ctas     { justify-content: center; }
  .ryp-trust    { justify-content: center; }
  .ryp-phone-col {
    order: 2;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ── Columna izquierda ─────────────────────────────────────── */

/* Badge */
.ryp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 999px;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: ryp-badge-glow 2.5s ease-in-out infinite;
}

.ryp-badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ryp-dot 2.5s ease-in-out infinite;
}

@keyframes ryp-badge-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50%     { box-shadow: 0 0 0 5px rgba(16,185,129,0.07); }
}

@keyframes ryp-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.25); opacity: 0.65; }
}

/* H1 */
.ryp-h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-size: 58px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.028em !important;
  color: var(--ryp-gray-900) !important;
  margin: 0 0 28px !important;
}

.ryp-h1-line {
  display: block;
  animation: ryp-slide-up 0.75s cubic-bezier(0.16,1,0.3,1) backwards;
}

.ryp-h1-line:nth-child(1) { animation-delay: 0.05s; }
.ryp-h1-line:nth-child(2) { animation-delay: 0.18s; }

.ryp-h1-accent {
  display: block;
  background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 55%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ryp-slide-up 0.75s cubic-bezier(0.16,1,0.3,1) 0.3s backwards;
}

@keyframes ryp-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) { .ryp-h1 { font-size: 46px !important; } }
@media (max-width: 768px)  { .ryp-h1 { font-size: 34px !important; } }

/* Descripción */
.ryp-desc {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ryp-gray-600);
  margin: 0 0 36px;
  max-width: 520px;
  animation: ryp-fade 0.9s ease-out 0.45s backwards;
}

@keyframes ryp-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* CTAs */
.ryp-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: ryp-fade 0.9s ease-out 0.55s backwards;
}

.ryp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 18px rgba(79,70,229,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}

.ryp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79,70,229,0.40);
  color: #fff !important;
}

.ryp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  color: var(--ryp-gray-900) !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: 1.5px solid rgba(79,70,229,0.18);
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.ryp-btn-ghost:hover {
  background: #fff;
  border-color: rgba(79,70,229,0.35);
  transform: translateY(-2px);
  color: var(--ryp-gray-900) !important;
}

/* Trust */
.ryp-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  animation: ryp-fade 0.9s ease-out 0.65s backwards;
}

.ryp-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}

.ryp-trust-item svg {
  color: #10B981;
  flex-shrink: 0;
}

/* ── Columna derecha (phone) ───────────────────────────────── */

.ryp-phone-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px 72px;
  animation: ryp-fade 1s ease-out 0.75s backwards;
}

/* Cards flotantes */
.ryp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79,70,229,0.11);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}

.ryp-float--tl {
  top: 10px;
  left: -4px;
  animation: ryp-float-y 3.2s ease-in-out infinite;
}

.ryp-float--br {
  bottom: 100px;
  right: -8px;
  animation: ryp-float-y 3.2s ease-in-out 1.1s infinite;
}

.ryp-float--bl {
  bottom: 28px;
  left: 0px;
  animation: ryp-float-y 3.2s ease-in-out 2.2s infinite;
}

@keyframes ryp-float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .ryp-float   { display: none; }
  .ryp-phone-col { padding: 16px; }
}

.ryp-float-icon {
  width: 30px;
  height: 30px;
  background: #EEF2FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--ryp-blue);
}

.ryp-float-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.ryp-float-label {
  font-size: 10px;
  color: var(--ryp-gray-400);
  line-height: 1.3;
}

/* ── Phone frame (CSS puro, sin SVG overlay) ───────────────── */

.ryp-phone {
  position: relative;
  width: 220px;
  background: #1C2333;
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px #2D3748,
    0 0 0 4px #0F172A,
    0 36px 72px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 10;
  flex-shrink: 0;
}

/* Botones físicos — pseudo-elementos */
.ryp-phone::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 88px;
  width: 5px;
  height: 26px;
  background: #2D3748;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 38px 0 #2D3748, 0 -50px 0 #2D3748;
}

.ryp-phone::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 108px;
  width: 5px;
  height: 54px;
  background: #2D3748;
  border-radius: 0 3px 3px 0;
}

/* Top bar con notch */
.ryp-phone-topbar {
  height: 38px;
  background: #1C2333;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.ryp-phone-notch {
  width: 74px;
  height: 22px;
  background: #111827;
  border-radius: 0 0 14px 14px;
}

/* Pantalla */
.ryp-screen {
  background: linear-gradient(165deg, #F8FAFC 0%, #EEF2FF 100%);
  margin: 0 6px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 380px;
}

/* Status */
.ryp-screen-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16,185,129,0.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  align-self: center;
  margin-bottom: 2px;
}

.ryp-screen-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ryp-dot 2s ease-in-out infinite;
}

.ryp-screen-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.ryp-screen-sub {
  font-size: 10px;
  color: var(--ryp-gray-400);
  text-align: center;
}

/* Barra progreso */
.ryp-screen-progress {
  height: 5px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.ryp-screen-bar {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #8B5CF6, #06B6D4);
  border-radius: 999px;
  animation: ryp-bar 3.5s ease-in-out infinite;
}

@keyframes ryp-bar {
  0%   { width: 4%; }
  45%  { width: 68%; }
  90%  { width: 72%; }
  100% { width: 4%; }
}

.ryp-screen-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: #94A3B8;
}

/* Doc card */
.ryp-screen-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ryp-screen-doc-icon {
  width: 32px;
  height: 32px;
  background: #EEF2FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ryp-blue);
}

.ryp-screen-doc-info { flex: 1; min-width: 0; }

.ryp-screen-doc-name {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ryp-screen-doc-sub {
  font-size: 9px;
  color: var(--ryp-gray-400);
  margin-top: 1px;
}

.ryp-screen-doc-badge {
  font-size: 9px;
  font-weight: 700;
  color: #059669;
  background: rgba(16,185,129,0.10);
  padding: 3px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Líneas texto */
.ryp-screen-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ryp-screen-line {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  transform-origin: left;
  animation: ryp-line-in 0.5s ease-out backwards;
}

.ryp-screen-line:nth-child(1) { animation-delay: 0.1s; }
.ryp-screen-line:nth-child(2) { animation-delay: 0.2s; }
.ryp-screen-line:nth-child(3) { animation-delay: 0.3s; }

.ryp-screen-line--typing {
  background: linear-gradient(90deg, #4F46E5, #8B5CF6) !important;
  animation: ryp-typing 1.6s ease-in-out infinite !important;
}

@keyframes ryp-line-in {
  from { opacity: 0; transform: scaleX(0.3); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes ryp-typing {
  0%,100% { width: 32% !important; opacity: 0.4; }
  50%     { width: 74% !important; opacity: 1; }
}

/* Stats mini */
.ryp-screen-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
}

.ryp-screen-stat {
  text-align: center;
  padding: 7px 3px;
  background: rgba(255,255,255,0.75);
  border-radius: 7px;
  border: 1px solid rgba(79,70,229,0.09);
}

.ryp-screen-stat-n {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.ryp-screen-stat-l {
  font-size: 8px;
  color: var(--ryp-gray-400);
  font-weight: 500;
}

/* Bottom bar */
.ryp-phone-bottombar {
  height: 28px;
  background: #1C2333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ryp-phone-homeind {
  width: 54px;
  height: 4px;
  background: #4B5563;
  border-radius: 2px;
}

/* Orbe */
.ryp-orb {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(139,92,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: ryp-orb-pulse 8s ease-in-out infinite;
}

@keyframes ryp-orb-pulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.15); opacity: 0.45; }
}

/* ══════════════════════════════════════════════════════════════
   HERO PREMIUM LEGALTECH — CSS-only visual refresh
   Mantiene HTML, textos, CTAs y rutas existentes.
   ══════════════════════════════════════════════════════════════ */

.ryp-hero {
  min-height: min(920px, 94vh);
  padding: 148px 0 96px;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(79,70,229,.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(139,92,246,.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(14,165,233,.15) 0%, transparent 60%),
    linear-gradient(180deg, #07111d 0%, #080d1a 50%, #060c18 100%);
}

.ryp-hero::before,
.ryp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ryp-hero::before {
  opacity: .52;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25) 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25) 62%, transparent 100%);
}

.ryp-hero::after {
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.95) 0 1px, transparent 1.6px),
    radial-gradient(circle at 56% 22%, rgba(79,70,229,.22) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 62%, rgba(14,165,233,.2) 0 1px, transparent 1.8px),
    radial-gradient(circle at 32% 72%, rgba(124,58,237,.16) 0 1px, transparent 1.6px);
  background-size: 180px 180px, 240px 240px, 210px 210px, 260px 260px;
  opacity: .58;
}

.ryp-mesh {
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 34% at 18% 27%, rgba(37,99,235,.24) 0%, rgba(37,99,235,0) 72%),
    radial-gradient(ellipse 38% 34% at 50% 12%, rgba(99,102,241,.16) 0%, rgba(99,102,241,0) 70%),
    radial-gradient(ellipse 40% 38% at 84% 38%, rgba(139,92,246,.22) 0%, rgba(139,92,246,0) 72%),
    radial-gradient(ellipse 44% 34% at 58% 82%, rgba(14,165,233,.13) 0%, rgba(14,165,233,0) 75%);
  filter: blur(8px) saturate(1.08);
  animation: ryp-ambient-breathe 12s ease-in-out infinite;
}

.ryp-hero .ryp-container {
  position: relative;
  z-index: 1;
}

.ryp-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(44px, 7vw, 96px);
}

.ryp-copy {
  position: relative;
  max-width: 690px;
}

.ryp-copy::before {
  content: "";
  position: absolute;
  width: min(620px, 92vw);
  height: 260px;
  left: -72px;
  top: 54px;
  z-index: -1;
  background: radial-gradient(ellipse at 45% 45%, rgba(79,70,229,.18), rgba(14,165,233,.09) 42%, transparent 72%);
  filter: blur(42px);
  opacity: .9;
  animation: ryp-ambient-breathe 12s ease-in-out infinite;
}

.ryp-grid::before {
  content: "";
  position: absolute;
  width: min(720px, 72vw);
  height: 1px;
  left: 2%;
  top: 49%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.24), rgba(124,58,237,.14), transparent);
  transform: rotate(-8deg);
  filter: blur(.4px);
  opacity: .82;
}

.ryp-badge,
.ryp-h1-line,
.ryp-h1-accent,
.ryp-desc,
.ryp-ctas,
.ryp-trust,
.ryp-phone-col,
.ryp-screen-dot,
.ryp-screen-bar,
.ryp-screen-line,
.ryp-screen-line--typing,
.ryp-float,
.ryp-orb {
  animation: none !important;
}

.ryp-badge {
  padding: 8px 14px;
  margin-bottom: 26px;
  color: #c7d2fe;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(139,92,246,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 14px 44px rgba(79,70,229,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  animation: ryp-hero-enter .72s cubic-bezier(.16,1,.3,1) .04s forwards !important;
}

.ryp-badge-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.13), 0 0 22px rgba(16,185,129,.55);
}

.ryp-h1 {
  position: relative;
  max-width: 720px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(48px, 6vw, 80px) !important;
  font-weight: 900 !important;
  line-height: .92 !important;
  letter-spacing: -0.035em !important;
  color: #ffffff !important;
  margin-bottom: 28px !important;
  text-wrap: balance;
  opacity: 0;
  animation: ryp-hero-enter .82s cubic-bezier(.16,1,.3,1) .14s forwards !important;
}

.ryp-h1::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -14px;
  width: min(420px, 74%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29,78,216,0), rgba(29,78,216,.54), rgba(124,58,237,.42), rgba(8,145,178,0));
  box-shadow: 0 0 26px rgba(79,70,229,.24);
}

.ryp-h1-accent {
  width: fit-content;
  color: transparent;
  background:
    linear-gradient(110deg, #1d4ed8 0%, #4f46e5 28%, #7c3aed 48%, #0891b2 66%, #1d4ed8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 16px 34px rgba(79,70,229,.18));
  animation: ryp-title-sheen 5.6s ease-in-out infinite !important;
}

.ryp-h1-line {
  text-shadow: 0 1px 0 rgba(255,255,255,.06), 0 0 60px rgba(139,92,246,.18);
}

@media (min-width: 769px) {
  .ryp-h1-line,
  .ryp-h1-accent {
    white-space: nowrap;
  }
}

.ryp-desc {
  max-width: 590px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
  color: rgba(241,245,249,.78);
  margin-bottom: 34px;
  opacity: 0;
  animation: ryp-hero-enter .76s cubic-bezier(.16,1,.3,1) .28s forwards !important;
}

.ryp-desc strong {
  color: #f1f5f9;
  font-weight: 800;
}

.ryp-ctas {
  gap: 12px;
  margin-bottom: 34px;
  opacity: 0;
  animation: ryp-hero-enter .76s cubic-bezier(.16,1,.3,1) .38s forwards !important;
}

.ryp-btn-primary {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0)),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #6d28d9 100%);
  box-shadow:
    0 18px 38px rgba(29,78,216,.28),
    0 2px 0 rgba(255,255,255,.16) inset,
    0 0 0 1px rgba(255,255,255,.12) inset;
}

.ryp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px rgba(29,78,216,.34),
    0 2px 0 rgba(255,255,255,.18) inset,
    0 0 0 1px rgba(255,255,255,.12) inset;
}

.ryp-btn-ghost {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  color: rgba(241,245,249,.92) !important;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 14px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ryp-btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(139,92,246,.40);
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 18px 42px rgba(79,70,229,.22);
}

.ryp-trust {
  gap: 10px;
  opacity: 0;
  animation: ryp-hero-enter .76s cubic-bezier(.16,1,.3,1) .48s forwards !important;
}

.ryp-trust-item {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(241,245,249,.82);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ryp-trust-item svg {
  color: #059669;
}

.ryp-phone-col {
  min-height: 560px;
  padding: 58px 78px;
}

.ryp-phone-col::before,
.ryp-phone-col::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
}

.ryp-phone-col::before {
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at 50% 50%, rgba(79,70,229,.55), rgba(124,58,237,.30) 42%, rgba(14,165,233,.14) 62%, transparent 76%);
  filter: blur(22px);
  animation: ryp-ambient-breathe 12s ease-in-out infinite;
}

.ryp-phone-col::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(15,23,42,.12), transparent 66%);
  transform: translate(26px, 110px) scaleX(1.18);
  filter: blur(34px);
}

.ryp-phone {
  width: 244px;
  border-radius: 46px;
  background: linear-gradient(145deg, #020617, #1e293b 52%, #334155);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 0 4px #0f172a,
    0 34px 76px rgba(15,23,42,.34),
    0 0 72px rgba(79,70,229,.28);
  animation: ryp-phone-drift 7s ease-in-out infinite;
  will-change: transform;
}

.ryp-phone-topbar,
.ryp-phone-bottombar {
  background: transparent;
}

.ryp-phone-notch {
  background: #020617;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}

.ryp-screen {
  min-height: 398px;
  margin: 0 7px;
  padding: 16px 13px 13px;
  background:
    radial-gradient(circle at 22% 12%, rgba(37,99,235,.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(124,58,237,.13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 54%, #eef4ff 100%);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}

.ryp-screen-status {
  color: #075985;
  background: rgba(224,242,254,.88);
  border: 1px solid rgba(14,165,233,.18);
}

.ryp-screen-dot {
  background: #0ea5e9;
  box-shadow: 0 0 16px rgba(14,165,233,.48);
}

.ryp-screen-title {
  color: #0f172a;
}

.ryp-screen-sub,
.ryp-screen-progress-labels,
.ryp-screen-doc-sub,
.ryp-screen-stat-l,
.ryp-float-label {
  color: #64748b;
}

.ryp-screen-progress {
  height: 6px;
  background: #dbeafe;
}

.ryp-screen-bar {
  width: 65%;
  background: linear-gradient(90deg, #1d4ed8, #4f46e5 58%, #06b6d4);
  box-shadow: 0 0 18px rgba(79,70,229,.34);
}

.ryp-screen-doc,
.ryp-screen-stat {
  background: rgba(255,255,255,.84);
  border-color: rgba(148,163,184,.22);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ryp-screen-doc-icon {
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}

.ryp-screen-doc-badge {
  color: #047857;
  background: rgba(209,250,229,.72);
}

.ryp-screen-line {
  background: linear-gradient(90deg, #dbeafe, #e0e7ff);
}

.ryp-screen-line--typing {
  width: 72% !important;
  background: linear-gradient(90deg, #1d4ed8, #7c3aed) !important;
}

.ryp-screen-stat-n {
  color: #0f172a;
}

.ryp-float {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 18px 44px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ryp-float-icon {
  background: rgba(255,255,255,.12);
}

.ryp-float-title {
  color: #f1f5f9;
}

.ryp-float-label {
  color: rgba(241,245,249,.52);
}

.ryp-orb {
  inset: 30px;
  background: radial-gradient(ellipse at center, rgba(79,70,229,.58), rgba(139,92,246,.32) 35%, rgba(14,165,233,.20) 55%, transparent 74%);
  filter: blur(48px);
  opacity: 1;
}

/* Social proof row */
.ryp-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  opacity: 0;
  animation: ryp-hero-enter .76s cubic-bezier(.16,1,.3,1) .56s forwards !important;
}

.ryp-avatars {
  display: flex;
  align-items: center;
}

.ryp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(6,12,24,.80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
  position: relative;
  flex-shrink: 0;
}

.ryp-avatar:first-child { margin-left: 0; }
.ryp-avatar--a { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.ryp-avatar--b { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.ryp-avatar--c { background: linear-gradient(135deg, #10b981, #059669); }

.ryp-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ryp-rating-stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 15px;
  line-height: 1;
}

.ryp-rating-text {
  font-size: 12px;
  color: rgba(241,245,249,.55);
  white-space: nowrap;
}

/* Tech logos row */
.ryp-tech-logos {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  animation: ryp-hero-enter .76s cubic-bezier(.16,1,.3,1) .66s forwards !important;
}

.ryp-tech-logos-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(241,245,249,.35);
  margin-bottom: 14px;
}

.ryp-tech-items {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ryp-tech-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(241,245,249,.45);
  transition: color .2s ease;
}

.ryp-tech-item:hover {
  color: rgba(241,245,249,.82);
}

.ryp-tech-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes ryp-ambient-breathe {
  0%, 100% { opacity: .82; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.035); }
}

@keyframes ryp-phone-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  50%      { transform: translate3d(0, -10px, 0) rotate(1deg); }
}

@keyframes ryp-hero-enter {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(7px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes ryp-title-sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Ajuste exclusivo para laptops: reduce la escala vertical del Hero sin alterar
   la composición ni los breakpoints de tablet y móvil. */
@media (min-width: 1025px) and (max-width: 1600px) {
  .ryp-hero {
    min-height: min(820px, 88vh);
    padding: clamp(104px, 13vh, 124px) 0 clamp(56px, 8vh, 72px);
  }

  .ryp-grid {
    gap: clamp(36px, 4.5vw, 64px);
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  }

  .ryp-copy {
    max-width: 640px;
  }

  .ryp-badge {
    margin-bottom: 20px;
  }

  .ryp-h1 {
    max-width: 660px;
    font-size: clamp(46px, 4.6vw, 64px) !important;
    margin-bottom: 22px !important;
  }

  .ryp-h1::after {
    bottom: -10px;
    width: min(360px, 70%);
  }

  .ryp-desc {
    max-width: 540px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.58;
    margin-bottom: 26px;
  }

  .ryp-ctas {
    margin-bottom: 24px;
  }

  .ryp-btn-primary,
  .ryp-btn-ghost {
    min-height: 48px;
  }

  .ryp-social-proof {
    margin-top: 22px;
  }

  .ryp-tech-logos {
    margin-top: 28px;
    padding-top: 18px;
  }

  .ryp-phone-col {
    min-height: clamp(470px, 54vh, 520px);
    padding: clamp(38px, 4vw, 48px) clamp(54px, 5vw, 68px);
  }

  .ryp-phone-col::before {
    width: clamp(430px, 34vw, 490px);
    height: clamp(430px, 34vw, 490px);
  }

  .ryp-phone {
    width: clamp(224px, 15.5vw, 238px);
  }

  .ryp-screen {
    min-height: clamp(368px, 27vw, 388px);
  }

  .ryp-float {
    padding: 9px 12px;
  }

  .ryp-float--br {
    bottom: 88px;
  }
}

@media (max-width: 1024px) {
  .ryp-hero {
    min-height: auto;
    padding: 132px 0 76px;
  }

  .ryp-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .ryp-copy {
    margin: 0 auto;
  }

  .ryp-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ryp-phone-col {
    max-width: 420px;
    min-height: 500px;
    padding: 44px 56px;
  }
}

@media (max-width: 768px) {
  .ryp-hero {
    padding: 112px 0 62px;
  }

  .ryp-hero::before {
    background-size: 34px 34px;
  }

  .ryp-h1 {
    font-size: clamp(42px, 12vw, 62px) !important;
    letter-spacing: -0.03em !important;
  }

  .ryp-desc {
    font-size: 16px;
  }

  .ryp-ctas {
    align-items: stretch;
  }

  .ryp-btn-primary,
  .ryp-btn-ghost {
    width: 100%;
  }

  .ryp-trust {
    gap: 8px;
  }

  .ryp-trust-item {
    font-size: 12px;
  }

  .ryp-phone-col {
    min-height: 430px;
    max-width: 330px;
    padding: 18px 28px;
  }

  .ryp-phone-col::before {
    width: 360px;
    height: 360px;
  }

  .ryp-phone {
    width: 214px;
    border-radius: 40px;
  }

  .ryp-screen {
    min-height: 364px;
  }
}

/* ══════════════════════════════════════════════════════════════
   BANNER SOFÍA
   ══════════════════════════════════════════════════════════════ */

/* Sección Sofía V2 — transparente, hereda fondo oscuro del body */
.ryp-sofia-section {
  padding: 80px 0;
  background: transparent;
}

/* Tarjeta Sofía V2 — glass dark */
.ryp-sofia-card {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: center;
  padding: 48px 52px;
  background: var(--ry-glass-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ry-line-2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  position: relative;
  overflow: hidden;
}

.ryp-sofia-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.07) 0%, transparent 60%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .ryp-sofia-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
    text-align: center;
  }
  .ryp-sofia-tags { justify-content: center; }
}

.ryp-sofia-copy { position: relative; z-index: 1; }

.ryp-sofia-h2 {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: var(--ryp-gray-900) !important;
  margin: 16px 0 14px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 768px) { .ryp-sofia-h2 { font-size: 22px !important; } }

.ryp-sofia-desc {
  font-size: 15px;
  line-height: 1.68;
  color: #6B7280;
  margin: 0 0 22px;
}

.ryp-sofia-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ryp-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(79,70,229,0.06);
  color: #4F46E5;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(79,70,229,0.13);
}

.ryp-sofia-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #4F46E5, #8B5CF6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(79,70,229,0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ryp-sofia-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79,70,229,0.38);
}

/* Avatar */
.ryp-sofia-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ryp-avatar-wrap {
  position: relative;
  width: 176px;
  height: 176px;
}

/* Ring giratorio — display:block override para el svg global */
.ryp-avatar-ring {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  animation: ryp-ring 4s linear infinite;
}

@keyframes ryp-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ryp-avatar-inner {
  position: absolute;
  inset: 18px;
  background: linear-gradient(145deg, #EEF2FF, #F5F3FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79,70,229,0.12);
}

/* Burbujas */
.ryp-bubble {
  position: absolute;
  padding: 5px 11px;
  background: #fff;
  border: 1.5px solid rgba(79,70,229,0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #4F46E5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  white-space: nowrap;
}

.ryp-bubble-1 {
  top: 12px;
  right: -24px;
  animation: ryp-bubble-float 3s ease-in-out infinite;
}

.ryp-bubble-2 {
  bottom: 20px;
  left: -30px;
  animation: ryp-bubble-float 3s ease-in-out 1.5s infinite;
}

@keyframes ryp-bubble-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */

.ryp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.ryp-reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:       0.01ms !important;
  }
  .ryp-reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   FIN DISEÑO PREMIUM V2
   ══════════════════════════════════════════════════════════════ */

/* ── Chatbot toggle: mobile override (64×64) ───────────────────────────── */
@media (max-width: 768px) {
  #chat-toggle {
    width:  64px !important;
    height: 64px !important;
  }
  #chat-icon {
    font-size:   1.8rem  !important;
    line-height: 64px    !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   RYD — Sección Sofía Dark
   ══════════════════════════════════════════════════════════════ */

.ryd-sofia-dark {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1f3a 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.ryd-sofia-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(96,165,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ryd-sofia-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .ryd-sofia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .ryd-sofia-tags  { justify-content: center; }
  .ryd-sofia-visual { justify-content: center; }
}

.ryd-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 16px;
}

.ryd-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  animation: ryd-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ryd-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(0.8); }
}

.ryd-sofia-h2 {
  font-size: 30px;
  font-weight: 700;
  color: #F1F5F9;
  margin: 0 0 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) { .ryd-sofia-h2 { font-size: 22px; } }

.ryd-sofia-desc {
  font-size: 15px;
  line-height: 1.68;
  color: rgba(241,245,249,0.7);
  margin: 0 0 22px;
}

.ryd-sofia-desc strong { color: #93C5FD; }

.ryd-sofia-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ryd-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
}

.ryd-sofia-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ryd-sofia-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.5);
}

/* Avatar */
.ryd-sofia-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Robots flotantes Sofía (reemplaza anillo punteado y avatar inner) ── */
.ryd-robots-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Robot principal — grande, centro */
.ryd-robot--main {
  font-size: 110px;
  line-height: 1;
  filter: drop-shadow(0 8px 32px rgba(99,102,241,0.55))
          drop-shadow(0 2px 8px rgba(6,182,212,0.3));
  animation: ryd-float-main 3.5s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

/* Robot pequeño — arriba derecha */
.ryd-robot--tr {
  position: absolute;
  top: 0;
  right: -10px;
  font-size: 52px;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.5));
  animation: ryd-float-tr 4s ease-in-out infinite 0.8s;
  opacity: 0.88;
}

/* Robot mini — abajo izquierda */
.ryd-robot--bl {
  position: absolute;
  bottom: 0;
  left: -10px;
  font-size: 38px;
  filter: drop-shadow(0 4px 10px rgba(6,182,212,0.5));
  animation: ryd-float-bl 4.5s ease-in-out infinite 1.6s;
  opacity: 0.75;
}

/* Animaciones flotantes independientes con leve rotación */
@keyframes ryd-float-main {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
@keyframes ryd-float-tr {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50%       { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes ryd-float-bl {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

/* Responsive — móvil */
@media (max-width: 768px) {
  .ryd-robots-wrap { width: 160px; height: 160px; }
  .ryd-robot--main { font-size: 80px; }
  .ryd-robot--tr   { font-size: 38px; }
  .ryd-robot--bl   { font-size: 28px; }
}

/* ── FIN RYD Sofía Dark ───────────────────────────────────────────────────── */


/* ════════════════════════════════════════════════════════════════════════════
   TEMA PREMIUM GLOBAL
   Extiende el sistema visual del Hero (fondo oscuro, luces difusas, cristal)
   a todas las vistas del sitio.

   Propósito: garantizar coherencia visual completa y legibilidad WCAG AA.
   Impacto:   sobrescribe fondos, bordes y textos en modo claro heredados.
   Dependencia: variables --ry-* definidas en :root (bloque inicial del archivo).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Mensajes Django — paleta dark ─────────────────────────────────────────── */
/* Contraste garantizado sobre fondo #07111d */
.ry-msg-success { background: rgba(16,185,129,.10); color: #6ee7b7; border: 1px solid rgba(16,185,129,.25); }
.ry-msg-error   { background: rgba(239,68,68,.10);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.ry-msg-info    { background: rgba(37,99,235,.12);  color: #93c5fd; border: 1px solid rgba(37,99,235,.25); }

/* ── Etiquetas de sección (eyebrow, h2, lead) ──────────────────────────────── */
/* Impacto: secciones de home, landing pages, blog */
.ry-eyebrow { background: rgba(37,99,235,.14); color: #93c5fd; }
.ry-h2 { color: var(--ry-t1); }
.ry-lead { color: var(--ry-t2); }

/* ── Hero base (.ry-hero) — textos claros ──────────────────────────────────── */
/* Usado en páginas SEO y landings; .ryp-hero (inicio) ya tiene estilos propios */
.ry-hero-badge { background: var(--ry-glass-sm); border-color: var(--ry-line-2); color: var(--ry-t1); box-shadow: none; }
.ry-hero-title { color: var(--ry-t1); }
.ry-hero-subtitle { color: var(--ry-t2); }
.ry-hero-subtitle strong { color: var(--ry-t1); }
.ry-hero-trust { color: var(--ry-t2); }
.ry-hero-trust-item { color: var(--ry-t2); }

/* ── Tarjetas de documentos (home — .ry-doc-item) ──────────────────────────── */
.ry-doc-item {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ry-doc-item:hover { box-shadow: 0 24px 48px -16px rgba(79,70,229,.18); }
.ry-doc-item h3         { color: var(--ry-t1); }
.ry-doc-item-desc       { color: var(--ry-t2); }
.ry-doc-item-foot       { border-top: 1px solid var(--ry-line); }
.ry-doc-item-price      { color: var(--ry-t3); }

/* Color variants — iconos dark */
.doc-blue   .ry-doc-item-icon { background: rgba(37,99,235,.16); }
.doc-red    .ry-doc-item-icon { background: rgba(220,38,38,.16); }
.doc-green  .ry-doc-item-icon { background: rgba(16,185,129,.16); }
.doc-purple .ry-doc-item-icon { background: rgba(139,92,246,.16); }
.doc-amber  .ry-doc-item-icon { background: rgba(245,158,11,.16); }

/* Tags dark */
.tag-popular { background: rgba(245,158,11,.14); color: #fbbf24; }
.tag-hot     { background: rgba(220,38,38,.14);  color: #f87171; }
.tag-new     { background: rgba(16,185,129,.14); color: #6ee7b7; }

/* ── FAQ — glass dark ──────────────────────────────────────────────────────── */
/* Impacto: FAQ accordion (home) y FAQ con <details> (/documentos/) */
.ry-faq-item {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ry-faq-item:hover, .ry-faq-item[open] { border-color: rgba(79,70,229,.38); }
.ry-faq-q { color: var(--ry-t1); background: none; }
.ry-faq-a { color: var(--ry-t2); }
/* FAQ moderno (details/summary) */
.ry-faq-icon { background: rgba(99,102,241,.16); color: #a5b4fc; }
.ry-faq-chevron { color: var(--ry-t3); }

/* ── Tarjeta genérica .ry-card ─────────────────────────────────────────────── */
/* Dependencia: dashboard, perfil, mis-documentos */
.ry-card {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
}
.ry-card-head             { border-bottom: 1px solid var(--ry-line); }
.ry-card-head h2          { color: var(--ry-t1); }
.ry-card-head span        { color: var(--ry-t3); }

/* ── Selector de documentos (.ry-doc-select — /documentos/) ────────────────── */
.ry-doc-select {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ry-doc-select:hover { border-color: rgba(37,99,235,.45); box-shadow: 0 8px 24px rgba(37,99,235,.14); }
.ry-doc-select h3 { color: var(--ry-t1); }
.ry-doc-select p  { color: var(--ry-t2); }

/* Variantes de color del selector — dark */
.ry-doc-select.blue   .ry-doc-select-icon { background: rgba(37,99,235,.18); color: #93c5fd; }
.ry-doc-select.green                       { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.22); }
.ry-doc-select.green  .ry-doc-select-icon { background: rgba(16,185,129,.18); color: #6ee7b7; }
.ry-doc-select.green:hover                 { border-color: rgba(16,185,129,.45) !important; box-shadow: 0 8px 28px rgba(16,185,129,.14) !important; }
.ry-doc-select.purple                      { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.22); }
.ry-doc-select.purple .ry-doc-select-icon { background: rgba(124,58,237,.18); color: #c4b5fd; }
.ry-doc-select.purple:hover                { border-color: rgba(124,58,237,.45) !important; box-shadow: 0 8px 28px rgba(124,58,237,.14) !important; }
.ry-doc-select.orange                      { background: rgba(249,115,22,.07); border-color: rgba(249,115,22,.22); }
.ry-doc-select.orange .ry-doc-select-icon { background: rgba(249,115,22,.18); color: #fdba74; }
.ry-doc-select.orange:hover                { border-color: rgba(249,115,22,.45) !important; box-shadow: 0 8px 28px rgba(249,115,22,.14) !important; }
.ry-doc-select.amber  .ry-doc-select-icon { background: rgba(245,158,11,.18); color: #fcd34d; }
.ry-doc-select.cyan   .ry-doc-select-icon { background: rgba(6,182,212,.18); color: #67e8f9; }
.ry-doc-select.indigo .ry-doc-select-icon { background: rgba(99,102,241,.18); color: #a5b4fc; }

/* ── Card Sofía (/documentos/ sidebar) ────────────────────────────────────── */
.ry-sofia-card { background: rgba(15,23,42,.70); border: 1.5px solid var(--ry-line-2); }
.ry-sofia-card h3 { color: var(--ry-t1); }
.ry-sofia-card p  { color: var(--ry-t2); }

/* ── WA help strip ─────────────────────────────────────────────────────────── */
.ry-wa-strip {
  background: rgba(37,99,235,.10);
  border: 1.5px solid rgba(37,99,235,.22);
}
.ry-wa-strip-text strong { color: var(--ry-t1); display: block; }
.ry-wa-strip-text span   { color: var(--ry-t2); }

/* ── Horarios de atención ─────────────────────────────────────────────────── */
.ry-schedule-row           { border-bottom: 1px solid var(--ry-line); color: var(--ry-t2); }
.ry-schedule-row span:last-child      { color: var(--ry-t1); }
.ry-schedule-row.closed span:last-child { color: var(--ry-t3); font-weight: 400; }

/* ── Estadísticas del perfil ──────────────────────────────────────────────── */
/* Dependencia: /cuenta/perfil/ — columna derecha */
.ry-stat-card {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
}
.ry-stat-card .stat-label { color: var(--ry-t3); }
.ry-stat-card .stat-sub   { color: var(--ry-t3); }
.ry-stat-card.plain .stat-value { color: var(--ry-t1); }

/* ── Tablas ───────────────────────────────────────────────────────────────── */
/* Dependencia: perfil, admin, mis-documentos */
.ry-table-wrap {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
}
.ry-table tbody tr                     { border-top: 1px solid var(--ry-line); }
.ry-table tbody tr:nth-child(even)     { background: var(--ry-glass-xs); }
.ry-table tbody td                     { color: var(--ry-t2); }
.ry-table tbody td:first-child         { color: var(--ry-t1); }

/* Badges de estado — dark */
.ry-badge.green { background: rgba(16,185,129,.12); color: #6ee7b7; }
.ry-badge.blue  { background: rgba(37,99,235,.12);  color: #93c5fd; }
.ry-badge.red   { background: rgba(239,68,68,.12);  color: #fca5a5; }
.ry-badge.gray  { background: var(--ry-glass-sm);   color: var(--ry-t2); }

/* Badges de categoría en mis-documentos */
.ry-badge-cat.transito  { background: rgba(99,102,241,.14); color: #a5b4fc; }
.ry-badge-cat.salud     { background: rgba(16,185,129,.14); color: #6ee7b7; }
.ry-badge-cat.servicios { background: rgba(37,99,235,.14);  color: #93c5fd; }

/* ── Lista de documentos (mis-documentos) ─────────────────────────────────── */
.ry-doc-row {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
}
.ry-doc-row:hover { border-color: rgba(37,99,235,.38); box-shadow: 0 4px 16px rgba(37,99,235,.10); }
.ry-doc-row-icon              { background: rgba(37,99,235,.15); }
.ry-doc-row-icon svg          { color: #93c5fd; }
.ry-doc-row-info h3           { color: var(--ry-t1); }
.ry-doc-row-info p            { color: var(--ry-t3); }

/* Empty state */
.ry-empty      { background: var(--ry-glass-xs); border: 2px dashed var(--ry-line-2); }
.ry-empty h3   { color: var(--ry-t1); }
.ry-empty p    { color: var(--ry-t2); }
.ry-empry-icon { background: var(--ry-glass-sm); color: var(--ry-t3); }

/* ── Formularios — dark glass ─────────────────────────────────────────────── */
/* Dependencia: login, registro, recuperar, contacto, perfil */
.ry-form-card {
  background: var(--ry-glass-sm);
  border: 1px solid var(--ry-line);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
/* Campos de texto — fondo oscuro, texto claro */
.ry-field,
.ry-input,
.ry-textarea {
  background: rgba(255,255,255,.06);
  border-color: var(--ry-line-2);
  color: var(--ry-t1);
}
.ry-field:hover, .ry-input:hover, .ry-textarea:hover {
  background: rgba(255,255,255,.09);
}
.ry-field:focus, .ry-input:focus, .ry-textarea:focus {
  background: rgba(255,255,255,.09);
  border-color: rgba(79,70,229,.55);
  box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}
.ry-field::placeholder, .ry-input::placeholder, .ry-textarea::placeholder { color: var(--ry-t4); }
/* Flecha del select — color claro para fondo oscuro */
select.ry-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23CBD5E1' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.ry-label       { color: var(--ry-t2); }
.ry-field-label { color: var(--ry-t2); }
.ry-field-hint  { color: var(--ry-t3); }

/* Chips de plantillas */
.ry-plantillas-label { color: var(--ry-t3); }
.ry-plantilla-chip {
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.22);
  color: #93c5fd;
}
.ry-plantilla-chip:hover { background: var(--blue-600); color: var(--ry-t1); border-color: var(--blue-600); }

/* ── Cuerpo del formulario de generación (/formulario/<tipo>/) ─────────────── */
.ry-form-body {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ry-line);
  border-top: none;
}
.ry-ai-bar {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.ry-ai-bar-text        { color: var(--ry-t2); }
.ry-ai-bar-text strong { color: var(--ry-t1); }
.ry-ai-features {
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.18);
}
.ry-ai-features-title  { color: #93c5fd; }
.ry-ai-feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--ry-t2);
}
.ry-form-submit   { border-top: 1px solid var(--ry-line); }
.ry-loading-text  { color: var(--ry-t1); }
.ry-loading-sub   { color: var(--ry-t3); }

/* Bloques de sección en formulario */
.ry-section-block      { background: rgba(255,255,255,.05); border: 1px solid var(--ry-line); }
.ry-section-block h3   { color: var(--ry-t1); }

/* Breadcrumb */
.ry-breadcrumb         { color: var(--ry-t3); }
.ry-breadcrumb a       { color: var(--ry-t3); }
.ry-breadcrumb a:hover { color: #93c5fd; text-decoration: underline; }
.ry-breadcrumb span    { color: var(--ry-t2); }

/* ── Preview de documento ─────────────────────────────────────────────────── */
/* Dependencia: /documentos/<id>/preview/ */
.ry-preview-title        { color: var(--ry-t1) !important; }
.ry-preview-lead         { color: var(--ry-t2); }
.ry-preview-meta         { background: var(--ry-glass-sm); border: 1.5px solid var(--ry-line); }
.ry-preview-meta-sep     { background: var(--ry-line); }
.ry-preview-meta-label   { color: var(--ry-t3); }
.ry-preview-meta-value   { color: var(--ry-t1); }
.ry-preview-pdf          { background: var(--ry-glass-sm); border: 1.5px solid var(--ry-line); }
.ry-preview-pdf-head     { background: rgba(255,255,255,.04); border-bottom: 1px solid var(--ry-line); }
.ry-preview-pdf-title    { color: var(--ry-t1); }
.ry-preview-pdf-frame    { background: rgba(255,255,255,.03); }
.ry-pdf-loading          { color: var(--ry-t3); }
.ry-preview-card         { background: var(--ry-glass-sm); border: 1.5px solid var(--ry-line); }
.ry-preview-card h3      { color: var(--ry-t1); }
.ry-preview-card p       { color: var(--ry-t2); }
.ry-link-row             { background: rgba(255,255,255,.04); border: 1px solid var(--ry-line); }
.ry-link                 { color: var(--ry-t2); }
.ry-link:hover           { color: #93c5fd; }

/* Variantes de tarjeta preview — dark */
.ry-preview-card-main    { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.22); }
.ry-preview-card-main h3 { color: #6ee7b7; }
.ry-preview-card-main p  { color: rgba(110,231,183,.80); }
.ry-preview-card-edit    { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.22); }
.ry-preview-card-edit h3 { color: #fcd34d; }
.ry-preview-card-edit p  { color: rgba(252,211,77,.80); }
.ry-preview-card-locked  { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.22); }
.ry-preview-card-locked h3 { color: #fca5a5; }
.ry-preview-card-locked p  { color: rgba(252,165,165,.80); }

/* ── Alerta de advertencia ────────────────────────────────────────────────── */
.ry-alert-warn {
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.25);
  color: #fcd34d;
}

/* ── Módulos categoría (.ry-module-card) ──────────────────────────────────── */
/* Dependencia: home, /documentos/ */
.ry-module-card {
  background: var(--ry-glass-sm);
  border: 1.5px solid var(--ry-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ry-t1);
}
.ry-module-card:hover    { box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.ry-module-card h3       { color: var(--ry-t1); }
.ry-module-card p        { color: var(--ry-t2); }
.ry-module-card-foot     { border-top: 1px solid var(--ry-line); }
.ry-module-card.amber:hover { border-color: rgba(245,158,11,.40); }
.ry-module-card.green:hover { border-color: rgba(16,185,129,.40); }
.ry-module-card.blue:hover  { border-color: rgba(37,99,235,.40); }
.ry-module-card.indigo:hover { border-color: rgba(99,102,241,.40); }

/* ── Tarjetas de categoría (.ry-cat-card) ─────────────────────────────────── */
/* Dependencia: /documentos/<cat>/ — conserva acento de color por categoría */
.ry-cat-card             { color: var(--ry-t1); }
.ry-cat-card > p         { color: var(--ry-t2); }
.ry-cat-card-examples li { color: var(--ry-t2); border-bottom-color: var(--ry-line); }
.ry-cat-card-count       { color: var(--ry-t3); }
.ry-cat-card-foot        { border-top-color: var(--ry-line); }
.ry-cat-card-ai-tag      { background: rgba(108,92,231,.14); border-color: rgba(108,92,231,.28); color: #c4b5fd; }

/* Variantes por categoría — paleta dark con acento de color */
.ry-cat-card.orange  { background: linear-gradient(145deg, rgba(249,115,22,.14) 0%, rgba(249,115,22,.08) 100%); border-color: rgba(249,115,22,.30); }
.ry-cat-card.orange:hover { border-color: rgba(249,115,22,.52); box-shadow: 0 20px 48px rgba(249,115,22,.14); }
.ry-cat-card.orange h3 { color: #fdba74; }
.ry-cat-card.orange .ry-cat-card-cta { color: #fb923c; }
.ry-cat-card.orange:hover .ry-cat-card-cta { color: #fdba74; }
.ry-cat-card.orange .ry-cat-card-examples li::before { color: #fb923c; }

.ry-cat-card.green   { background: linear-gradient(145deg, rgba(16,185,129,.12) 0%, rgba(16,185,129,.07) 100%); border-color: rgba(16,185,129,.28); }
.ry-cat-card.green:hover  { border-color: rgba(16,185,129,.52); box-shadow: 0 20px 48px rgba(16,185,129,.14); }
.ry-cat-card.green h3 { color: #6ee7b7; }
.ry-cat-card.green .ry-cat-card-cta { color: #34d399; }
.ry-cat-card.green:hover .ry-cat-card-cta { color: #6ee7b7; }
.ry-cat-card.green .ry-cat-card-examples li::before { color: #34d399; }

.ry-cat-card.purple  { background: linear-gradient(145deg, rgba(59,130,246,.12) 0%, rgba(59,130,246,.07) 100%); border-color: rgba(59,130,246,.28); }
.ry-cat-card.purple:hover { border-color: rgba(59,130,246,.52); box-shadow: 0 20px 48px rgba(59,130,246,.14); }
.ry-cat-card.purple h3 { color: #93c5fd; }
.ry-cat-card.purple .ry-cat-card-cta { color: #60a5fa; }
.ry-cat-card.purple:hover .ry-cat-card-cta { color: #93c5fd; }
.ry-cat-card.purple .ry-cat-card-examples li::before { color: #60a5fa; }

.ry-cat-card.red     { background: linear-gradient(145deg, rgba(220,38,38,.12) 0%, rgba(220,38,38,.07) 100%); border-color: rgba(220,38,38,.28); }
.ry-cat-card.red:hover    { border-color: rgba(220,38,38,.52); box-shadow: 0 20px 48px rgba(220,38,38,.14); }
.ry-cat-card.red h3 { color: #fca5a5; }
.ry-cat-card.red .ry-cat-card-cta { color: #f87171; }
.ry-cat-card.red:hover .ry-cat-card-cta { color: #fca5a5; }
.ry-cat-card.red .ry-cat-card-examples li::before { color: #f87171; }

.ry-cat-card.gray    { background: linear-gradient(145deg, rgba(107,114,128,.12) 0%, rgba(107,114,128,.07) 100%); border-color: rgba(107,114,128,.28); }
.ry-cat-card.gray:hover   { border-color: rgba(107,114,128,.50); box-shadow: 0 20px 48px rgba(107,114,128,.14); }
.ry-cat-card.gray h3 { color: var(--ry-t1); }
.ry-cat-card.gray .ry-cat-card-cta { color: var(--ry-t2); }
.ry-cat-card.gray .ry-cat-card-examples li::before { color: var(--ry-t2); }

.ry-cat-card.amber   { background: linear-gradient(145deg, rgba(245,158,11,.12) 0%, rgba(245,158,11,.07) 100%); border-color: rgba(245,158,11,.28); }
.ry-cat-card.amber:hover  { border-color: rgba(245,158,11,.52); box-shadow: 0 20px 48px rgba(245,158,11,.14); }
.ry-cat-card.blue    { background: linear-gradient(145deg, rgba(124,58,237,.12) 0%, rgba(124,58,237,.07) 100%); border-color: rgba(124,58,237,.28); }
.ry-cat-card.blue:hover   { border-color: rgba(124,58,237,.52); box-shadow: 0 20px 48px rgba(124,58,237,.14); }

/* Estado vacío */
.ry-empry-state h3    { color: var(--ry-t1); }
.ry-empry-state p     { color: var(--ry-t2); }
.ry-empry-state-icon  { color: var(--ry-t3); }

/* ── Barra de búsqueda ─────────────────────────────────────────────────────── */
/* Dependencia: /documentos/<cat>/ filtro de documentos */
.ry-search-input {
  background: rgba(255,255,255,.06);
  border: 1.5px solid var(--ry-line-2);
  color: var(--ry-t1);
}
.ry-search-input:focus { border-color: rgba(99,102,241,.55); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.ry-search-input::placeholder { color: var(--ry-t4); }
.ry-search-icon   { color: var(--ry-t3); }
.ry-search-clear:hover { color: var(--ry-t1); }
.ry-search-counter { color: var(--ry-t3); }
.ry-search-empty {
  background: var(--ry-glass-xs);
  border: 1.5px dashed var(--ry-line-2);
  color: var(--ry-t2);
}
.ry-search-empty a { color: #a5b4fc; }

/* ── Widget de multas (tránsito) — dark indigo ────────────────────────────── */
/* Dependencia: sobrescribe la paleta indigo del widget (líneas 2323-2357) */
.ry-multas-widget {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(79,70,229,.07) 100%);
  border: 1.5px solid rgba(99,102,241,.28);
}
.ry-multas-icon      { background: rgba(99,102,241,.18); color: #a5b4fc; }
.ry-multas-title     { color: #c7d2fe; }
.ry-multas-subtitle  { color: rgba(199,210,254,.75); }
.ry-multas-tabs      { background: rgba(99,102,241,.18); }
.ry-multas-tab       { color: #a5b4fc; }
.ry-multas-tab.active { background: rgba(255,255,255,.12); color: var(--ry-t1); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ry-multas-input     { background: rgba(255,255,255,.06); border-color: rgba(99,102,241,.35); color: var(--ry-t1); }
.ry-multas-input:focus { border-color: rgba(99,102,241,.65); box-shadow: 0 0 0 3px rgba(99,102,241,.15); background: rgba(255,255,255,.09); }
.ry-multas-privacy   { color: rgba(165,180,252,.65); }
.ry-multas-paso2     { border-top-color: rgba(99,102,241,.28); }
.ry-multas-paso2-title { color: #c7d2fe; }
.ry-multas-cta-card  { background: var(--ry-glass-sm); border-color: rgba(99,102,241,.22); }
.ry-multas-cta-card:hover { border-color: rgba(99,102,241,.52); box-shadow: 0 4px 16px rgba(99,102,241,.18); }
.ry-multas-cta-card strong { color: #c7d2fe; }
.ry-multas-cta-card span   { color: rgba(199,210,254,.75); }
.ry-multas-reset     { color: rgba(165,180,252,.65); }
.ry-multas-reset:hover { text-decoration-color: rgba(165,180,252,.65); }

/* ── Modal de eliminación ─────────────────────────────────────────────────── */
/* Dependencia: mis-documentos — confirmación al eliminar */
.ry-modal-card {
  background: #0d1b2e;
  border: 1px solid var(--ry-line-2);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.ry-modal-title  { color: var(--ry-t1); }
.ry-modal-body   { color: var(--ry-t2); }
.ry-modal-icon   { background: rgba(239,68,68,.12); }

/* ── Modal de sesión ──────────────────────────────────────────────────────── */
/* Dependencia: session-timeout.js — advertencia de expiración */
.ry-sess-box {
  background: #0d1b2e;
  border: 1px solid var(--ry-line-2);
}
.ry-sess-box h3  { color: var(--ry-t1); }
.ry-sess-box p   { color: var(--ry-t2); }
.ry-sess-timer   { color: var(--ry-t1); }
.ry-sess-bar     { background: rgba(255,255,255,.10); }
.ry-sess-icon    { background: rgba(245,158,11,.12); }

/* ── Error de formulario ──────────────────────────────────────────────────── */
.ry-form-error {
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}

/* ── Botón de edición ─────────────────────────────────────────────────────── */
/* Color no cambia (amber ya es visible en dark) */
.ry-btn-edit { color: var(--white); }
.ry-btn-edit:hover { color: var(--white); }

/* ── Visualizador IA (versión antigua — posiblemente usada en SEO pages) ───── */
/* Adaptado para fondo oscuro */
.ry-ia-card-main {
  background: rgba(255,255,255,.08);
  border: 1.5px solid var(--ry-line-2);
  box-shadow: 0 4px 6px rgba(0,0,0,.12), 0 20px 48px rgba(37,99,235,.12);
}
.ry-ia-card-tipo   { color: #93c5fd; }
.ry-ia-card-sub    { color: var(--ry-t3); }
.ry-ia-card-header { border-bottom: 1px solid var(--ry-line); }
.ry-ia-card-icon   { background: rgba(37,99,235,.18); color: #93c5fd; }
.ry-ia-line { background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.08) 100%); }
.ry-ia-line--accent { background: linear-gradient(90deg, rgba(37,99,235,.20) 0%, rgba(59,130,246,.30) 50%, rgba(37,99,235,.20) 100%); }
.ry-ia-chip--green { background: rgba(16,185,129,.14); color: #6ee7b7; border-color: rgba(16,185,129,.25); }
.ry-ia-chip--blue  { background: rgba(37,99,235,.14); color: #93c5fd; border-color: rgba(37,99,235,.25); }
.ry-ia-float { background: rgba(255,255,255,.08); border: 1px solid var(--ry-line-2); box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ry-ia-float-title { color: var(--ry-t1); }
.ry-ia-float-sub   { color: var(--ry-t3); }

/* ── Hero mockup antiguo (posiblemente en SEO pages) ──────────────────────── */
/* Fondo transparente para heredar dark del body */
.ry-hero-mockup {
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(37,99,235,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(16,185,129,.06) 0%, transparent 70%),
    transparent;
}
.ry-hero-h1             { color: var(--ry-t1); }
.ry-hero-h1 .h1-line1,
.ry-hero-h1 .h1-line2   { background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%); -webkit-background-clip: text; background-clip: text; }
.ry-hero-desc           { color: var(--ry-t2); }
.ry-hero-desc strong    { color: #93c5fd; }
.ry-hero-badges         { border-top-color: var(--ry-line); }
.ry-hero-badges .badge-item { color: var(--ry-t2); }
.ry-badge-stats { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.28); color: #6ee7b7; box-shadow: none; }
.btn-hero-secondary {
  background: var(--ry-glass-sm);
  color: #93c5fd;
  border: 2px solid var(--ry-line-2);
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover { border-color: rgba(37,99,235,.45); background: var(--ry-glass-md); color: #93c5fd; }

/* ── Botones del footer del navbar (logout inline) ─────────────────────────── */
/* El botón de "Salir" usa inline style color:#EF4444 — ya es visible en dark */

/* ── Footer — ajuste menor sobre fondo ya oscuro (#050B18) ────────────────── */
.ry-footer-bottom { border-top-color: var(--ry-line); }

/* ── Sofía Banner V2 — textos sobre card glass ────────────────────────────── */
/* La .ryp-sofia-card ya fue adaptada en su definición principal */
.ryp-sofia-card::before {
  background: radial-gradient(ellipse at 80% 50%, rgba(139,92,246,.10) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN TEMA PREMIUM GLOBAL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG — Sistema visual premium coherente con el Hero
   Objetivo: flujo ininterrumpido Hero → Filtros → Listado → CTA.
   Elimina cortes de color (franja blanca, CTA azul plano, tarjetas blancas).
   Todas las clases son prefijadas .ry-blog-* para no colisionar con el DS.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero extendido + filtros integrados ──────────────────────────────────── */
/* El hero abarca la cabecera y los filtros en un solo bloque oscuro con
   gradientes radiales. Padding-bottom=0 para que los filtros queden pegados
   al borde; el listado toma el relevo visualmente sin corte. */
.ry-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 0;                 /* 68px navbar + 24px respiro */
  background:
    radial-gradient(ellipse 70% 55% at 10% 30%, rgba(79,70,229,.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(139,92,246,.10) 0%, transparent 62%),
    var(--ry-bg-2);
}

/* Línea lumínica superior — continuación del navbar */
.ry-blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99,102,241,.50) 30%,
    rgba(139,92,246,.55) 70%,
    transparent 100%);
}

/* Blob de luz inferior — fusión suave con el listado */
.ry-blog-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 200px;
  background: radial-gradient(ellipse, rgba(79,70,229,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Contenedor interior con z-index para quedar sobre los blobs */
.ry-blog-hero-inner {
  position: relative;
  z-index: 1;
}

/* H1 del blog — tipografía premium */
.ry-blog-h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--ry-t1);
  max-width: 640px;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Acento cromático en el h1 */
.ry-blog-h1 span {
  background: linear-gradient(135deg, #93c5fd 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lead descriptivo */
.ry-blog-lead {
  color: var(--ry-t2);
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Filtros de categoría — glass integrado al hero ───────────────────────── */
/* Fondo translúcido + borde superior: es parte del hero, no una sección nueva.
   border-bottom:none para que el listado tome el relevo sin doble borde. */
.ry-blog-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ry-line);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 8px;
}

/* Etiqueta "Filtrar:" */
.ry-blog-filters-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ry-t3);
  margin-right: 4px;
  flex-shrink: 0;
}

/* Pills de filtro — estado normal */
.ry-blog-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ry-line-2);
  color: var(--ry-t2);
  background: var(--ry-glass-xs);
  transition: border-color .2s, background .2s, color .2s;
  text-decoration: none;
}
.ry-blog-pill:hover {
  border-color: rgba(99,102,241,.40);
  color: #93c5fd;
  background: rgba(99,102,241,.08);
}

/* Pills de filtro — activo */
.ry-blog-pill.active {
  background: rgba(37,99,235,.16);
  border-color: rgba(37,99,235,.45);
  color: #93c5fd;
}

/* ── Sección del listado ──────────────────────────────────────────────────── */
/* Borde superior coincide con el border-bottom del hero-filters:
   crea una línea unificada entre hero y contenido. */
.ry-blog-list {
  border-top: 1px solid var(--ry-line);
  padding: 56px 0 80px;
}

/* ── Grid de artículos ────────────────────────────────────────────────────── */
.ry-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Tarjeta de artículo — glass dark ─────────────────────────────────────── */
/* Reemplaza background:white. Glass con blur para profundidad sobre el fondo
   oscuro del body. Hover lift suave (no exagerado). */
.ry-blog-card {
  background: var(--ry-glass-sm);
  border: 1px solid var(--ry-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ry-blog-card:hover {
  border-color: rgba(99,102,241,.38);
  box-shadow:
    0 12px 40px -8px rgba(79,70,229,.20),
    0 0 0 1px rgba(99,102,241,.15);
  transform: translateY(-4px);
}

/* Imagen de portada */
.ry-blog-card-img-wrap {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.ry-blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ry-blog-card:hover .ry-blog-card-img-wrap img {
  transform: scale(1.04);
}

/* Acento cromático cuando no hay imagen */
.ry-blog-card-accent {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  flex-shrink: 0;
}

/* Cuerpo de la tarjeta */
.ry-blog-card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badge de categoría */
.ry-blog-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.25);
  margin-bottom: 12px;
  align-self: flex-start;
}

/* Título del artículo */
.ry-blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ry-t1);
  line-height: 1.4;
  margin-bottom: 10px;
}
.ry-blog-card-title a { color: inherit; transition: color .2s; }
.ry-blog-card:hover .ry-blog-card-title a { color: #93c5fd; }

/* Extracto */
.ry-blog-card-excerpt {
  color: var(--ry-t2);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

/* Footer de la tarjeta */
.ry-blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ry-line);
  padding-top: 14px;
  margin-top: auto;
}

/* Fecha */
.ry-blog-card-date { font-size: 12px; color: var(--ry-t3); }

/* Enlace "Leer más" */
.ry-blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s, color .2s;
}
.ry-blog-card:hover .ry-blog-card-link { color: #93c5fd; gap: 8px; }

/* ── Estado vacío ─────────────────────────────────────────────────────────── */
.ry-blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.ry-blog-empty-icon { font-size: 48px; display: block; margin-bottom: 20px; }
.ry-blog-empty h2   { color: var(--ry-t1); margin-bottom: 10px; }
.ry-blog-empty p    { color: var(--ry-t2); max-width: 400px; margin: 0 auto 28px; font-size: 15px; }

/* ── Paginación ───────────────────────────────────────────────────────────── */
.ry-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

/* ── Sección CTA inferior — glass premium ─────────────────────────────────── */
/* Reemplaza el bloque azul sólido. Glass card centrada con blobs internos.
   Se integra con el fondo oscuro del body sin corte de color. */
.ry-blog-cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Blob de ambiente bajo la card */
.ry-blog-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Card flotante */
.ry-blog-cta-card {
  position: relative;
  background: var(--ry-glass-sm);
  border: 1px solid var(--ry-line-2);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

/* Línea lumínica en el borde superior de la card */
.ry-blog-cta-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.70), transparent);
}

/* Blob interno — profundidad visual */
.ry-blog-cta-card::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 350px;
  background: radial-gradient(ellipse, rgba(79,70,229,.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Eyebrow de la card CTA */
.ry-blog-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.25);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Título y lead de la CTA — z-index sobre el blob interno */
.ry-blog-cta-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  color: var(--ry-t1);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.ry-blog-cta-lead {
  font-size: 17px;
  color: var(--ry-t2);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.ry-blog-cta-btn-wrap {
  position: relative;
  z-index: 1;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ry-blog-hero     { padding-top: 76px; }
  .ry-blog-filters  { padding: 12px 14px; gap: 6px; }
  .ry-blog-cta-card { padding: 40px 24px; }
  .ry-blog-list     { padding: 40px 0 60px; }
}
@media (max-width: 480px) {
  .ry-blog-grid { grid-template-columns: 1fr; }
  .ry-blog-hero { padding-top: 72px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN BLOG
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINAS SEO — Sistema de clases .seo-* (landings de tutelas indexables)
   Propósito: estilos compartidos por las 5 landings de /paginas_seo/:
     /tutela-eps-medicamentos/, /tutela-colpensiones/, /tutela-educacion/,
     /tutela-no-respuesta-derecho-peticion/, /tutela-salario-no-pagado/
   Contexto: fondo oscuro global del body — variables --ry-* del :root.
   Impacto: 5 landing pages indexables. NO aplica a programmatic_landing.
   Dependencias: .ry-container, variables --ry-*, --blue-700, --emerald-500.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero fotográfico con overlay azul oscuro ──
   La imagen de fondo y el overlay crean su propio contexto de color:
   texto blanco y azul claro son siempre legibles sobre el overlay. ── */
.seo-hero { position: relative; height: 288px; overflow: hidden; }
@media (min-width: 768px) { .seo-hero { height: 384px; } }
.seo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seo-hero-overlay { position: absolute; inset: 0; background: rgba(30,58,138,0.7); }
.seo-hero-content {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 1024px; margin: 0 auto; padding: 0 24px 40px;
}
/* Badge: texto azul claro (#DBEAFE) sobre overlay oscuro — ratio ≥7:1 */
.seo-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.3); backdrop-filter: blur(4px);
  border: 1px solid rgba(96,165,250,0.3); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; color: #DBEAFE;
  margin-bottom: 12px; width: fit-content;
}
/* Título H1 y subtítulo: siempre blancos sobre overlay oscuro */
.seo-hero-title { font-size: clamp(22px,4vw,36px); font-weight: 700; color: var(--white); line-height: 1.25; max-width: 672px; }
.seo-hero-lead  { color: #DBEAFE; margin-top: 8px; font-size: 15px; max-width: 576px; }

/* ── Escala desktop/laptop de encabezados internos ─────────────────────────
   Propósito: mantener las cabeceras internas por debajo del Hero principal.
   Alcance: solo pantallas desde laptop; mobile y tablet conservan sus reglas.
   Impacto: reduce altura visual sin cambiar composición, colores ni contenido. */
@media (min-width: 1025px) {
  .ry-page-head {
    padding: clamp(34px, 4.4vh, 44px) 0 clamp(28px, 3.8vh, 38px);
  }

  .ry-page-eyebrow {
    padding: 5px 12px;
    font-size: 11px;
    margin-bottom: 12px;
  }

  .ry-page-title {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .ry-page-lead {
    font-size: 15px;
    line-height: 1.55;
    max-width: 520px;
  }

  .ry-blog-hero {
    padding-top: clamp(68px, 7.8vh, 78px);
  }

  .ry-blog-hero .ry-breadcrumb {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .ry-blog-hero .ry-page-eyebrow {
    padding: 4px 10px;
    font-size: 10.5px;
    margin-bottom: 8px;
  }

  .ry-blog-h1 {
    font-size: clamp(23px, 2.15vw, 28px);
    line-height: 1.1;
    max-width: 760px;
    margin-bottom: 6px;
  }

  .ry-blog-lead {
    font-size: 14px;
    line-height: 1.45;
    max-width: 920px;
    margin-bottom: 10px;
  }

  .ry-blog-filters {
    padding: 7px 12px;
    gap: 6px;
    margin-top: 2px;
  }

  .ry-blog-pill {
    padding: 4px 10px;
    font-size: 11px;
  }

  .seo-hero {
    height: clamp(230px, 30vh, 300px);
  }

  .seo-hero-content {
    padding-bottom: clamp(26px, 3.6vh, 36px);
  }

  .seo-hero-badge {
    padding: 4px 11px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .seo-hero-title {
    font-size: clamp(22px, 2.25vw, 32px);
    line-height: 1.18;
    max-width: 620px;
  }

  .seo-hero-lead {
    font-size: 14px;
    max-width: 540px;
  }

  .ry-preview-head {
    gap: 20px;
    margin-bottom: 24px;
  }

  .ry-preview-title {
    font-size: clamp(26px, 2.35vw, 32px);
  }

  /* Las landings programáticas tienen estilos embebidos en su plantilla.
     Se usan overrides acotados para mantener la jerarquía visual sin tocar SEO. */
  .pseo-hero {
    padding-top: clamp(62px, 8.2vh, 72px) !important;
    padding-bottom: clamp(22px, 3vh, 28px) !important;
  }

  .pseo-breadcrumb {
    display: none !important;
    font-size: 12px !important;
    margin-bottom: 0 !important;
  }

  .pseo-hero-grid {
    grid-template-columns: minmax(0, 1fr) 250px !important;
    gap: 24px !important;
  }

  .pseo-eyebrow {
    display: none !important;
    font-size: 11px !important;
    margin-bottom: 0 !important;
  }

  .pseo-hero h1 {
    font-size: clamp(23px, 2vw, 28px) !important;
    line-height: 1.08 !important;
    max-width: 700px !important;
  }

  .pseo-lead {
    font-size: 14px !important;
    line-height: 1.42 !important;
    margin-top: 10px !important;
    max-width: 720px !important;
  }

  .pseo-actions {
    margin-top: 14px !important;
  }

  .pseo-btn-primary,
  .pseo-btn-secondary {
    min-height: 38px !important;
    padding: 0 14px !important;
  }

  .pseo-summary {
    gap: 8px !important;
    padding: 12px !important;
  }

  .pseo-summary strong {
    font-size: 14px !important;
  }
}

/* ── Layout: 2/3 contenido + 1/3 sidebar ── */
.seo-body { padding-top: 40px; padding-bottom: 64px; }
.seo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 768px) { .seo-grid { grid-template-columns: 1fr; } }
.seo-main { display: flex; flex-direction: column; gap: 32px; }

/* ── Tipografía de contenido — adaptada para fondo oscuro global ──
   var(--ry-t1) = #f1f5f9              → encabezados   (ratio ≥7:1)
   var(--ry-t2) = rgba(241,245,249,.76) → párrafos/listas (ratio ≥4.5:1) ── */
.seo-h2 { font-size: 1.5rem; font-weight: 700; color: var(--ry-t1); margin-bottom: 12px; line-height: 1.3; }
.seo-p  { color: var(--ry-t2); line-height: 1.65; }

/* ── Listas con íconos de check ── */
.seo-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.seo-li   { display: flex; align-items: flex-start; gap: 8px; color: var(--ry-t2); line-height: 1.5; }

/* ── Pasos numerados ── */
.seo-steps   { list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--ry-t2); }
.seo-step-li { display: flex; align-items: flex-start; gap: 12px; }
/* Número del paso: círculo azul con texto blanco — contexto propio */
.seo-step-num {
  width: 28px; height: 28px; background: var(--blue-700); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

/* ── Sidebar CTA — fondo azul propio (contexto de color independiente) ──
   El sidebar tiene background: var(--blue-700), por lo que sus hijos
   usan colores claros sobre azul, no sobre el fondo oscuro del body. ── */
.seo-sidebar {
  background: var(--blue-700); color: var(--white);
  border-radius: 16px; padding: 24px; position: sticky; top: 90px;
}
@media (max-width: 768px) { .seo-sidebar { position: static; } }
.seo-price     { font-size: 1.875rem; font-weight: 700; margin-bottom: 4px; }
/* Subtexto precio: azul claro sobre sidebar azul oscuro — ratio ≥4.5:1 */
.seo-price-sub { color: #BFDBFE; font-size: 14px; margin-bottom: 20px; }
/* Botón CTA: blanco + texto azul oscuro — sobre sidebar azul, contraste correcto */
.seo-cta-btn {
  display: block; background: var(--white); color: #1e40af;
  font-weight: 700; padding: 12px 16px; border-radius: 12px;
  text-align: center; margin-bottom: 12px; transition: background 0.2s;
}
.seo-cta-btn:hover { background: var(--blue-50); }

/* ── Botón WhatsApp ── */
.seo-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--emerald-500); color: var(--white);
  font-size: 14px; font-weight: 600; padding: 10px 16px;
  border-radius: 12px; transition: background 0.2s;
}
.seo-wa:hover { background: #059669; }
.seo-wa svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Alerta amber informativa — versión glass para fondo oscuro ──
   En lugar del fondo crema claro (#FFFBEB) que rompía el flujo visual,
   se usa un glass amber translúcido que se integra con el fondo global.
   El texto usa --ry-t1 y --ry-t2 para cumplir WCAG AA sobre el glass. ── */
.seo-alert {
  background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.30);
  border-radius: 12px; padding: 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
/* Ícono amber — visible sobre glass amber oscuro */
.seo-alert svg   { width: 20px; height: 20px; color: #fbbf24; margin-top: 2px; flex-shrink: 0; }
.seo-alert-title { color: var(--ry-t1); font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.seo-alert p     { color: var(--ry-t2); font-size: 14px; margin: 0; }

/* ── Ícono SVG en listas .seo-li ──
   Los SVG tienen style="color:var(--blue-600)" inline. Sobreescribimos
   a un azul más claro (#93c5fd) para cumplir WCAG AA (ratio ≥3:1 gráficos)
   sobre el fondo oscuro del body. ── */
.seo-li svg { color: #93c5fd !important; }
