/* Asystir Digital — sitio de marketing
   Extiende la plantilla EasyFolio con el mismo lenguaje visual de los sitios Asystir
   (barra violeta, acento naranja, cian del logo). */

:root {
  --ad-ink: #0f2943;
  --ad-deep: #2f1b5a;
  --ad-menu: #2a1258;
  --ad-menu-text: #ffffff;
  --ad-cyan: #00e5f0;
  --ad-indigo: #4b3bd6;
  --ad-green: #12b886;
  --ad-soft: #f6f1ea;
  --ad-mist: #eef3f8;
  --ad-line: rgba(15, 41, 67, 0.08);

  --nav-color: var(--ad-menu-text);
  --nav-hover-color: var(--ad-cyan);
  --nav-mobile-background-color: var(--ad-menu);
  --nav-dropdown-background-color: #341a6b;
  --nav-dropdown-color: var(--ad-menu-text);
  --nav-dropdown-hover-color: var(--ad-cyan);
}

/* ---------- Header ---------- */
.header {
  color: var(--ad-menu-text);
  background-color: var(--ad-menu);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header .header-container {
  background: transparent;
  border-radius: 0;
  padding: 0 8px;
  box-shadow: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.brand-logo img {
  height: 40px;
  width: auto;
  margin: 0 !important;
}

.brand-logo .brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-logo .brand-name {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand-logo .brand-name b {
  font-weight: 700;
  background: linear-gradient(90deg, #12a8f0, var(--ad-cyan) 60%, #0fe0a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo .brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.header .header-social-links a { color: rgba(255, 255, 255, 0.72); }
.header .header-social-links a:hover { color: var(--ad-cyan); }
.mobile-nav-toggle { color: var(--ad-menu-text) !important; }

.navmenu ul li a { font-size: 14px; white-space: nowrap; }

.navmenu .nav-cta {
  background: var(--accent-color);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 18px !important;
  margin-left: 6px;
}

.navmenu .nav-cta:hover { background: color-mix(in srgb, var(--accent-color), #000 10%); }

@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus { color: var(--ad-menu-text); }
  .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus { color: var(--ad-cyan); }
  .navmenu .nav-cta.active { color: #fff !important; }
}

@media (max-width: 1199px) {
  .navmenu a, .navmenu a:focus { color: var(--ad-menu-text); }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus { color: var(--ad-cyan); }
  .navmenu .nav-cta { margin: 10px 20px; display: inline-block !important; }
  .header .header-social-links { display: none; }
}

@media (max-width: 1399px) {
  .navmenu ul li a { font-size: 13px; padding: 8px 10px; }
}

/* ---------- Buttons (global, como en el hero) ---------- */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.9rem;
  font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%) !important;
  border-color: color-mix(in srgb, var(--accent-color), #000 10%) !important;
  color: #fff;
}

.btn-outline {
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  color: var(--accent-color);
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
}

.btn-outline:hover { background: var(--accent-color); color: #fff; }

.btn-light-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
}

.btn-light-outline:hover { background: #fff; color: var(--ad-deep); }

/* ---------- Home hero ---------- */
.index-page .hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(1100px 460px at 0% -10%, rgba(232, 117, 50, 0.13), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(75, 59, 214, 0.14), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--ad-mist) 100%);
}

.hero .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-size: 0.85rem;
  color: var(--ad-ink);
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 41, 67, 0.06);
}

.hero .eyebrow-pill .tag {
  background: var(--ad-deep);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.index-page .hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.text-grad {
  background: linear-gradient(90deg, var(--ad-indigo), #1597e5 55%, #0fbf9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index-page .hero .lead {
  font-size: 1.18rem;
  max-width: 34rem;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
}

.hero .cta-buttons { flex-wrap: wrap; }

.hero .hero-stats { gap: 2.25rem; flex-wrap: wrap; }

.hero .hero-stats .stat-item .stat-number { font-size: 1.9rem; }

/* Hero composition: screenshot + floating cards */
.hero-visual {
  position: relative;
  padding: 1.5rem 0 2.5rem 1.5rem;
}

.hero-visual .shot-frame { animation: ad-float 8s ease-in-out infinite; }

.float-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 18px 40px rgba(15, 41, 67, 0.18);
  border: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--ad-ink);
  max-width: 260px;
}

.float-card i {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #fff;
}

.float-card strong { display: block; font-size: 0.86rem; }
.float-card small { color: color-mix(in srgb, var(--default-color), transparent 40%); }

.float-card.fc-1 { left: -6px; bottom: 6px; animation: ad-float 6s ease-in-out infinite; }
.float-card.fc-2 { right: -10px; top: -4px; animation: ad-float 7s ease-in-out 1s infinite; }
.float-card.fc-3 { right: 8%; bottom: -10px; animation: ad-float 6.5s ease-in-out 0.5s infinite; }

.bg-indigo { background: var(--ad-indigo); }
.bg-green { background: var(--ad-green); }
.bg-orange { background: var(--accent-color); }
.bg-cyan { background: #12a8f0; }
.bg-deep { background: var(--ad-deep); }

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

@media (max-width: 991px) {
  .hero-visual { padding: 1rem 0 3rem; margin-top: 2rem; }
  .float-card.fc-2 { right: 0; }
  .float-card.fc-1 { left: 0; }
}

@media (max-width: 576px) {
  .float-card { font-size: 0.75rem; max-width: 210px; padding: 8px 10px; }
  .float-card.fc-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .shot-frame, .float-card { animation: none !important; }
}

/* ---------- Modalities strip ---------- */
.modality-strip {
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--ad-line);
  border-bottom: 1px solid var(--ad-line);
}

.modality-strip .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  font-weight: 600;
}

.modality-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
}

.modality-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 1.02rem;
  color: var(--ad-ink);
}

.modality-strip li i { color: var(--ad-indigo); font-size: 1.15rem; }

/* ---------- Shot frame (screenshots) ---------- */
.shot-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 24px 60px rgba(15, 41, 67, 0.18);
  border: 1px solid var(--ad-line);
}

.shot-frame::before {
  content: "";
  display: block;
  height: 30px;
  background: linear-gradient(180deg, #2a3140, #1c2230);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shot-frame::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}

.shot-frame img { display: block; width: 100%; height: auto; }

.shot-frame a.glightbox { display: block; cursor: zoom-in; }

.shot-frame--photo { background: transparent; }
.shot-frame--photo::before, .shot-frame--photo::after { display: none; }

.shot-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(232, 117, 50, 0.14), transparent 60%),
    radial-gradient(900px 380px at 90% 0%, rgba(75, 59, 214, 0.13), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--ad-mist) 100%);
}

.page-hero .eyebrow, .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
  max-width: 20ch;
  line-height: 1.12;
}

.page-hero .lead { font-size: 1.15rem; max-width: 40rem; margin-bottom: 1.5rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hero-chips span {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ad-ink);
}

.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Dark page hero variant (product) */
.page-hero--dark {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(0, 229, 240, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(232, 117, 50, 0.18), transparent 60%),
    linear-gradient(135deg, #160d2e 0%, #2a1258 55%, #1b1440 100%);
  color: #fff;
}

.page-hero--dark h1, .page-hero--dark h2 { color: #fff; }
.page-hero--dark .lead { color: rgba(255, 255, 255, 0.84); }
.page-hero--dark .eyebrow { color: var(--ad-cyan); }

.page-hero--dark .hero-chips span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.page-hero--dark .shot-frame { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); border-color: rgba(255,255,255,.1); }

/* ---------- Section title (from template) ---------- */
.section-title p { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.benefit-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid rgba(15, 41, 67, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 41, 67, 0.1); }

.benefit-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.benefit-card .icon-wrap.iw-indigo { background: color-mix(in srgb, var(--ad-indigo), transparent 88%); color: var(--ad-indigo); }
.benefit-card .icon-wrap.iw-green { background: color-mix(in srgb, var(--ad-green), transparent 86%); color: #0b9b70; }
.benefit-card .icon-wrap.iw-cyan { background: color-mix(in srgb, #12a8f0, transparent 86%); color: #0b86c4; }

.benefit-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.benefit-card p { margin: 0; color: color-mix(in srgb, var(--default-color), transparent 25%); }

/* Suite pillars (home) */
.pillar-card {
  position: relative;
  height: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ad-line);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(15, 41, 67, 0.12); }

.pillar-card .num {
  position: absolute;
  right: 18px;
  top: 12px;
  font-family: var(--heading-font);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(15, 41, 67, 0.06);
  line-height: 1;
}

.pillar-card .icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.1rem;
}

.pillar-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.pillar-card p { color: color-mix(in srgb, var(--default-color), transparent 25%); font-size: 0.97rem; }

.pillar-card ul { list-style: none; padding: 0; margin: 0.9rem 0 0; font-size: 0.9rem; }
.pillar-card ul li { padding-left: 1.4rem; position: relative; margin-bottom: 0.4rem; }
.pillar-card ul li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--ad-green);
}

.pillar-card.is-featured {
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  box-shadow: 0 18px 40px rgba(232, 117, 50, 0.12);
}

.pillar-card .badge-first {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-color);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 0.7rem;
}

/* ---------- Automatic flow (signature diagram) ---------- */
.flow-band {
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(0, 229, 240, 0.14), transparent 60%),
    linear-gradient(135deg, #160d2e 0%, #2a1258 55%, #1b1440 100%);
  color: #fff;
}

.flow-band .section-title h2, .flow-band h3 { color: #fff; }
.flow-band .section-title p { color: rgba(255, 255, 255, 0.82); }
.flow-band .title-shape { color: var(--ad-cyan); }

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
}

.flow-step .node {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.flow-step:last-child .node {
  background: linear-gradient(135deg, var(--accent-color), #f39a4b);
  border-color: transparent;
  box-shadow: 0 0 0 8px rgba(232, 117, 50, 0.18);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(50% + 46px);
  width: calc(100% - 92px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ad-cyan) 0 8px, transparent 8px 14px);
  background-size: 28px 2px;
  animation: ad-dash 1.2s linear infinite;
  opacity: 0.85;
}

.flow-step:last-child::after { display: none; }

@keyframes ad-dash { to { background-position: 28px 0; } }

.flow-step .time {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-cyan);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.flow-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.flow-step p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); margin: 0; }

@media (max-width: 991px) {
  .flow { grid-template-columns: 1fr; gap: 1.6rem; }
  .flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 1rem; text-align: left; padding: 0; }
  .flow-step .node { width: 64px; height: 64px; font-size: 1.5rem; margin: 0; grid-row: span 3; }
  .flow-step::after {
    top: 70px; left: 31px; width: 2px; height: calc(100% - 46px);
    background: repeating-linear-gradient(180deg, var(--ad-cyan) 0 8px, transparent 8px 14px);
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) { .flow-step::after { animation: none; } }

.flow-total {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.flow-total span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.98rem;
}

.flow-total b { color: var(--ad-cyan); }

/* ---------- Phone mockup (portal del paciente) ---------- */
.phone {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 40px;
  background: #0d0b1a;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(15, 41, 67, 0.28), inset 0 0 0 2px #2b2843;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 20px;
  background: #0d0b1a;
  z-index: 3;
}

.phone .screen {
  border-radius: 30px;
  overflow: hidden;
  background: #f5f6fb;
  min-height: 540px;
  font-size: 0.78rem;
  color: var(--ad-ink);
}

.phone .app-top {
  background: linear-gradient(135deg, var(--ad-deep), var(--ad-indigo));
  color: #fff;
  padding: 46px 16px 18px;
}

.phone .app-top small { opacity: 0.75; display: block; }
.phone .app-top strong { font-size: 1.05rem; font-family: var(--heading-font); }

.phone .notif {
  margin: -10px 12px 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(15, 41, 67, 0.14);
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.phone .notif i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ad-green);
  color: #fff;
  flex: none;
}

.phone .list { padding: 4px 12px 14px; }
.phone .list h6 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7b8496; margin: 8px 4px; font-family: var(--default-font); }

.phone .study {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--ad-line);
}

.phone .study .th {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex: none;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.phone .study .meta { flex: 1; min-width: 0; line-height: 1.3; }
.phone .study .meta b { display: block; font-size: 0.8rem; }
.phone .study .meta span { color: #7b8496; font-size: 0.7rem; }

.phone .pill {
  font-size: 0.62rem;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-new { background: #e6f9f2; color: #0b8a63; }
.pill-wait { background: #fff3e8; color: #c45f1f; }
.pill-ok { background: #ece9ff; color: var(--ad-indigo); }

.phone .actions { display: flex; gap: 6px; padding: 0 12px 16px; }
.phone .actions span {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 0.68rem;
}

.phone .actions i { display: block; font-size: 1rem; color: var(--ad-indigo); margin-bottom: 2px; }

/* ---------- Pathway / steps ---------- */
.pathway { display: grid; gap: 1rem; }

@media (min-width: 992px) {
  .pathway { grid-template-columns: repeat(4, 1fr); }
  .pathway.pathway-3 { grid-template-columns: repeat(3, 1fr); }
  .pathway.pathway-5 { grid-template-columns: repeat(5, 1fr); }
}

.pathway-step {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(15, 41, 67, 0.07);
}

.pathway-step .step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.pathway-step h3 { font-size: 1.08rem; }
.pathway-step p { margin: 0; font-size: 0.94rem; color: color-mix(in srgb, var(--default-color), transparent 25%); }

/* ---------- Module link cards ---------- */
.module-link-card {
  display: block;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 41, 67, 0.08);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-link-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 41, 67, 0.12); color: inherit; }

.module-link-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #0f172a; }

.module-link-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}

.module-link-card .thumb.thumb-center img { object-position: center; }

.module-link-card:hover .thumb img { transform: scale(1.04); }
.module-link-card .body { padding: 1.15rem 1.25rem 1.35rem; }
.module-link-card .body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.module-link-card .body p { margin: 0; font-size: 0.95rem; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.module-link-card .body .more { display: inline-block; margin-top: 0.85rem; font-weight: 600; color: var(--accent-color); font-size: 0.9rem; }

/* ---------- Product spotlight ---------- */
.spotlight {
  border-radius: 28px;
  background:
    radial-gradient(700px 340px at 100% 0%, rgba(0, 229, 240, 0.16), transparent 60%),
    linear-gradient(135deg, #1a1036 0%, #2a1258 60%, #23184d 100%);
  color: #fff;
  padding: 3rem;
  overflow: hidden;
}

.spotlight h2, .spotlight h3 { color: #fff; }
.spotlight p, .spotlight li { color: rgba(255, 255, 255, 0.84); }
.spotlight .eyebrow { color: var(--ad-cyan); }
.spotlight .feature-list li::before { background: var(--ad-cyan); }

@media (max-width: 767px) { .spotlight { padding: 1.75rem 1.25rem; border-radius: 20px; } }

.spot-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.spot-stats div b { display: block; font-family: var(--heading-font); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.spot-stats div span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Roles tabs ---------- */
.role-tabs .nav-link {
  border-radius: 999px;
  color: var(--ad-ink);
  border: 1px solid var(--ad-line);
  background: #fff;
  margin: 0 6px 8px 0;
  padding: 0.55rem 1.1rem;
  font-weight: 500;
}

.role-tabs .nav-link i { margin-right: 6px; }

.role-tabs .nav-link.active { background: var(--ad-deep); color: #fff; border-color: var(--ad-deep); }

.role-panel {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 1rem;
}

@media (max-width: 767px) { .role-panel { padding: 1.25rem; } }

/* ---------- Feature splits ---------- */
.feature-split + .feature-split { margin-top: 4.5rem; }

.feature-split .subtitle {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-split h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.9rem; }

@media (max-width: 991px) { .feature-split .shot-frame { margin-bottom: 1.75rem; } }

.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.feature-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent-color);
}

/* ---------- Keyboard shortcuts ---------- */
.kbd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; }

.kbd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.kbd-item kbd {
  background: var(--ad-deep);
  color: #fff;
  border-radius: 8px;
  min-width: 44px;
  text-align: center;
  padding: 0.35rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 #170b33;
}

.kbd-item span { font-size: 0.93rem; line-height: 1.25; }
.kbd-item small { display: block; color: color-mix(in srgb, var(--default-color), transparent 45%); }

/* ---------- Lifecycle states ---------- */
.states { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; justify-content: center; }
.states .st { border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.9rem; font-weight: 600; }
.states .arrow { color: color-mix(in srgb, var(--default-color), transparent 55%); }
.st-todo { background: #ece9ff; color: var(--ad-indigo); }
.st-live { background: #ffe8e8; color: #d43838; }
.st-pend { background: #fff3e8; color: #c45f1f; }
.st-inf { background: #e6f2ff; color: #1d6fc4; }
.st-sign { background: #e6f9f2; color: #0b8a63; }

/* ---------- Modality cards ---------- */
.modality-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modality-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 41, 67, 0.1); }

.modality-card .mc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.9rem; }

.modality-card .mc-head i {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
}

.modality-card h3 { font-size: 1.15rem; margin: 0; }
.modality-card .code { font-size: 0.72rem; letter-spacing: 0.06em; color: color-mix(in srgb, var(--default-color), transparent 45%); font-weight: 600; }
.modality-card p { font-size: 0.94rem; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.modality-card ul { padding-left: 1.1rem; margin: 0; font-size: 0.9rem; }
.modality-card ul li { margin-bottom: 0.3rem; }

.modality-card.is-live { border: 2px solid color-mix(in srgb, var(--accent-color), transparent 40%); }
.modality-card .live-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-color);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: auto;
}

/* ---------- Spec table ---------- */
.spec-table { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--ad-line); }
.spec-table table { margin: 0; }
.spec-table th { width: 34%; font-weight: 600; color: var(--ad-ink); background: #fafbfd; font-size: 0.93rem; }
.spec-table td, .spec-table th { padding: 0.85rem 1.1rem; border-color: var(--ad-line); vertical-align: top; }
.spec-table td { font-size: 0.93rem; }

/* ---------- Standards badges ---------- */
.std-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.std-badges span {
  border: 1px solid var(--ad-line);
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ad-ink);
}
.std-badges span i { color: var(--ad-indigo); margin-right: 5px; }

/* ---------- Photo band ---------- */
.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  box-shadow: 0 20px 50px rgba(15, 41, 67, 0.16);
}

.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }

.photo-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 30, 0.82));
  color: #fff;
}

.photo-card .cap h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.25rem; }
.photo-card .cap p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Carousel ---------- */
.ad-swiper { padding-bottom: 2.75rem; }
.ad-swiper .swiper-slide { height: auto; }
.ad-swiper .swiper-pagination-bullet-active { background: var(--accent-color); }
.ad-swiper .swiper-button-next, .ad-swiper .swiper-button-prev { color: var(--accent-color); }

/* ---------- Why band ---------- */
.why-band { background: linear-gradient(135deg, #1a1233 0%, #2f1b5a 45%, #3d2a1a 100%); color: #fff; }
.why-band h2, .why-band h3, .why-band .section-title h2 { color: #fff; }
.why-band p, .why-band .lead { color: rgba(255, 255, 255, 0.86); }
.why-band .title-shape { color: var(--accent-color); }

.why-item {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.why-item i { font-size: 1.5rem; color: var(--ad-cyan); display: block; margin-bottom: 0.6rem; }
.why-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Comparison ---------- */
.compare { background: #fff; border: 1px solid var(--ad-line); border-radius: 18px; overflow: hidden; }
.compare table { margin: 0; }
.compare th, .compare td { padding: 0.9rem 1.1rem; vertical-align: middle; border-color: var(--ad-line); font-size: 0.94rem; }
.compare thead th { background: var(--ad-deep); color: #fff; font-weight: 600; }
.compare thead th.us { background: var(--accent-color); }
.compare td.us { background: #fff8f2; font-weight: 500; }
.compare .bi-check-circle-fill { color: var(--ad-green); }
.compare .bi-x-circle { color: #c9ced8; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--ad-line); border-radius: 14px !important; margin-bottom: 0.75rem; overflow: hidden; }
.faq .accordion-button { font-family: var(--heading-font); font-weight: 600; color: var(--ad-ink); font-size: 1.02rem; }
.faq .accordion-button:not(.collapsed) { background: #f7f5ff; color: var(--ad-deep); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(75, 59, 214, 0.15); }
.faq .accordion-body { color: color-mix(in srgb, var(--default-color), transparent 20%); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 4.5rem 0; background: var(--ad-soft); }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band .lead { max-width: 38rem; margin: 0 auto 1.5rem; }
.cta-band .cta-buttons { justify-content: center; }

/* ---------- Contact ---------- */
.contact-page .contact-info .info-item { font-size: 1.05rem; align-items: center; }
.contact-page .contact-info .info-item i { color: var(--accent-color); font-size: 1.25rem; }
.contact-page .contact-info a { color: inherit; }
.contact-page .contact-info a:hover { color: var(--accent-color); }

.contact-form.card { border: 1px solid var(--ad-line); border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 41, 67, 0.08); }
.contact-form .form-control, .contact-form .form-select { border-radius: 12px; padding: 0.75rem 1rem; border-color: rgba(15, 41, 67, 0.14); }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--ad-indigo); box-shadow: 0 0 0 0.2rem rgba(75, 59, 214, 0.12); }

/* ---------- Footer ---------- */
.footer.ad-footer {
  background: #150b2e;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 28px;
  font-size: 0.94rem;
}

.ad-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--nav-font);
  font-weight: 600;
}

.ad-footer ul { list-style: none; padding: 0; margin: 0; }
.ad-footer ul li { margin-bottom: 0.5rem; }
.ad-footer a { color: rgba(255, 255, 255, 0.78); }
.ad-footer a:hover { color: var(--ad-cyan); }
.ad-footer .ft-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ad-footer .ft-contact i { color: var(--accent-color); }
.ad-footer .ft-about { max-width: 22rem; margin-top: 1rem; }

.ad-footer .social-links { display: flex; gap: 10px; margin-top: 1.25rem; }
.ad-footer .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  color: #fff;
}
.ad-footer .social-links a:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

.ad-footer .ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.ad-footer .ft-bottom strong { color: #fff; }

/* Utilities */
.max-w-prose { max-width: 44rem; }
.text-soft { color: color-mix(in srgb, var(--default-color), transparent 30%); }
.rounded-20 { border-radius: 20px; }

/* Anclas por debajo del header fijo */
[id] { scroll-margin-top: 88px; }
.hero-chips a { text-decoration: none; }
.hero-chips a span:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* Títulos de sección sobre fondos oscuros: sin degradado de la plantilla */
.flow-band .section-title h2,
.why-band .section-title h2 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* Stats del hero en una sola fila */
.index-page .hero .hero-stats { gap: 1.75rem; flex-wrap: nowrap; }
.index-page .hero .hero-stats .stat-item { flex: 1 1 0; min-width: 0; }
@media (max-width: 576px) { .index-page .hero .hero-stats { flex-wrap: wrap; } }
