/* SmartSuite — Master Corporate Landing Stylesheet */
:root {
  --bg: #060b17;
  --bg-card: #0c1527;
  --bg-card-alt: #111e38;
  --line: #1c2c4d;
  --line-light: #283e6b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --break-green: #10b981;
  --break-lime: #a6ff00;
  --safe-orange: #ff6b00;
  --safe-amber: #f59e0b;
  --audit-blue: #38bdf8;
  --talent-purple: #c084fc;
  
  --radius: 24px;
  --nav-h: 68px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(circle 500px at 15% 40%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(circle 500px at 85% 65%, rgba(255, 107, 0, 0.07), transparent);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--break-lime);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 999;
}
.skip:focus {
  top: 20px;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(820px, 100% - 32px);
  margin-inline: auto;
}

.grad-suite {
  background: linear-gradient(135deg, #38bdf8, #a6ff00, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  margin-bottom: 14px;
}

/* ───────── Tarjetas con Volumen 3D ───────── */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-card));
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s, box-shadow 0.25s;
}
.card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}

/* ───────── Botones 3D ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 18px;
}
.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 14px;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  color: #06111f;
  background: linear-gradient(135deg, #38bdf8, #a6ff00);
  box-shadow: 0 5px 0 #0284c7, 0 14px 28px rgba(56, 189, 248, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 5px 0 #0284c7, 0 18px 36px rgba(56, 189, 248, 0.45);
}
.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0284c7;
}
.btn--glass {
  color: #fff;
  background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-card));
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn--glass:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}
.btn--glass:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ───────── Nav ───────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s;
  padding-top: env(safe-area-inset-top);
}
.nav.is-solid {
  background: rgba(6, 11, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav__inner {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.nav__brand:hover {
  opacity: 0.9;
}
.nav__brand span b {
  color: #38bdf8;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a:not(.btn) {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:not(.btn):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav__links .nav__try {
  color: #38bdf8 !important;
  font-weight: 700;
}
.nav__links .btn {
  margin-left: 6px;
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-card));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 72px;
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 1;
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Suite Hub Mockup Visual */
.suite-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}
.hub-card {
  width: 100%;
  max-width: 400px;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(160deg, #101c36, #070e1d);
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #a6ff00;
  background: rgba(166, 255, 0, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.hub-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}
.hub-tile i {
  font-style: normal;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}
.hub-tile b {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.hub-tile small {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.hub-tile--active {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}
.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
}

/* ───────── Secciones ───────── */
.sec {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}
.sec--alt {
  background: rgba(8, 14, 28, 0.6);
}
.sec__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(30px, 5vw, 52px);
}
.sec__head h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.sec__head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

/* ───────── Las 4 Aplicaciones ───────── */
.suite-apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.app-card {
  padding: clamp(26px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  border-top-width: 3px;
}
.app-card--break { border-top-color: var(--break-green); }
.app-card--safe { border-top-color: var(--safe-orange); }
.app-card--audit { border-top-color: var(--audit-blue); }
.app-card--talent { border-top-color: var(--talent-purple); }

.app-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.app-card__icon {
  font-size: 2.5rem;
}
.app-card__status {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
}
.app-card__status--live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.app-card__status--ready {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.app-card__status--roadmap {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.app-card h3 {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.app-card__subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.app-card p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}
.app-card__ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.app-card__ticks li::before {
  content: '✓ ';
  color: #38bdf8;
  font-weight: 900;
}
.app-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────── Ventajas de la Arquitectura ───────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  padding: 28px;
}
.pillar-card__ico {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───────── Armador de Suite / Cotizador ───────── */
.suite-builder {
  padding: clamp(24px, 4vw, 42px);
  max-width: 860px;
  margin: 0 auto;
}
.builder-apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.builder-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.builder-check input {
  accent-color: #38bdf8;
  width: 18px;
  height: 18px;
}
.builder-check b {
  font-size: 0.95rem;
}
.builder-check small {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.builder-check.is-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.builder-slider {
  margin-bottom: 24px;
}
.builder-slider label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 8px;
}
.builder-slider strong {
  color: #38bdf8;
  font-size: 1.2rem;
}
.builder-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 18px 22px;
  border-radius: 16px;
}
.builder-result span {
  font-size: 0.9rem;
  color: #a7f3d0;
}
.builder-result b {
  font-size: 1.5rem;
  color: #34d399;
}

/* ───────── Formulario B2B Suite ───────── */
.form {
  padding: clamp(24px, 4vw, 40px);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #080f1c;
  border: 1px solid var(--line);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.field--wide {
  grid-column: 1 / -1;
}
.form__msg {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}
.form__msg.is-ok { color: #34d399; }
.form__msg.is-err { color: #f87171; }
.form__legal {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 12px;
}
.hp { position: absolute; left: -9999px; }

/* ───────── FAQ ───────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-card));
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq__item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #38bdf8;
  transition: transform 0.2s;
}
.faq__item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq__item p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ───────── Footer ───────── */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  background: #040810;
}
.footer__inner {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.footer__brand b {
  font-size: 1.3rem;
  font-weight: 900;
}
.footer__brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.88rem;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #38bdf8;
}
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .suite-apps { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-card));
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a:not(.btn) { padding: 13px 14px; font-size: 1rem; }
  .nav__links .btn { margin: 6px 0 0; min-height: 50px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
@media (max-width: 640px) {
  .builder-apps { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .builder-result { flex-direction: column; text-align: center; gap: 8px; }
  .hero__cta .btn { width: 100%; }
}
@media (min-width: 1500px) {
  .wrap, .hero__grid, .nav__inner, .footer__inner {
    width: min(1280px, 100% - 64px);
  }
}
