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

* { 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;
  color: var(--ink-800);
  background: var(--white);
  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; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-900); }

/* ====== 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 ====== */
.ry-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,23,42,0.07);
  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(--ink-900); color: var(--white);
  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(--ink-900); white-space: nowrap; }
.ry-nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-500); }
.ry-nav-links a:hover { color: var(--ink-900); }
.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(--ink-500);
}
@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 */
.ry-nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--ink-100);
}
.ry-nav-mobile.open { display: flex; }
.ry-nav-mobile a {
  padding: 10px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-700);
}
.ry-nav-mobile a:hover { background: var(--ink-50); }
.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;
}
.ry-btn-primary {
  background: var(--ink-900); color: var(--white);
  box-shadow: 0 4px 12px rgba(15,23,42,0.15);
}
.ry-btn-primary:hover { background: var(--ink-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.2); }
.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); }
.ry-btn-outline {
  background: transparent; color: var(--ink-900);
  border: 2px solid var(--ink-200);
}
.ry-btn-outline:hover { border-color: var(--ink-900); }
.ry-btn-ghost {
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 2px solid rgba(255,255,255,0.18);
}
.ry-btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }
.ry-btn-sm { padding: 10px 18px; font-size: 14px; }
.ry-btn-lg { padding: 18px 32px; font-size: 17px; }

/* ====== HERO ====== */
.ry-hero {
  position: relative; padding: 140px 0 100px;
  background: linear-gradient(175deg, var(--ink-50) 0%, var(--blue-50) 100%);
  overflow: hidden;
}
.ry-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.07) 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; }

/* ====== STEPS ====== */
.ry-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .ry-steps { grid-template-columns: 1fr; } }
.ry-step {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: 20px; padding: 32px; transition: all 0.3s;
}
.ry-step:hover { border-color: var(--blue-600); box-shadow: 0 20px 40px -12px rgba(37,99,235,0.15); transform: translateY(-4px); }
.ry-step-num {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; margin-bottom: 20px;
}
.ry-step-1 { background: var(--ink-900); color: var(--white); }
.ry-step-2 { background: var(--blue-600); color: var(--white); }
.ry-step-3 { background: var(--amber-500); color: var(--ink-900); }
.ry-step h3 { font-size: 19px; font-weight: 900; margin-bottom: 10px; color: var(--ink-900); }
.ry-step p { color: var(--ink-500); font-size: 15px; 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); }

/* ====== DOCS GRID ====== */
.ry-docs-section { background: var(--ink-50); }
.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 (accounts for fixed navbar) */
.ry-page { padding-top: 88px; min-height: 100vh; background: var(--ink-50); }

/* 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/) ====== */
.ry-docs-hero { background: var(--ink-50); 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); }
.ry-doc-select.green .ry-doc-select-bar { background: var(--emerald-500); }
.ry-doc-select.green .ry-doc-select-icon { background: #F0FDF4; color: var(--emerald-500); }
.ry-doc-select.green .ry-doc-select-cta { color: var(--emerald-500); }
.ry-doc-select.purple .ry-doc-select-bar { background: #7C3AED; }
.ry-doc-select.purple .ry-doc-select-icon { background: #F5F3FF; color: #7C3AED; }
.ry-doc-select.purple .ry-doc-select-cta { color: #7C3AED; }
.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
   ════════════════════════════════════════════════════════════ */

/* Fondo suave degradado para páginas internas */
.ry-page { background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 500px); }

/* 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 ───────────────────────────────────────────── */
.ry-modules {
  padding: 80px 0;
  background: var(--ink-50);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
@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/ ──────────────────────── */
.ry-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .ry-cat-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Card de categoría — diseño elevado con degradados por color ── */
.ry-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #e8eaf6;
  border-radius: 20px;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
/* Barra de color superior — aparece solo al hacer hover */
.ry-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity .22s;
}
.ry-cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.ry-cat-card:hover::before { opacity: 1; }

/* Badge de categoría (etiqueta coloreada encima del icono) */
.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" morada semitransparente */
.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;
}

/* Icono cuadrado con degradado y sombra de color */
.ry-cat-card-icon {
  margin-bottom: 16px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Título — se torna morado al hacer hover */
.ry-cat-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
  transition: color .2s;
}
.ry-cat-card:hover h3 { color: #6C5CE7; }

.ry-cat-card > p {
  font-size: 13.5px;
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Lista de ejemplos de documentos */
.ry-cat-card-examples {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.ry-cat-card-examples li {
  font-size: 12.5px;
  color: #2d3436;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2ff;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Flecha morada como viñeta */
.ry-cat-card-examples li::before {
  content: '→';
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  color: #6C5CE7;
}

/* Pie de card: contador + botón CTA */
.ry-cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f2ff;
  gap: 8px;
}
.ry-cat-card-count {
  font-size: 11px;
  font-weight: 600;
  color: #b2bec3;
}
/* Botón CTA con borde — al hover se rellena de morado */
.ry-cat-card-cta {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid currentColor;
  transition: all .2s;
}
.ry-cat-card:hover .ry-cat-card-cta {
  background: #6C5CE7;
  color: #fff !important;
  border-color: #6C5CE7;
  box-shadow: 0 4px 16px rgba(108,92,231,0.35);
}

/* ── Variantes de color — amber (rojo-naranja) ────────────────── */
.ry-cat-card.amber::before { background: linear-gradient(90deg, #FF6B6B, #FF8E53); }
.ry-cat-card.amber .ry-cat-card-icon { background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: #fff; box-shadow: 0 8px 24px rgba(255,107,107,0.35); }
.ry-cat-card.amber .ry-cat-card-badge { background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: #fff; }
.ry-cat-card.amber .ry-cat-card-cta { color: #FF6B6B; }
.ry-cat-card.amber:hover { border-color: #FF6B6B; box-shadow: 0 24px 64px rgba(255,107,107,0.2); }

/* ── Variantes de color — green (verde-teal) ──────────────────── */
.ry-cat-card.green::before { background: linear-gradient(90deg, #00B894, #00CEC9); }
.ry-cat-card.green .ry-cat-card-icon { background: linear-gradient(135deg, #00B894, #00CEC9); color: #fff; box-shadow: 0 8px 24px rgba(0,184,148,0.35); }
.ry-cat-card.green .ry-cat-card-badge { background: linear-gradient(135deg, #00B894, #00CEC9); color: #fff; }
.ry-cat-card.green .ry-cat-card-cta { color: #00B894; }
.ry-cat-card.green:hover { border-color: #00B894; box-shadow: 0 24px 64px rgba(0,184,148,0.2); }

/* ── Variantes de color — blue (morado-violeta) ───────────────── */
.ry-cat-card.blue::before { background: linear-gradient(90deg, #6C5CE7, #a29bfe); }
.ry-cat-card.blue .ry-cat-card-icon { background: linear-gradient(135deg, #6C5CE7, #a29bfe); color: #fff; box-shadow: 0 8px 24px rgba(108,92,231,0.35); }
.ry-cat-card.blue .ry-cat-card-badge { background: linear-gradient(135deg, #6C5CE7, #a29bfe); color: #fff; }
.ry-cat-card.blue .ry-cat-card-cta { color: #6C5CE7; }
.ry-cat-card.blue:hover { border-color: #6C5CE7; box-shadow: 0 24px 64px rgba(108,92,231,0.2); }


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

.ry-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--ink-100, #E2E8F0);
  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(--ink-700, #374151);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.ry-nav-dropdown-menu a:hover {
  background: #F3F4F6;
  color: var(--ink-900, #111827);
}

/* ── 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;
  }
  .ry-mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-700, #374151);
    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; }
}

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

.ryp-sofia-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--ryp-bg) 0%, #FFFFFF 100%);
}

.ryp-sofia-card {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: center;
  padding: 48px 52px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79,70,229,0.10);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  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;
  }
}
