/* OptiStock — industrial / visión / alerta sobria (distinto de OptiOpera y OptiConnecta) */
.optistock-page {
  --os-ink: #070b12;
  --os-panel: #0f1623;
  --os-line: rgba(148, 163, 184, 0.22);
  --os-amber: #f59e0b;
  --os-amber-soft: rgba(245, 158, 11, 0.16);
  --os-cyan: #22d3ee;
  --os-cyan-soft: rgba(34, 211, 238, 0.14);
  --os-ok: #34d399;
  --os-warn: #fb7185;
  --os-text: #e2e8f0;
  --os-muted: #94a3b8;
}

.optistock-page .ambient-bg {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(245, 158, 11, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 0%, rgba(34, 211, 238, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(15, 23, 42, 0.9), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a1018 40%, #0c1220 100%);
}

.optistock-page .grid-lines {
  opacity: 0.28;
}

.optistock-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.optistock-brand-mark strong {
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}
.optistock-brand-mark span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: var(--os-amber-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.optistock-page .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
}
.optistock-page .btn-primary:hover {
  filter: brightness(1.05);
}
.optistock-page .btn-secondary {
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
  color: #e0f2fe;
}
.optistock-page .section-label {
  color: #fbbf24;
}
.optistock-page .navbar-whatsapp {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
}

/* —— Hero demo (foto real + overlays) —— */
.os-hero-demo {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  min-height: 22rem;
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  background: #0b1220;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.6);
}
.os-hero-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}
.os-hero-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.15), rgba(7, 11, 18, 0.55) 70%, rgba(7, 11, 18, 0.82)),
    linear-gradient(90deg, rgba(7, 11, 18, 0.35), transparent 40%);
  pointer-events: none;
}
.os-overlay {
  position: absolute;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ecfeff;
  border: 1px solid rgba(34, 211, 238, 0.65);
  background: rgba(8, 47, 73, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 0.35rem;
  padding: 0.28rem 0.45rem;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  animation: osPop 10s ease-in-out infinite;
}
.os-overlay.is-warn {
  border-color: rgba(251, 113, 133, 0.75);
  background: rgba(76, 5, 25, 0.78);
  color: #ffe4e6;
}
.os-overlay.is-ok {
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(6, 46, 34, 0.78);
  color: #d1fae5;
}
.os-box {
  position: absolute;
  z-index: 2;
  border: 1.5px solid rgba(34, 211, 238, 0.85);
  border-radius: 0.25rem;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), inset 0 0 24px rgba(34, 211, 238, 0.08);
  opacity: 0;
  animation: osBox 10s ease-in-out infinite;
}
.os-box::before,
.os-box::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #22d3ee;
  border-style: solid;
}
.os-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.os-box::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.os-ov-1 { top: 14%; left: 10%; animation-delay: 0.4s; }
.os-ov-2 { top: 28%; right: 12%; animation-delay: 1.4s; }
.os-ov-3 { bottom: 38%; left: 14%; animation-delay: 2.6s; }
.os-ov-4 { bottom: 22%; right: 10%; animation-delay: 4.2s; }
.os-ov-5 { bottom: 10%; left: 12%; animation-delay: 6s; }
.os-box-1 { top: 22%; left: 18%; width: 28%; height: 18%; animation-delay: 2.4s; }
.os-box-2 { top: 48%; right: 20%; width: 22%; height: 16%; animation-delay: 3.8s; }

@keyframes osPop {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  14%, 78% { opacity: 1; transform: translateY(0); }
  88%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes osBox {
  0%, 18% { opacity: 0; }
  26%, 72% { opacity: 1; }
  85%, 100% { opacity: 0; }
}

.os-hero-points {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.os-hero-points li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--os-text);
  font-size: 0.95rem;
  font-weight: 600;
}
.os-hero-points i {
  color: var(--os-cyan);
  margin-top: 0.2rem;
}

.os-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.os-fineprint {
  margin-top: 0.85rem;
  color: var(--os-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 36rem;
}

/* Problem split */
.os-split {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .os-split {
    grid-template-columns: 1.05fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
  }
}
.os-photo-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--os-line);
  min-height: 16rem;
}
.os-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 16rem;
}
.os-pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.os-pain-list li {
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.85);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: var(--os-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.os-pain-list li em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  color: var(--os-muted);
  font-weight: 500;
  font-size: 0.86rem;
}

/* Infra pipeline */
.os-pipe {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .os-pipe {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }
}
.os-pipe-step {
  text-align: center;
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.9);
  border-radius: 1rem;
  padding: 1rem 0.75rem;
}
.os-pipe-step strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}
.os-pipe-step span {
  display: block;
  margin-top: 0.3rem;
  color: var(--os-muted);
  font-size: 0.78rem;
}
.os-pipe-arrow {
  display: none;
  text-align: center;
  color: var(--os-cyan);
  font-weight: 800;
}
@media (min-width: 768px) {
  .os-pipe {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  }
  .os-pipe-arrow { display: block; }
}

/* Steps */
.os-steps {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .os-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}
.os-step {
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.88);
  border-radius: 1rem;
  padding: 1rem;
  min-height: 100%;
}
.os-step .n {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--os-amber);
}
.os-step h3 {
  margin: 0.4rem 0 0.35rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.os-step p {
  margin: 0;
  color: var(--os-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.os-timeline {
  margin-top: 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(160deg, rgba(8, 47, 73, 0.35), rgba(15, 22, 35, 0.95));
  border-radius: 1.15rem;
  padding: 1.1rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.os-timeline-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 0.82rem;
}
.os-timeline-row:last-child { border-bottom: 0; }
.os-timeline-row time { color: var(--os-cyan); font-weight: 700; }
.os-timeline-row strong { color: #fff; }
.os-timeline-row .tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(251, 113, 133, 0.18);
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.4);
}
.os-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.os-chip {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
}

/* Matrix */
.os-matrix {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--os-line);
}
.os-matrix th,
.os-matrix td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--os-line);
  font-size: 0.9rem;
}
.os-matrix th {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.os-matrix td {
  background: rgba(15, 22, 35, 0.75);
  color: var(--os-text);
}
.os-matrix tr:last-child td { border-bottom: 0; }

/* Cards */
.os-cards {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .os-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .os-cards.os-cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.os-card {
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.9);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}
.os-card h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.os-card p {
  margin: 0;
  color: var(--os-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Evidence strip */
.os-evidence {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .os-evidence {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
  }
}
.os-ev {
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.9);
  border-radius: 0.9rem;
  padding: 0.9rem;
  text-align: center;
}
.os-ev .k {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-cyan);
}
.os-ev p {
  margin: 0.45rem 0 0;
  color: var(--os-text);
  font-size: 0.86rem;
  font-weight: 600;
}
.os-ev.is-alert {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(76, 5, 25, 0.35);
}
.os-ev.is-alert .k { color: #fb7185; }

/* Phone mock */
.os-phone {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  padding: 0.7rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.os-phone-screen {
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #0f172a, #111827);
  padding: 1rem;
  min-height: 22rem;
}
.os-phone-screen .loc {
  font-size: 0.72rem;
  color: var(--os-amber);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.os-phone-screen h4 {
  margin: 0.35rem 0 0.75rem;
  color: #fff;
  font-size: 1.15rem;
}
.os-phone-screen .meta {
  color: var(--os-muted);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}
.os-phone-screen .btn-fake {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  border-radius: 0.7rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Dashboard mock */
.os-dash {
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(160deg, #0b1220, #111827 60%);
  border-radius: 1.25rem;
  padding: 1.15rem;
}
.os-dash-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.os-dash-top h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}
.os-dash-top .badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbf7d0;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}
.os-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.os-kpi div {
  border: 1px solid var(--os-line);
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: rgba(2, 6, 23, 0.45);
}
.os-kpi strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
}
.os-kpi span {
  color: var(--os-muted);
  font-size: 0.72rem;
}
.os-reco {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem;
}
.os-reco h4 {
  margin: 0 0 0.55rem;
  color: #fde68a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.os-reco ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.os-reco li {
  color: var(--os-text);
  font-size: 0.86rem;
  font-weight: 600;
}
.os-reco li span {
  color: var(--os-muted);
  font-weight: 500;
  display: block;
  font-size: 0.78rem;
}
.os-demo-note {
  margin-top: 0.75rem;
  color: var(--os-muted);
  font-size: 0.78rem;
}

/* FAQ */
.os-faq details {
  border: 1px solid var(--os-line);
  background: rgba(15, 22, 35, 0.85);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.55rem;
}
.os-faq summary {
  cursor: pointer;
  color: #fff;
  font-weight: 750;
  list-style: none;
}
.os-faq summary::-webkit-details-marker { display: none; }
.os-faq p {
  margin: 0.65rem 0 0;
  color: var(--os-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Form */
.os-form-card {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), rgba(15, 22, 35, 0.95));
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem;
}
.os-form-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .os-form-grid { grid-template-columns: 1fr 1fr; }
}
.os-form-grid label {
  display: grid;
  gap: 0.3rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
}
.os-form-grid input,
.os-form-grid select,
.os-form-grid textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.65);
  color: #fff;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
}
.os-form-grid textarea { min-height: 5.5rem; resize: vertical; }
.os-form-full { grid-column: 1 / -1; }

.os-ecosystem {
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  color: var(--os-text);
  font-size: 0.92rem;
}
.os-ecosystem a {
  color: #67e8f9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.os-preview-banner {
  display: none;
}

.os-interest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.os-interest label { cursor: pointer; }
.os-interest input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.os-interest span {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  color: #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}
.os-interest input:checked + span {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}
@media (max-width: 520px) {
  .os-interest { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .os-overlay, .os-box { animation: none; opacity: 1; transform: none; }
}
