/* signiqo.css — Estilos para Signiqo Technologies (Enfoque Data & AI) */

/* ==========================================================================
   Propiedad CSS para Animación de Borde 100% Fluida
   ========================================================================== */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Paleta de colores (la original es excelente, la mantenemos) */
  --bg: #0b0c10;
  --bg-alt: #0f1116;
  --text: #e8ecf0;
  --muted: #a8b0bb;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --card: #12141b;
  --line: #1a1f29;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  
  /* Variables para consistencia en animaciones y diseño */
  --transition-speed: .3s;
  --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius-md: 16px;
  --border-radius-sm: 12px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #0d1016;
  --muted: #525b66;
  --brand: #5b51ff;
  --brand-2: #00a3ff;
  --card: #ffffff;
  --line: #e9edf2;
  --shadow: 0 8px 25px rgba(17, 24, 39, .08);
}

/* === MEJORAS GLOBALES === */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Evita que el nav tape los títulos al saltar a secciones */
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: 
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, color-mix(in oklab, var(--brand-2) 10%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Previene scroll horizontal por animaciones */
}

/* Mejoras de tipografía */
h1, h2, h3, h4 {
  margin: 0 0 .6rem 0;
  color: var(--text);
  text-wrap: balance; /* Previene líneas con una sola palabra en títulos */
}
p { color: var(--muted); margin: .5rem 0 0; }
a { color: var(--text); text-decoration: none; transition: color var(--transition-speed) var(--transition-ease); }
a.link { color: var(--brand); font-weight: 600; }
a.link:hover { color: var(--brand-2); }
.lead { font-size: clamp(1rem, 1rem + .6vw, 1.25rem); color: var(--muted); max-width: 65ch; }
.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Helpers */
.container { width: min(1200px, 92%); margin: 0 auto; }
.only-mobile { display: none; }
.w-100 { width: 100%; }

/* === BOTONES MODERNOS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.2rem; border-radius: var(--border-radius-sm);
  border: 1px solid var(--line); background: var(--card);
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 4px 20px color-mix(in oklab, var(--brand) 25%, transparent);
}
.btn:active { transform: translateY(0px) scale(.98); }

.btn--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  background-size: 200% auto;
  border-color: transparent;
  color: white;
}
.btn--brand:hover {
  background-position: right center; /* Animación de degradado */
  box-shadow: 0 6px 25px color-mix(in oklab, var(--brand) 35%, transparent);
}
.btn--ghost { background: transparent; }

/* === NAVEGACIÓN CON EFECTO SCROLL === */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-speed), border-color var(--transition-speed);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-color: var(--line);
}
.nav__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; gap: .6rem; align-items: center; font-weight: 800; }
.brand__logo { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__actions { display: flex; gap: .6rem; align-items: center; }

/* === HERO ANIMADO === */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; padding: clamp(3rem, 5vw, 5rem) 0; align-items: center; min-height: clamp(540px, 60vh, 760px); }
.hero__content { animation: fade-in-up .6s var(--transition-ease) both; }
.hero__content h1 { font-size: clamp(2rem, 1.2rem + 4vw, 3.8rem); line-height: 1.15; animation: fade-in-up .6s .1s var(--transition-ease) both; }
.hero__content .lead { animation: fade-in-up .6s .2s var(--transition-ease) both; }
.hero__cta { display: flex; gap: .8rem; margin: 1.5rem 0; flex-wrap: wrap; animation: fade-in-up .6s .3s var(--transition-ease) both; }
.hero__badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; animation: fade-in-up .6s .4s var(--transition-ease) both; }
.badge { padding: .35rem .6rem; font-size: .85rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); }

/* Arte del Hero con animación sutil */
.hero__art { position: relative; min-height: 320px; animation: fade-in-up .6s .2s var(--transition-ease) both; }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .7; animation: pulse 8s infinite alternate; }
.orb--1 { width: 280px; height: 280px; right: 0; top: 5%; background: radial-gradient(circle, var(--brand) 0%, transparent 70%); animation-duration: 10s; }
.orb--2 { width: 220px; height: 220px; right: 25%; bottom: 5%; background: radial-gradient(circle, var(--brand-2) 0%, transparent 70%); animation-delay: -4s; }
.glass { position: absolute; inset: 18% 8% 8% 18%; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.chip { position: absolute; right: 14%; top: 12%; width: 72px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 30px rgba(124,92,255,.35); transform: rotate(-5deg); }
.lines::before, .lines::after { content: ""; position: absolute; left: 10%; right: 10%; height: 1px; background: var(--line); }
.lines::before { top: 40%; } .lines::after { top: 60%; }

/* === SECCIONES Y GRIDS === */
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(1.8rem, 1.5rem + 2vw, 2.8rem); }
.section__head p { max-width: 680px; margin: .4rem auto 0; font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* === TARJETAS SÚPER MODERNAS Y COOL === */
.card, .feature, .price, .about__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--border-radius-md); padding: 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.card:hover, .feature:hover, .price:hover:not(.price--rec), .about__card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,.4); }
html[data-theme="light"] .card:hover, html[data-theme="light"] .feature:hover, html[data-theme="light"] .price:hover:not(.price--rec), html[data-theme="light"] .about__card:hover { box-shadow: 0 15px 40px rgba(17, 24, 39, .12); }

/* El efecto "Aurora Border" SIN BRINCOS */
.card::before, .feature::before, .price::before, .about__card::before {
  content: ""; position: absolute; z-index: -1; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
  background: conic-gradient(from var(--angle), var(--brand-2), var(--brand), var(--brand-2));
  animation: aurora-spin 4s linear infinite;
  opacity: 0; transition: opacity .4s var(--transition-ease);
}
.card:hover::before, .feature:hover::before, .price:hover::before, .about__card:hover::before { opacity: 1; }
.card::after, .feature::after, .price::after, .about__card::after { content: ''; position: absolute; z-index: -1; inset: 1px; background: var(--card); border-radius: calc(var(--border-radius-md) - 1px); }

.card { display: grid; gap: .8rem; }
.card__icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: .5rem; }
.card__icon svg { width: 100%; height: 100%; display: block; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; padding: .25rem .5rem; font-size: .8rem; border-radius: 999px; background: color-mix(in oklab, var(--brand) 15%, transparent); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: .6rem 0 0; }
.ticks li { padding-left: 1.2rem; position: relative; margin: .3rem 0; color: var(--muted); }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* === COMPONENTES ESPECIALES DATA & AI === */

/* NEXARA Pipeline */
.pipeline {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: .5rem 1rem; margin-top: 3rem; text-align: center;
}
.pipe__step {
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}
.pipe__nexara {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; border-color: transparent;
  font-weight: 700;
}
.pipe__arrow {
  color: var(--muted); font-size: 1.5rem; font-weight: 300;
}

/* KPIs Section */
.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 3rem; text-align: center;
}
.kpi {
  background: var(--card); border: 1px solid var(--line);
  padding: 1.5rem; border-radius: var(--border-radius-md);
}
.kpi__num {
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1.1;
}
.kpi__label {
  color: var(--muted); font-weight: 500; display: block; margin-top: .4rem;
}

/* MLOps Section */
.mlops {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mlops__item {
  background: var(--bg-alt); padding: 1.5rem;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* === RESTO DE SECCIONES === */
.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.logo-skel { display: grid; place-items: center; height: 64px; border-radius: var(--border-radius-sm); background: transparent; border: 1px dashed var(--line); color: var(--muted); font-weight: 700; opacity: .7; transition: all var(--transition-speed) var(--transition-ease); }
.logo-skel:hover { opacity: 1; transform: scale(1.05); border-color: var(--muted); }

/* PRICING */
.pricing { grid-template-columns: repeat(3, 1fr); }
.price__num { font-size: 2.5rem; font-weight: 800; margin: .8rem 0; }
.price--rec { transform: scale(1.05); border-color: var(--brand); }
.price--rec::before { opacity: 1; }
.flag { position: absolute; top: 16px; right: 16px; background: var(--brand); color: white; padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* CONTACTO */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
input, textarea { width: 100%; padding: .85rem .9rem; border-radius: var(--border-radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: border-color .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.contact__side .info { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot__links { display: flex; gap: .9rem; flex-wrap: wrap; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__content .lead { margin-left: auto; margin-right: auto; }
  .hero__art { order: -1; min-height: 280px; }
  .hero__cta, .hero__badges { justify-content: center; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; }
  .price--rec { transform: scale(1); }
}
@media (max-width: 920px) {
  .only-mobile { display: inline-grid; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s var(--transition-ease);
    padding: .9rem min(4vw, 18px); gap: .8rem; display: grid;
    overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0%); }
}
@media (max-width: 780px) {
  .footer__inner { flex-direction: column; align-items: start; }
  .pipeline { font-size: .8rem; }
  .pipe__arrow { display: none; }
  .pipe__step::after { content: '↓'; display: block; color: var(--muted); margin-top: .5rem; }
  .pipeline > *:last-child::after { display: none; }
}

/* === ANIMACIONES === */
/* Para animar elementos al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-ease), transform 0.6s var(--transition-ease);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes para animaciones reutilizables */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  from { transform: scale(0.95); opacity: 0.6; }
  to { transform: scale(1.05); opacity: 0.8; }
}
@keyframes aurora-spin {
  to { --angle: 360deg; }
}

/* Dejamos el resto de estilos como estaban, ya que son funcionales */
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; transition: all .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon { width: 22px; height: 22px; fill: currentColor; }