﻿:root {
  --bg-main: radial-gradient(circle at top, #020617, #020617 35%, #020617 100%);
  --card-bg: rgba(15,23,42,0.96);
  --card-border: rgba(148,163,184,0.45);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56,189,248,0.16);
  --text-main: #f9fafb;
  --text-soft: #cbd5f5;
  --danger: #fb7185;
  --warn: #fbbf24;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}

body {
  overflow-x: hidden;
}

/* Background animation canvas */
#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Main shell */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

/* HEADER / NAVBAR */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.97);
  border: 1px solid rgba(148,163,184,0.55);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 10px;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ORB del navbar (arriba) */
.logo-orb {
  position: relative;
  width: 82px;        /* antes 52 */
  height: 82px;       /* antes 52 */
  margin-right: 18px;
}

.logo-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--accent-strong), transparent 55%);
  opacity: 0.9;
  filter: blur(8px);
}

.logo-orb-inner {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: radial-gradient(circle at 20% 20%, rgba(248,250,252,0.16), rgba(15,23,42,0.98));
}
.logo-orb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 12px rgba(0,200,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-orb-img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0,200,255,0.5));
  animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0px); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--accent);
}

/* Nav */
.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease-out;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), #22c55e);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 140ms ease-out;
}

.site-nav a:hover {
  color: var(--text-main);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}
/* Botón CoreConnect-Extra en el navbar */
.nav-extra-link {
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.7);
  padding: 4px 16px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56,189,248,0.28),
    rgba(15,23,42,0.98)
  );
  color: var(--text-main);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 0 rgba(56,189,248,0.3);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.nav-extra-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
}

.nav-extra-link:hover {
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(56,189,248,0.6);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56,189,248,0.38),
    rgba(15,23,42,0.98)
  );
}

/* Mobile nav */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(148,163,184,0.8);
  border-radius: 999px;
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 1rem;
}

/* SECTIONS */
.section {
  padding: 32px 4px 8px;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}
/* Hero tweaked: asegurar layout */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

/* Panel derecho con botón de ticket */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Botón para abrir ticket */
.ticket-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.25), rgba(15,23,42,0.98));
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  animation: ticketGlow 3.2s ease-in-out infinite;
}

.ticket-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(56,189,248,0.2), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.ticket-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.9);
}

/* Icono */
.ticket-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,0.9), rgba(15,23,42,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(56,189,248,0.8);
}

.ticket-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 1.7;
}

/* Texto del botón */
.ticket-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ticket-label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.ticket-title {
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.ticket-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Animación suave del botón */
@keyframes ticketGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(56,189,248,0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 26px rgba(56,189,248,0.65);
    transform: translateY(-1px);
  }
}

/* Overlay de ticket */
.ticket-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.2), rgba(15,23,42,0.96));
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  z-index: 200;
}

.ticket-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.ticket-dialog {
  width: min(640px, 100% - 32px);
  max-height: calc(100vh - 80px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.7);
  padding: 22px 24px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.95);
  animation: ticketPop 0.23s ease-out;
}

/* Animación de entrada del cuadro */
@keyframes ticketPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ticket-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  float: right;
  cursor: pointer;
}

.ticket-close:hover {
  color: #e5e7eb;
}

.ticket-heading {
  margin: 0 0 6px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.ticket-intro {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.ticket-form .field-row {
  margin-bottom: 10px;
}

.ticket-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--text-soft);
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.98);
  color: #e5e7eb;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.ticket-form textarea {
  border-radius: 14px;
  resize: vertical;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.7);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

/* Responsive overlay */
@media (max-width: 768px) {
  .welcome-overlay {
    padding: 16px;
  }

  .welcome-inner {
    width: calc(100% - 16px);
    padding: 24px 16px 28px; /* un poco más de padding abajo */
    border-radius: 20px;
  }

  .welcome-logo-circle {
    width: 110px;
    height: 110px;
  }
/* Brillo extra cuando se pasa sobre los botones */
.welcome-logo-circle.logo-highlight {
  box-shadow:
    0 0 30px rgba(56,189,248,0.95),
    0 0 80px rgba(56,189,248,0.7),
    0 0 130px rgba(37,99,235,0.8);
  transform: translateY(-4px);
}

  .welcome-title {
    font-size: 1.7rem;
  }

  .welcome-subtitle,
  .welcome-tagline {
    font-size: 0.86rem;
  }

  .welcome-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px; /* espacio extra antes del crédito */
  }

 .welcome-btn {
  min-width: 180px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.92);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 0 0 rgba(56,189,248,0.4);
  transform: translateY(0) scale(1);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.2s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    opacity 0.18s ease-out;
}

  /* 👇 aquí está el cambio importante */
  .welcome-credit {
    position: static;              /* deja de ser absoluto */
    transform: none;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 6px;
    font-size: 0.68rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-inline: 8px;
  }
}


.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.85);
  background: rgba(15,23,42,0.96);
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-bottom: 10px;
  animation: pillGlow 3.5s ease-in-out infinite;
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(56,189,248,0); }
  40% { box-shadow: 0 0 18px rgba(56,189,248,0.8); }
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-gradient {
  background: linear-gradient(90deg, #f9fafb, #38bdf8, #a5f3fc);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: 0;
  padding: 9px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, filter 0.16s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(56,189,248,0.38);
}

.btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(56,189,248,0.55);
}

.btn.ghost {
  background: rgba(15,23,42,0.97);
  color: var(--text-main);
  border: 1px solid rgba(148,163,184,0.85);
}

.btn.ghost:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.9);
}

.btn.small {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn.full {
  width: 100%;
}

/* Hero metrics */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.65);
  font-size: 0.78rem;
  animation: fadeUp 0.7s ease-out both;
}

.metric:nth-child(2) { animation-delay: 0.12s; }
.metric:nth-child(3) { animation-delay: 0.22s; }

.metric-label {
  display: block;
  margin-bottom: 3px;
  color: var(--text-soft);
}

.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.metric-desc {
  display: block;
  color: var(--text-soft);
}

/* Hero right panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-card,
.sim-card {
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 14px 14px 12px;
  font-size: 0.86rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

.status-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.status-list li {
  color: #e5e7eb;
}

.status-list strong {
  font-weight: 600;
}

.status-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.dot.ok {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.9);
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(234,179,8,0.95);
}

/* Simulation card */
.sim-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.sim-log {
  height: 180px;              /* MÁS ALTO para ver toda la línea */
  border-radius: 10px;
  background: rgba(15,23,42,0.99);
  border: 1px solid rgba(30,64,175,0.9);
  padding: 8px;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.74rem;
  overflow: auto;
  color: #f9fafb;             /* CONTRASTE ALTO */
  line-height: 1.35;
}

/* Generic section headers */
.section-header h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* Services */
.section-services {
  margin-top: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  text-align: left;
  padding: 16px 16px 14px;
  background: rgba(15,23,42,0.96);          /* un pelín más claro que el fondo general */
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.65); /* borde más visible */
  cursor: pointer;
  transition: transform 0.16s ease-out,
              box-shadow 0.16s ease-out,
              border-color 0.16s ease-out,
              background 0.16s ease-out;
  font-size: 0.9rem;
  color: #f9fafb;                            /* texto principal bien claro */
  position: relative;
  overflow: hidden;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #f9fafb;                            /* título blanco */
  font-weight: 600;
  letter-spacing: 0.01em;
}

.service-card p {
  margin: 0;
  color: #e5e7eb;                            /* descripción más clara */
  font-size: 0.9rem;
}

/* Botón interno de los service cards para ir al quote estimate */
.service-body .service-quote-btn {
  margin-top: 8px;
  padding: 5px 11px;
  font-size: 0.78rem;
}

/* Hover un poco más “vivo” pero legible */
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-strong);
  box-shadow: 0 18px 40px rgba(15,23,42,0.98);
  background: radial-gradient(circle at top left,
              rgba(56,189,248,0.18),
              rgba(15,23,42,0.98) 55%);
}


/* Solutions / Why */
.section-solutions .solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.solution-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.solution-card h3 {
  margin: 0 0 4px;
}

.solution-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 32px rgba(15,23,42,0.95);
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.industry-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(15,23,42,0.97);
  border: 1px solid rgba(148,163,184,0.55);
  font-size: 0.9rem;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.industry-card h3 {
  margin: 0 0 4px;
}

.industry-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 32px rgba(15,23,42,0.95);
}

/* Contact */
.section-contact .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.contact-form {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.field-row {
  display: flex;
  gap: 10px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(51,65,85,0.95);
  background: rgba(15,23,42,0.98);
  color: var(--text-main);
  font-size: 0.88rem;
  padding: 7px 9px;
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148,163,184,0.9);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.85);
}

.contact-side {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15,23,42,0.99), rgba(15,23,42,0.94));
  border: 1px solid rgba(56,189,248,0.55);
  font-size: 0.9rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.96);
}

.contact-side h3 {
  margin: 0 0 6px;
}

.contact-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

/* Overlay for service details */
.service-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.service-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.service-overlay-inner {
  position: relative;
  width: min(960px, 100%);
  max-height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.9);
  box-shadow: 0 30px 80px rgba(15,23,42,0.98);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: all 0.22s ease-out;
  overflow: hidden;
}

.service-overlay.visible .service-overlay-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-overlay-content {
  padding: 20px 22px 18px;
  overflow: auto;
  max-height: calc(100vh - 48px);
  font-size: 0.9rem;
}
/* === CoreConnect Extra overlay === */

.extra-overlay-inner {
  max-width: 1180px;               /* un poco más grande que los servicios */
}

.extra-content h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.extra-content .service-intro {
  font-size: 0.95rem;
}
/* Apps Demo buttons inside CoreConnect Extra */
.apps-demo-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.apps-demo-links .btn {
  width: 100%;
  justify-content: center;
}
/* Apps Demo buttons inside CoreConnect Extra */
.apps-demo-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.apps-demo-links .btn {
  width: 100%;
  justify-content: center;
}

/* Remote Agent Service */
.remote-agent-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.extra-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.extra-list li + li {
  margin-top: 4px;
}

/* CoreConnect Extra layout */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

/* En pantallas pequeñas, 1 columna */
@media (max-width: 1024px) {
  .extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.extra-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.99), rgba(15,23,42,0.94));
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.45);
  padding: 16px 16px 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.96);
  font-size: 0.9rem;
  animation: fadeUp 0.4s ease-out;
}

.extra-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.extra-card p {
  margin: 0 0 6px;
  color: var(--text-soft);
}

.extra-card ul,
.extra-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.extra-timeline li + li {
  margin-top: 3px;
}

.extra-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

.extra-cta {
  margin-top: 10px;
}

/* Responsive: en tablets / móviles las 3 tarjetas se apilan */
@media (max-width: 992px) {
  .extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Close button for overlays (services + CoreConnect Extra) */
.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 60;                       /* siempre por encima del contenido */
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  background: rgba(15,23,42,0.98);
  color: #f9fafb;                    /* más contraste, se ve mejor */
}

.overlay-close:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}
/* Fix: X siempre visible en CoreConnect Extra, incluso desde "Add to Quote Estimate" */
#extraOverlay .overlay-close {
  position: fixed;        /* pegada a la ventana, no al contenido */
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1000;          /* por encima de todo el contenido del overlay */
}

/* ===== Mobile layout: CoreConnect Extra full-screen y X fija ===== */
@media (max-width: 768px) {
  /* El overlay de CoreConnect Extra ocupa toda la pantalla */
  #extraOverlay .service-overlay-inner {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  #extraOverlay .service-overlay-content {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  /* La X siempre visible en la esquina de la pantalla */
  #extraOverlay .overlay-close {
    position: fixed;
    top: 16px;
    right: 16px;
  }
}


.service-overlay-content h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.service-intro {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.service-column h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.service-column ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.service-column li {
  margin-bottom: 4px;
}
/* === CoreConnect Extra overlay === */

.extra-overlay-inner {
  width: min(1100px, 100%);
}

.extra-content h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.extra-content .service-intro {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.extra-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.99), rgba(15,23,42,0.94));
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.45);
  padding: 16px 16px 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.96);
  font-size: 0.9rem;
}

.extra-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.extra-card p {
  margin: 0 0 6px;
  color: var(--text-soft);
}

.extra-card ul,
.extra-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.extra-timeline li + li {
  margin-top: 3px;
}

.extra-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

.extra-cta {
  margin-top: 10px;
}

/* Responsive: en tablets / móviles las 3 tarjetas se apilan */
@media (max-width: 992px) {
  .extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.service-highlight {
  font-size: 0.82rem;
  color: var(--accent);
}

/* Scrollbars */
.sim-log::-webkit-scrollbar,
.service-overlay-content::-webkit-scrollbar {
  width: 6px;
}
.sim-log::-webkit-scrollbar-thumb,
.service-overlay-content::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.9);
  border-radius: 999px;
}

/* Animations base */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-solutions .solutions-grid,
  .industries-grid,
  .section-contact .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 12px 10px 24px;
  }

  .site-header {
    border-radius: 16px;
  }

  .site-nav {
    position: absolute;
    right: 10px;
    top: 46px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,0.99);
    border: 1px solid rgba(148,163,184,0.9);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-top: 28px;
  }

  .service-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === Card hover FX global para CoreConnect === */

.service-card,
.solution-card,
.industry-card,
.metric,
.status-card,
.sim-card {
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, border-color;
}

/* Brillo diagonal que se mueve al hacer hover */
.service-card::after,
.solution-card::after,
.industry-card::after,
.metric::after,
.status-card::after,
.sim-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.35), transparent 60%)
    ;
  opacity: 0;
  transform: translate3d(-24px, -18px, 0);
  pointer-events: none;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out;
}

/* Elevación + glow + ligero scale */
.service-card:hover,
.solution-card:hover,
.industry-card:hover,
.metric:hover,
.status-card:hover,
.sim-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent-strong);
  box-shadow: 0 22px 55px rgba(15,23,42,0.95);
  background: radial-gradient(
    circle at top left,
    rgba(56,189,248,0.14),
    rgba(15,23,42,1) 55%
  );
}

/* Activar el brillo en hover */
.service-card:hover::after,
.solution-card:hover::after,
.industry-card:hover::after,
.metric:hover::after,
.status-card:hover::after,
.sim-card:hover::after {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Color del título más vivo en hover */
.service-card:hover h3,
.solution-card:hover h3,
.industry-card:hover h3 {
  color: var(--accent);
}

/* Métricas del hero: que resalte el número en hover */
.metric:hover .metric-value {
  color: var(--accent-strong);
}

/* Tarjetas de snapshot / simulación: resaltar encabezado */
.status-card:hover h2,
.sim-card:hover h2 {
  color: var(--accent-strong);
}
.section-contact {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
}

.contact-info h3 {
  margin-bottom: 8px;
}

.booking-box {
  background: rgba(15,23,42,0.96);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.55);
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
}

.booking-box .field-row {
  margin-bottom: 12px;
}

.booking-box input,
.booking-box textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  padding: 10px 14px;
  background: rgba(15,23,42,0.98);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.booking-box textarea {
  border-radius: 14px;
  resize: vertical;
}

.booking-box input:focus,
.booking-box textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

.booking-status {
  margin-top: 10px;
  font-size: 0.85rem;
}

.booking-status.ok {
  color: #22c55e;
}

.booking-status.error {
  color: #f97373;
}

.btn.primary.full {
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ------------------------------
   Enhanced Contact Box Styling
   ------------------------------ */

.enhanced-contact {
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease-in-out;
}

.enhanced-contact:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.25);
}

.enhanced-contact h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #e8f9ff;
}

.contact-line {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  gap: 10px;
}

.contact-line .icon {
  font-size: 1.3rem;
  color: #38bdf8;
}

.contact-line a {
  text-decoration: none;
  color: #c7eafe;
  font-weight: 500;
}

.contact-line a:hover {
  color: #38bdf8;
}

.reply-time {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #9fbcd5;
}
/* ---- SVG icons + layout refinado ---- */

.enhanced-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-line {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.icon-svg {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(56,189,248,0.8), rgba(15,23,42,1));
  flex-shrink: 0;
}

.icon-svg svg {
  width: 18px;
  height: 18px;
  fill: #e5f8ff;
}

.icon-svg.whatsapp {
  background: radial-gradient(circle at 30% 20%, #22c55e, #052e16);
}

.icon-svg.small {
  width: 24px;
  height: 24px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fbcd5;
}

.contact-text a {
  color: #e5f8ff;
  font-weight: 500;
  text-decoration: none;
}

.contact-text a:hover {
  color: #38bdf8;
}

/* CTA buttons */
.contact-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-btn {
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  border-radius: 999px;
  font-weight: 600;
  border: none;
}

.schedule-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 18px rgba(34,197,94,0.5);
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #bbf7d0;
  text-decoration: none;
}

.whatsapp-cta:hover {
  color: #4ade80;
}

/* QR block */
.contact-qr {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-frame {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  padding: 6px;
  background: radial-gradient(circle at 10% 0%, rgba(56,189,248,0.4), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}


.qr-caption {
  font-size: 0.85rem;
  color: #9fbcd5;
  max-width: 220px;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease-out 0.15s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-qr {
    flex-direction: row;
  }
}
/* ---------------------------------
   Glow / reflection para todos los cards
   --------------------------------- */

/* Aplica esta clase a cada tarjeta que quieras animar */
.card-glow {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,1));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.7);
}

/* Reflejo animado tipo “sheen” */
.card-glow::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 50%;
  height: 300%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.08) 35%,
    rgba(255,255,255,0.30) 50%,
    rgba(255,255,255,0.08) 65%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
  animation: cardShine 7s ease-in-out infinite;
}

@keyframes cardShine {
  0% {
    opacity: 0;
    transform: translateX(-140%) skewX(-20deg);
  }
  12% {
    opacity: 0.9;
    transform: translateX(140%) skewX(-20deg);
  }
  25% {
    opacity: 0;
    transform: translateX(200%) skewX(-20deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-140%) skewX(-20deg);
  }
}
/* Títulos con acento degradado tipo "growing businesses" */

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb; /* parte blanca */
}

.card-title .accent {
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* La sección de contacto debe ser el contexto del orb */
.section-contact {
  position: relative;
}

/* Contenedor del orb flotante en la esquina */
.floating-orb-contact {
  position: absolute;
  right: 6vw;          /* mueve más o menos hacia donde está tu flecha */
  bottom: 4vh;
  pointer-events: none; /* que no bloquee clicks del formulario */
  z-index: 1;
}

/* Versión 3D del orb */
.logo-orb-3d {
  transform: translateZ(0); /* activa aceleración */
  animation: orbSpin 10s linear infinite;
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.6),
    0 0 40px rgba(0, 100, 255, 0.35);
}

/* Si quieres que sea un poco más grande que el del header */
.logo-orb-3d {
  width: 64px;
  height: 64px;
}
/* -------------------------------------- */
/*  Developer signature (bottom right)    */
/* -------------------------------------- */

.developer-signature {
  position: absolute;
  right: 4.5vw;
  bottom: 1.5vh;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0,
    rgba(56, 189, 248, 0.25),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.4),
    0 0 26px rgba(56, 189, 248, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #e0f2fe;
  z-index: 11;
  animation:
    devSignatureFloat 6s ease-in-out infinite,
    devSignatureGlow 4s ease-in-out infinite;
}

.developer-signature .dev-label {
  text-transform: uppercase;
  opacity: 0.85;
}

.developer-signature .dev-name {
  font-weight: 600;
  background: linear-gradient(90deg, #e0f5ff, #6fd9ff, #e0f5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.developer-signature .dev-phone {
  text-decoration: none;
  color: #7dd3fc;
  font-weight: 500;
}

.developer-signature .dev-phone:hover {
  color: #e0f5ff;
}

/* Animación suave: flotando + pulso de glow */
@keyframes devSignatureFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes devSignatureGlow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(56, 189, 248, 0.35),
      0 0 18px rgba(56, 189, 248, 0.5);
  }
  50% {
    box-shadow:
      0 0 14px rgba(56, 189, 248, 0.7),
      0 0 32px rgba(56, 189, 248, 0.95);
  }
}

/* En móvil: que no estorbe y se vea centrado debajo del contenido */
@media (max-width: 768px) {
  .developer-signature {
    position: static;
    margin: 18px auto 0;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  }
}

/* Animación de giro lento para efecto 3D */
@keyframes orbSpin {
  0% {
    transform: rotate3d(0, 1, 0, 0deg);
  }
  50% {
    transform: rotate3d(0.2, 1, 0, 18deg) translateY(-3px);
  }
  100% {
    transform: rotate3d(0, 1, 0, 0deg);
  }
}

/* Ajuste responsive: oculta el orb en pantallas muy pequeñas */
@media (max-width: 768px) {
  .floating-orb-contact {
    display: none;
  }
}
/* -------------------------------------- */
/*   ORB GRANDE EN CONTACT SECTION        */
/* -------------------------------------- */

.floating-orb-contact {
  position: absolute;
  right: 5vw;      /* mueve hacia donde quieras */
  bottom: 6vh;
  pointer-events: none;
  z-index: 10;
}

/* Orb 3D grande */
.logo-orb-3d {
  position: relative;
  width: 120px;          /* ⭐ Más grande */
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 200, 255, 0.4), rgba(0, 50, 80, 0.9));
  overflow: hidden;
  backdrop-filter: blur(10px);

  box-shadow:
    0 0 40px rgba(0, 200, 255, 0.7),
    0 0 80px rgba(0, 150, 255, 0.4),
    inset 0 0 50px rgba(0, 150, 255, 0.3);

  animation: orbSpin3D 6s ease-in-out infinite,
             orbFloat3D 5s ease-in-out infinite;
}

/* Logo dentro del orb grande de contacto */
.floating-orb-contact .logo-orb-img {
  position: absolute;
  z-index: 3;
  width: 90%;          /* ✅ casi toda la esfera */
  height: 90%;
  top: 5%;             /* ✅ centrado dentro del círculo */
  left: 5%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7));
  animation: orbLogoFloat 4s ease-in-out infinite;
}


/* Glow dinámico */
.logo-orb-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.7), transparent 70%);
  animation: orbGlowPulse 4s ease-in-out infinite;
  opacity: 0.8;
}

/* -------------------------------------- */
/*  ANIMACIONES AVANZADAS 3D             */
/* -------------------------------------- */

@keyframes orbSpin3D {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: rotateY(45deg) rotateX(-10deg);
  }
  50% {
    transform: rotateY(90deg) rotateX(10deg);
  }
  75% {
    transform: rotateY(135deg) rotateX(-5deg);
  }
  100% {
    transform: rotateY(180deg) rotateX(0deg);
  }
}

@keyframes orbFloat3D {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes orbGlowPulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes orbLogoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Ocultar en móvil */
@media (max-width: 768px) {
  .floating-orb-contact {
    display: none;
  }
}
/* -------------------------------------- */
/*  Subtítulo brillante en Services       */
/* -------------------------------------- */

.section-subtitle-cta {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: #b9ddff;
  text-shadow:
    0 0 6px rgba(0, 200, 255, 0.7),
    0 0 16px rgba(0, 140, 255, 0.5);
  background: linear-gradient(90deg, #e0f5ff, #6fd9ff, #e0f5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: subtitleGlow 3.2s ease-in-out infinite;
  position: relative;
}

/* Efecto de “barra de luz” que pasa por encima del texto */
.section-subtitle-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  opacity: 0;
  animation: subtitleShine 4.5s ease-in-out infinite;
}

/* Pulso suave del glow */
@keyframes subtitleGlow {
  0% {
    text-shadow:
      0 0 5px rgba(0, 200, 255, 0.4),
      0 0 12px rgba(0, 140, 255, 0.35);
  }
  50% {
    text-shadow:
      0 0 10px rgba(0, 240, 255, 0.9),
      0 0 24px rgba(0, 180, 255, 0.8),
      0 0 40px rgba(0, 120, 255, 0.7);
  }
  100% {
    text-shadow:
      0 0 5px rgba(0, 200, 255, 0.4),
      0 0 12px rgba(0, 140, 255, 0.35);
  }
}

/* Animación del reflejo que cruza el texto */
@keyframes subtitleShine {
  0% {
    transform: translateX(-120%) skewX(-20deg);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    transform: translateX(180%) skewX(-20deg);
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}
/* --- Service cards with icons --- */

.service-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.service-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #c5d9ff;
}

.service-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #6ff2ff 0, #00a4ff 40%, #002c5b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 10px rgba(0, 200, 255, 0.8),
    0 0 22px rgba(0, 120, 255, 0.7);
  border: 1px solid rgba(173, 221, 255, 0.7);
}

/* Icono SVG dentro de la esfera */
.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: #e8f9ff;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Opcional: cuando el card hace hover, que también se anime la esfera */
.service-card:hover .service-icon {
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.9),
    0 0 26px rgba(0, 160, 255, 0.9);
  transform: translateY(-1px);
}
/* === UNIFICAR TAMAÑO DE TODOS LOS CARDS === */
.service-card,
.solution-card,
.industry-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 18px;
}

/* Iconos en todos los cards */
.service-card svg,
.solution-card svg,
.industry-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  fill: var(--accent);
  opacity: 0.9;
}
/* === TITLES UPGRADE === */

/* Color igual al botón "Schedule a free assessment" */
:root {
  --title-gradient: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.section-header h2,
.service-card h3,
.solution-card h3,
.industry-card h3,
.contact-info h3 {
  font-size: 1.45rem !important;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero h1 {
  font-size: 3rem !important;
}
/* === Mobile tweaks for hero + ticket modal === */
@media (max-width: 768px) {
  /* HERO en una sola columna */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* El panel del botón de ticket va debajo del texto */
  .hero-panel {
    order: 2;
    margin-top: 8px;
  }

  /* Ticket overlay a pantalla completa en móvil */
  .ticket-overlay {
    align-items: stretch;
    justify-content: stretch;
  }

  .ticket-dialog {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 18px 16px 22px;
    box-sizing: border-box;
  }

  /* Formularios en una sola columna */
  .ticket-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 10px;
  }

  .ticket-form .field-row {
    margin-bottom: 8px;
  }

  .ticket-heading {
    font-size: 1.3rem;
  }

  .ticket-intro {
    font-size: 0.85rem;
  }
}
/* === Más ancho en monitores grandes (sin romper mobile/tablet) === */
@media (min-width: 1440px) {
  .page-shell {
    max-width: 1500px;      /* antes 1200px */
  }
}
@media (min-width: 1440px) {
  .page-shell {
    max-width: 1600px;
  }
}
/* =======================================================
   *** EXPANSIÓN DEL OVERLAY DE SERVICIOS (MUCHO MÁS GRANDE) ***
   ======================================================= */

@media (min-width: 1024px) {
  .service-overlay-inner {
    max-width: 1100px !important;   /* antes 760–850 */
    width: 90% !important;          /* aprovecha toda la pantalla */
    padding: 40px 50px !important;
    transform: scale(1.03);         /* leve presencia */
  }

  .service-overlay-content h2 {
    font-size: 2rem !important;
    margin-bottom: 14px;
  }

  .service-intro {
    font-size: 1.15rem !important;
  }

  .service-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-top: 25px;
  }

  .service-column h3 {
    font-size: 1.2rem !important;
    margin-bottom: 10px;
  }

  .service-column ul li {
    font-size: 1.05rem !important;
    margin-bottom: 8px;
    line-height: 1.6;
  }

  .service-highlight {
    font-size: 1rem !important;
    margin-top: 25px;
  }

  .service-footer button {
    transform: scale(1.1);
  }
}

/* =======================================================
   *** EXPANSIÓN DEL OVERLAY DE TICKET ***
   ======================================================= */

@media (min-width: 1024px) {
  .support-ticket-inner {
    max-width: 1050px !important;
    width: 90% !important;
    padding: 45px !important;
  }

  .support-ticket-content h2 {
    font-size: 2.1rem !important;
  }

  .ticket-grid {
    gap: 28px !important;
  }

  .ticket-field label {
    font-size: 1.05rem !important;
  }

  .ticket-field input,
  .ticket-field select {
    height: 50px !important;
    font-size: 1.05rem !important;
  }

  .ticket-field textarea {
    font-size: 1.05rem !important;
    min-height: 160px !important;
  }

  .support-ticket-content > p {
    font-size: 1.15rem !important;
  }
}
/* CORECONNECT EXTRA */

.section-extra .section-header p {
  max-width: 680px;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.extra-card {
  padding: 18px 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
  animation: fadeUp 0.5s ease-out both;
}

.extra-card:nth-child(2) { animation-delay: 0.06s; }
.extra-card:nth-child(3) { animation-delay: 0.12s; }

.extra-card .card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.extra-list {
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.extra-timeline {
  margin: 10px 0 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.extra-timeline li {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border-left: 2px solid rgba(148,163,184,0.35);
  padding-left: 12px;
  position: relative;
}

.extra-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  box-shadow: 0 0 10px rgba(34,197,94,0.75);
}

.step-label {
  font-weight: 600;
  color: var(--text-main);
}

.step-text {
  opacity: 0.9;
}

.extra-note {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 6px;
}

.extra-small {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

/* Responsive de CoreConnect Extra */
@media (max-width: 992px) {
  .section-extra .extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* === Quick quote estimator (CoreConnect Extra) === */

.estimate-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estimate-form label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.estimate-form input[type="number"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.95);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.9rem;
}

.estimate-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.estimate-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.estimate-services label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.estimate-services input[type="checkbox"] {
  accent-color: #22c55e;
}

.estimate-btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.estimate-result {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.estimate-result strong {
  color: var(--accent-strong);
}

.estimate-note {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Responsive tweaks for CoreConnect Extra overlay */

@media (min-width: 768px) {
  .estimate-services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .service-overlay-inner.extra-overlay-inner {
    margin: 36px 14px;
  }

  .extra-overlay-inner {
    max-width: 100%;
  }

  .extra-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .service-overlay-inner.extra-overlay-inner {
    margin: 24px 10px;
    padding: 18px 14px;
  }

  .extra-content h2 {
    font-size: 1.2rem;
  }

  .extra-content .service-intro {
    font-size: 0.9rem;
  }
}
/* ===== Fix X button + responsive para CoreConnect Extra ===== */

/* En móviles, el overlay ocupa toda la pantalla */
@media (max-width: 768px) {
  #extraOverlay .service-overlay-inner {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  #extraOverlay .service-overlay-content {
    max-height: calc(100vh - 56px); /* deja espacio para la X */
  }

  /* Fijar la X en la esquina de la pantalla, siempre visible */
  #extraOverlay .overlay-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 60;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* En desktop se mantiene el diseño actual */
@media (min-width: 769px) {
  #extraOverlay .overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}

/* ============================================
   UPGRADE: Solutions + Industries cards
   ============================================ */

/* Layout de la sección "Built for real-world..." */
.section-solutions .solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Layout de la sección "Who we serve" */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Cards de Solutions (End-to-end, Security by design, etc.) */
.solution-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: flex-start;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top left,
    rgba(56,189,248,0.16),
    rgba(15,23,42,0.98)
  );
  border: 1px solid rgba(148,163,184,0.55);
  font-size: 0.9rem;
}

/* Burbuja del icono en Solutions */
.solution-icon {
  grid-row: 1 / span 2;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%,
    rgba(56,189,248,0.9),
    rgba(15,23,42,1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56,189,248,0.85);
  position: relative;
  overflow: hidden;
}

.solution-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(56,189,248,0.5);
  opacity: 0.7;
  animation: iconPulseSoft 4s ease-out infinite;
}

.solution-icon svg {
  width: 65%;
  height: 65%;
  stroke: #ecfeff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Texto en los cards de Solutions */
.solution-card h3 {
  margin: 0 0 4px;
}

.solution-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Hover extra en Solutions */
.solution-card:hover .solution-icon {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 26px rgba(56,189,248,1);
}


/* Cards de Industries (Who we serve) */
.industry-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top left,
    rgba(15,23,42,1),
    rgba(15,23,42,0.96)
  );
  border: 1px solid rgba(148,163,184,0.55);
  font-size: 0.9rem;
}

/* Burbuja del icono en Industries */
.industry-icon {
  grid-row: 1 / span 2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0%,
    rgba(94,234,212,0.85),
    rgba(15,118,110,1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(45,212,191,0.85);
  position: relative;
}

.industry-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(94,234,212,0.5);
  opacity: 0.6;
  animation: iconPulseSoft 4.2s ease-out infinite;
}

.industry-icon svg {
  width: 62%;
  height: 62%;
  stroke: #ecfeff;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Texto en los cards de Industries */
.industry-card h3 {
  margin: 0 0 4px;
}

.industry-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Hover extra en Industries */
.industry-card:hover .industry-icon {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 24px rgba(45,212,191,1);
}

/* Pulso suave compartido para iconos */
@keyframes iconPulseSoft {
  0% {
    transform: scale(0.96);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

/* Responsive: una sola columna en pantallas pequeñas */
@media (max-width: 900px) {
  .section-solutions .solutions-grid,
  .industries-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* --- 3D tilt effect for solution & industry cards --- */
.solutions-grid,
.industries-grid {
  perspective: 1000px;
}

.solution-card,
.industry-card {
  transform-style: preserve-3d;
}

.solution-card:hover,
.industry-card:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 18px 40px rgba(15,23,42,0.98);
}
/* ===== Overlay de Labs & Simulaciones ===== */

.labs-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
  display: flex;
  align-items: stretch;       /* 👉 que el contenido llene toda la altura */
  justify-content: center;
  padding: 0 20px;            /* sin padding vertical para aprovechar todo el alto */
}


.labs-overlay.hidden {
  display: none;
}

.labs-overlay-inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;               /* 👉 ocupa toda la altura disponible */
  max-height: 100vh;          /* igual que la ventana */
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 32px 80px rgba(15,23,42,1);
  padding: 24px 24px 26px;

  overflow-y: auto;           /* 👉 scroll interno si hace falta */
  overflow-x: hidden;         /* sin scroll horizontal */

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.labs-header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.labs-header p {
  margin: 0;
  color: var(--muted-text, #9ca3af);
  font-size: 0.9rem;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .labs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lab-card {
  background: radial-gradient(circle at top left,
    rgba(15,23,42,1),
    rgba(15,23,42,0.96)
  );
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 22px 50px rgba(15,23,42,0.9);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.lab-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.lab-header p {
  margin: 0;
  color: var(--muted-text, #9ca3af);
  font-size: 0.85rem;
}

.lab-screen {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.4);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 9px 11px;
  height: 130px;
  overflow-y: auto;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.5);
}

.lab-btn {
  margin-top: 4px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lab-btn:hover {
  filter: brightness(1.04);
}

.log-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.18s ease-out;
}

.log-line.visible {
  opacity: 1;
  transform: translateX(0);
}
/* ===== Labs & Live Simulations overlay (scroll fix + styling) ===== */

.labs-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
  padding: 24px 14px;
  overflow-y: auto;   /* 👉 Permite hacer scroll en móvil */
}

.labs-overlay.hidden {
  display: none;
}

.labs-overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 32px 80px rgba(15,23,42,1);
  padding: 22px 22px 24px;
  position: relative;
}

.labs-header h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.labs-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.lab-card {
  background: radial-gradient(circle at top left,
    rgba(15,23,42,1),
    rgba(15,23,42,0.96)
  );
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 22px 50px rgba(15,23,42,0.9);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.lab-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.lab-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.lab-screen {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.4);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 9px 11px;
  height: 130px;
  overflow-y: auto;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.5);
}

.lab-btn {
  margin-top: 4px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lab-btn:hover {
  filter: brightness(1.04);
}

/* Animación de entrada de cada línea del log (ya usada en JS) */
.log-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.18s ease-out;
}

.log-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile tweaks para Labs */
@media (max-width: 960px) {
  .labs-overlay {
    padding: 18px 10px;
  }

  .labs-overlay-inner {
    border-radius: 20px;
    padding: 18px 14px 20px;
  }

  .labs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
/* ===== Labs & Live Simulations overlay (mobile scroll fix) ===== */

.labs-overlay {
  /* cubre toda la pantalla */
  position: fixed;
  inset: 0;
  z-index: 90;

  /* permite hacer scroll dentro del overlay */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* centrado del contenido */
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* fondo similar al resto de overlays */
  padding: 24px 14px;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.96),
    rgba(2, 6, 23, 0.98)
  );
}

.labs-overlay.hidden {
  display: none;
}

.labs-overlay-inner {
  width: min(1200px, 100%);
  margin: 8px auto 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 1);
  padding: 22px 22px 24px;
  position: relative;
}

/* grid de labs */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

/* tarjetas individuales */
.lab-card {
  background: radial-gradient(circle at top left,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.96)
  );
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.lab-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.lab-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* consola de logs */
.lab-screen {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 9px 11px;
  height: 130px;
  overflow-y: auto;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

/* botón de cada lab */
.lab-btn {
  margin-top: 4px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lab-btn:hover {
  filter: brightness(1.04);
}

/* animación de línea de log (lo que ya usa tu JS) */
.log-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.18s ease-out;
}

.log-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive: en móviles, 1 columna y menos padding */
@media (max-width: 960px) {
  .labs-overlay {
    padding: 18px 10px;
  }

  .labs-overlay-inner {
    border-radius: 20px;
    padding: 18px 14px 20px;
  }

  .labs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
/* ===== Labs & Live Simulations overlay (FINAL, mobile safe) ===== */

/* Capa que cubre toda la pantalla */
.labs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;

  /* fondo y padding general */
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.96),
    rgba(2, 6, 23, 0.98)
  );
  padding: 20px 12px;

  /* 👉 clave: el scroll está en ESTE elemento */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.labs-overlay.hidden {
  display: none;
}

/* Caja interior de los labs */
.labs-overlay-inner {
  width: min(1200px, 100%);
  margin: 8px auto 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 1);
  padding: 20px 20px 22px;
  position: relative;
}

/* Cabecera */
.labs-header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.labs-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Grid de labs (desktop: 2 columnas) */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

/* Tarjeta de cada lab */
.lab-card {
  background: radial-gradient(circle at top left,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.96)
  );
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.lab-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.lab-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* Consola de logs */
.lab-screen {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 9px 11px;
  height: 130px;
  overflow-y: auto;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

/* Botón de cada lab */
.lab-btn {
  margin-top: 4px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lab-btn:hover {
  filter: brightness(1.04);
}

/* Animación de las líneas de log (JS ya lo usa) */
.log-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.18s ease-out;
}

.log-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Móvil: una sola columna y menos padding */
@media (max-width: 960px) {
  .labs-overlay {
    padding: 16px 8px;
  }

  .labs-overlay-inner {
    border-radius: 20px;
    padding: 16px 14px 20px;
  }

  .labs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
/* --- FIX: allow labs overlay to scroll on iPhone --- */

/* El contenedor grande debe poder hacer scroll vertical */
.labs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Quitar el max-height y el overflow:hidden heredado */
.labs-overlay-inner {
  max-height: none !important;
  overflow: visible !important;
}
/* ===== Labs overlay — glass, animations, icons, typing, theme toggle ===== */

/* contenedor grande, con scroll (ya lo arreglamos antes) */
.labs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 18px 10px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* parche para asegurarnos de que no se corta nada */
.labs-overlay-inner {
  max-height: none !important;
  overflow: visible !important;
}

/* glass profundo */
.labs-overlay-inner {
  width: min(1200px, 100%);
  margin: 8px auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(2,6,23,0.98));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow:
    0 24px 80px rgba(15,23,42,1),
    0 0 0 1px rgba(15,23,42,0.9);
  padding: 20px 20px 22px;
  position: relative;
  backdrop-filter: blur(18px);
}

/* theme más oscuro cuando está activo */
.labs-overlay-inner.labs-theme-strong {
  background: radial-gradient(circle at top, rgba(2,6,23,0.96), rgba(0,0,0,0.96));
  box-shadow:
    0 30px 90px rgba(0,0,0,0.95),
    0 0 0 1px rgba(15,23,42,0.95);
}

.labs-overlay-inner.labs-theme-strong .lab-card {
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(3,7,18,0.98));
}

/* header y controles */
.labs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.labs-header-text h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.labs-header-text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.labs-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* toggle deep dark mode */
.labs-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

.labs-theme-switch {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(148,163,184,0.45);
}

.labs-theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateX(0);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

/* estado ON del toggle */
.labs-theme-toggle.active .labs-theme-switch {
  background: rgba(56,189,248,0.8);
}

.labs-theme-toggle.active .labs-theme-knob {
  transform: translateX(16px);
  background: #0f172a;
}

/* botón Run all */
.labs-run-all {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #4ade80);
  color: #022c22;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.labs-run-all:hover {
  filter: brightness(1.04);
}

/* grid de cards */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

/* card con animación de entrada */
.lab-card {
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.96));
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 22px 50px rgba(15,23,42,0.9);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;

  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.35s ease-out,
    transform 0.35s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.lab-card.lab-card-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* hover suave */
.lab-card:hover {
  border-color: rgba(56,189,248,0.8);
  box-shadow: 0 26px 60px rgba(15,23,42,1);
}

/* header de cada card con icono */
.lab-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lab-header-text h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.lab-header-text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* iconos circulares */
.lab-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(56,189,248,0.8);
  background: radial-gradient(circle at 30% 0%, rgba(56,189,248,0.95), rgba(15,23,42,1));
}

.lab-icon svg {
  width: 70%;
  height: 70%;
  stroke: #ecfeff;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* variaciones de color por categoría */
.lab-icon-helpdesk {
  background: radial-gradient(circle at 30% 0%, rgba(56,189,248,0.95), rgba(15,23,42,1));
}

.lab-icon-network {
  background: radial-gradient(circle at 30% 0%, rgba(129,140,248,0.95), rgba(15,23,42,1));
}

.lab-icon-cloud {
  background: radial-gradient(circle at 30% 0%, rgba(56,189,248,0.95), rgba(30,64,175,1));
}

.lab-icon-backup {
  background: radial-gradient(circle at 30% 0%, rgba(52,211,153,0.95), rgba(15,23,42,1));
}

/* consola tipo terminal */
.lab-screen {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.4);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 9px 11px;
  height: 130px;
  overflow-y: auto;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.5);
}

/* typing effect lines */
.log-line {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.log-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* botón de cada lab */
.lab-btn {
  margin-top: 4px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lab-btn:hover {
  filter: brightness(1.04);
}

/* móvil: una sola columna y controles en columna */
@media (max-width: 960px) {
  .labs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .labs-controls {
    width: 100%;
    justify-content: space-between;
  }

  .labs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
/* === Fullscreen welcome gate (v3) === */
body.welcome-locked {
  overflow: hidden;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000814 100%);
  backdrop-filter: blur(26px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.welcome-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(56,189,248,0.20), transparent 60%),
    radial-gradient(circle at 85% 100%, rgba(129,140,248,0.22), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: welcomeBgShift 22s ease-in-out infinite alternate;
}

.welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.welcome-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  padding: 40px 32px 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,23,42,0.92)),
    radial-gradient(circle at top, rgba(37,99,235,0.2), transparent 55%);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow:
    0 40px 120px rgba(15,23,42,0.95),
    0 0 60px rgba(56,189,248,0.45);
  overflow: hidden;
  animation: welcomeFloat 14s ease-in-out infinite;
}

.welcome-orbit {
  position: absolute;
  inset: -40%;
  opacity: 0.40;
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,0.65), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(59,130,246,0.65), transparent 55%);
  filter: blur(38px);
  animation: welcomeDrift 18s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Logo circle */
.welcome-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.welcome-logo-circle {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, #0ea5e9, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 25px rgba(56,189,248,0.85),
    0 0 60px rgba(56,189,248,0.45),
    0 0 100px rgba(15,23,42,0.9);
  animation: welcomeLogoFloat 5.2s ease-in-out infinite;
}

.welcome-logo-circle img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.95));
}

/* Credit bottom-right */
.welcome-credit {
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-size: 0.72rem;
  color: rgba(148,163,184,0.9);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;

  /* fade-up suave al aparecer */
  opacity: 0;
  transform: translateY(10px);
  animation: creditFadeUp 0.8s ease-out forwards;
  animation-delay: 0.9s;
}


.welcome-credit span {
  font-weight: 600;
  color: #e5e7eb;
}

.welcome-credit a {
  color: rgba(96,165,250,0.95);
  text-decoration: none;
}

.welcome-credit a:hover {
  text-decoration: underline;
}

/* Core content */
.welcome-core {
  position: relative;
  text-align: center;
  z-index: 1;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 0 18px rgba(56,189,248,0.65);
  backdrop-filter: blur(18px);
}

.welcome-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56,189,248,0.9);
  animation: welcomePulse 1.6s ease-out infinite;
}

.welcome-title {
  margin: 10px 0 10px;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(120deg, #e0f2fe, #38bdf8, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: welcomeGlow 4s ease-in-out infinite alternate;
}

.welcome-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.welcome-tagline {
  margin: 0 0 26px;
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.96;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.welcome-btn {
  min-width: 180px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.92);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 0 0 rgba(56,189,248,0.4);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.2s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    opacity 0.18s ease-out;
}

.welcome-btn span {
  font-size: 1rem;
}

.welcome-btn-primary {
  background-image: linear-gradient(135deg, #38bdf8, #0ea5e9, #22c55e);
  background-size: 230% 230%;
  border-color: rgba(56,189,248,0.4);
  color: #0b1120;
  box-shadow: 0 10px 30px rgba(56,189,248,0.55);
}

.welcome-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  background-position: 100% 0;
  box-shadow: 0 18px 45px rgba(56,189,248,0.75);
}

.welcome-btn-ghost {
  background: rgba(15,23,42,0.9);
}

.welcome-btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px rgba(15,23,42,0.95);
  border-color: rgba(148,163,184,0.9);
}

.welcome-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 6px 18px rgba(15,23,42,0.9);
}

.welcome-overlay.closing .welcome-inner {
  animation: welcomeClose 0.45s ease forwards;
}

.welcome-overlay.playful .welcome-title {
  animation: welcomeShake 0.8s ease both;
}

/* Animations */
@keyframes welcomeBgShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-14px, 12px, 0);
  }
  100% {
    transform: translate3d(10px, -16px, 0);
  }
}

@keyframes welcomeDrift {
  0% { transform: translate3d(-10px, 8px, 0) rotate(0deg); }
  50% { transform: translate3d(18px, -12px, 0) rotate(3deg); }
  100% { transform: translate3d(-10px, 8px, 0) rotate(0deg); }
}

@keyframes welcomePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes welcomeGlow {
  from { text-shadow: 0 0 12px rgba(56,189,248,0.5); }
  to   { text-shadow: 0 0 26px rgba(129,140,248,0.9); }
}

@keyframes welcomeClose {
  to {
    transform: translateY(-16px) scale(0.98);
    opacity: 0;
  }
}
@keyframes creditFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes welcomeFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
/* Palabras tipo "estrellas" detrás del card */
.keyword-star {
  position: absolute;
  pointer-events: none;
  color: rgba(255,255,255,0.95); /* casi blanco puro */
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.6);

  /* ✨ Glow extremo, mucho más brillante y cinematográfico */
  text-shadow:
    0 0 14px rgba(255,255,255,0.95),
    0 0 22px rgba(56,189,248,0.8),
    0 0 40px rgba(56,189,248,0.7),
    0 0 65px rgba(37,99,235,0.85);

  animation-name: keywordStarFloat;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes keywordStarFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.6);
  }
  10% {
    opacity: 0.85;
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -24px, 0) scale(1.25);
  }
}

@keyframes welcomeLogoFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes welcomeShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* Responsive tweaks for welcome overlay */
@media (max-width: 900px) {
  .welcome-inner {
    max-width: 100%;
    width: calc(100% - 32px);
    padding: 28px 18px 26px;
    border-radius: 22px;
  }

  .welcome-title {
    font-size: 2rem;
  }
}

/* 👇 Ajuste final para mover el crédito más abajo en móviles */
@media (max-width: 768px) {

  .welcome-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;  /* ← más espacio antes del crédito */
  }

  .welcome-credit {
    position: static;        /* deja de flotar */
    margin-top: 18px;        /* ← empuja hacia abajo */
    padding-bottom: 20px;    /* ← añade aire extra debajo */
    font-size: 0.72rem;
    text-align: center;
    width: 100%;
    transform: none;
  }
}


@media (max-width: 480px) {
  .welcome-title {
    font-size: 1.45rem;
  }

  .welcome-subtitle,
  .welcome-tagline {
    font-size: 0.8rem;
  }

  .welcome-logo-circle {
    width: 100px;
    height: 100px;
  }
}
.btn-quote-inside {
  margin-top: 20px;
  padding: 14px 24px;
  background: #0ea5e9;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease-in-out;
  display: inline-block;
}

.btn-quote-inside:hover {
  background: #38bdf8;
  transform: scale(1.05);
}
.btn-quote-inside {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15,23,42,0.8);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  white-space: nowrap;
}

.btn-quote-inside:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.95);
}
.btn-quote-inside {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15,23,42,0.8);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  white-space: nowrap;
}

.btn-quote-inside:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.95);
}
/* === FIX: CoreConnect Extra overlay & close button === */

/* Botón X base (todas las modales) */
.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15,23,42,0.98);
  color: #f9fafb;        /* más visible */
  font-size: 1rem;
  z-index: 10;
}

.overlay-close:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}


/* Layout especial para CoreConnect Extra en pantallas pequeñas */
@media (max-width: 768px) {
  /* El overlay ocupa toda la pantalla */
  #extraOverlay .service-overlay-inner {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  /* El contenido hace scroll dentro del overlay */
  #extraOverlay .service-overlay-content {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  /* La X queda fija en la esquina del teléfono */
  #extraOverlay .overlay-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
  }
}
/* === Fix zoom: cuando la pantalla es pequeña o con zoom, fijar la X a la ventana === */
@media (max-width: 1400px), (max-height: 900px) {
  .service-overlay .overlay-close {
    position: fixed;   /* ya no depende de la tarjeta, sino de la ventana */
    top: 12px;
    right: 12px;
    z-index: 1000;     /* siempre encima del contenido */
  }
}
/* ---------------------------------------
   Hidden Admin Dashboard (local only)
---------------------------------------- */

.admin-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(3,7,18,0.98));
  backdrop-filter: blur(18px);
  z-index: 40;
}

.admin-overlay.hidden {
  display: none;
}

.admin-overlay-inner {
  width: min(1100px, 92vw);
  max-height: 86vh;
  padding: 24px 28px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(15,23,42,0.99));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-header h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.admin-header p {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.8);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 8px;
  flex: 1;
}

.admin-card {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.admin-card h3 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 10px;
}
.security-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.security-overview-grid.secondary {
  margin-top: 10px;
}

.security-chip {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.chip-label {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.chip-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5f8ff;
}

.sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 90px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.sec-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.25);
}

.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.admin-kpi-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0f2fe;
}

.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-health-metric .admin-kpi-value {
  font-size: 1rem;
}

.admin-service-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.9);
}

.status-ok {
  background: #22c55e;
}

.admin-log-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.admin-visits-table-wrapper {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;    /* <- para poder desplazarse si la tabla es más ancha */
  margin-top: 8px;
}

.admin-visits-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;         /* deja que las columnas se autoajusten */
  font-size: 0.8rem;          /* un pelín más pequeño para que quepa más */
}


.admin-visits-table th,
.admin-visits-table td {
  padding: 4px 8px;
  white-space: nowrap;      /* todo en una sola línea */
  overflow: visible;        /* ya no cortamos contenido */
  text-overflow: clip;      /* sin “...” */
}



.admin-visits-table th {
  text-align: left;
  font-weight: 600;
  color: #e5f8ff;
}

.admin-visits-table td {
  color: #d1d5f9;
  white-space: nowrap;
}

.admin-visits-table tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.65);
}

.admin-log-pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(22, 163, 74, 0.6);
}

.admin-log-pill.level-warn {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.7);
}

.admin-log-pill.level-error {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.8);
}

.admin-log-body {
  flex: 1;
  min-height: 180px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
}

.admin-log-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 3px 0;
  color: rgba(226, 232, 240, 0.9);
}

.admin-log-time {
  color: rgba(148, 163, 184, 0.9);
}

.admin-log-line.admin-log-error .admin-log-msg {
  color: #fecaca;
}

.admin-log-line.admin-log-warn .admin-log-msg {
  color: #facc15;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ============================
   Hidden Admin Dashboard
   ============================ */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(3,7,18,0.98));
  backdrop-filter: blur(18px);
}

.admin-overlay.hidden {
  display: none;
}

.admin-overlay-inner {
  width: min(1080px, 96vw);
  max-height: 88vh;
  padding: 20px 22px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(3,7,18,0.98));
  box-shadow:
    0 24px 80px rgba(15,23,42,0.95),
    0 0 0 1px rgba(148,163,184,0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #e5e7eb;
}

.admin-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f9fafb;
}

.admin-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.admin-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22,163,74,0.1);
  color: #bbf7d0;
  border: 1px solid rgba(22,163,74,0.35);
}

.admin-log-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(37,99,235,0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.45);
}

.admin-log-pill.level-error {
  background: rgba(220,38,38,0.16);
  color: #fecaca;
  border-color: rgba(248,113,113,0.8);
}

.admin-log-pill.level-warn {
  background: rgba(234,179,8,0.18);
  color: #fef9c3;
  border-color: rgba(234,179,8,0.7);
}

.admin-close-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.95));
  color: #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.35),
    0 14px 40px rgba(15,23,42,0.85);
}

.admin-close-btn span {
  font-size: 1.1rem;
}

.admin-close-btn:hover {
  box-shadow:
    0 0 0 1px rgba(250,250,250,0.22),
    0 18px 54px rgba(15,23,42,0.98);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.admin-card {
  border-radius: 18px;
  padding: 14px 14px 16px 14px;
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.96));
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,0.95),
    0 18px 40px rgba(15,23,42,0.96);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.admin-kpi {
  padding: 8px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at bottom left, rgba(15,23,42,1), rgba(15,23,42,0.9));
  box-shadow: inset 0 0 0 1px rgba(31,41,55,0.8);
}

.admin-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
}

.admin-kpi-value {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 2px;
  color: #f9fafb;
}

.admin-health-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.admin-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: radial-gradient(circle at left, rgba(15,23,42,1), rgba(15,23,42,0.9));
  box-shadow: inset 0 0 0 1px rgba(31,41,55,0.9);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
}

.status-ok {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(21,128,61,0.9), 0 0 14px rgba(16,185,129,0.8);
}

.admin-log-card {
  height: 100%;
}

.admin-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-log-body {
  max-height: 260px;
  min-height: 200px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.96));
  box-shadow: inset 0 0 0 1px rgba(31,41,55,1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.admin-log-line {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  align-items: baseline;
  color: #e5e7eb;
  opacity: 0.85;
}

.admin-log-line + .admin-log-line {
  border-top: 1px solid rgba(31,41,55,0.9);
}

.admin-log-line.admin-log-error {
  color: #fecaca;
}

.admin-log-line.admin-log-warn {
  color: #fef9c3;
}

.admin-log-time {
  flex: 0 0 auto;
  width: 70px;
  color: #6b7280;
}

.admin-log-msg {
  flex: 1 1 auto;
}

@media (max-width: 960px) {
  .admin-overlay-inner {
    max-height: 94vh;
  }
  .admin-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* ============================
   Security Incident Lab
   ============================ */
.lab-card-security {
  border: 1px solid rgba(148,163,184,0.38);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.98),
    inset 0 0 0 1px rgba(15,23,42,0.96);
}

.lab-security-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.lab-btn-compact {
  width: auto;
  padding-inline: 14px;
  font-size: 0.75rem;
}

.lab-screen-security {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(3,7,18,0.98));
  border-radius: 14px;
  padding: 14px 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(30,64,175,0.7);

  /* 👉 hace que el módulo completo sea más alto */
  min-height: 260px;
}


.lab-security-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.sec-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(30,64,175,0.25);
  border: 1px solid rgba(59,130,246,0.75);
  color: #dbeafe;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sec-pill.scenario-ransom {
  background: rgba(220,38,38,0.15);
  border-color: rgba(248,113,113,0.8);
  color: #fee2e2;
}

.sec-pill.scenario-ddos {
  background: rgba(234,179,8,0.18);
  border-color: rgba(250,204,21,0.8);
  color: #fef9c3;
}

.sec-pill.scenario-breach {
  background: rgba(37,99,235,0.2);
  border-color: rgba(59,130,246,0.9);
  color: #dbeafe;
}

.sec-counter {
  font-size: 0.75rem;
  color: #e5e7eb;
}

.lab-security-graph {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-bar-bg {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(15,23,42,1), rgba(15,23,42,0.9));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
  overflow: hidden;
}

.sec-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
  box-shadow: 0 0 16px rgba(59,130,246,0.8);
  transition: width 0.25s ease-out;
}

.sec-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #9ca3af;
}

.lab-security-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  background: radial-gradient(circle at left, rgba(15,23,42,1), rgba(15,23,42,0.96));
  border: 1px solid rgba(30,64,175,0.9);
  color: #dbeafe;
  opacity: 0.9;
}

.lab-security-alert.active {
  border-color: rgba(248,113,113,0.85);
  box-shadow: 0 0 16px rgba(248,113,113,0.8);
}

.sec-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.8);
}

.lab-security-alert.active .sec-alert-dot {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239,68,68,0.9);
}

.lab-security-log {
  /* 👉 dejamos crecer el log para que se vean todas las líneas */
  height: auto;
  max-height: none;
  min-height: 150px;
  overflow-y: auto;

  padding: 8px 8px 6px;
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.95));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.74rem;
}


/* ============================
   Mini Assistant Widget
   ============================ */
.cc-assistant {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.cc-assistant-toggle {
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 7px 10px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.98));
  color: #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.4),
    0 16px 40px rgba(15,23,42,0.98);
}

.cc-assistant-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.cc-assistant-label {
  white-space: nowrap;
}

.cc-assistant-panel {
  pointer-events: auto;
  position: relative;
  width: min(320px, 92vw);
  border-radius: 18px;
  padding: 10px 10px 10px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(3,7,18,0.98));
  box-shadow:
    0 24px 64px rgba(15,23,42,0.98),
    0 0 0 1px rgba(148,163,184,0.45);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  display: none;
}

.cc-assistant.open .cc-assistant-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cc-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5e7eb;
}

.cc-assistant-close {
  border: none;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(15,23,42,1);
  color: #9ca3af;
  cursor: pointer;
}

.cc-assistant-body {
  max-height: 180px;
  overflow-y: auto;
  padding: 6px 4px 6px;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.96));
  box-shadow: inset 0 0 0 1px rgba(30,64,175,0.9);
  font-size: 0.78rem;
  color: #e5e7eb;
}

.cc-assistant-msg {
  padding: 6px 8px;
  border-radius: 10px;
  margin-bottom: 5px;
  line-height: 1.25;
}

.cc-assistant-msg-bot {
  background: rgba(30,64,175,0.55);
}

.cc-assistant-msg-user {
  align-self: flex-end;
  background: rgba(15,23,42,1);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.4);
}

.cc-assistant-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cc-assistant-form input {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,1);
  color: #e5e7eb;
  font-size: 0.78rem;
  padding: 6px 10px;
}

.cc-assistant-form input::placeholder {
  color: #6b7280;
}

.cc-assistant-form button {
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(to right, #22c55e, #22c55e);
  color: #022c22;
  box-shadow: 0 10px 28px rgba(16,185,129,0.9);
}
.assistant-ticket-button {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(to right, #22c55e, #a3e635);
  color: #022c22;
  box-shadow: 0 10px 28px rgba(16,185,129,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.assistant-ticket-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(16,185,129,0.9);
}

@media (max-width: 640px) {
  .cc-assistant {
    right: 10px;
    bottom: 10px;
  }
}
.visit-type-bot {
  color: #f97373;
  font-weight: 600;
}

.visit-type-proxy {
  color: #facc15;
}

.visit-type-human {
  color: #4ade80;
}

.visit-type-internal {
  color: #38bdf8;
}
.security-events-wrapper {
  max-height: 160px;
  overflow-y: auto;
  margin-top: 8px;
}

.block-ip-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.block-ip-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 8px;
  color: #e5f8ff;
  font-size: 0.8rem;
}

.block-ip-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
}

.block-ip-btn:hover {
  background: #b91c1c;
}

.blocked-ips-wrapper {
  margin-top: 10px;
}
.assistant-btn {
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(56,189,248,0.25);
  color: white;
  border: 1px solid rgba(56,189,248,0.7);
  cursor: pointer;
}

.assistant-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: rgba(15,23,42,0.97);
  border: 1px solid rgba(56,189,248,0.65);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 999999;
  backdrop-filter: blur(10px);
}

.assistant-widget.hidden {
  display: none !important;
}

.assistant-header {
  padding: 10px;
  background: rgba(56,189,248,0.2);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56,189,248,0.4);
}

.assistant-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.msg-user {
  text-align: right;
  margin: 6px 0;
  color: #38bdf8;
}

.msg-bot {
  text-align: left;
  margin: 6px 0;
  color: #e5e7eb;
}

.assistant-input-row {
  display: flex;
  padding: 10px;
  gap: 6px;
}

.assistant-input-row input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.96);
  color: white;
  padding: 8px;
}
