/* ==========================================================================
   Fieldix — Design tokens & base system
   Pattern: Enterprise Gateway / Hero + Features + CTA
   Style: Flat, light, professional B2B SaaS
   Type: Plus Jakarta Sans (single family)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Color tokens */
  --color-primary: #0F172A;        /* navy — headings, primary text */
  --color-primary-soft: #1E293B;
  --color-secondary: #334155;      /* body copy */
  --color-accent: #0369A1;         /* blue — links, primary CTA */
  --color-accent-dark: #075985;
  --color-accent-soft: #E0F2FE;
  --color-warm: #EA580C;           /* warm accent — badges, highlights, technician energy */
  --color-warm-soft: #FFEDD5;
  --color-success: #059669;
  --color-success-soft: #D1FAE5;
  --color-destructive: #DC2626;

  --color-bg: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-foreground: #0F172A;
  --color-muted: #E8ECF1;
  --color-muted-foreground: #64748B;
  --color-border: #E2E8F0;
  --color-ring: #0369A1;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing scale — spacious, marketing density */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.16);

  --container: 1200px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--color-primary); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: linear-gradient(180deg, var(--color-primary) 0%, #16213B 100%);
  color: #CBD5E1;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Eyebrow / kicker --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  margin-bottom: var(--space-2);
}
.eyebrow--warm { color: #9A3412; background: var(--color-warm-soft); }
.eyebrow--success { color: #065F46; background: var(--color-success-soft); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-muted); }
.btn-on-dark { background: #fff; color: var(--color-primary); }
.btn-on-dark:hover { background: var(--color-accent-soft); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
/* El fondo con blur vive en un ::before (no en .nav) para que .nav no genere un
   "containing block" nuevo para sus descendientes position:fixed. Si backdrop-filter
   estuviera directo en .nav, el menú móvil (.nav__links, position:fixed) quedaría
   encerrado dentro de la caja de .nav en vez de estirarse a toda la pantalla. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}
.nav__links { display: flex; align-items: center; gap: var(--space-2); }
.nav__link {
  font-size: var(--fs-xs, 0.8rem);
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-primary); border-color: var(--color-accent); }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__toggle { display: none; background: none; border: none; padding: 0.5rem; }
.nav__toggle svg { width: 26px; height: 26px; }

/* Tablet/small-desktop: hide the secondary CTA to give the 7-item nav (incl. "Calculadora ROI") more room before the hamburger breakpoint kicks in */
@media (min-width: 861px) and (max-width: 1180px) {
  .nav__actions .btn-secondary { display: none; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    border-top: 1px solid var(--color-border);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link { width: 100%; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
  .nav__actions .btn-secondary { display: none; }
  .nav__actions .btn-primary { padding: 0.7rem 1.1rem; font-size: var(--fs-xs, 0.8rem); }
  .nav__toggle { display: inline-flex; flex-shrink: 0; }
  .logo img { max-width: 130px; height: auto; }
}

/* ---- Logo ---------------------------------------------------------- */
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; color: var(--color-primary); }
.logo svg { width: 30px; height: 30px; }

/* ---- Hero ---------------------------------------------------------- */
.hero { padding-block: var(--space-8) var(--space-7); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-block: var(--space-6) var(--space-5); } }
.hero h1 { font-size: var(--fs-4xl); }
@media (max-width: 640px) { .hero h1 { font-size: var(--fs-2xl); } }
.hero__lead { font-size: var(--fs-md); color: var(--color-secondary); margin-top: var(--space-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero__meta { margin-top: var(--space-4); display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--color-muted-foreground); }
.hero__meta strong { color: var(--color-primary); }

/* ---- Page header (interior pages) ---------------------------------- */
.page-header { padding-block: var(--space-6) var(--space-5); }
.page-header h1 { font-size: var(--fs-3xl); }
@media (max-width: 640px) { .page-header h1 { font-size: var(--fs-2xl); } }
.page-header__lead { font-size: var(--fs-md); color: var(--color-secondary); max-width: 62ch; margin-top: var(--space-2); }

/* ---- Cards --------------------------------------------------------- */
.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }

/* ---- Feature list module (module / screen tables from audit doc) --- */
.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.feature-row:first-of-type { border-top: none; }
@media (max-width: 720px) { .feature-row { grid-template-columns: 1fr; gap: 0.4rem; } }
.feature-row h4 { font-size: var(--fs-base); font-weight: 700; }
.feature-row p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }

/* ---- Badge / pill ---------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-xs); font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  background: var(--color-muted); color: var(--color-secondary);
}
.badge--success { background: var(--color-success-soft); color: #065F46; }
.badge--warm { background: var(--color-warm-soft); color: #9A3412; }
.badge--accent { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.badge svg { width: 14px; height: 14px; }

/* ---- Device mockup (signature illustration) -------------------------- */
.device-mock {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  max-width: 420px;
  margin-inline: auto;
}
.device-mock__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.device-mock__dots { display: flex; gap: 5px; }
.device-mock__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-muted); }
.device-mock__bar { height: 10px; border-radius: var(--radius-full); background: var(--color-muted); }
.device-mock__bar--60 { width: 60%; }
.device-mock__bar--40 { width: 40%; }
.device-mock__bar--80 { width: 80%; }
.device-mock__row { display: flex; align-items: center; gap: var(--space-2); padding-block: 0.6rem; border-top: 1px solid var(--color-border); }
.device-mock__row:first-of-type { border-top: none; }
.device-mock__avatar { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--color-accent-soft); flex-shrink: 0; }
.device-mock__lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.device-mock__float {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary);
}
.device-mock__float--sync { top: -18px; right: -28px; }
.device-mock__float--sign { bottom: -20px; left: -30px; }
@media (max-width: 640px) {
  .device-mock__float { position: static; margin-top: var(--space-2); }
}

/* ---- Stat strip ------------------------------------------------------ */
.stat-strip { display: flex; flex-wrap: wrap; gap: var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat { min-width: 140px; }
.stat__value { font-size: var(--fs-2xl); font-weight: 800; color: var(--color-primary); }
.stat__label { font-size: var(--fs-xs); color: var(--color-muted-foreground); }

/* ---- Steps ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-4); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}
.step h4 { font-size: var(--fs-base); margin-bottom: 0.35rem; }
.step p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }

/* ---- Plan cards -------------------------------------------------------- */
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-card--featured { border-color: var(--color-accent); box-shadow: var(--shadow-lg); position: relative; }
.plan-card__name { font-size: var(--fs-md); font-weight: 700; color: var(--color-primary); }
.plan-card__desc { font-size: var(--fs-sm); color: var(--color-muted-foreground); margin-top: 0.35rem; min-height: 44px; }
.plan-card__cta-price { font-size: var(--fs-lg); font-weight: 700; color: var(--color-primary); margin-top: var(--space-3); }
.plan-card__cta-price small { font-size: var(--fs-xs); font-weight: 500; color: var(--color-muted-foreground); display: block; }
.plan-card ul { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-sm); color: var(--color-secondary); }
.plan-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-success); }
.plan-card .btn { margin-top: var(--space-3); }

/* ---- Testimonial / quote placeholder ----------------------------------- */
.quote { font-size: var(--fs-lg); font-weight: 600; color: var(--color-primary); max-width: 60ch; }
.quote cite { display: block; margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: 500; color: var(--color-muted-foreground); font-style: normal; }

/* ---- Forms --------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-3); }
.form-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-primary); }
.form-field .hint { font-size: var(--fs-xs); color: var(--color-muted-foreground); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Contact info cards ------------------------------------------------ */
.contact-card { display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-accent-soft); color: var(--color-accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h4 { font-size: var(--fs-base); }
.contact-card p, .contact-card a { font-size: var(--fs-sm); color: var(--color-muted-foreground); }
.contact-card a:hover { color: var(--color-accent); }

/* ---- Placeholder note (dev-facing, remove-before-launch) --------------- */
.tbd {
  outline: 1px dashed #F59E0B;
  outline-offset: 3px;
  position: relative;
}
.tbd::after {
  content: "Completar: " attr(data-tbd);
  position: absolute;
  left: 0; top: -1.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9A3412;
  background: #FFEDD5;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  z-index: 5;
}

/* ---- Footer ---------------------------------------------------------- */
.footer { background: var(--color-primary); color: #94A3B8; padding-block: var(--space-6) var(--space-4); }
.footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.footer a { font-size: var(--fs-sm); color: #94A3B8; transition: color var(--transition); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__logo { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
}

/* ---- Utilities --------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.max-w-content { max-width: 68ch; }
.max-w-lead { max-width: 56ch; }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.text-muted { color: var(--color-muted-foreground); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.hidden-mobile { display: initial; }
@media (max-width: 640px) { .hidden-mobile { display: none; } }

/* ---- Reveal-on-scroll (subtle, respects reduced motion) ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Product screenshot frame ("browser window") ----------------------- */
.product-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.product-shot__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.product-shot__dots { display: flex; gap: 6px; }
.product-shot__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.product-shot__url {
  flex: 1;
  display: flex;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--color-muted-foreground);
  font-weight: 500;
}
.product-shot__url span {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.9rem;
}
.product-shot img { display: block; width: 100%; height: auto; }
.product-shot__caption {
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-xs);
  color: var(--color-muted-foreground);
  border-top: 1px solid var(--color-border);
}
.product-shot__caption strong { color: var(--color-secondary); }

/* ---- Legal content (Aviso de Privacidad / Términos) — also reused as .article-content for blog posts */
.legal-content .legal-meta, .article-content .legal-meta { color: var(--color-muted-foreground); font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.legal-content h2, .article-content h2 { font-size: var(--fs-xl); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-content h2:first-of-type, .article-content h2:first-of-type { margin-top: 0; }
.legal-content p, .article-content p { margin-top: var(--space-2); color: var(--color-secondary); }
.legal-content p:first-of-type, .article-content p:first-of-type { margin-top: 0; }
.legal-content ul, .article-content ul { margin-top: var(--space-2); padding-left: 1.25rem; list-style: disc; }
.legal-content li, .article-content li { margin-bottom: 0.5rem; color: var(--color-secondary); }
.legal-content li strong, .article-content li strong { color: var(--color-primary); }
.legal-content a, .article-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover, .article-content a:hover { color: var(--color-accent-dark); }
.article-content h3 { font-size: var(--fs-md); margin-top: var(--space-4); margin-bottom: 0.5rem; }
.article-content > p:first-of-type { font-size: var(--fs-md); color: var(--color-secondary); }
.article-content .card { margin-top: var(--space-3); }

/* ---- Blog (blog.html / blog-*.html) -------------------------------------- */
.blog-lead-card { padding: 0; overflow: hidden; }
.blog-lead-card__img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.blog-lead-card__body { padding: var(--space-4); }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__img { display: block; width: 100%; height: 180px; object-fit: cover; }
.blog-card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.blog-card__body .btn { margin-top: auto; align-self: flex-start; }
.blog-card h3, .blog-lead-card h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.blog-card h3 a, .blog-lead-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover, .blog-lead-card h3 a:hover { color: var(--color-accent); }
.blog-card p, .blog-lead-card p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }
.blog-meta { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--color-muted-foreground); margin-bottom: var(--space-2); }
.article-toc { margin-top: var(--space-3); }

/* ---- Blog category filter (blog.html) ------------------------------------ */
.blog-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.blog-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.blog-filter__btn:hover { background: var(--color-accent); color: #fff; }
.blog-filter__btn.is-active { background: var(--color-accent); color: #fff; }
.blog-filter__btn:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.blog-filter__count { opacity: 0.75; font-weight: 500; }
.blog-empty { display: none; padding: var(--space-4) 0; text-align: center; color: var(--color-muted-foreground); }

/* ---- Industry photos (soluciones.html) ---------------------------------- */
.industry-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-5);
}
.industry-photo img { display: block; width: 100%; height: auto; }
.industry-photo--sm {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FAQ accordion (faq.html) -------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}
.faq-item:first-of-type { padding-top: 0; }
.faq-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 4px; }
.faq-item p { margin-top: 0.7rem; color: var(--color-muted-foreground); font-size: var(--fs-sm); line-height: 1.65; }
.faq-item p a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.faq-jump a {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  text-decoration: none;
}
.faq-jump a:hover { background: var(--color-accent); color: #fff; }

/* ---- Floating WhatsApp button (all pages except webinar.html) ------------ */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.34);
}
.whatsapp-float:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
