/* LibraSuite — hoja de estilos del sitio de la familia.
   Parte de libra-web-kit/libra_web_kit/templates/style.css.template (el mismo
   sistema de clases que las ocho landings) con la paleta del logo de LibraSuite,
   mas las piezas propias de este sitio (tarjetas de producto, rubros, nube).
   🔸 librasuite todavia no esta en el kit: cuando entre (site_css_tokens.py y
   SIDEBARS), este archivo pasa a ser generado como el de las demas. */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brand:       #1d4f94;   /* azul del logo */
  --brand-dark:  #0f2d5c;
  --brand-light: #eef4fc;
  --accent:      #2dd4bf;   /* el cuadrado turquesa del logo */
  --accent-dark: #14b8a6;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:   0 1px 6px rgba(0,0,0,.06);
}

/* ── Reset base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif;
       color: var(--dark-2); background: var(--white); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 72px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  font-size: 1.3rem; font-weight: 800; color: var(--dark);
  display: flex; align-items: center; gap: .55rem;
}
.navbar-brand .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.navbar-links a:hover { color: var(--dark); text-decoration: none; }
.btn-nav {
  background: var(--brand); color: white !important;
  padding: .45rem 1.1rem; border-radius: 8px; font-weight: 600;
  font-size: .9rem; transition: background .15s;
}
.btn-nav:hover { background: var(--brand-dark) !important; text-decoration: none !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem; border-radius: 10px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: all .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); color: white; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--dark); }
.btn-white { background: white; color: var(--brand); }
.btn-white:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .88rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1f44 0%, #123a73 55%, #1d5aa6 100%);
  color: white;
  padding: 4.5rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(45,212,191,.18) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero-logo {
  width: 150px; height: 150px; display: block; margin: 0 auto 1.75rem;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.35));
}
.hero-badge {
  display: inline-block; background: rgba(45,212,191,.14);
  border: 1px solid rgba(45,212,191,.45);
  color: #99f6e4; font-size: .82rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.15; margin: 0 0 1.2rem;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: #bcd0ea; margin: 0 auto 2.5rem;
          max-width: 600px; }
.hero .btn { margin: .3rem; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
section.alt { background: var(--bg); }
.container { max-width: 1140px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--dark); margin: 0 0 .75rem; letter-spacing: -.02em;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* ── Productos ─────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.product-card {
  --p: var(--brand); --p-light: var(--brand-light);
  background: white; border: 1px solid var(--border);
  border-top: 4px solid var(--p);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  scroll-margin-top: 84px;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card:target { box-shadow: 0 0 0 3px var(--p), var(--shadow); }
.product-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.product-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  background: var(--p-light); color: var(--p);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.product-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--dark); }
.product-badge { font-size: .78rem; font-weight: 600; color: var(--p); }
.product-card p { font-size: .9rem; color: var(--muted); margin: 0 0 1.25rem; line-height: 1.55; flex: 1; }
.product-links { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.btn-product { background: var(--p); color: white; }
.btn-product:hover { filter: brightness(.9); color: white; }
.product-demo { font-size: .88rem; font-weight: 600; color: var(--p); }

/* ── Rubros ────────────────────────────────────────────────── */
.rubros { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.rubros a {
  --p: var(--brand);
  background: white; border: 1px solid var(--border); border-radius: 999px;
  padding: .55rem 1.2rem; font-weight: 600; font-size: .92rem; color: var(--dark-2);
  display: inline-flex; align-items: center; gap: .45rem; transition: all .15s;
}
.rubros a i { color: var(--p); }
.rubros a:hover { border-color: var(--p); color: var(--p); text-decoration: none; box-shadow: var(--shadow-sm); }

/* ── Feature grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.feature-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--dark); }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── Copia en la nube ──────────────────────────────────────── */
.nube-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.nube-card {
  background: white; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem;
}
.nube-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; color: var(--dark);
                display: flex; align-items: center; gap: .5rem; }
.nube-card h3 i { color: var(--brand); }
.nube-card p { font-size: .9rem; color: var(--muted); margin: 0; }
code { background: var(--brand-light); color: var(--brand-dark); border-radius: 4px;
       padding: .05rem .35rem; font-size: .88em; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
         gap: 2rem; margin-top: 3rem; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; background: var(--brand); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--dark); }
.step p  { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── CTA final ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white; text-align: center; padding: 5rem 2rem;
}
.cta-section h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800;
                  margin: 0 0 1rem; letter-spacing: -.02em; }
.cta-section p  { color: #bcd0ea; margin: 0 auto 2rem; max-width: 500px; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark); color: #94a3b8;
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-size: 1.1rem; font-weight: 800; color: white;
                display: flex; align-items: center; gap: .5rem; }
.footer-brand img { border-radius: 6px; }
.footer-tagline { font-size: .85rem; color: #64748b; margin-top: .3rem; }
.footer-cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase;
                letter-spacing: .06em; color: #475569; margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: #94a3b8; font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem;
               border-top: 1px solid #1e293b;
               max-width: 1140px; margin-left: auto; margin-right: auto;
               font-size: .82rem; color: #475569; text-align: center; }

/* ── Paginas legales (mismo layout que /legal/ de las landings) ── */
.docs-wrapper { display: flex; min-height: calc(100vh - 64px); justify-content: center; }
.docs-content {
  flex: 1; min-width: 0; padding: 2.5rem 3rem;
  max-width: 860px;
}
.docs-content h1 { font-size: 1.9rem; font-weight: 800; color: var(--dark);
                    margin: 0 0 .5rem; letter-spacing: -.02em; }
.docs-content .docs-lead { font-size: 1.05rem; color: var(--muted);
                             margin: 0 0 2rem; padding-bottom: 1.5rem;
                             border-bottom: 1px solid var(--border); }
.docs-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--dark);
                    margin: 2rem 0 .75rem; padding-top: .5rem; }
.docs-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark-2);
                    margin: 1.5rem 0 .5rem; }
.docs-content p  { margin: 0 0 1rem; color: var(--dark-2); }
.docs-content ul, .docs-content ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.docs-content li { margin-bottom: .35rem; color: var(--dark-2); }

.callout {
  border-left: 4px solid var(--brand); background: var(--brand-light);
  padding: .9rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0;
}
.callout.accent { border-color: var(--accent); background: #f0fdfa; }
.callout strong { color: var(--dark); }
.callout p { margin: 0 0 .5rem; font-size: .92rem; }
.callout p:last-child { margin-bottom: 0; }

.tabla { overflow-x: auto; }
table.docs-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  font-size: .9rem;
}
.docs-table th { background: var(--bg); padding: .6rem .9rem;
                  font-size: .78rem; text-transform: uppercase;
                  letter-spacing: .04em; color: var(--muted);
                  border-bottom: 2px solid var(--border); text-align: left; }
.docs-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs-table tr:last-child td { border-bottom: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .navbar { padding: 0 1rem; }
  .navbar-links a:not(.btn-nav) { display: none; }
  .docs-content { padding: 1.5rem; }
  .footer-inner { flex-direction: column; }
  section { padding: 3.5rem 1.25rem; }
}
