/* =========================================================
   inicio.css — Hero, pilares, showcase, CTA, marquee
   ========================================================= */

/* ============= HERO ============= */
.hero {
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Título */
.hero-title {
  font-size: clamp(2rem, 5.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--c-text-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Botones */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.5rem;
}

/* Stats hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
}
.hero-stats li {
  border-left: 2px solid var(--c-primary-3);
  padding-left: .9rem;
}
.hero-stats strong {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-stats span {
  font-size: .8rem;
  color: var(--c-text-mute);
}

/* ============= HERO VISUAL (card) ============= */
.hero-visual { position: relative; }

.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(159, 208, 255, .18);
  background: linear-gradient(160deg, rgba(16, 47, 76, .85), rgba(12, 18, 26, .92));
  box-shadow: var(--sh-glow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(159, 208, 255, .1);
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-text-soft);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-ok);
  box-shadow: 0 0 0 0 rgba(125,206,160,.6);
  animation: pulse 2s infinite;
}
.hero-card-time {
  margin-left: auto;
  font-family: var(--ff-mono);
  color: var(--c-accent);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
}

.hero-card-body { padding: 1.25rem 1.1rem; }

/* Ruta */
.route { margin-bottom: 1.25rem; }
.route-point {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.route-point strong { display: block; font-size: .9rem; color: #fff; }
.route-point small { display: block; font-size: .72rem; color: var(--c-text-mute); }
.route-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--c-primary-3);
  box-shadow: 0 0 0 4px rgba(29, 110, 171, .22);
}
.route-point.destino .route-dot {
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, .22);
}
.route-line {
  position: relative;
  margin: .35rem 0 .35rem 5px;
  padding-left: 1.3rem;
  height: 28px;
  border-left: 2px dashed rgba(159, 208, 255, .35);
}
.route-progress {
  position: absolute;
  top: 0; left: -2px;
  width: 2px;
  height: 60%;
  background: linear-gradient(var(--c-accent), transparent);
  animation: routeFill 3s ease-in-out infinite;
}
@keyframes routeFill {
  0%   { height: 5%;  }
  50%  { height: 80%; }
  100% { height: 5%;  }
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(159, 208, 255, .14);
}
.hero-card-stats div span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text-mute);
  margin-bottom: .15rem;
}
.hero-card-stats div strong {
  font-size: .88rem;
  color: #fff;
}
.hero-card-stats .ok { color: var(--c-ok); }

.hero-card-foot {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: .85rem 1.1rem;
  border-top: 1px solid rgba(159, 208, 255, .1);
  background: rgba(0, 0, 0, .18);
}
.chip {
  padding: .28rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(159, 208, 255, .1);
  border: 1px solid rgba(159, 208, 255, .18);
  color: var(--c-text-soft);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.chip-ok {
  background: rgba(125, 206, 160, .14);
  border-color: rgba(125, 206, 160, .4);
  color: var(--c-ok);
}

/* Órbitas decorativas */
.hero-orbit {
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
}
.hero-orbit span {
  position: absolute;
  border: 1px solid rgba(159, 208, 255, .08);
  border-radius: 50%;
  inset: 0;
}
.hero-orbit span:nth-child(2) { inset: 8%;  border-color: rgba(245, 196, 81, .07); }
.hero-orbit span:nth-child(3) { inset: 16%; border-color: rgba(159, 208, 255, .05); }
.hero-orbit span:nth-child(1) { animation: rotateOrbit 30s linear infinite; }
.hero-orbit span:nth-child(2) { animation: rotateOrbit 22s linear infinite reverse; }
.hero-orbit span:nth-child(3) { animation: rotateOrbit 18s linear infinite; }
@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--c-text-mute);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: fadeIn 1.4s .8s both;
}
.hero-scroll i {
  width: 22px; height: 34px;
  border: 2px solid var(--c-text-mute);
  border-radius: 12px;
  position: relative;
}
.hero-scroll i::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--c-accent);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);   opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============= MARQUEE ============= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 0;
  background: rgba(12, 18, 26, .5);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  color: var(--c-text-mute);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.marquee-track span { flex-shrink: 0; }
.marquee-track span:nth-child(odd) { color: var(--c-accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============= PILARES ============= */
.pilares { padding: clamp(3rem, 8vh, 6rem) var(--container-pad); }

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.pilar {
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: linear-gradient(160deg, rgba(16, 47, 76, .35), rgba(12, 18, 26, .55));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.pilar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(245,196,81,.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.pilar:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 208, 255, .3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.pilar:hover::before { opacity: 1; }
.pilar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary-3), var(--c-primary));
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(29, 110, 171, .35);
}
.pilar h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.pilar p {
  color: var(--c-text-soft);
  font-size: .9rem;
  line-height: 1.55;
}

/* ============= SHOWCASE ============= */
.showcase {
  padding: clamp(3rem, 8vh, 6rem) 0;
  background: linear-gradient(180deg, transparent, rgba(12, 18, 26, .55), transparent);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.showcase-text .section-title { text-align: left; }
.showcase-text .section-sub  { margin-inline: 0; }

.showcase-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.showcase-list li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-left: 1rem;
  border-left: 2px solid var(--c-primary-3);
}
.showcase-list li strong {
  color: var(--c-accent-2);
  font-size: .9rem;
  font-weight: 800;
}
.showcase-list li span {
  color: var(--c-text-soft);
  font-size: .9rem;
}

/* Mock del sistema */
.showcase-mock { perspective: 1400px; }
.mock-window {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(159, 208, 255, .18);
  background: #0a1420;
  box-shadow: var(--sh-glow);
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.mock-window:hover { transform: rotateY(0) rotateX(0); }
.mock-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .7rem 1rem;
  background: #0d1a29;
  border-bottom: 1px solid rgba(159, 208, 255, .1);
}
.mock-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #37475c;
}
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar em {
  font-style: normal;
  margin-left: auto;
  font-size: .72rem;
  color: var(--c-text-mute);
  letter-spacing: .04em;
}
.mock-body { display: flex; min-height: 300px; }
.mock-side {
  width: 150px;
  padding: 1rem .75rem;
  background: #08121c;
  border-right: 1px solid rgba(159, 208, 255, .08);
}
.mock-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary-3), var(--c-primary));
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}
.mock-side ul li {
  font-size: .76rem;
  color: var(--c-text-mute);
  padding: .5rem .6rem;
  border-radius: 8px;
  margin-bottom: .15rem;
  font-weight: 600;
}
.mock-side ul li.activo {
  background: rgba(29, 110, 171, .22);
  color: #fff;
}
.mock-main { flex: 1; padding: 1rem; }
.mock-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.mock-title { font-weight: 800; font-size: .95rem; color: #fff; }
.mock-pill {
  margin-left: auto;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(245, 196, 81, .16);
  color: var(--c-accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}
.mock-stats div {
  padding: .6rem .7rem;
  border-radius: 10px;
  background: rgba(159, 208, 255, .06);
  border: 1px solid rgba(159, 208, 255, .1);
}
.mock-stats div span {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-mute);
  margin-bottom: .1rem;
}
.mock-stats div strong { font-size: 1.05rem; color: #fff; }
.mock-rows { display: flex; flex-direction: column; gap: .35rem; }
.mock-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(159, 208, 255, .08);
  font-size: .74rem;
}
.mock-row .ok, .mock-row .warn {
  padding: .1rem .45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .05em;
}
.mock-row .ok { background: rgba(125,206,160,.15); color: var(--c-ok); }
.mock-row .warn { background: rgba(245,196,81,.15); color: var(--c-warn); }
.mock-row em { font-style: normal; color: var(--c-text-soft); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-mock { order: -1; }
  .mock-window { transform: none; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 8rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(3) { grid-column: 1 / -1; }
  .showcase-list li { grid-template-columns: 1fr; gap: .2rem; }
  .mock-side { width: 110px; }
  .mock-side ul li { font-size: .7rem; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .mock-stats div:nth-child(3) { grid-column: 1 / -1; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}