/*
Theme Name: Landing
Description: Portada para presentar un sistema de gestión.
Version: 1.2.3
Text Domain: landing
*/

:root {
  --ink: #102044;
  --muted: #5c6d84;
  --soft: #6d7e94;
  --line: #e5eef6;
  --paper: #f4f8fd;
  --accent: #0166EA;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(820px 380px at 92% 0%, #d9ecff 0%, rgba(217, 236, 255, 0) 68%),
    radial-gradient(640px 320px at 0% 12%, #e7f3ff 0%, rgba(231, 243, 255, 0) 70%),
    linear-gradient(180deg, #f8fbfe 0%, #f4f8fd 42%, #eef5fc 100%);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
button, input { font-family: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 0;
  border-top: 0;
  background: rgba(244, 248, 253, 0.88);
  backdrop-filter: blur(14px);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 18px;
}
.brand { justify-self: start; display: inline-flex; }
.brand img { height: 48px; width: auto; display: block; }
.nav { justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  color: #243556;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] { color: var(--accent); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.header-cta { justify-self: end; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d5e3f2;
  background: #fff;
  padding: 0;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(1, 102, 234, 0.18);
}
.btn:hover { background: #0157cc; border-color: #0157cc; }
.btn .arrow { width: 16px; height: 16px; display: block; }
.header-cta {
  padding: 12px 18px;
  font-size: 0.92rem;
  box-shadow: none;
}
.btn-ghost {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(16, 40, 80, 0.05);
}
.btn-ghost:hover { background: #f3f8ff; color: var(--accent); }
.play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.play svg { width: 12px; height: 12px; margin-left: 1px; }
.btn-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: none;
  margin-left: auto;
  position: relative;
  z-index: 1;
  padding: 13px 18px;
}
.btn-light:hover { background: #f3f8ff; color: #0157cc; }

.hero { padding: 18px 0 6px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.kicker {
  margin: 0 0 14px;
  color: #5d7c9c;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.35vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 span { color: var(--accent); }
.lead {
  max-width: 38rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: #3c4e68;
  font-size: 0.84rem;
  font-weight: 600;
}
.checks li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.checks svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero-visual { margin: 0; scroll-margin-top: 90px; }
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(20, 50, 100, 0.08));
}

.features { padding: 18px 0 8px; }
.feature-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #e7eef6;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(22, 60, 120, 0.06);
  padding: 28px 8px;
}
.feature {
  text-align: center;
  padding: 6px 14px 4px;
  border-right: 1px solid #e8eef5;
}
.feature:last-child { border-right: 0; }
.feat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #e8f3ff;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.feat-icon svg { width: 26px; height: 26px; }
.feature h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0 auto;
  max-width: 16rem;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.split { padding: 28px 0 8px; }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}
.community-shot { margin: 0; }
.community-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(16, 40, 80, 0.1);
}
.ally {
  display: inline-flex;
  margin: 0 0 14px;
  background: #e7f2ff;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
}
.split h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.split h2 span { display: block; color: var(--accent); }
.split-copy > p {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.points li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}
.point-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f3ff;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.point-icon svg { width: 22px; height: 22px; }
.points strong { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.points li > span span {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.site-footer { padding: 28px 0 36px; background: transparent; }
.footer-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 16px 18px 16px 26px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(100deg, #0154d4 0%, #0b74f0 52%, #3aa0ff 100%);
}
.footer-bar::before,
.footer-bar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.footer-bar::before { width: 280px; height: 180px; right: -30px; top: -70px; }
.footer-bar::after { width: 220px; height: 140px; right: 120px; bottom: -78px; background: rgba(255, 255, 255, 0.1); }
.footer-bar .brand { position: relative; z-index: 1; }
.footer-bar .brand img { height: 40px; width: auto; background: transparent; }
.footer-rule {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}
.footer-bar p {
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 280px;
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.35;
}

main.page { padding: 42px 0 72px; }
main.page h1 {
  margin: 0 0 16px;
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
main.page .kicker { color: var(--accent); font-weight: 700; font-size: 0.82rem; margin-bottom: 8px; }
.entry { max-width: 42rem; }
.entry h2, .entry h3 { letter-spacing: -0.03em; margin: 1.4rem 0 0.45rem; }
.entry p, .section-intro { margin: 0 0 1rem; color: var(--muted); }
.entry a { color: var(--accent); }
.meta { color: var(--accent); font-size: 0.86rem; font-weight: 700; }
.news-list { display: grid; gap: 12px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(16, 40, 80, 0.04);
}
.news-list a { display: block; text-decoration: none; color: inherit; }
.news-list h2, .news-list h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.02em; }
.news-list time { display: block; color: var(--accent); font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.news-list p, .card p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .feature-card { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .feature:nth-child(3) { border-right: 0; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .bar { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .site-header { position: sticky; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 8px 22px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 40, 80, 0.06);
  }
  body.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding-top: 8px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .feature-card { grid-template-columns: 1fr; padding: 12px 8px; }
  .feature { border-right: 0; border-bottom: 1px solid #e8eef5; padding: 16px 12px; }
  .feature:last-child { border-bottom: 0; }
  .footer-bar { flex-wrap: wrap; padding: 18px; }
  .footer-rule { display: none; }
  .btn-light { margin-left: 0; }
  .checks { gap: 8px 14px; }
}
