:root {
  color-scheme: light;
  --bg: #0b0f1a;
  --bg-soft: #0f172a;
  --text: #0f172a;
  --text-invert: #e2e8f0;
  --muted: #64748b;
  --brand: #1d4ed8;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #f4f6fb;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, var(--bg), #1e293b);
  color: var(--text-invert);
  padding: 72px 0 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 24px;
  color: #cbd5f5;
}

.hero-compact {
  padding: 56px 0 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.35);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.35);
}

.pill-link:hover {
  background: rgba(37, 99, 235, 0.2);
}

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.card ul li::before {
  content: "•";
  color: var(--brand);
  margin-right: 8px;
}

.cta {
  background: var(--bg-soft);
  color: var(--text-invert);
  padding: 32px;
  border-radius: 20px;
}

.cta p {
  margin-top: 10px;
  color: #cbd5f5;
}

.footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  margin-top: 24px;
}

.flow-tab {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #1f2937;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.flow-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.flow-grid {
  display: grid;
  gap: 28px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.flow-section {
  padding-top: 36px;
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.flow-section.is-hidden {
  display: none;
}

.screen-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 18px;
}

.screen-header h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.screen-header p {
  color: var(--muted);
}

.screen-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #334155;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 8px 12px;
}

.screen-step {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.screen-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-image img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  cursor: zoom-in;
}

.screen-image img[src=""] {
  display: none;
}

.screen-placeholder {
  width: 100%;
  min-height: 320px;
  border-radius: 14px;
  border: 1px dashed #cbd5f5;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.95rem;
  background: #f8fafc;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.image-modal.is-open {
  display: flex;
}

.image-modal__content {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  background: #0f172a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  overflow: auto;
  cursor: zoom-in;
}

.image-modal__content img {
  max-width: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #0b0f1a;
}

.image-modal__content.is-zoomed {
  cursor: zoom-out;
}

.image-modal__content.is-zoomed img {
  max-width: none;
  width: auto;
}

.image-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

.hotspot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
}

@media (min-width: 1024px) {
  .flow-grid:not(.dashboard-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .flow-grid:not(.dashboard-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dashboard: 1 columna, 2 imágenes grandes y claras */
.dashboard-grid {
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-grid .screen-card {
  padding: 24px;
}

.dashboard-grid .screen-image {
  padding: 20px;
  min-height: 360px;
}

.dashboard-grid .screen-image img {
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hotspot summary {
  list-style: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

.hotspot summary::-webkit-details-marker {
  display: none;
}

.hotspot .tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  width: max-content;
  max-width: 240px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  z-index: 2;
}

.hotspot:not([open]) .tooltip {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  background: #0b0f1a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.4);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 1.05rem;
  margin-top: 6px;
  color: #cbd5f5;
}

.closing {
  text-align: center;
  padding: 28px 18px;
}

.closing h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.closing p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 44px;
  }

  .section {
    padding: 36px 0;
  }
}
