/* SIGISWEB landing — presencia visual (Propuesta A + imágenes) */

:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --surface: rgba(15, 23, 42, 0.72);
  --line: rgba(34, 211, 238, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --magenta: #e91e8c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Hero full-bleed —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 4.5rem 0 5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero- ken 28s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.35) 35%, rgba(7, 11, 20, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(233, 30, 140, 0.12), transparent 50%);
}

.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.85s ease forwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.08s;
}
.hero__content > *:nth-child(2) {
  animation-delay: 0.22s;
}
.hero__content > *:nth-child(3) {
  animation-delay: 0.36s;
}
.hero__content > *:nth-child(4) {
  animation-delay: 0.5s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 1.35rem;
  line-height: 0;
}

.hero__logo {
  width: min(100%, 26rem);
  height: auto;
  border-radius: 0.55rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero__lead {
  max-width: 42ch;
  margin: 0 0 2rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero__cta:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: var(--accent);
  text-decoration: none;
}

.hero__cta-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75), transparent);
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.section__text {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

/* —— Split layouts —— */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .split--rev .split__copy {
    order: 2;
  }

  .split--rev .split__media {
    order: 1;
  }
}

.split__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* —— Problema —— */
.problem__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.problem__col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.problem__col--before h3 {
  color: var(--warn);
}

.problem__col--after h3 {
  color: var(--ok);
}

.problem__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem__col li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.95rem;
}

.problem__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.problem__col--after li::before {
  background: var(--ok);
  opacity: 1;
}

/* —— Carousel / galería —— */
.carousel {
  margin-top: 2.5rem;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.carousel__track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  opacity: 0.55;
  transition: opacity 0.45s ease;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel__slide figcaption {
  padding: 0.85rem 1.1rem 1.05rem;
  margin: 0;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(11, 18, 32, 0.85);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel__btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
}

.carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

/* —— Flujo —— */
.flow {
  margin-top: 2.75rem;
}

.flow__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

@media (min-width: 900px) {
  .flow__track {
    flex-direction: row;
    align-items: stretch;
  }
}

.flow__node {
  position: relative;
  flex: 1;
  padding: 1.15rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  opacity: 0.45;
  transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.flow__node.is-active {
  opacity: 1;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.flow__node-step {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.flow__node-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.flow__node-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  color: var(--accent);
  opacity: 0.35;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .flow__arrow {
    width: 1.75rem;
    height: auto;
  }

  .flow__arrow svg {
    transform: rotate(-90deg);
  }
}

.flow__progress {
  height: 2px;
  margin-top: 1.5rem;
  background: rgba(34, 211, 238, 0.12);
  overflow: hidden;
}

.flow__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--magenta));
  transition: width 0.45s ease;
}

/* —— Insights / dashboard —— */
.insights {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .insights {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.insights__hero img,
.insights__side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.insights__side {
  display: grid;
  gap: 1rem;
}

.chart-panel {
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.08), transparent 50%),
    rgba(15, 23, 42, 0.9);
  border-radius: 0.35rem;
}

.chart-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chart-panel__live {
  color: var(--ok);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 0.65rem;
}

.bars__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.bars__row i {
  display: block;
  height: 0.45rem;
  width: var(--v);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--magenta));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  transform-origin: left center;
  animation: bar-grow 1.2s ease forwards;
}

@keyframes bar-grow {
  from {
    transform: scaleX(0.15);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.spark {
  margin-top: 1rem;
  height: 3.5rem;
  opacity: 0.9;
}

.spark svg {
  width: 100%;
  height: 100%;
}

.spark__line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: spark-draw 2.4s ease forwards 0.3s;
}

@keyframes spark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* —— Módulos —— */
.modules {
  display: grid;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .modules {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .modules {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.module {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s ease;
}

.module:hover {
  border-top-color: rgba(34, 211, 238, 0.55);
}

.module h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Diferenciadores —— */
.diff-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.diff-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.diff-list .sem {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.diff-list .sem--ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.diff-list .sem--warn {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.diff-list .sem--cyan {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

.diff-list h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.diff-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— CTA —— */
.cta {
  text-align: center;
  padding: 5rem 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--accent-dim), transparent);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.cta p {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--muted);
}

/* —— Footer —— */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer__brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer__logo {
  width: min(14rem, 70vw);
  height: auto;
  border-radius: 0.35rem;
}

.footer__dev {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .footer__dev {
    align-items: flex-end;
  }
}

.footer__meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__menadatos {
  display: inline-flex;
  line-height: 0;
  border-radius: 0.35rem;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.footer__menadatos:hover {
  opacity: 0.88;
  text-decoration: none;
}

.footer__logo-mena {
  width: min(11rem, 55vw);
  height: auto;
  display: block;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
