/* ═══════════════════════════════════════════════════════════════════════════
   Tipografía Geist (la de Vercel) — fuente general del sitio público.
   Fuente variable vendorizada localmente en /assets/fonts/geist (sin CDN),
   siguiendo la convención de las demás fuentes del repo. No
   se usa el paquete npm 'geist' porque arrastra Next.js como peerDependency.
   La variable cubre todos los pesos (100–900). Se aplica solo a las páginas
   públicas (body.page-layout) para no alterar el portal interno.
   ═══════════════════════════════════════════════════════════════════════════ */
/* El @font-face y la familia ahora viven en el SCSS
   (utilities/_sf-fonts.scss y variables/_sf-brand.scss) y aplican a todo el
   producto, no sólo al sitio público. Aquí ya no hace falta declararlos. */

/* Estilos generales del header */
header {
}

.whitebg {
  background-color: #f7f7f7;
}

/* Contenedor del header */
header .max-w-7xl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Estilos para el logo */
header .flex.items-center img {
  width: 200px;
}

.header-fp .portal-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 20px;
}

.header-fp .portal-logo-img {
  width: 130px;
}

/* Estilos para el texto de los enlaces */
header .text-sm {
  font-size: 1rem;
  font-weight: 300;
  color: #1d1d1f;
  padding: 1.25rem;
}

header .text-sm:hover {
  color: #1d1d1f;
}

/* Botón "Sign Up" */
header .inline-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #1d1d1f;
  color: #ffffff;
  font-weight: 300;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

header .inline-flex:hover {
  background-color: #1f2937;
}

header .inline-flex:focus {
  outline: none;
}

.hidden {
  display: none !important;
}

/* Ocultar el menú en móvil de forma predeterminada */
#mobile-menu {
  display: none; /* Oculto en todas las pantallas inicialmente */
}

/* Muestra el menú móvil solo en pantallas pequeñas */
@media (max-width: 768px) {
  #mobile-menu {
      display: block;
  }
}

/* Asegúrate de que el menú de escritorio se muestre a partir de pantallas medianas */
@media (min-width: 768px) {
  .hidden.md\:flex {
      display: flex !important;
  }
}

.text-green-500 {
  color: #10b981;
}

.text-pink-500 {
  color: #ec4899;
}

.text-blue-500 {
  color: #3b82f6;
}

.text-yellow-500 {
  color: #fbbf24;
}

.text-purple-500 {
  color: #8b5cf6;
}

#terminal {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Compacta en móvil, crece con el viewport (antes 45vh: dominaba la pantalla) */
  height: clamp(190px, 30vh, 280px);
  margin: 0 auto;
  color: #ffffff;
  border-radius: 14px;
  overflow: hidden; /* Contiene el header y el panel de scroll interno */
}

#terminal .terminal-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px; /* Ajuste de espacio entre los botones */
}

.terminal-header .dot:last-child {
  margin-right: 0; /* Elimina el margen del último botón */
}

.dot.red { background-color: #ff5f57; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.cursor-blink {
  animation: blink 1s steps(1) infinite;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.fade-in {
  animation: fadeInDown 0.5s forwards;
}

.fade-out {
  animation: fadeOutUp 0.5s forwards;
}

#animated-text {
  margin-top: .5rem; /* Ajusta este valor para controlar el espaciado */
  margin-bottom: .5rem; /* Ajusta este valor según lo necesites */
  display: inline-block; /* Esto ayuda a mantener la alineación */
  /*font-size: 1.5rem;*/
}

.animate-pulse {
  animation: pulse 1s infinite;
}

#terminal-content {
  overflow-y: auto;
  padding: 1rem;
  color: white;
  white-space: pre-wrap;
  height: calc(100% - 42px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

#terminal-content::-webkit-scrollbar {
  width: 10px;
}

#terminal-content::-webkit-scrollbar-track {
  background: transparent;
}

#terminal-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 640px) {
  #terminal-content {
      padding: 0.8rem;
      font-size: 0.78rem;
  }
}

@media (min-width: 1024px) {
  #terminal {
      width: 100%;            /* Ajuste en pantallas grandes */
      height: 330px;
  }
}

/* Negro translúcido con blur: deja ver el fluido WebGL del hero a través */
#terminal {
  background: rgba(6, 7, 9, 0.58);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

#terminal-content:focus { outline: none; }
#terminal-content:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: -2px;
}

.terminal-line-json {
  color: #ffffff;
}

.terminal-line-meta {
  color: #a5b4fc;
}

.terminal-line-error {
  color: #fca5a5;
}

.terminal-line-command {
  color: #4ade80;
}

.terminal-line-selected {
  background: rgba(16, 185, 129, 0.15);
  border-radius: 4px;
}

/* Estilos del footer */
.custom-footer {
  background-color: #ffffff;  /* Fondo blanco */
  color: #4B5563;  /* Texto en gris */
  padding: 2rem 0;
  font-size: 0.875rem;
}

.custom-footer .footer-title {
  font-weight: 400;
  color: #1F2937;  /* Título en un tono más oscuro */
  margin-bottom: 1rem;
}

.custom-footer .container {
  max-width: 1140px;  /* Asegura el centrado */
  margin: 0 auto;
}

.custom-footer ul {
  padding: 0;
  list-style-type: none;
}

.custom-footer ul li a {
  color: #6B7280;  /* Color gris para los enlaces */
  text-decoration: none;
  font-family: 'Geist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 200;
}

.custom-footer ul li a:hover {
  color: #111827;  /* Color más oscuro en hover */
}

.custom-footer .social-links a {
  color: #6B7280;
  font-size: 1.25rem;
}

.custom-footer .social-links a:hover {
  color: #111827;
}

.custom-footer .border-top {
  border-top: 1px solid #E5E7EB;  /* Línea de separación superior */
}

.custom-footer p {
  margin: 0;
  color: #242836;
}

.custom-footer .list-inline-item {
  margin-right: 0.75rem;
}

.custom-footer .text-md-end {
  text-align: right;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .custom-footer .text-md-end {
    text-align: left;
    margin-top: 1rem;
  }
}

.features-section {
  margin-top: 2rem;
}

/* Grid responsivo de features (stackfire.com): las tarjetas se reacomodan solas según el
   dispositivo (row-cols-1 / md-2 / lg-3). La media se acota para mantener alturas parejas. */
.features-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.features-grid .card-animated {
  height: 100%;
}
.feature-media {
  margin-top: 1rem;
  min-height: 120px;
}
.feature-media img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* Logos de proveedores de nube (gcp/aws/azure): tamaño fijo pequeño.
   Sin esta regla heredan el max-height: 200px de arriba y se ven gigantes. */
.feature-media img.cloud-logo {
  width: 56px;
  height: 56px;
  max-height: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — Hero estilo Vercel (negro full-bleed, titular con motion-blur,
   dos CTAs y grilla bento de métricas). Animaciones de entrada con stagger.
   ═══════════════════════════════════════════════════════════════════════════ */
.sf-hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: -4rem; /* anula el padding-top del <main>: el negro pega bajo el navbar */
  background: #000;
  color: #fff;
  /* El navbar es fijo (56px); el padding-top lo libra y da aire generoso como Vercel. */
  padding: calc(56px + clamp(3.5rem, 8vw, 7rem)) 1.5rem clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
}
/* Campo de estrellas (z-index 1: por encima del fluido WebGL, bajo el contenido) */
.sf-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 6% 16%, rgba(255, 255, 255, .95), transparent 60%),
    radial-gradient(1.2px 1.2px at 13% 52%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.3px 1.3px at 21% 30%, rgba(255, 255, 255, .78), transparent 60%),
    radial-gradient(1.1px 1.1px at 27% 74%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 12%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(1.1px 1.1px at 40% 60%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.3px 1.3px at 47% 38%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1.1px 1.1px at 54% 82%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255, 255, 255, .88), transparent 60%),
    radial-gradient(1.1px 1.1px at 66% 56%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.3px 1.3px at 73% 34%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(1.1px 1.1px at 79% 72%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 24%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(1.1px 1.1px at 92% 58%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.3px 1.3px at 96% 40%, rgba(255, 255, 255, .65), transparent 60%);
  background-repeat: no-repeat;
  animation: sf-twinkle 6s ease-in-out infinite alternate;
}
/* Marco técnico (4 líneas), POR DEBAJO del navbar fijo (56px) para que se vea */
.sf-hero::after {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  top: calc(56px + clamp(18px, 3.5vw, 44px));
  left: clamp(18px, 3.5vw, 44px);
  right: clamp(18px, 3.5vw, 44px);
  bottom: clamp(18px, 3.5vw, 44px);
  border: 1px solid rgba(255, 255, 255, .07);
}
@keyframes sf-twinkle { from { opacity: .55; } to { opacity: 1; } }

/* Cruces "+" en las esquinas del marco (decorativas, visibles) */
.sf-hero-x {
  position: absolute; z-index: 0; width: 16px; height: 16px; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)) center / 16px 1.5px no-repeat,
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)) center / 1.5px 16px no-repeat;
}
.sf-hero-x--tl { top: calc(56px + clamp(18px, 3.5vw, 44px)); left: clamp(18px, 3.5vw, 44px); transform: translate(-50%, -50%); }
.sf-hero-x--tr { top: calc(56px + clamp(18px, 3.5vw, 44px)); right: clamp(18px, 3.5vw, 44px); transform: translate(50%, -50%); }
.sf-hero-x--bl { bottom: clamp(18px, 3.5vw, 44px); left: clamp(18px, 3.5vw, 44px); transform: translate(-50%, 50%); }
.sf-hero-x--br { bottom: clamp(18px, 3.5vw, 44px); right: clamp(18px, 3.5vw, 44px); transform: translate(50%, 50%); }
.sf-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }

.sf-hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fafafa;
}
.sf-hero-word {
  display: inline-block;
  position: relative;
  color: #ffffff; /* el JS lo cambia por palabra (ciclo de colores tipo Vercel) */
}
.sf-hero-word--in { animation: sf-blur-in .55s cubic-bezier(.2, .7, .2, 1) both; }
/* Destellos (sparkles ✦) alrededor de la palabra, del color de la palabra */
.sf-hero-word::before, .sf-hero-word::after {
  content: "✦";
  position: absolute; color: currentColor; opacity: 0; pointer-events: none;
  text-shadow: 0 0 8px currentColor;
  animation: sf-sparkle 2.4s ease-in-out infinite;
}
.sf-hero-word::before { top: -.18em; right: -.46em; font-size: .42em; animation-delay: .15s; }
.sf-hero-word::after { bottom: .02em; left: -.42em; font-size: .3em; animation-delay: 1.15s; }
@keyframes sf-sparkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(90deg); }
}

.sf-hero-sub {
  max-width: 620px;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: #a1a1aa;
}

.sf-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }
.sf-hero-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-size: .98rem; font-weight: 400; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
/* !important para ganar con seguridad al color de enlace heredado (.page-layout a) */
.sf-hero-btn.sf-hero-btn--primary { background: #fafafa !important; color: #000 !important; }
.sf-hero-btn.sf-hero-btn--primary:hover { background: #ffffff !important; color: #000 !important; transform: translateY(-2px); }
.sf-hero-btn.sf-hero-btn--primary svg { color: #000 !important; stroke: #000 !important; }
.sf-hero-title #animated-text { margin: 0; } /* anula el margin del #animated-text legado */
.sf-hero-btn--ghost { background: #0e0e0e; color: #ededed; border-color: #2a2a2a; }
/* color con !important para no heredar el `a:hover { color: black }` global de styles-portal.css */
.sf-hero-btn--ghost:hover { background: #161616; border-color: #444; transform: translateY(-2px); color: #ededed !important; }
.sf-hero-btn--ghost svg { transition: transform .15s ease; }
.sf-hero-btn--ghost:hover svg { transform: translateX(3px); }

.sf-hero-terminal { margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; max-width: 600px; text-align: left; }
.sf-hero-terminal #terminal-content { text-align: left; }

@keyframes sf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes sf-blur-in {
  0% { opacity: 0; filter: blur(16px); transform: translateX(-16px); }
  60% { opacity: 1; }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.sf-rise { animation: sf-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.sf-rise-1 { animation-delay: .08s; }
.sf-rise-2 { animation-delay: .16s; }
.sf-rise-3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .sf-rise, .sf-hero-word--in, .sf-hero::before,
  .sf-hero-word::before, .sf-hero-word::after { animation: none !important; }
  .sf-hero-word::before, .sf-hero-word::after { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — Tarjetas de servicio estilo Vercel
   Bento (1 card ancho + 4), cada uno con ilustración SVG sobre un "inset"
   oscuro (igual en claro y oscuro), eyebrow con icono, titular grande y
   descripción. El modo oscuro afina colores en dark-theme.css.
   ═══════════════════════════════════════════════════════════════════════════ */
.sf-features { max-width: 1180px; margin: 4.5rem auto 1rem; padding: 0 1rem; }
.sf-features-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.sf-features-kicker { display: inline-block; font-size: .78rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.sf-features-title { margin: .5rem 0 0; font-size: clamp(1.55rem, 3.2vw, 2.3rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; color: #0f1115; }

.sf-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

.sf-feat-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e7ecf2; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  text-decoration: none; color: inherit;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.sf-feat-card:hover { border-color: #d3dbe6; }
.sf-feat-card--wide { grid-column: 1 / -1; flex-direction: row-reverse; }

.sf-feat-media {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 210px; padding: 1.75rem;
  /* Colores de las ilustraciones SVG. Día por defecto (claros); la noche los
     invierte en dark-theme.css. Así el SVG se ve claro en día y oscuro en noche. */
  --ill-panel: #ffffff; --ill-border: #e3e9f1; --ill-line: #eef2f7;
  --ill-ink: #475569; --ill-muted: #9aa6b6; --ill-fill: #e7edf5;
  --syn-key: #cf222e; --syn-str: #1a7f37; --syn-var: #0550ae;
  background: radial-gradient(130% 120% at 50% -10%, rgba(59, 130, 246, .10), transparent 58%), linear-gradient(180deg, #fbfcff, #eef3fb);
  border-bottom: 1px solid #e7ecf2;
}
.sf-feat-media svg { width: 100%; height: auto; max-height: 200px; display: block; }
.sf-feat-card--wide .sf-feat-media { flex: 1 1 54%; min-height: 300px; border-bottom: 0; border-left: 1px solid #e7ecf2; }
/* Altura de media uniforme en las 4 tarjetas pequeñas: así el cuerpo de
   texto arranca a la misma altura en toda la fila (simetría tipo Vercel). */
.sf-feat-card:not(.sf-feat-card--wide) .sf-feat-media { height: 256px; min-height: 0; }

.sf-feat-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.7rem 1.7rem 1.9rem; }
.sf-feat-card--wide .sf-feat-body { flex: 1 1 46%; justify-content: center; padding: 2.6rem; }

.sf-feat-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 400; color: #6b7280; }
.sf-feat-eyebrow svg { width: 18px; height: 18px; flex: none; }
.sf-feat-title { margin: 0; font-size: 1.3rem; line-height: 1.22; font-weight: 400; letter-spacing: -0.02em; color: #0f1115; }
.sf-feat-card--wide .sf-feat-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sf-feat-desc { margin: 0; font-size: .96rem; line-height: 1.55; color: #566173; }
.sf-feat-desc code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; padding: .05em .35em; border-radius: 5px; background: #eef1f5; color: #0f1115; }
.sf-feat-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .92rem; font-weight: 400; color: #2563eb; width: fit-content; transition: gap .2s ease, color .2s ease; }
/* Enlaces alineados al fondo del cuerpo: simetría en cada fila */
.sf-feat-card:not(.sf-feat-card--wide) .sf-feat-link { margin-top: auto; padding-top: 1rem; }
.sf-feat-link svg { transition: transform .2s ease; }
.sf-feat-link:hover { color: #1d4ed8; gap: .6rem; }
.sf-feat-link:hover svg { transform: translateX(4px); }

/* Cloud: chips de proveedor sobre el inset oscuro */
.sf-cloud-row { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.sf-cloud-chip { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid #e7ecf2; box-shadow: 0 10px 24px rgba(16, 24, 40, .14); }
.sf-cloud-chip--hub { width: 78px; height: 78px; border-radius: 18px; }

@media (max-width: 860px) {
  .sf-feat-grid { grid-template-columns: 1fr; }
  .sf-feat-card--wide { flex-direction: column; }
  .sf-feat-card--wide .sf-feat-media { min-height: 210px; border-left: 0; border-bottom: 1px solid #e7ecf2; }
  .sf-feat-card--wide .sf-feat-body { padding: 1.7rem; }
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-image {
  background-color: #e5e7eb; /* Color de fondo para el marcador de imagen */
  height: 80px; /* Ajusta la altura según sea necesario */
  width: 80px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-card p {
  font-size: 0.875rem;
  color: #6b7280; /* Gris oscuro */
}

/* Ajustes para las tarjetas */
.card-animated {
  border-radius: 12px;
  transition: transform 0.2s ease-in-out;
  background-color: white;
  --bs-card-spacer-y: 30px;
  --bs-card-spacer-x: 30px;
  --bs-card-title-spacer-y: 0.5rem;
  --bs-card-title-color: #1d1d1f;
  --bs-card-subtitle-color: var(--bs-body-color);
  --bs-card-border-width: 0px;
  --bs-card-border-color: #ebf1f6;
  --bs-card-border-radius: 7px;
  --bs-card-box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
  --bs-card-inner-border-radius: 7px;
  --bs-card-cap-padding-y: 15px;
  --bs-card-cap-padding-x: 30px;
  --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
  --bs-card-cap-color: ;
  --bs-card-height: ;
  --bs-card-color: ;
  --bs-card-bg: var(--bs-body-bg);
  --bs-card-img-overlay-padding: 1rem;
  --bs-card-group-margin: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--bs-card-height);
  color: var(--bs-body-color);
  word-wrap: break-word;
  background-color: var(--bs-card-bg);
  background-clip: border-box;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color);
  border-radius: var(--bs-card-border-radius);
  box-shadow: var(--bs-card-box-shadow);
}
.card-animated h5, .card-animated h6 {
  font-weight: 400;
  color: #333; /* Color de texto principal */
}
.progress-bar {
  border-radius: 8px;
}
.text-custom-primary {
  color: #5F75EE; /* Ajusta el color de acuerdo a la paleta */
}
.bg-custom-primary {
  background-color: #5F75EE;
}

.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.icon-container img {
  transition: transform 0.3s;
}

.icon-container:hover img {
  transform: scale(1.1); /* Efecto de aumento al pasar el cursor */
}

.icon-container p {
  margin-top: 10px;
}

/* Contenedor del carrusel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 20px 0;
}

.carousel-content {
  display: flex;
  gap: 0; /* Sin espacio entre logos */
  animation: scroll-continuous 20s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px; /* Ajusta el tamaño de cada  según sea necesario */
}

.logo-img {
  width: 80px;
  height: 80px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: grayscale(0%);
}

/* Animación para un desplazamiento continuo */
@keyframes scroll-continuous {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Estilo para el enlace activo */
.active {
  color: #000; /* Cambia el color del texto al que prefieras */
  font-weight: 400;
  border-bottom: 2px solid #000; /* Línea inferior para indicar selección */
}

  /* Efecto de resaltado en cards */
  .card-animated:hover {
    transform: translateY(-5px);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  /* Estilos para la sección de información adicional */
  .service-info {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 100%;
    width: calc(100% - 2rem); /* Asegura que el ancho sea similar al contenedor */
    margin-left: auto;
    margin-right: auto;
  }

  /* Estilo para los enlaces principales */
  .nav-link {
    position: relative;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    transition: color 0.3s;
  }

  .nav-link:hover {
    color: #0071e3;
  }

  /* Contenedor del submenú */
  .submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    display: none; /* Oculto por defecto */
    padding: 20px 0;
  }

  /* Submenú visible al hacer hover */
  .nav-link.services:hover + .submenu-container,
  .submenu-container:hover {
    display: block;
  }

  /* Submenú estilo */
  .submenu-item {
    padding: 10px;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    text-decoration: none;
  }

  .submenu-item:hover {
    background-color: #f5f5f5;
  }

  .submenu-item h6 {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
  }

  .submenu-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
  }

  .dropdown-menu-nav {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
  }

  .hover-dd:hover .dropdown-menu-nav {
    display: block;
    opacity: 1;
    transform: translateY(0);
    min-width: 600px !important;
  }

  .p-40{
    padding: 30px;
  }
  
  .navbar {
    padding: 0.5rem 0; /* Ajusta el padding vertical */
  }
  
  .navbar img {
    max-width: 200px; /* Controla el tamaño del logo */
  }
  
  .quick-links {
    gap: 1.5rem; /* Espaciado uniforme entre los elementos del menú */
  }  
  
  .navbar a {
    text-decoration: none;
  }
  
  .navbar-nav .nav-item {
    margin: 0 0.5rem; /* Ajustar espacio entre elementos */
  }
  
  .custom-white-bg {
    background-color: white !important;
  }
  ul {
    list-style-type: disc;
    margin-left: 20px;
  }

  @media (max-width: 768px) {
    ul {
      list-style-type: disc;
      margin-left: 0px;
    }
  }
  
  ol {
    list-style-type: decimal;
    margin-left: 20px;
    margin-top: .5rem;
  }

  
  li {
    margin-left: 1.5em;
    margin-bottom: .5rem;
    margin-top: .5rem;
  }
  
  /* Inline code is INLINE. This rule used to force every <code> into a block
     1100px wide with a 4rem left margin, which was a way of writing code
     snippets without <pre>. Nothing served through this stylesheet relies on
     that any more (checked every static page and every stored article), and
     it broke ordinary prose: a variant name like c.2210T>G in the middle of a
     sentence became a full-width bar. Block snippets belong in <pre>, which
     has its own rule right below; a <code> inside it inherits the block and
     gets no pill of its own. Visual pills (background, colour) stay in the
     scoped rules that already own them: .article-body code, .sf-feat-desc code. */
  code {
    display: inline;
    font-size: 0.92em;
    line-height: inherit;
    color: inherit;
    background: none;
    border: none;
    border-radius: 6px;
    padding: 0.1em 0.35em;
    margin: 0;
    width: auto;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  pre code {
    display: inline;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
    background: none;
    white-space: inherit;
    overflow-wrap: normal;
  }
  /* styles-portal.css loads after this sheet and declares `code { display:
     inline-block; margin-bottom: .5rem }` at the same specificity, so on the
     public site it would win and pad every line that carries a <code>.
     Scoping to .page-layout (the public <body>) outranks it without touching
     the portal, which keeps its own rule. */
  .page-layout code {
    display: inline;
    margin: 0;
  }
  .page-layout pre code {
    display: inline;
  }
  
  pre {
    background-color: #2d2d2d;
    color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Geist', 'Inter', 'Inter var', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 15px 0;
    white-space: pre-wrap; /* Permite que el texto se ajuste */
    word-wrap: break-word; /* Ajusta palabras largas */
  }

  img.display-6 {
    width: 40px;
    height: 40px;
    object-fit: cover;
  }

.card-animated-link {
  align-items: stretch;
  color: inherit;
  display: flex;
  text-decoration: none;
  width: 100%;
}

.card-animated-link:hover .card-animated,
.card-animated-link:focus-visible .card-animated {
  transform: translateY(-6px);
  box-shadow: 0px 14px 30px rgba(0, 0, 0, 0.18);
}

.card-animated-link:focus-visible {
  outline: none;
}

.card-animated-link:focus-visible .card-animated {
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.45), 0 14px 30px rgba(0, 0, 0, 0.18);
}


.cybersecurity-hero {
  border-radius: 28px;
  color: #1d1d1f;
  overflow: hidden;
  padding: 4rem 3.5rem;
  position: relative;
}

.cybersecurity-hero::after {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.cybersecurity-hero-title {
  color: #0f172a;
  font-size: clamp(.8rem, 2.6vw + 1.2rem, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  padding: 10px;
}

.cybersecurity-subheading {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 32rem;
  padding: 10px;
}

.cybersecurity-hero-card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #0f172a;
  padding: 2.5rem;
  position: relative;
}

.cybersecurity-hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(79, 70, 229, 0.12);
  pointer-events: none;
}

.cybersecurity-metric {
  align-items: center;
  background: rgb(220 220 220 / 20%);
  border-radius: 18px;
  color: #0f172a;
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.cybersecurity-metric i {
  align-items: center;
  border-radius: 12px;
  color: #0f172a;
  display: inline-flex;
  font-size: 1.3rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.cybersecurity-metric strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.cybersecurity-metric-caption {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.cybersecurity-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cybersecurity-chip {
  align-items: center;
  background: rgb(220 220 220 / 12%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: #000;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 400;
  gap: 0.4rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  text-transform: uppercase;
}

.cybersecurity-chip i {
  font-size: 1rem;
}

.cybersecurity-hero-actions .btn-outline-dark {
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a;
}

.cybersecurity-hero-actions .btn-outline-dark:hover {
  background-color: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.5);
  color: #0f172a;
}

.cybersecurity-hero-actions .btn-primary {
  background: #000;
  border: none;
}

.cybersecurity-hero-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.cybersecurity-hero-figure {
  margin: 2.5rem auto 0;
  max-width: 420px;
  position: relative;
}

.cybersecurity-hero-figure::after {
  content: "";
  position: absolute;
  inset: 10% 12% 0;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.18), transparent 70%);
  z-index: -1;
}

.cybersecurity-figure-caption {
  color: #64748b;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  text-transform: uppercase;
  text-align: center;
}

.cybersecurity-pillars {
  margin-top: 2rem;
}

.cybersecurity-pillar-card {
  border-radius: 20px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  height: 100%;
  padding: 2.5rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cybersecurity-pillar-card:hover {
  transform: translateY(-10px);
}

.cybersecurity-pillar-icon {
  align-items: center;
  background: rgba(0, 188, 212, 0.14);
  border-radius: 16px;
  color: #0c4a6e;
  display: inline-flex;
  font-size: 1.8rem;
  justify-content: center;
  padding: 0.9rem;
}

.cybersecurity-pillar-card h3 {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 1.4rem;
  margin-bottom: 0.75rem;
}

.cybersecurity-pillar-card p {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.cybersecurity-pillar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cybersecurity-pillar-card li {
  align-items: flex-start;
  color: #1e293b;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.cybersecurity-pillar-card li i {
  color: #000;
  font-size: 1rem;
  margin-top: 0.15rem;
}

.cybersecurity-insight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.12));
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 3rem;
}

.cybersecurity-insight h2 {
  color: #0f172a;
  font-size: 1.95rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cybersecurity-insight p {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.75;
}

.cybersecurity-insight .cybersecurity-chip {
  background: rgb(223 223 223 / 16%);
  color: #0f172a;
}

.cybersecurity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cybersecurity-badge {
  align-items: center;
  background: white;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
}

.cybersecurity-badge i {
  color: #0284c7;
  font-size: 1.1rem;
}

.cybersecurity-ops-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  height: 100%;
  padding: 2.2rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cybersecurity-ops-card:hover {
  transform: translateY(-8px);
}

.cybersecurity-ops-card h3 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.cybersecurity-ops-card p {
  color: #475569;
  line-height: 1.65;
}

.cybersecurity-ops-card ul {
  margin: 1.4rem 0 0;
}

.cybersecurity-ops-card li {
    align-items: flex-start;
    color: #1e293b;
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.cybersecurity-ops-card li i{
    color: #0ea5e9;
    font-size: 1rem;
    margin-top: 0.15rem;

}

.cybersecurity-solutions {
  background: #000000;
  border-radius: 28px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.cybersecurity-solutions::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.35), transparent 0%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.25), transparent 0%);
  pointer-events: none;
}

.cybersecurity-solutions-content {
  position: relative;
  padding: 4rem 3.5rem;
}

.cybersecurity-solutions header {
  max-width: 42rem;
}

.cybersecurity-solutions header h3 {
  color: #ffffff;
  font-size: clamp(.8rem, 2.3vw + 1.2rem, 1.8rem);
}

.cybersecurity-solutions header p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.cybersecurity-solutions-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .cybersecurity-solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cybersecurity-solution-card {
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  height: 100%;
  padding: 2.25rem 2rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cybersecurity-solution-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  pointer-events: none;
}

.cybersecurity-solution-card:hover,
.cybersecurity-solution-card:focus-within {
  border-color: gray;
  transform: translateY(-8px);
}

.cybersecurity-solution-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
}

.cybersecurity-solution-card p {
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.65;
  margin: 1rem 0 1.5rem;
}

.cybersecurity-solution-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cybersecurity-solution-card li {
  align-items: flex-start;
  color: rgba(226, 232, 240, 0.88);
  display: flex;
  gap: 0.6rem;
  line-height: 1.5;
}

.cybersecurity-solution-card li i {
  color: #38bdf8;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.cybersecurity-solution-meta {
  align-items: center;
  color: rgba(148, 163, 184, 0.92);
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cybersecurity-solution-meta i {
  color: #38bdf8;
  font-size: 1.1rem;
}

.cybersecurity-cta {
  background: #000000;
  border-radius: 28px;
  color: white;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.cybersecurity-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 0%);
  pointer-events: none;
}

.cybersecurity-cta h2 {
    font-size: 25px;
    font-weight: 300;
    margin-bottom: 1rem;
    color: white;
}

.cybersecurity-cta p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.05rem;
}

.cybersecurity-cta .btn {
  border-radius: 999px;
  font-weight: 400;
  padding: 0.75rem 1.8rem;
}

.cybersecurity-cta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.cybersecurity-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
}

.cybersecurity-divider {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 4rem 0;
}

.cybersecurity-hero-actions .btn {
  border-radius: 999px;
  font-weight: 400;
  padding: 0.75rem 1.75rem;
}

.cybersecurity-hero-actions .btn-outline-dark {
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a;
}

.cybersecurity-hero-actions .btn-outline-dark:hover {
  background-color: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.5);
  color: #0f172a;
}

.cybersecurity-hero-actions .btn-primary {
  background: #000;
  border: none;
}

.cybersecurity-hero-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.cybersecurity-trust-card {
  align-items: center;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.cybersecurity-trust-card i {
  color: #0284c7;
  font-size: 1.5rem;
}

.cybersecurity-trust-card span {
  color: #0f172a;
  font-weight: 400;
}

.cybersecurity-gradient-border {
  position: relative;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.6), rgba(59, 130, 246, 0.35));
}

.cybersecurity-gradient-border > div {
  background: white;
  border-radius: 25px;
  height: 100%;
}

@media (max-width: 991px) {
  .cybersecurity-hero {
    padding: 3.5rem 2.5rem;
  }

  .cybersecurity-hero::after {
    inset: 2rem;
  }

  .cybersecurity-hero-card {
    margin-top: 2.5rem;
  }

  .cybersecurity-hero-figure {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .cybersecurity-hero {
    padding: 3rem 1.8rem;
  }

  .cybersecurity-hero::after {
    inset: 1.4rem;
  }

  .cybersecurity-hero-figure {
    margin-top: 1.5rem;
  }

  .cybersecurity-solutions-content {
    padding: 3rem 1.9rem;
  }

  .cybersecurity-pillars {
    margin-top: 0rem;
  }

  .cybersecurity-insight,
  .cybersecurity-cta {
    padding: 2.5rem 1.75rem;
  }
}

/* The site's bar, mega menus and drawer live in /assets/css/sf-site-nav.css
   (views/partials/menu.ejs). Here stays only the assistant's mascot. */

/* Cara pixel de Lucy en el navbar (misma mascota que el portal): un gesto cada
   ~10s, con el mismo ciclo de 30s del launcher del portal.
   El SVG trae currentColor y el gris de los ojos inline,
   así que no depende del CSS del portal. */
/* Color de la mascota (#EF9686), elegido por el dueño. El cuerpo del SVG es
   currentColor, así que basta con fijar el color del contenedor; los ojos sí
   llevan su relleno propio en el SVG. */
/* La caja era CUADRADA (22×22) con un viewBox de 36×20. El SVG conserva su
   proporción, así que se centraba y dejaba ~45 % de la caja vacía arriba y
   abajo: la mascota se dibujaba a 22×12 y se veía diminuta. Ahora la caja
   respeta la proporción 1.8 y se agranda, así que el mismo alto de antes
   corresponde a una mascota bastante mayor. */
/* Sized to 90% of the previous 43×24, at the owner's request: it looked too
   large in the bar. Applied at the only place the class lives, so it shrinks
   on phone and desktop alike. Both sides are multiplied by 0.9 so the
   viewBox's exact ratio is preserved and the SVG neither stretches nor leaves
   empty box around itself. */
.sf-lucy-nav {
  color: #EF9686;
  display: inline-block;
  height: 21.6px;
  position: relative;
  width: 38.7px;
}
.sf-lucy-nav .sf-lucy-svg--face {
  animation: sf-lucy-face-tricks 30s linear infinite;
  display: block;
  height: 100%;
  transform-origin: center 80%;
  width: 100%;
}
.sf-lucy-nav .sf-lucy-eye,
.sf-lucy-terminal .sf-lucy-eye {
  transform-box: fill-box;
  transform-origin: center;
}
.sf-lucy-nav .sf-lucy-eye { animation: sf-lucy-eyes-tricks 30s linear infinite; }

/* Lucy en verde en la terminal IA (fila del typing al abrir). */
/* Misma corrección de proporción que .sf-lucy-nav: era 20×20 sobre un viewBox
   de 36×20 y se dibujaba a 20×11. */
.sf-lucy-terminal {
  color: #EF9686;
  display: inline-block;
  height: 22px;
  vertical-align: -4px;
  width: 40px;
}
.sf-lucy-terminal .sf-lucy-svg--face { display: block; height: 100%; width: 100%; }

/* KBot (views/partials/kbot.ejs): square vector, so the navbar and terminal
   boxes become square instead of Lucy's 1.8 ratio. */
.sf-lucy-nav:has(.sf-kbot-svg) { height: 28px; width: 28px; }
.sf-lucy-terminal:has(.sf-kbot-svg) { height: 26px; width: 26px; vertical-align: -6px; }

/* Rutina de gestos (misma coreografía que el portal, a escala navbar). */
@keyframes sf-lucy-face-tricks {
  0%, 31.6%, 36.8%, 65%, 69%, 94.5%, 99%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  33%   { transform: translateY(1px) scale(1.07, 0.9); }
  34.4% { transform: translateY(0) scale(1, 1); }
  35.6% { transform: translateY(1px) scale(1.05, 0.93); }
  66.5% { transform: rotate(-9deg); }
  96.2% { transform: translateX(2px) rotate(15deg); }
}
@keyframes sf-lucy-eyes-tricks {
  0%, 32%, 36.5%, 95.2%, 98%, 100% { transform: scaleY(1); }
  32.4%, 36.1% { transform: scaleY(0.12); }
  95.6%, 97.6% { transform: scaleY(0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .sf-lucy-nav .sf-lucy-svg--face,
  .sf-lucy-nav .sf-lucy-eye { animation: none !important; }
}
  

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — Home de alta calidad (estilo Vercel)
   · Hero: fluido WebGL detrás del texto (canvas #sf-fluid) + veil de contraste
   · Tarjetas: reveal con stagger, spotlight que sigue el cursor
   · IaC: ventana de código interactiva (tabs + typing + copiar)
   · Medias animadas: pipeline CI/CD, gráfica que se dibuja, radar, chips
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero: fluido ─────────────────────────────────────────────────────────── */
.sf-hero-fluid {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .95;
}
/* Fallback sin WebGL: blobs de gradiente animados por CSS */
.sf-hero-fluid--css {
  background:
    radial-gradient(42% 55% at 22% 68%, rgba(37, 99, 235, .50), transparent 70%),
    radial-gradient(38% 48% at 52% 80%, rgba(147, 51, 234, .42), transparent 70%),
    radial-gradient(34% 44% at 80% 62%, rgba(244, 114, 82, .36), transparent 70%);
  filter: blur(46px) saturate(135%);
  animation: sf-fluid-css 16s ease-in-out infinite alternate;
}
@keyframes sf-fluid-css {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.18) translate(-3%, -4%); }
}
/* Veil: contraste para el titular + fundido hacia el borde inferior */
.sf-hero-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 36%, rgba(0, 0, 0, .52), rgba(0, 0, 0, .14) 58%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .42), transparent 26%, transparent 70%, rgba(0, 0, 0, .55));
}

/* ── Reveal con stagger (JS añade .sf-anim-ready al <html> y .sf-inview) ──── */
.sf-anim-ready [data-sf-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1),
    transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--sf-delay, 0s);
}
.sf-anim-ready [data-sf-reveal].sf-inview { opacity: 1; transform: none; }

/* Spotlight de cursor desactivado a petición: las tarjetas no animan al
   pasar el cursor (solo un cambio sutil de borde definido más arriba). */
.sf-feat-card { position: relative; }

/* ── IaC: ventana de código interactiva ───────────────────────────────────── */
.sf-feat-media--code { padding: 1.4rem; }
.sf-code-window {
  width: 100%; max-width: 560px;
  background: var(--ill-panel);
  border: 1px solid var(--ill-border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .10);
  overflow: hidden;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  text-align: left;
}
.sf-code-top {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--ill-line);
}
.sf-code-dots { display: inline-flex; gap: 6px; flex: none; }
.sf-code-dots i { width: 10px; height: 10px; border-radius: 50%; }
.sf-code-dots i:nth-child(1) { background: #ff5f57; }
.sf-code-dots i:nth-child(2) { background: #febc2e; }
.sf-code-dots i:nth-child(3) { background: #28c840; }
.sf-code-tabs { display: flex; gap: .2rem; min-width: 0; overflow-x: auto; }
.sf-code-tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: .78rem; white-space: nowrap;
  padding: .32rem .68rem; border-radius: 8px;
  color: var(--ill-muted);
  transition: background .15s ease, color .15s ease;
}
.sf-code-tab:hover { color: var(--ill-ink); }
.sf-code-tab.is-active { background: var(--ill-line); color: var(--ill-ink); font-weight: 400; }
.sf-code-copy {
  display: grid; place-items: center;
  margin-left: auto; flex: none;
  border: 0; background: transparent; cursor: pointer;
  width: 28px; height: 28px; border-radius: 7px;
  color: var(--ill-muted);
  transition: background .15s ease, color .15s ease;
}
.sf-code-copy:hover { background: var(--ill-line); color: var(--ill-ink); }
.sf-code-copy .sf-check-ic { display: none; }
.sf-code-copy.is-copied .sf-copy-ic { display: none; }
.sf-code-copy.is-copied .sf-check-ic { display: block; }
.sf-code-body {
  /* Neutraliza la regla global `pre` (fondo #2d2d2d, fuente sans, pre-wrap) */
  background: transparent;
  color: var(--ill-ink);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  white-space: normal;
  border-radius: 0;
  margin: 0; padding: .85rem 0 1rem;
  font-size: .8rem; line-height: 1.8;
  min-height: 224px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sf-code-line {
  display: block; white-space: pre; padding-right: 1rem;
  opacity: 0; transform: translateY(4px);
  animation: sf-code-in .32s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.sf-code-line.no-anim { animation: none; opacity: 1; transform: none; }
.sf-code-line .ln {
  display: inline-block; width: 2.2em; text-align: right; margin-right: 1.1em;
  color: var(--ill-muted); opacity: .65; user-select: none;
}
.sf-code-line.is-hl {
  background: rgba(59, 130, 246, .08);
  box-shadow: inset 2px 0 0 #3b82f6;
}
.sf-tk-key { color: var(--syn-key); }
.sf-tk-str { color: var(--syn-str); }
.sf-tk-var { color: var(--syn-var); }
.sf-tk-ink { color: var(--ill-ink); }
.sf-tk-mut { color: var(--ill-muted); }
@keyframes sf-code-in { to { opacity: 1; transform: none; } }

/* Código IaC en móvil: barra compacta (sin dots), tipografía y gutter menores */
@media (max-width: 640px) {
  .sf-feat-media--code { padding: 1rem .8rem; }
  .sf-code-dots { display: none; }
  .sf-code-top { gap: .5rem; padding: .5rem .6rem; }
  .sf-code-tab { padding: .3rem .55rem; font-size: .72rem; }
  .sf-code-body { font-size: .72rem; min-height: 190px; }
  .sf-code-line .ln { width: 1.6em; margin-right: .7em; }
}

/* ── CI/CD: pipeline animado ──────────────────────────────────────────────── */
.sf-pipe-flow { animation: sf-pipe-dash 1.1s linear infinite; }
@keyframes sf-pipe-dash { to { stroke-dashoffset: -24; } }
.sf-pipe-dot {
  transform-box: fill-box;
  animation: sf-pipe-travel 3.6s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes sf-pipe-travel {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  44% { transform: translateX(110px); }
  56% { transform: translateX(110px); }
  90% { transform: translateX(220px); opacity: 1; }
  100% { transform: translateX(220px); opacity: 0; }
}
.sf-pipe-node--1 { animation: sf-node-glow 3.6s ease infinite; }
.sf-pipe-node--2 { animation: sf-node-glow 3.6s ease 1.55s infinite; }
.sf-pipe-node--3 { animation: sf-node-glow 3.6s ease 3.1s infinite; }
@keyframes sf-node-glow {
  0%, 100% { stroke: var(--ill-border); }
  10% { stroke: #3b82f6; }
  28% { stroke: var(--ill-border); }
}
.sf-pipe-check {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sf-check-draw 3.6s ease infinite;
}
@keyframes sf-check-draw {
  0%, 78% { stroke-dashoffset: 1; }
  92%, 100% { stroke-dashoffset: 0; }
}

/* ── Analytics: la gráfica se dibuja al entrar en viewport ────────────────── */
.sf-anim-ready .sf-chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sf-anim-ready .sf-inview .sf-chart-line {
  animation: sf-chart-draw 1.6s cubic-bezier(.45, 0, .25, 1) .3s forwards;
}
@keyframes sf-chart-draw { to { stroke-dashoffset: 0; } }
.sf-anim-ready .sf-chart-bar {
  transform-box: fill-box; transform-origin: bottom;
  transform: scaleY(0);
}
.sf-anim-ready .sf-inview .sf-chart-bar {
  animation: sf-bar-up .8s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(.2s + var(--i, 0) * .12s);
}
@keyframes sf-bar-up { to { transform: scaleY(1); } }
.sf-anim-ready .sf-chart-area { opacity: 0; }
.sf-anim-ready .sf-inview .sf-chart-area { animation: sf-fade-in .9s ease 1.4s forwards; }
.sf-anim-ready .sf-chart-pt { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.sf-anim-ready .sf-inview .sf-chart-pt { animation: sf-pt-pop .45s cubic-bezier(.2, .9, .3, 1.4) 1.75s forwards; }
@keyframes sf-fade-in { to { opacity: 1; } }
@keyframes sf-pt-pop { to { opacity: 1; transform: scale(1); } }

/* ── Cloud: chips flotantes + anillo de pulso ─────────────────────────────── */
.sf-cloud-row { position: relative; }
.sf-cloud-chip {
  position: relative; z-index: 1;
  animation: sf-chip-float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .9s);
  transition: transform .25s ease;
}
@keyframes sf-chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
.sf-cloud-pulse {
  position: absolute; left: 50%; top: 50%;
  width: 78px; height: 78px;
  translate: -50% -50%;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, .55);
  pointer-events: none;
  animation: sf-cloud-ring 2.8s ease-out infinite;
}
@keyframes sf-cloud-ring {
  from { opacity: .85; scale: 1; }
  to { opacity: 0; scale: 1.6; }
}

/* ── Cybersecurity: radar con barrido + blips ─────────────────────────────── */
.sf-radar {
  transform-box: view-box;
  transform-origin: 190px 100px;
  animation: sf-radar-sweep 4.5s linear infinite;
}
@keyframes sf-radar-sweep { to { transform: rotate(360deg); } }
.sf-sec-dot {
  animation: sf-blip 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .75s);
}
@keyframes sf-blip {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}
/* Halo expansivo alrededor de los blips del radar */
.sf-sec-ring {
  fill: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: sf-sec-ring 3s ease-out infinite;
  animation-delay: calc(var(--i, 0) * .75s);
}
@keyframes sf-sec-ring {
  0% { opacity: .7; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(3.4); }
}

/* ── Reduced motion: todo estático y visible ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sf-hero-fluid--css,
  .sf-pipe-flow, .sf-pipe-dot,
  .sf-pipe-node--1, .sf-pipe-node--2, .sf-pipe-node--3,
  .sf-cloud-chip, .sf-cloud-pulse, .sf-radar, .sf-sec-dot, .sf-sec-ring,
  .sf-code-line { animation: none !important; }
  .sf-sec-ring { opacity: 0; }
  .sf-code-line { opacity: 1; transform: none; }
  .sf-pipe-check { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .sf-cloud-pulse { opacity: 0; }
  .sf-anim-ready [data-sf-reveal] { opacity: 1; transform: none; transition: none; }
  .sf-anim-ready .sf-chart-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .sf-anim-ready .sf-chart-bar { transform: none; animation: none !important; }
  .sf-anim-ready .sf-chart-area { opacity: 1; animation: none !important; }
  .sf-anim-ready .sf-chart-pt { opacity: 1; transform: none; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — Showcase de seguridad (estilo Vercel bot-management)
   Dashboard de firewall (claro) + panel "Defensas en capas" (negro).
   Vive dentro de .sf-features, entre el título y el grid de tarjetas.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Encabezado del showcase */
.sf-sec-head { max-width: 760px; margin: 3.2rem auto 1.8rem; text-align: center; }
.sf-sec-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #2563eb; }
.sf-sec-kicker svg { width: 16px; height: 16px; }
.sf-sec-title { margin: .55rem 0 0; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.14; font-weight: 500; letter-spacing: -0.025em; color: #0f1115; }
.sf-sec-lead { margin: .7rem auto 0; max-width: 620px; font-size: 1rem; line-height: 1.55; color: #566173; }

/* ── Dashboard de firewall ──────────────────────────────────────────────── */
.sf-dash-wrap { position: relative; margin: 0 auto 1.1rem; max-width: 1060px; }
.sf-dash {
  position: relative;
  --ill-line: #eef2f7;
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(16, 24, 40, .10);
  padding: 1.1rem;
  overflow: hidden;
}
.sf-dash-bar { display: flex; gap: .6rem; margin-bottom: 1rem; }
.sf-dash-select {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .8rem; border-radius: 10px;
  border: 1px solid #e7ecf2; background: #fbfcfe;
  font-size: .84rem; color: #475569; font-weight: 300;
}
.sf-dash-select--grow { flex: 1; max-width: 340px; }
.sf-dash-select .sf-dash-caret { margin-left: auto; color: #9aa6b6; }

.sf-dash-main { display: grid; grid-template-columns: 230px 1fr; gap: 1rem; }
.sf-dash-status {
  border: 1px solid #e7ecf2; border-radius: 14px;
  background: linear-gradient(180deg, rgba(37,99,235,.05), transparent);
  padding: 1.4rem 1.1rem 1rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sf-dash-shield { width: 64px; height: 64px; display: grid; place-items: center; }
.sf-dash-shield svg { width: 48px; height: 48px; }
.sf-dash-status-label { margin: .5rem 0 1rem; font-weight: 400; color: #0f1115; }
.sf-dash-status-list { list-style: none; margin: auto 0 0; padding: 0; width: 100%; }
.sf-dash-status-list li { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-top: 1px solid #eef2f7; font-size: .85rem; color: #566173; }
.sf-dash-status-list b { color: #0f1115; font-weight: 400; }

.sf-dash-metrics { min-width: 0; border: 1px solid #e7ecf2; border-radius: 14px; padding: .4rem .4rem 1rem; }
.sf-dash-tabs { display: flex; gap: .2rem; overflow-x: auto; border-bottom: 1px solid #eef2f7; }
.sf-dash-tab {
  flex: 1; min-width: 92px; border: 0; background: transparent; cursor: default;
  text-align: left; padding: .7rem .8rem; border-bottom: 2px solid transparent;
  display: flex; flex-direction: column; gap: .25rem;
}
.sf-dash-tab small { font-size: .76rem; color: #6b7280; white-space: nowrap; }
.sf-dash-tab strong { font-size: 1.35rem; font-weight: 500; color: #0f1115; letter-spacing: -0.02em; }
.sf-dash-tab.is-active { border-bottom-color: #0f1115; }

.sf-dash-chart { position: relative; padding: 1rem .6rem 0; }
.sf-dash-chart svg { width: 100%; height: 180px; display: block; }
.sf-dash-xaxis { display: flex; justify-content: space-between; padding: .5rem .2rem 0; font-size: .72rem; color: #9aa6b6; }

/* Inferior: alertas + reglas */
.sf-dash-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.sf-dash-panel { border: 1px solid #e7ecf2; border-radius: 14px; padding: .9rem 1rem; }
.sf-dash-panel-head { font-size: .82rem; font-weight: 400; color: #6b7280; margin-bottom: .5rem; }
.sf-dash-rows { list-style: none; margin: 0; padding: 0; }
.sf-dash-rows li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid #f1f4f8; font-size: .86rem; color: #0f1115; }
.sf-dash-rname { font-weight: 300; }
.sf-dash-rtime { color: #9aa6b6; font-size: .8rem; }
.sf-dash-rval { margin-left: auto; color: #566173; font-variant-numeric: tabular-nums; }
.sf-chip { font-size: .72rem; font-weight: 400; padding: .15rem .5rem; border-radius: 999px; }
.sf-chip--ok { background: #eef1f5; color: #475569; }
.sf-chip--warn { background: #fef3c7; color: #92670c; }

/* Pills flotantes (anotaciones tipo Vercel) */
.sf-dash-pill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 12px;
  background: #fff; border: 1px solid #e7ecf2;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
  font-size: .85rem; font-weight: 300; color: #0f1115; white-space: nowrap;
}
.sf-dash-pill--1 { top: 30%; right: -10px; }
.sf-dash-pill--2 { bottom: 32%; left: -14px; }
.sf-dash-pill--3 { bottom: 21%; right: 4%; }

/* La gráfica se dibuja al entrar en viewport */
.sf-anim-ready .sf-dash-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sf-anim-ready .sf-inview .sf-dash-line { animation: sf-chart-draw 1.5s cubic-bezier(.45,0,.25,1) forwards; }
.sf-anim-ready .sf-inview .sf-dash-line--green { animation-delay: .25s; }

/* ── Defensas en capas (panel negro) ────────────────────────────────────── */
.sf-layers {
  position: relative; isolation: isolate;
  margin: 1.4rem auto 0; border-radius: 20px; overflow: hidden;
  background: #000; border: 1px solid #1c1c1e;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3rem) clamp(2.2rem, 5vw, 3.4rem);
}
.sf-layers-shield {
  position: absolute; z-index: 0; top: 0; left: 50%; transform: translateX(-50%);
  width: min(620px, 92%); height: auto; pointer-events: none;
}
.sf-layers-top { position: relative; z-index: 1; max-width: 520px; }
.sf-layers-title { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; color: #fafafa; }
.sf-layers-cols {
  position: relative; z-index: 1; margin-top: clamp(3rem, 9vw, 7rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.10);
}
.sf-layer { padding: 1.6rem clamp(1rem, 2.2vw, 1.8rem) 0; border-left: 1px solid rgba(255,255,255,.10); }
.sf-layer:first-child { border-left: 0; padding-left: 0; }
.sf-layer-title { margin: 0 0 1.4rem; font-size: 1.18rem; font-weight: 400; letter-spacing: -0.01em; color: #fafafa; }
.sf-layer-desc { margin: 0; font-size: .95rem; line-height: 1.6; color: #9b9ba3; }

/* Responsive */
@media (max-width: 860px) {
  .sf-dash-main { grid-template-columns: 1fr; }
  .sf-dash-foot { grid-template-columns: 1fr; }
  .sf-dash-pill { display: none; }
  .sf-layers-cols { grid-template-columns: 1fr; }
  .sf-layer { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.10); padding-top: 1.4rem; margin-top: 1.4rem; }
  .sf-layer:first-child { border-top: 0; margin-top: 0; padding-top: 1.6rem; }
  .sf-layers-shield { width: 120%; opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-anim-ready .sf-dash-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — CTA final (estilo Vercel "Build something great")
   Celda bordeada con líneas guía tenues: título grande a la izquierda,
   acciones a la derecha. Va antes del footer.
   ═══════════════════════════════════════════════════════════════════════════ */
.sf-cta-final { max-width: 1180px; margin: 5rem auto 4.5rem; padding: 0 1.25rem; }
.sf-cta-inner {
  position: relative; overflow: hidden;
  border: 1px solid #e7ecf2; border-radius: 22px; background: #fff;
  padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.6rem, 4vw, 3.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
/* Líneas guía verticales (tercios), tenues y punteadas */
.sf-cta-inner::before,
.sf-cta-inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, #e7ecf2 0 7px, transparent 7px 14px);
}
.sf-cta-inner::before { left: 33.33%; }
.sf-cta-inner::after { left: 66.66%; }

.sf-cta-title {
  position: relative; z-index: 1; margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: clamp(2rem, 5vw, 3.0rem); line-height: 1.02; font-weight: 500;
  letter-spacing: -0.035em; color: #0f1115;
}
.sf-cta-actions { position: relative; z-index: 1; flex: 0 0 auto; margin-left: auto; display: flex; gap: .75rem; flex-wrap: wrap; }
.sf-cta-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-size: 1rem; font-weight: 400; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.sf-cta-btn--primary { background: #0f1115; color: #fff; }
.sf-cta-btn--primary:hover { background: #000; transform: translateY(-2px); }
.sf-cta-btn--ghost { background: #fff; color: #0f1115; border-color: #d7deea; }
.sf-cta-btn--ghost:hover { border-color: #0f1115; transform: translateY(-2px); }

@media (max-width: 720px) {
  .sf-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .sf-cta-inner::before, .sf-cta-inner::after { display: none; }
  .sf-cta-actions { width: 100%; }
  .sf-cta-btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   stackfire.com — Blog estilo Vercel (/static-pages/blog)
   Sin hero de texto; barra de categorías + búsqueda; rejilla de celdas
   cuadradas separadas por líneas finas, con marca "+" e hover sutil.
   Sobrescribe las reglas previas de _blog.scss (carga posterior).
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-page.vblog { max-width: 1200px; margin: 0 auto; padding: 6.5rem 1.25rem 4rem; }

/* Barra superior: categorías a la izquierda, búsqueda a la derecha */
.vblog-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0;
}
.vblog-cats { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.vblog .filter-pill {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .95rem; font-weight: 300; color: #525a67;
  transition: background .15s ease, color .15s ease;
}
.vblog .filter-pill:hover { color: #0f1115; background: #f1f3f7; }
.vblog .filter-pill.is-active { background: #0f1115; color: #fff; }

.vblog-search {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid #e3e8ef; background: #fff; color: #98a1b0;
  min-width: 220px;
}
.vblog-search input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0;
  font-size: .92rem; color: #0f1115;
}
.vblog-search input::placeholder { color: #98a1b0; }

/* Rejilla de celdas con líneas finas */
.vblog-grid {
  margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid #e7ecf2; border-left: 1px solid #e7ecf2;
  position: relative;
}
/* Marca "+" en la esquina superior izquierda */
.vblog-grid::before {
  content: ""; position: absolute; top: -7px; left: -7px; width: 13px; height: 13px;
  background:
    linear-gradient(#c4ccd8, #c4ccd8) center/13px 1px no-repeat,
    linear-gradient(#c4ccd8, #c4ccd8) center/1px 13px no-repeat;
  z-index: 2; pointer-events: none;
}
.vblog .vblog-card {
  background: transparent; border: 0; border-right: 1px solid #e7ecf2; border-bottom: 1px solid #e7ecf2;
  border-radius: 0; padding: 0; box-shadow: none; transform: none;
  transition: background .18s ease;
}
.vblog .vblog-card:hover { background: #f7f9fc; transform: none; box-shadow: none; }
.vblog .vblog-card.is-hidden { display: none; }

.vblog-link {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.4rem, 2.4vw, 2.1rem); text-decoration: none; color: inherit;
}
.vblog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.vblog-ico { color: #0f1115; display: inline-flex; }
.vblog-date { font-size: .9rem; font-style: italic; color: #98a1b0; white-space: nowrap; }

.vblog-title {
  margin: 0 0 .9rem; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.18;
  font-weight: 400; letter-spacing: -0.018em; color: #0f1115;
}
.vblog-card:hover .vblog-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.vblog-desc {
  margin: 0 0 1.4rem; font-size: .96rem; line-height: 1.55; color: #5b6473;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.vblog-foot { margin-top: auto; display: flex; align-items: center; gap: .55rem; }
.vblog-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  display: grid; place-items: center; background: #0f1115; color: #fff;
  font-size: .8rem; font-weight: 400;
}
.vblog-author { font-size: .92rem; font-weight: 300; color: #0f1115; }
.vblog-read { margin-left: auto; font-size: .85rem; color: #98a1b0; }

.vblog-noresults { padding: 3rem 1rem; text-align: center; color: #98a1b0; font-size: .98rem; }

/* Responsive */
@media (max-width: 940px) {
  .vblog-grid { grid-template-columns: repeat(2, 1fr); }
  .vblog .vblog-card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .blog-page.vblog { padding-top: 5.5rem; }
  .vblog-grid { grid-template-columns: 1fr; }
  .vblog .vblog-card { border-right: 0; }
  .vblog-search { width: 100%; }
}
