/* IZLControl — portada: aurora gradients + glassmorphism */

:root {
  color-scheme: dark;
  --bg: #060a18;
  --txt: #f5f7ff;
  --muted: #a7b3d4;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.15);
  --line: rgba(255, 255, 255, 0.11);
  --grid: rgba(255, 255, 255, 0.035);
  --c1: #7c5cff;
  --c2: #22d3ee;
  --c3: #ff6ec7;
  --shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
  --radius: 22px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2ff;
  --txt: #0f172a;
  --muted: #52617e;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.9);
  --line: rgba(15, 23, 42, 0.11);
  --grid: rgba(15, 23, 42, 0.055);
  --c1: #6d28d9;
  --c2: #0891b2;
  --c3: #db2777;
  --shadow: 0 24px 60px rgba(30, 41, 99, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Fondo aurora + rejilla sutil */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 12% 8%, rgba(124, 92, 255, 0.42), transparent 72%),
    radial-gradient(42% 38% at 88% 4%, rgba(34, 211, 238, 0.32), transparent 70%),
    radial-gradient(40% 40% at 82% 82%, rgba(255, 110, 199, 0.24), transparent 72%),
    radial-gradient(38% 36% at 6% 88%, rgba(59, 130, 246, 0.26), transparent 72%);
  filter: blur(28px);
}
html[data-theme="light"] body::before { opacity: 0.62; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora .orb { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 20s ease-in-out infinite alternate; }
.orb.a { width: 440px; height: 440px; top: 60px; left: -120px; background: radial-gradient(circle at 35% 35%, var(--c1), transparent 70%); }
.orb.b { width: 380px; height: 380px; top: 180px; right: -100px; background: radial-gradient(circle at 60% 40%, var(--c2), transparent 70%); animation-delay: -7s; }
.orb.c { width: 420px; height: 420px; bottom: -140px; left: 30%; background: radial-gradient(circle at 50% 50%, var(--c3), transparent 70%); animation-delay: -13s; opacity: 0.32; }
.orb.d { width: 300px; height: 300px; top: 45%; right: 22%; background: radial-gradient(circle at 50% 50%, #3b82f6, transparent 70%); animation-delay: -4s; opacity: 0.26; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -55px, 0) scale(1.14); }
}

/* Navegación cristal */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100% - 36px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.25);
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff; letter-spacing: -0.5px;
  background: conic-gradient(from 210deg, var(--c1), var(--c2), var(--c3), var(--c1));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.logo strong {
  background: linear-gradient(100deg, var(--txt) 20%, var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 15px; border-radius: 12px; transition: 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--txt); background: var(--glass-strong); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 13px; cursor: pointer;
  padding: 14px 24px; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--c1), var(--c2) 58%, var(--c3));
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 18px 42px rgba(124, 92, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn.ghost {
  color: var(--txt); background: var(--glass); border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn.small { padding: 10px 17px; font-size: 13.5px; border-radius: 11px; }
.btn.ghost.small { padding: 9px 13px; font-size: 15px; line-height: 1; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > *:nth-child(2) { animation-delay: 0.06s; }
.hero > *:nth-child(3) { animation-delay: 0.12s; }
.hero > *:nth-child(4) { animation-delay: 0.18s; }
.hero > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.2px; color: var(--txt);
  padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(110deg, var(--c1), var(--c2), var(--c3)) border-box;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.badge .spark {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c2); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16), 0 0 14px var(--c2);
}
.hero h1 {
  margin: 24px 0 0; max-width: 940px;
  font-size: clamp(42px, 7.2vw, 80px); line-height: 1.02; letter-spacing: -3.4px; font-weight: 850;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 5%, #a5f3fc 38%, #c4b5fd 68%, #fbcfe8 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .hero h1 .grad {
  background: linear-gradient(100deg, #6d28d9 5%, #0891b2 45%, #db2777 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy {
  margin: 24px 0 0; max-width: 760px;
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--muted);
  padding: 20px 26px; border-radius: var(--radius);
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.hero-copy b { color: var(--txt); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.stat {
  display: flex; align-items: center; gap: 11px; padding: 11px 17px; border-radius: 16px;
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stat b {
  font-size: 19px; letter-spacing: -0.6px;
  background: linear-gradient(120deg, var(--c2), var(--c3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12px; color: var(--muted); text-align: left; line-height: 1.3; }

/* Captura real del panel (modo demo) */
.showcase { max-width: 1120px; margin: 48px auto 0; padding: 0 24px; }
.shot {
  margin: 0; padding: 10px; border-radius: 26px;
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.shot img {
  display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line);
}
.shot figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 8px 4px; color: var(--muted); font-size: 12.5px;
}
.shot figcaption strong { color: var(--txt); }
.shot figcaption a { color: var(--c2); text-decoration: none; font-weight: 700; }
.shot figcaption a:hover { text-decoration: underline; }

/* Funciones */
.features-section { max-width: 1180px; margin: 0 auto; padding: 100px 24px 70px; }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  background: linear-gradient(100deg, var(--c2), var(--c1), var(--c3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { margin: 12px 0 12px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -1.8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 18px; }
.feature {
  position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.16); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.45), transparent 42%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(2, 6, 23, 0.32); }
.feature:hover::after { opacity: 1; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 21px;
  margin-bottom: 16px; border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.32), rgba(34, 211, 238, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.feature h3 { margin: 0 0 9px; font-size: 17px; letter-spacing: -0.2px; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.feature p i { color: var(--txt); font-style: normal; font-weight: 600; }

/* Centros que confían en nosotros */
.trust { max-width: 1180px; margin: 0 auto; padding: 0 24px 92px; }
.trust .section-head { margin-bottom: 34px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 20px 20px; border-radius: var(--radius);
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(2, 6, 23, 0.3); }
.trust-logo {
  width: 100%; height: 96px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(2, 6, 23, 0.12);
}
.trust-logo img { display: block; max-width: 78%; max-height: 72px; object-fit: contain; }
.trust-card.is-brand .trust-logo img { max-width: 66px; max-height: 66px; }
.trust-card strong { font-size: 15px; letter-spacing: -0.2px; }

/* CTA final */
.cta-band {
  max-width: 1132px; margin: 0 auto 74px; padding: 52px 28px; border-radius: 30px; text-align: center;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(120deg, rgba(124, 92, 255, 0.26), rgba(34, 211, 238, 0.18), rgba(255, 110, 199, 0.2)),
    var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1.4px; }
.cta-band p { margin: 0 auto 26px; max-width: 560px; color: var(--muted); line-height: 1.6; }

/* Partners */
.partner-banner {
  max-width: 1132px; margin: 0 auto 60px; padding: 20px 24px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
  border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.partner-logo {
  display: grid; place-items: center; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
}
.partner-logo img { display: block; width: 108px; height: 42px; object-fit: contain; }
.partner-banner p { width: 100%; margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Footer */
.footer {
  max-width: 1180px; width: calc(100% - 48px); margin: 0 auto; padding: 24px 0 42px;
  border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--txt); }
.footer-side { display: flex; align-items: center; gap: 14px; }

@media (max-width: 820px) {
  .hero { padding-top: 62px; }
}

@media (max-width: 640px) {
  .nav { top: 8px; width: calc(100% - 20px); margin-top: 8px; padding: 9px 10px; }
  .nav-links a.hide-mobile { display: none; }
  .hero { padding: 54px 18px 24px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-copy { padding: 16px 18px; }
  .showcase { padding: 0 14px; }
  .shot { padding: 6px; border-radius: 18px; }
  .shot figcaption { padding: 11px 4px 2px; font-size: 11.5px; }
  .features-section { padding: 72px 18px 54px; }
  .trust { padding: 0 18px 64px; }
  .cta-band { margin: 0 18px 56px; padding: 38px 20px; }
  .partner-banner { margin: 0 18px 44px; }
  .footer { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
