/* Helio Contable — sitio público v2 */
:root {
  --ink: #142A33;
  --ink-2: #3A5560;
  --muted: #6B8290;
  --paper: #F4FAFD;
  --line: #D4E8F1;
  --brand: #00C3FF;
  --brand-deep: #0096C7;
  --brand-soft: #E6F9FF;
  --ok: #0f5c45;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Caveat", cursive;
  --shadow: 0 18px 40px -20px rgba(0, 150, 199, 0.28);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 48% at 8% -8%, rgba(0,195,255,.16), transparent 55%),
    radial-gradient(ellipse 48% 38% at 100% 4%, rgba(0,150,199,.10), transparent 50%),
    linear-gradient(180deg, #F7FCFF 0%, #F1F8FC 42%, #ECF5FA 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 252, 255, 0.82);
  border-bottom: 1px solid rgba(212, 232, 241, 0.85);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.05em;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand span { font-size: 1.12rem; color: var(--brand-deep); }
.nav-links { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover { color: var(--brand-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700;
  font-family: var(--font); cursor: pointer; transition: .2s transform, .2s background, .2s box-shadow, .2s border-color;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px rgba(0, 195, 255, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }

/* Hero */
.hero-full {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: center;
  background: #0B1A24;
}
.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 14, 24, 0.88) 0%, rgba(6, 14, 24, 0.62) 38%, rgba(6, 14, 24, 0.28) 68%, rgba(6, 14, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 14, 24, 0.28) 0%, transparent 42%, rgba(6, 14, 24, 0.35) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 100px) 0;
  width: min(1120px, calc(100% - 40px));
}
.hero-copy { max-width: 36rem; animation: rise .75s cubic-bezier(.16,1,.3,1); }
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em;
  text-transform: uppercase; color: #E6F9FF; margin: 0 0 18px;
  background: rgba(0, 195, 255, 0.16); border: 1px solid rgba(0, 195, 255, 0.32);
  border-radius: 999px; padding: 7px 12px;
}
.hero-full h1 {
  margin: 0 0 16px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  font-size: clamp(3rem, 7vw, 5rem);
}
.brand-helio {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-full h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(232, 244, 250, 0.94);
  max-width: 34ch;
  margin: 0 0 28px;
  font-weight: 500;
  line-height: 1.45;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { color: rgba(200, 220, 230, 0.88); font-size: 0.92rem; margin: 0; font-weight: 500; }
.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .hero-full { min-height: min(70vh, 540px); }
  .hero-bg { object-position: 28% center; animation: none; transform: none; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(6, 14, 24, 0.5) 0%, rgba(6, 14, 24, 0.72) 48%, rgba(6, 14, 24, 0.9) 100%);
  }
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Sections */
section { padding: clamp(52px, 8vw, 92px) 0; }
.section-modulos { padding-top: clamp(36px, 5vw, 56px); }
.section-cta { padding-top: 20px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin: 0 0 10px; line-height: 1.05;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

/* Trust debajo del hero (sin solapar la imagen) */
.trust-section {
  padding: 24px 0 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
.trust article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 15px;
  box-shadow: 0 14px 32px -20px rgba(0, 100, 140, 0.35);
}
.trust-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.trust strong { display: block; font-size: 0.98rem; margin-bottom: 2px; color: var(--ink); font-weight: 750; }
.trust span { color: var(--muted); font-size: 0.86rem; line-height: 1.35; }

.modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.mod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: .22s border-color, .22s transform, .22s box-shadow;
}
.mod:hover {
  border-color: #9adef5;
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -22px rgba(0, 150, 199, 0.45);
}
.mod .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep);
  margin-bottom: 14px;
}
.mod h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 750; }
.mod p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

/* Pricing */
.pricing {
  background:
    radial-gradient(ellipse 58% 48% at 50% 0%, rgba(0,195,255,.13), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.55), transparent);
}
.billing-wrap { text-align: center; }
.billing-toggle {
  display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); margin: 0 auto 28px;
}
.billing-toggle button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 9px 16px; font-weight: 700; cursor: pointer; color: var(--ink-2);
  font-family: var(--font);
}
.billing-toggle button.active { background: var(--brand); color: #fff; }
.plans {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch;
}
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: .2s transform, .2s box-shadow;
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -18px rgba(0,195,255,.5);
  transform: translateY(-8px);
}
.plan .badge {
  position: absolute; top: -11px; left: 18px;
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 1.12rem; font-weight: 750; }
.plan .price {
  display: flex; align-items: baseline; gap: 4px; margin: 2px 0;
}
.plan .price strong {
  font-family: var(--display); font-size: 2.55rem; line-height: 1; color: var(--ink);
}
.plan .price span { color: var(--muted); font-weight: 650; font-size: 0.9rem; }
.plan .annual { color: var(--ok); font-size: 0.84rem; font-weight: 650; min-height: 1.2em; }
.plan-desc { margin: 0; color: var(--ink-2); font-size: .92rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.9rem; color: var(--ink-2);
}
.plan li::before { content: "✓"; color: var(--brand-deep); font-weight: 800; }
.plan .btn { width: 100%; margin-top: 8px; }
.price-note {
  text-align: center; color: var(--muted); font-size: 0.88rem; margin: 22px auto 0; max-width: 60ch;
}

/* Rubros */
.rubros {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.rubro {
  position: relative;
  border-radius: 20px; padding: 24px 18px 22px; color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(145deg, #00B8EF, #0096C7 55%, #0077A8);
  min-height: 168px;
  overflow: hidden;
  transition: .22s transform;
}
.rubro:hover { transform: translateY(-3px); }
.rubro:nth-child(2) {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(145deg, #33D1FF, #00B0E6 60%, #0096C7);
}
.rubro:nth-child(3) {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(145deg, #5AD8FF, #00C3FF 50%, #0096C7);
}
.rubro:nth-child(4) {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(145deg, #00C3FF, #0088B8);
}
.rubro-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 14px;
}
.rubro h3 { margin: 0 0 8px; font-size: 1.28rem; font-weight: 750; }
.rubro p { margin: 0; opacity: .95; font-size: 0.92rem; }

.cta-band {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.28), transparent 40%),
    linear-gradient(120deg, #00C3FF, #0096C7 55%, #0077A8);
  color: #fff;
  display: grid; grid-template-columns: 1.3fr auto; gap: 20px; align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 8px; line-height: 1;
}
.cta-band p { margin: 0; opacity: .95; max-width: 42ch; }
.cta-band .btn {
  background: #fff; color: var(--brand-deep);
}
.cta-band .btn:hover { background: #F2FBFF; }

.footer {
  padding: 42px 0 28px; border-top: 1px solid var(--line); margin-top: 12px;
  color: var(--muted); font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.footer strong { color: var(--ink); display: block; margin-bottom: 10px; }
.footer a { display: block; margin: 6px 0; color: var(--ink-2); }
.footer a:hover { color: var(--brand-deep); }
.footer-copy { opacity: .9; }

@media (max-width: 980px) {
  .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .plans, .trust, .modules, .rubros { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .plans, .trust, .modules, .rubros { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; }
  .trust-section { padding-top: 18px; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
