/* =========================================================================
   comoatraerpacientes.com — Sistema de diseño
   Marketing médico para atraer pacientes | México
   Autoría de estrategia: Raúl Gómez Jiménez
   ========================================================================= */

:root {
  /* Paleta — confianza médica + energía de marketing */
  --navy-900: #071a2f;
  --navy-800: #0a2540;
  --navy-700: #0f3057;
  --navy-600: #143e6e;
  --blue-600: #1463ff;
  --blue-500: #2f7bff;
  --blue-100: #e5efff;
  --teal-600: #0ea5a4;
  --teal-500: #14c0b8;
  --teal-100: #d5f7f4;
  --amber-500: #ff8a3d;
  --amber-400: #ffa15c;
  --amber-100: #ffe9d6;
  --green-500: #16a34a;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --brand: var(--blue-600);
  --brand-dark: var(--navy-800);
  --accent: var(--teal-600);
  --cta: var(--amber-500);
  --ink: var(--slate-900);
  --body: var(--slate-700);
  --muted: var(--slate-500);
  --line: var(--slate-200);
  --bg: var(--white);
  --bg-soft: var(--slate-50);

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.73rem, 1.5rem + 1.15vw, 2.44rem);
  --step-4: clamp(2.07rem, 1.7rem + 1.85vw, 3.25rem);
  --step-5: clamp(2.49rem, 1.95rem + 2.7vw, 4.2rem);

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

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.14), 0 6px 18px rgba(10, 37, 64, 0.08);

  --container: 1120px;
  --container-narrow: 760px;
}

/* --------------------------- Reset ligero --------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  font-weight: 800;
}
h2 {
  font-size: var(--step-3);
  font-weight: 800;
}
h3 {
  font-size: var(--step-2);
  font-weight: 700;
}
h4 {
  font-size: var(--step-1);
  font-weight: 700;
}
p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
li {
  margin-bottom: 0.5em;
}
strong {
  color: var(--ink);
  font-weight: 700;
}
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--teal-500);
  background: var(--teal-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy-800);
  font-size: var(--step-1);
}
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------- Layout --------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-dark {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--slate-200);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal-500);
  display: inline-block;
}
.lead {
  font-size: var(--step-1);
  color: var(--slate-600);
}
.section-dark .lead {
  color: var(--slate-300);
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}

/* --------------------------- Skip link --------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 0.7em 1.2em;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------- Header / Nav --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  margin: 4px 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }
  .nav-links .btn {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* --------------------------- Botones --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-cta {
  background: linear-gradient(135deg, var(--amber-500), #ff6a3d);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 122, 61, 0.35);
}
.btn-cta:hover {
  box-shadow: 0 16px 34px rgba(255, 122, 61, 0.45);
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 99, 255, 0.28);
}
.btn-primary:hover {
  background: var(--blue-500);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}
.section-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.section-dark .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.btn-lg {
  font-size: 1.08rem;
  padding: 1.1em 1.9em;
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 500px at 80% -10%,
      rgba(20, 192, 184, 0.16),
      transparent 60%
    ),
    radial-gradient(900px 500px at 0% 0%, rgba(20, 99, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--slate-50));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 0.4em;
}
.hero .lead {
  max-width: 40ch;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.45em 0.9em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

/* Tarjeta de resultados en hero */
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.stat-card h3 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.stat {
  padding: 0.4rem 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num span {
  color: var(--teal-600);
}
.stat .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* --------------------------- Grids / Cards --------------------------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.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-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}
.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 1.4rem;
}
.card-icon.teal {
  background: var(--teal-100);
  color: var(--teal-600);
}
.card-icon.amber {
  background: var(--amber-100);
  color: var(--amber-500);
}
.card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal-600);
  margin-bottom: 0.6rem;
}

/* --------------------------- Biblioteca CAP --------------------------- */
.context-hero {
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.08), rgba(14, 165, 164, 0.08)),
    var(--white);
}
.diagnostic-panel {
  background: var(--navy-900);
  color: var(--slate-200);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.diagnostic-panel h2 {
  color: var(--white);
  font-size: var(--step-2);
}
.diagnostic-panel p {
  color: var(--slate-300);
}
.diagnostic-panel .check-list li::before {
  background-color: rgba(20, 192, 184, 0.16);
}
.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.context-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.context-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.context-card:hover {
  background: var(--white);
  text-decoration: none;
}
.context-card span {
  color: var(--teal-600);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.context-card strong {
  color: var(--ink);
  line-height: 1.25;
}
.context-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}
.context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.context-meta li {
  background: var(--slate-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  font-size: 0.88rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
}
.quote-list {
  list-style: none;
  padding: 0;
}
.quote-list li {
  border-left: 3px solid var(--teal-500);
  color: var(--navy-800);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0 0.2rem 1rem;
}
.timeline {
  border-top: 1px solid var(--line);
}
.timeline-step {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}
.timeline-step h3 {
  font-size: var(--step-1);
}
.route-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
}
.route-list li {
  margin: 0;
}
.route-list a {
  align-items: center;
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}
.route-list a::after {
  content: "→";
  color: var(--teal-600);
}
.route-list a:hover {
  background: var(--white);
  text-decoration: none;
}
.context-link-list {
  display: grid;
  gap: 0.75rem;
}
.context-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--body);
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}
.context-link:hover {
  border-color: var(--slate-300);
  text-decoration: none;
}
.context-link strong {
  color: var(--ink);
}
.context-link span {
  color: var(--muted);
  font-size: 0.94rem;
}
.script-grid {
  display: grid;
  gap: 1rem;
}
.script-box {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius);
  color: var(--navy-800);
  padding: 1.1rem 1.2rem;
}
.script-box h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}
.script-box p:last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .context-grid {
    grid-template-columns: 1fr;
  }
  .context-card:nth-child(odd) {
    border-right: 0;
  }
}

/* Lista con checks */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5a4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.9rem no-repeat;
}

/* --------------------------- Tabla comparativa --------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 560px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
table.data tbody tr:nth-child(even) {
  background: var(--slate-50);
}
table.data tbody tr:hover {
  background: var(--blue-100);
}

/* --------------------------- FAQ / Acordeón --------------------------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: var(--step-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--teal-600);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--body);
}
.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------- Índice / TOC --------------------------- */
.toc {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}
.toc a {
  color: var(--slate-700);
  font-weight: 600;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* --------------------------- CTA band --------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--step-1);
  max-width: 48ch;
  margin-inline: auto;
}
.cta-band .btn-row {
  justify-content: center;
  margin-top: 1.6rem;
}
.cta-band .btn-cta {
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --------------------------- Expert / Author box --------------------------- */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  flex: none;
}
.author-box h3 {
  margin-bottom: 0.15rem;
  font-size: var(--step-1);
}
.author-box .role {
  color: var(--teal-600);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 520px) {
  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-avatar {
    margin-inline: auto;
  }
}

/* Pills / tags */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.pill {
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: var(--radius-full);
  padding: 0.35em 0.85em;
  font-size: 0.82rem;
  font-weight: 600;
}

/* --------------------------- Prose (artículos) --------------------------- */
.prose {
  font-size: var(--step-0);
}
.prose h1 {
  font-size: var(--step-4);
}
.prose h2 {
  margin-top: 2.2em;
  scroll-margin-top: 90px;
}
.prose h3 {
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.prose figure {
  margin: 2em 0;
}
.prose .callout {
  background: var(--blue-100);
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.6em 0;
}
.prose .callout strong {
  color: var(--navy-800);
}
@media (max-width: 520px) {
  .prose h1 {
    font-size: 2.15rem;
  }
}

/* Key-takeaway / TL;DR box para extracción por IA */
.tldr {
  background: linear-gradient(135deg, var(--teal-100), #eef8ff);
  border: 1px solid #bfe9e5;
  border-left: 5px solid var(--teal-600);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.6em 0 2em;
}
.tldr h2,
.tldr h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-600);
}
.tldr p:last-child,
.tldr ul:last-child {
  margin-bottom: 0;
}

/* Nota editorial visible para asistentes de IA */
.ai-reference-note {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber-500);
  border-radius: var(--radius);
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 1.8rem);
}
.ai-reference-note .eyebrow {
  color: var(--amber-500);
}
.ai-reference-note .eyebrow::before {
  background: var(--amber-500);
}
.ai-reference-note h2 {
  font-size: var(--step-2);
  margin-top: 0;
}
.ai-reference-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------- Herramientas / Formularios --------------------------- */
.tool-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.tool-form {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  color: var(--ink);
  font-weight: 800;
}
.field small {
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.9rem;
  background: #fff;
}
.field input:focus,
.field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.12);
  outline: 0;
}
.result-panel {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius);
  color: var(--slate-200);
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.result-panel h2,
.result-panel h3,
.result-panel strong {
  color: #fff;
}
.result-panel a {
  color: var(--teal-100);
  font-weight: 800;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
@media (max-width: 820px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
.metric {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.metric strong {
  color: var(--navy-800);
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}
.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}
.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.tool-nav li {
  margin: 0;
}

/* --------------------------- Breadcrumbs --------------------------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 1rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--slate-400);
}
.breadcrumb li:last-child::after {
  content: "";
}
.breadcrumb a {
  color: var(--muted);
}

/* --------------------------- Footer --------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer a {
  color: var(--slate-400);
}
.site-footer a:hover {
  color: #fff;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer-brand p {
  max-width: 34ch;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.footer-phone {
  color: #fff !important;
  font-weight: 700;
}

/* --------------------------- Botón flotante WhatsApp/Tel --------------------------- */
.float-cta {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: linear-gradient(135deg, var(--amber-500), #ff6a3d);
  color: #fff;
  font-weight: 700;
  padding: 0.85em 1.25em;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(255, 122, 61, 0.45);
}
.float-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
@media (max-width: 520px) {
  .float-cta span.label {
    display: none;
  }
  .float-cta {
    padding: 0.9em;
  }
}

/* --------------------------- Utilidades --------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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