/*
 * Shell común para infovivo.app
 *
 * Estilos compartidos por todas las páginas estáticas (legales,
 * reset-password, futuras): variables de marca, tipografía,
 * header sticky con nav, footer 4 columnas + social y breakpoints
 * responsive.
 *
 * La home (index.html) tiene sus propios estilos inline porque su
 * estructura (hero + secciones) es distinta. Pero el chrome (header
 * y footer) lo extraemos aquí para que cualquier página nueva pueda
 * heredarlo sin duplicar 200 líneas de CSS.
 */

:root {
  --brand: #2EB87A;
  --brand-deep: #146E48;
  --brand-soft: #E1F5EE;
  --ink: #0F1E14;
  --ink-soft: #3D4E43;
  --muted: #7A857A;
  --bg: #FFFFFF;
  --bg-soft: #F9FAF9;
  --bg-dark: #0F1E14;
  --line: #E5E7EB;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Eyebrow pill (reutilizable) ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ─── Banner beta (sticky arriba del todo) ─── */
.beta-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border-bottom: 1px solid var(--brand-deep);
}
.beta-banner a {
  display: block;
  color: #fff;
  padding: 9px 16px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.beta-banner a:hover { background: var(--brand-deep); color: #fff; }
.beta-banner strong { font-weight: 700; }
.beta-banner .arrow { display: inline-block; margin-left: 4px; transition: transform 0.15s ease; }
.beta-banner a:hover .arrow { transform: translateX(3px); }

/* ─── Header sticky ─── */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 38px; z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
header.site a.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
header.site a.brand:hover { color: var(--brand); }
header.site a.brand img.logo {
  width: 44px; height: 44px;
  object-fit: contain;
  display: block;
}
header.site a.brand img.wordmark {
  height: 28px;
  width: auto;
  display: block;
}
header.site nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header.site nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
header.site nav a:hover { color: var(--brand-deep); }
header.site nav a.cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
header.site nav a.cta:hover { background: var(--brand-deep); color: #fff; }

/* ─── Footer ─── */
footer.site {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 64px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none;
}
.footer-brand-row .footer-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
}
.footer-brand-row .footer-wordmark {
  height: 22px;
  width: auto;
  display: block;
}
/* Compat legacy */
.footer-brand-row .logo-dot {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-brand-row .logo-dot i { font-size: 16px; }
.footer-col-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
}
.footer-col ul a { color: var(--ink-soft); }
.footer-col ul a:hover { color: var(--brand-deep); }
.footer-col ul a.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a.contact-line i {
  color: #25D366;
  font-size: 17px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom .social {
  display: flex;
  gap: 14px;
}
.footer-bottom .social a {
  color: var(--muted);
  font-size: 20px;
  display: inline-flex;
}
.footer-bottom .social a:hover { color: var(--brand-deep); }

/* ─── Page wrapper genérico (para legales y similar) ─── */
.page-shell {
  padding: 48px 0 24px;
}
.page-shell .page-head {
  margin-bottom: 32px;
  text-align: center;
}
.page-shell .page-head h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 12px;
  color: var(--ink);
}
.page-shell .page-head .updated {
  font-size: 13.5px;
  color: var(--muted);
}
.page-content {
  max-width: 740px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.page-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--ink);
}
.page-content p { margin: 0 0 14px; color: var(--ink-soft); }
.page-content strong { color: var(--ink); font-weight: 700; }
.page-content ul, .page-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.page-content li { margin-bottom: 6px; }
.page-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  padding: 12px 16px;
  margin: 16px 0;
  color: var(--ink-soft);
}
.page-content code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.page-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.page-content th, .page-content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.page-content th {
  background: #F3F4F6;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.page-content tr:last-child td { border-bottom: 0; }

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-shell { padding: 32px 0 16px; }
  .page-shell .page-head h1 { font-size: 28px; }
  .page-content h2 { font-size: 19px; }
  footer.site { margin-top: 48px; }
}
@media (max-width: 540px) {
  header.site .wrap { height: 64px; }
  header.site nav { gap: 10px; }
  header.site nav a:not(.cta) { display: none; }
  header.site a.brand img.logo { width: 36px; height: 36px; }
  header.site a.brand img.wordmark { height: 22px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .page-shell .page-head h1 { font-size: 24px; }
}
