﻿/* ============================================
   ESTILOS PRINCIPALES DEL SISTEMA OSAIH
   ============================================ */

/* ================= VARIABLES ================= */
:root {
  --ink: #232120;
  --ink-2: #2c2a28;
  --black: #141414;
  --red: #c8102e;
  --red-dark: #8f0b21;
  --amber: #ffb020;
  --cyan: #2fb8ae;
  --paper: #ffffff;
  --hero-bg-1: #dfe9ec;
  --hero-bg-2: #c9dde2;
  --text: #1c1c1c;
  --text-dim: #5a5f66;
  --line: #e2e6e8;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --display: 'Rajdhani', sans-serif;
  --montserrat: 'Montserrat', sans-serif;
}

/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ================= UTILITY BAR ================= */
.util-bar {
  background: var(--ink-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
}
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #b9bdc2;
  text-transform: uppercase;
}

.util-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 8px 16px;
  min-width: 230px;
  color: #c9cdd2;
  font-size: 13.5px;
}
.util-search svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex-shrink: 0;
}

.util-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.util-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e9ecef;
  font-weight: 500;
}
.util-phone svg {
  width: 14px;
  height: 14px;
}
.btn-cta {
  background: var(--amber);
  color: #1c1c1c;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 5px;
  border: none;
  white-space: nowrap;
}
.util-login {
  color: #e9ecef;
  font-weight: 500;
}
.util-login:hover {
  text-decoration: underline;
}

/* ================= NAV ================= */
nav.mainnav {
  background: var(--black);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 28px;
  overflow-x: auto;
}
nav.mainnav a {
  color: #d7dadd;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
nav.mainnav a:hover {
  color: #fff;
  border-bottom-color: var(--red);
}
nav.mainnav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--hero-bg-1), var(--hero-bg-2));
  overflow: hidden;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 90px 60px;
  position: relative;
}
.hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}
.hero-slide.active {
  display: grid;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--montserrat);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  font-weight: 700;
  margin-bottom: 22px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  max-width: 640px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}
.hero .lede {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: #3d4247;
  max-width: 520px;
}
.hero .lede strong {
  color: #1a1a1a;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 4px;
  border: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1.5px solid #b7bcc0;
}
.btn-secondary:hover {
  border-color: var(--ink);
}

/* ================= HERO VISUAL (Dispositivo) ================= */
.hero-visual {
  position: relative;
}
.device-frame {
  background: #0e131b;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(20, 20, 20, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #141b25;
  border-bottom: 1px solid #232d3a;
  font-family: var(--mono);
  font-size: 11px;
  color: #8a94a3;
}
.device-topbar .dots {
  display: flex;
  gap: 6px;
}
.device-topbar .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.device-topbar .dots i:nth-child(1) {
  background: #d1352b88;
}
.device-topbar .dots i:nth-child(2) {
  background: #ffb02088;
}
.device-topbar .dots i:nth-child(3) {
  background: #3ddad088;
}
svg.scene {
  display: block;
  width: 100%;
  height: auto;
}

.device-console {
  border-top: 1px solid #232d3a;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #3ddad0;
  letter-spacing: 0.02em;
}
.device-console .caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #3ddad0;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}
.device-console .prefix {
  color: #6b7686;
  margin-right: 7px;
}

/* FLOATING CHIPS */
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 24px -8px rgba(20, 20, 20, 0.18);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c2a28;
}
.fc-1 {
  top: -6%;
  right: 6%;
  animation: floatY 5s ease-in-out infinite;
}
.fc-2 {
  bottom: 4%;
  left: -4%;
  animation: floatY 6s ease-in-out infinite 0.6s;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* PROVISION SLIDE */
.provision-body {
  padding: 28px 24px;
  font-family: var(--mono);
  font-size: 14px;
  color: #3ddad0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.provision-line {
  opacity: 0.3;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}
.provision-line.active {
  opacity: 1;
}
.provision-line .p-prompt {
  color: #6b7686;
  margin-right: 9px;
}
.provision-line .p-cursor {
  display: none;
  width: 7px;
  height: 15px;
  background: #3ddad0;
  margin-left: 3px;
  animation: blink 0.9s steps(1) infinite;
}
.provision-line.done .p-text::after {
  content: " \2713";
  color: #2fe07a;
  margin-left: 4px;
}

/* HERO ARROWS */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(30, 30, 30, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}
.hero-arrow:hover {
  background: rgba(30, 30, 30, 0.8);
}
.hero-arrow.left {
  left: 24px;
}
.hero-arrow.right {
  right: 24px;
}
.hero-arrow svg {
  width: 18px;
  height: 18px;
}

/* TICKER BAR */
.ticker-bar {
  background: var(--ink-2);
  color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.ticker-left {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}
.ticker-left a {
  color: var(--amber);
  text-decoration: underline;
  font-family: var(--sans);
  font-weight: 600;
}
.ticker-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ticker-satellite {
  display: block;
  overflow: hidden;
}

/* ================= CONTENT SECTION ================= */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 90px 90px;
}
.content-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #141b25, #1c2735);
  box-shadow: 0 24px 50px -18px rgba(20, 20, 20, 0.28);
}
.content-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.content-copy .eyebrow2 {
  font-family: var(--montserrat);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.content-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.content-copy h2 em {
  font-style: italic;
  color: var(--red);
}
.content-copy p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 22px;
  max-width: 480px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #2c2a28;
}
.check-list li svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ================= MODULES STRIP ================= */
.modules-strip {
  background: #f4f6f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 90px;
}
.modules-strip .label {
  font-family: var(--montserrat);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}
.modules-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.integration-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 84px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.integration-badge.on {
  opacity: 1;
  transform: translateY(0);
}
.integration-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(20, 20, 20, 0.18);
  overflow: hidden;
}
.integration-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.integration-badge span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ================= FOOTER ================= */
footer {
  background: var(--black);
  color: #9aa0a6;
  padding: 36px 28px;
  text-align: center;
  font-size: 12.5px;
  font-family: var(--mono);
}
footer a {
  color: var(--amber);
}

/* ================= CHAT WIDGET ================= */
.chat-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat-panel {
  width: 290px;
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  border-radius: 12px;
  padding: 20px 20px 18px;
  color: #fff;
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.4);
  position: relative;
}
.chat-panel .close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  border: none;
}
.chat-panel h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 20px;
}
.chat-panel p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.chat-btn-primary {
  display: block;
  width: 100%;
  background: var(--amber);
  color: #1c1c1c;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px;
  border-radius: 6px;
  border: none;
  margin-bottom: 8px;
}
.chat-btn-secondary {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px;
  border-radius: 6px;
  border: none;
}
.chat-tab {
  background: var(--ink-2);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.35);
}
.chat-tab svg {
  width: 18px;
  height: 18px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-inner,
  .content-section {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }
  .content-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-visual {
    order: -1;
  }
  .modules-strip {
    padding: 36px 24px;
  }
  .util-search {
    display: none;
  }
  .hero-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
