/* =========================================================
   DGM Social — Sistema de diseño
   Base: design-system/dgm-social/MASTER.md (UI UX Pro Max)
   Efectos inspirados en Vengeance UI (Spotlight Navbar,
   Animated Rays, Morph Text, Bento, Cursor Card, Logo Slider,
   Staggered Grid) reimplementados en CSS/JS sin React.
   ========================================================= */

:root {
  /* Colores (tokens semánticos) */
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-accent-hover: #075985;
  --color-accent-bright: #38BDF8;   /* solo sobre fondos oscuros */
  --color-on-accent: #FFFFFF;
  --color-background: #F8FAFC;
  --color-foreground: #020617;
  --color-card: #FFFFFF;
  --color-muted: #EEF2F6;
  --color-muted-foreground: #475569;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-success: #15803D;
  --color-ring: #0369A1;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Espaciado y forma */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .30);

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur: 300ms;
  --dur-slow: 600ms;

  --nav-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; color: var(--color-primary); }
h3 { font-size: 1.2rem; }
p { color: var(--color-secondary); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }

:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding-inline: 1.35rem; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast); }
.btn-lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1.05rem; }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); border: 1px solid transparent; box-shadow: 0 8px 24px -10px rgba(3, 105, 161, .8); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(3, 105, 161, .9); }
.btn-accent:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Navbar (Spotlight Navbar) ---------- */
.site-header { position: fixed; inset: 12px 0 auto 0; z-index: 1030; padding-inline: 12px; pointer-events: none; }
.nav-glass {
  pointer-events: auto;
  min-height: 60px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 10px 40px -12px rgba(2, 6, 23, .55);
  transition: background-color var(--dur) var(--ease-out);
}
.site-header.scrolled .nav-glass { background: rgba(15, 23, 42, .9); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  padding: 5px 8px; border-radius: 8px; color: #fff;
  background: linear-gradient(135deg, #0369A1, #0EA5E9);
}
.brand-mark.big { font-size: 2.2rem; padding: 14px 22px; border-radius: 18px; }
.brand-text { font-size: 1.05rem; }

.spotlight-nav { position: relative; gap: 2px; }
.spotlight-nav .nav-link {
  position: relative; z-index: 1;
  color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem;
  padding: 10px 14px !important; border-radius: 999px;
  transition: color var(--dur-fast);
}
.spotlight-nav .nav-link:hover, .spotlight-nav .nav-link:focus-visible, .spotlight-nav .nav-link.active { color: #fff; }
.spotlight-pill {
  position: absolute; top: 0; left: 0; height: 100%; z-index: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 0 24px rgba(56, 189, 248, .25);
  opacity: 0; transition: transform var(--dur) var(--ease-out), width var(--dur) var(--ease-out), opacity var(--dur-fast);
  pointer-events: none;
}
.nav-toggle { border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; }
.nav-toggle:focus { box-shadow: none; }
.btn-sm-nav { min-height: 44px; font-size: .95rem; }

@media (max-width: 991.98px) {
  .nav-glass { border-radius: 24px; padding: 8px 8px 8px 16px; background: rgba(15, 23, 42, .94); }
  .navbar-collapse { padding: 8px 4px 12px; }
  .spotlight-nav .nav-link { padding: 12px 14px !important; }
  .btn-sm-nav { width: 100%; margin-top: 6px; }
  .spotlight-pill { display: none; }
}

/* ---------- Hero (Animated Rays) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #13233f 0%, var(--color-primary) 55%, #020617 100%);
  color: #fff;
  padding: calc(var(--nav-h) + 96px) 0 96px;
}
.hero-rays {
  position: absolute; inset: -40% -20% auto -20%; height: 140%; z-index: -1;
  background:
    conic-gradient(from 200deg at 50% 0%, transparent 0deg, rgba(56, 189, 248, .22) 12deg, transparent 26deg,
      transparent 40deg, rgba(14, 165, 233, .16) 52deg, transparent 66deg,
      transparent 84deg, rgba(56, 189, 248, .12) 94deg, transparent 110deg, transparent 360deg);
  filter: blur(18px);
  transform-origin: 50% 0%;
  animation: rays 14s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-rays.soft { opacity: .7; }
@keyframes rays {
  0%   { transform: rotate(-6deg) scaleX(1); opacity: .85; }
  100% { transform: rotate(6deg) scaleX(1.08); opacity: 1; }
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(60% 55% at 50% 40%, #000 20%, transparent 80%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em;
  color: #BAE6FD; background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .25); padding: 6px 14px; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero-title {
  color: #fff; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(2.1rem, 5.2vw, 4rem); margin-bottom: 1.1rem; text-wrap: balance;
}
.text-gradient {
  background: linear-gradient(90deg, #7DD3FC, #38BDF8 45%, #E0F2FE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-rotator { font-family: var(--font-mono); font-size: clamp(.98rem, 2vw, 1.15rem); color: #CBD5E1; margin-bottom: 1rem; min-height: 1.8em; }
.morph { color: #fff; display: inline-block; border-bottom: 2px solid var(--color-accent-bright); padding-bottom: 1px; transition: opacity 250ms var(--ease-out), filter 250ms var(--ease-out), transform 250ms var(--ease-out); }
.morph.out { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.hero-sub { color: #CBD5E1; font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 42rem; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-creds {
  list-style: none; padding: 0; margin: 2.75rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  font-size: .92rem; color: #94A3B8;
}
.hero-creds li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-creds .icon { color: var(--color-accent-bright); }

/* ---------- Stack strip (Logo Slider) ---------- */
.stack-strip { background: #020617; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.marquee {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee:focus-visible { outline-offset: -3px; }
.marquee-track {
  list-style: none; margin: 0; padding: 0 1.5rem 0 0; flex-shrink: 0;
  display: flex; gap: 1.5rem; align-items: center;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee:focus .marquee-track { animation-play-state: paused; }
.marquee-track li { font-family: var(--font-mono); font-size: .88rem; color: #94A3B8; white-space: nowrap; display: inline-flex; align-items: center; gap: 1.5rem; }
.marquee-track li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #334155; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-muted { background: var(--color-muted); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.kicker { font-family: var(--font-mono); font-size: .85rem; color: var(--color-accent); margin-bottom: .6rem; font-weight: 500; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; text-wrap: balance; }
.section-lead, .lead-muted { font-size: 1.1rem; color: var(--color-muted-foreground); }

/* ---------- Bento + Cursor Card ---------- */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feature { grid-row: span 2; }
  .bento-wide { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .bento { grid-template-columns: 1.25fr 1fr 1fr; }
  .bento-feature { grid-row: span 2; }
  .bento-wide { grid-column: 2 / -1; }
}
.bento-card, .project-card, .step {
  position: relative; overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.bento-card:hover, .project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.bento-feature { background: linear-gradient(180deg, #0F172A, #13233f); border-color: #1E293B; }
.bento-feature h3, .bento-feature .check-list li { color: #fff; }
.bento-feature p { color: #CBD5E1; }
.bento-feature .card-icon { background: rgba(56, 189, 248, .12); color: var(--color-accent-bright); }
.bento-feature .card-link { color: #7DD3FC; }
.bento-feature .card-link:hover { color: #fff; }
.bento-wide { display: flex; gap: 20px; align-items: flex-start; }
.bento-wide .card-icon { margin-bottom: 0; }
@media (max-width: 575.98px) { .bento-wide { flex-direction: column; } }

.spot-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(3, 105, 161, .10), transparent 45%);
  opacity: 0; transition: opacity var(--dur);
}
.bento-feature.spot-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, .18), transparent 45%); }
.spot-card:hover::before { opacity: 1; }
.spot-card > * { position: relative; }

.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #E0F2FE; color: var(--color-accent); margin-bottom: 18px; }
.bento-card h3, .project-card h3 { margin-bottom: .5rem; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.card-link .icon { transition: transform var(--dur-fast) var(--ease-out); }
.card-link:hover .icon { transform: translateX(3px); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; }
.check-list .icon { color: var(--color-accent-bright); }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-num { font-family: var(--font-mono); font-size: .9rem; color: var(--color-accent); font-weight: 500; display: inline-block; margin-bottom: 1rem; padding: 4px 10px; background: #E0F2FE; border-radius: 8px; }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; }

/* ---------- Sobre mí ---------- */
.profile-card { position: relative; max-width: 440px; margin-inline: auto; }
.profile-card img, .profile-placeholder { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.profile-placeholder {
  display: grid; place-items: center;
  background: radial-gradient(100% 80% at 30% 10%, #13233f, #0F172A 60%, #020617);
  box-shadow: var(--shadow-lg);
}
.profile-badge {
  position: absolute; left: -12px; bottom: 24px;
  display: flex; gap: .75rem; align-items: center;
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.profile-badge .icon { color: var(--color-accent); }
.profile-badge strong { display: block; font-size: .95rem; color: var(--color-primary); }
.profile-badge span { font-size: .82rem; color: var(--color-muted-foreground); }
@media (max-width: 575.98px) { .profile-badge { left: 12px; right: 12px; } }
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; border-top: 1px solid var(--color-border); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.fact-k { font-family: var(--font-mono); font-size: .85rem; color: var(--color-muted-foreground); padding-top: 2px; }
.fact-v { color: var(--color-primary); font-weight: 500; }
@media (max-width: 575.98px) { .facts li { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Proyectos ---------- */
.project-card { height: 100%; display: flex; flex-direction: column; }
.tag { align-self: flex-start; font-family: var(--font-mono); font-size: .78rem; color: var(--color-accent); background: #E0F2FE; padding: 4px 10px; border-radius: 999px; margin-bottom: 1rem; }
.stack-line { margin-top: auto; margin-bottom: 0; padding-top: 1rem; border-top: 1px dashed var(--color-border); font-family: var(--font-mono); font-size: .82rem; color: var(--color-muted-foreground); }
.note { margin-top: 1.5rem; font-size: .9rem; color: var(--color-muted-foreground); font-style: italic; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--color-primary); color: #fff; padding: 88px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: .75rem; }
.cta-band p { color: #CBD5E1; font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #E0F2FE; color: var(--color-accent); flex-shrink: 0; }
.cl { display: block; font-size: .82rem; color: var(--color-muted-foreground); }
.contact-list a, .contact-list span:not(.ci):not(.cl) { font-weight: 600; color: var(--color-primary); text-decoration: none; }
.contact-list a:hover { color: var(--color-accent); text-decoration: underline; }

.contact-form { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form-label { font-weight: 600; color: var(--color-primary); margin-bottom: .4rem; }
.req { color: var(--color-destructive); }
.opt { font-weight: 400; color: var(--color-muted-foreground); font-size: .9rem; }
.form-control, .form-select { min-height: 48px; border-radius: 12px; border-color: #CBD5E1; font-size: 1rem; color: var(--color-foreground); }
.form-control:focus, .form-select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--color-destructive); background-image: none; padding-right: .75rem; }
.form-text { color: var(--color-muted-foreground); }
.field-error { color: var(--color-destructive); font-size: .88rem; margin-top: .35rem; min-height: 0; }
.field-error:empty { display: none; }
.form-summary { border: 1px solid #FECACA; background: #FEF2F2; color: #991B1B; border-radius: 12px; padding: 14px 16px; margin-bottom: 1.25rem; }
.form-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: #991B1B; font-weight: 600; }
.form-note { font-size: .88rem; color: var(--color-muted-foreground); }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--color-success); }
.form-status.err { color: var(--color-destructive); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #020617; color: #94A3B8; padding: 48px 0; }
.site-footer p { color: #94A3B8; }
.site-footer nav a { color: #CBD5E1; text-decoration: none; margin-left: 1.25rem; display: inline-block; min-height: 44px; line-height: 44px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #15803D; color: #fff; box-shadow: 0 12px 30px -8px rgba(21, 128, 61, .6);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.wa-float:hover { color: #fff; background: #166534; transform: translateY(-2px); }

/* ---------- Revelado al hacer scroll (Staggered Grid) ---------- */
.js .reveal, .js .stagger > * { opacity: 0; transform: translateY(16px) scale(.98); }
.js .reveal.in, .js .stagger > *.in {
  opacity: 1; transform: none;
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; flex-wrap: nowrap; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}

/* ---------- Soporte técnico (sección oscura) ---------- */
.section-dark { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 50% 0%, #13233f 0%, var(--color-primary) 55%, #020617 100%); color: #fff; }
.section-dark .hero-grid { z-index: -1; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #CBD5E1; }
.section-dark .kicker { color: #7DD3FC; }
.support-card {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background-color var(--dur);
}
.support-card:hover { transform: translateY(-3px); border-color: rgba(125, 211, 252, .35); background: rgba(255, 255, 255, .06); }
.support-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, .16), transparent 45%); }
.support-card h3 { color: #fff; margin-bottom: .5rem; }
.support-card p { color: #CBD5E1; }
.support-card .check-list li { color: #E2E8F0; align-items: flex-start; }
.support-card .check-list .icon { margin-top: 3px; }
.support-card .card-link { color: #7DD3FC; margin-top: auto; }
.support-card .card-link:hover { color: #fff; }
.support-icons { display: flex; gap: 10px; margin-bottom: 18px; }
.support-icons .card-icon { margin-bottom: 0; background: rgba(56, 189, 248, .12); color: var(--color-accent-bright); }
.support-perks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .support-perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .support-perks { grid-template-columns: repeat(4, 1fr); } }
.support-perks li { display: flex; gap: .75rem; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); background: rgba(2, 6, 23, .35); color: #CBD5E1; font-size: .95rem; }
.support-perks .icon { color: var(--color-accent-bright); }
.support-perks strong { color: #fff; font-weight: 600; }
.site-footer .footer-phone { color: #CBD5E1; text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
.site-footer .footer-phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Botón Ingresar (acceso al sistema) ---------- */
.nav-ctas { display: flex; gap: 8px; align-items: center; }
.btn-nav-login { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .25); }
.btn-nav-login:hover, .btn-nav-login:focus-visible { color: #fff; background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .45); }
.btn-nav-login .icon { color: var(--color-accent-bright); }
@media (max-width: 991.98px) {
  .nav-ctas { flex-direction: column; align-items: stretch; margin-top: 6px; }
  .nav-ctas .btn-sm-nav { margin-top: 0; }
}

/* ---------- Clientes: opiniones con diamantes ---------- */
.gem { width: 18px; height: 18px; color: #CBD5E1; }
.gem.on { color: #0EA5E9; fill: rgba(56, 189, 248, .35); }
.diamonds { display: inline-flex; gap: 2px; align-items: center; }
.diamonds-lg .gem { width: 26px; height: 26px; }
.reviews-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.reviews-summary { background: linear-gradient(180deg, #0F172A, #13233f); color: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.rs-score { display: flex; align-items: baseline; gap: 6px; }
.rs-avg { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rs-of { color: #94A3B8; font-weight: 600; }
.reviews-summary .gem { color: #334155; }
.reviews-summary .gem.on { color: #38BDF8; fill: rgba(56, 189, 248, .35); }
.rs-count { color: #CBD5E1; margin: 8px 0 14px; font-size: .95rem; }
.rs-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rs-bars li { display: grid; grid-template-columns: 14px 18px 1fr 28px; gap: 8px; align-items: center; font-size: .85rem; color: #CBD5E1; font-variant-numeric: tabular-nums; }
.rs-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rs-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0369A1, #38BDF8); transition: width .6s var(--ease-out); }
.rs-c { text-align: right; }
.review-form { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.diamond-input { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.diamond-input label { cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #CBD5E1; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.diamond-input label .icon { width: 28px; height: 28px; }
.diamond-input label.on { color: #0EA5E9; }
.diamond-input label.on .icon { fill: rgba(56, 189, 248, .35); }
.diamond-input label:hover { transform: translateY(-2px) scale(1.06); }
.diamond-input input:focus-visible + label { outline: 3px solid var(--color-ring); outline-offset: 1px; }
.diamond-text { margin-left: 6px; font-size: .9rem; color: var(--color-muted-foreground); }
.reviews-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sort-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-card); color: var(--color-secondary); font-weight: 600; font-size: .92rem; transition: all var(--dur-fast); }
.sort-btn:hover { border-color: #94A3B8; color: var(--color-primary); }
.sort-btn[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.reviews-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .reviews-list { grid-template-columns: repeat(2, 1fr); } }
.review-card { position: relative; overflow: hidden; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; animation: rc-in .45s var(--ease-out) both; }
.review-card.is-featured { border-color: #7DD3FC; box-shadow: 0 0 0 1px #BAE6FD, var(--shadow); }
@keyframes rc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rc-head { display: flex; align-items: center; gap: 12px; }
.rc-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0369A1, #0EA5E9); color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.rc-who { display: grid; min-width: 0; }
.rc-who strong { color: var(--color-primary); }
.rc-meta { color: var(--color-muted-foreground); font-size: .82rem; }
.rc-badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: #075985; background: #E0F2FE; padding: 4px 10px; border-radius: 999px; }
.rc-rating { display: flex; align-items: center; gap: 10px; }
.rc-date { color: var(--color-muted-foreground); font-size: .82rem; }
.rc-text { margin: 0; color: var(--color-secondary); white-space: pre-line; word-break: break-word; }
.rc-reply { border-left: 3px solid #38BDF8; background: #F0F9FF; border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: .9rem; }
.rc-reply strong { display: block; color: #075985; font-size: .8rem; margin-bottom: 2px; }
.rc-reply p { margin: 0; color: var(--color-secondary); }
.reviews-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border: 2px dashed var(--color-border); border-radius: var(--radius-lg); color: var(--color-muted-foreground); }
.reviews-empty .gem { width: 36px; height: 36px; margin-bottom: 8px; }
.btn-outline-accent { border: 1px solid var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-outline-accent:hover { background: var(--color-accent); color: #fff; }
@media (max-width: 991.98px) { .reviews-aside { position: static; } }
.review-form legend.form-label { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--color-accent); border-color: var(--color-accent); }
