/* ============================================================
   progreseapp.com — Hoja de estilos compartida del silo SEO
   (servicios/ y recursos/). Reutiliza los tokens de marca de la
   home (primary #0D2C4B, accent #F97316, Poppins) sin tocar el
   CSS inline de la landing pagada.
   ============================================================ */

/* Poppins auto-hospedada (subset latin) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --primary: #0D2C4B;
  --primary-dark: #081d33;
  --secondary: #333333;
  --text: #666666;
  --accent: #F97316;
  --accent-dark: #c75a0c;
  --light: #F0F4F8;
  --card-bg: #F6F6F6;
  --card-border: #E0E0E0;
  --yellow-bg: #FFFBE6;
  --yellow-border: #FDE68A;
  --white: #FFFFFF;
  --footer-text: #F2F5F7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
strong, b { color: var(--secondary); }

a { color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

/* ===== Contenedores ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 860px; }
.container-wide { max-width: 1200px; }

/* ===== Header / nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13, 44, 75, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--light);
  font-size: 0.85rem;
  padding: 12px 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: #b5bcc6; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current] { color: var(--secondary); font-weight: 600; }

/* ===== Hero de página ===== */
.page-hero {
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--white);
}
.page-hero .lead {
  font-size: 1.08rem;
  max-width: 760px;
  margin: 0 auto;
  color: #e8edf3;
  font-weight: 300;
}

/* ===== Secciones ===== */
.section { padding: 70px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light); }
.section-primary { background: var(--primary); }

.section-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.35;
}
.section-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: 1.02rem;
}

/* ===== Tipografía de artículo (prose) ===== */
.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: var(--secondary);
  margin: 40px 0 16px;
  line-height: 1.35;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 28px 0 12px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 4px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose ul li { list-style: none; position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol { padding-left: 22px; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--secondary);
  font-style: italic;
}

/* ===== Cards / rejilla de módulos ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 44, 75, 0.10);
  border-color: var(--accent);
}
.card-icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-desc { margin-bottom: 0; font-size: 0.96rem; }
.card a.card-title-link { text-decoration: none; color: var(--secondary); }
.card a.card-title-link:hover .card-title { color: var(--accent); }

/* Lista con check */
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--secondary);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center / 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center / 14px no-repeat;
}

/* ===== Caja destacada / callout ===== */
.callout {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}
.callout-title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}
.callout p { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }

.callout-note {
  background: var(--light);
  border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-note p:last-child { margin-bottom: 0; }

/* ===== Bloque "Caso real" (prueba de trabajo) ===== */
.case-proof {
  background: linear-gradient(135deg, #0D2C4B 0%, #12406e 100%);
  border-radius: 14px;
  padding: 34px;
  margin: 36px 0;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(13, 44, 75, 0.18);
}
.case-proof-eyebrow {
  display: inline-block;
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-proof-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}
.case-proof-text {
  color: #e8edf3;
  font-size: 1rem;
  margin-bottom: 20px;
}
.case-proof-text strong { color: var(--white); }
.case-proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.case-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.case-proof-badge:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--accent);
  color: var(--white);
}
.case-proof-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-left: 4px;
}
.case-proof-link:hover { color: #ffb077; }

/* ===== Tabla ===== */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(13, 44, 75, 0.08);
  margin: 30px 0;
}
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
table.compare thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
}
table.compare thead th:first-child { border-radius: 12px 0 0 0; }
table.compare thead th:last-child { border-radius: 0 12px 0 0; }
table.compare tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  color: var(--secondary);
}
table.compare tbody tr:nth-child(even) td { background: var(--white); }
table.compare tbody tr:nth-child(odd) td { background: var(--card-bg); }
table.compare tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
table.compare tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.cta-banner p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #fff5ec;
  font-size: 1.05rem;
}
.btn {
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: #12406e; color: var(--white); }
.btn-accent {
  background: var(--white);
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 34px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.btn-accent:hover { background: #fff5ec; color: var(--accent-dark); }

/* ===== Acordeón FAQ ===== */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.accordion-item[open] { border-color: var(--accent); }
.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.accordion-title::-webkit-details-marker { display: none; }
.accordion-title::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.accordion-item[open] .accordion-title::after { content: "\2212"; }
.accordion-body {
  padding: 0 22px 18px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}
.accordion-body p { margin-bottom: 12px; }
.accordion-body p:last-child { margin-bottom: 0; }

/* ===== Tarjetas de páginas relacionadas ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 44, 75, 0.10);
  border-color: var(--accent);
}
.related-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.related-card .ttl {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 6px;
  line-height: 1.4;
}
.related-card .arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Steps (flujo de proceso) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 26px;
  position: relative;
}
.step-num {
  counter-increment: step;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-num::before { content: counter(step); }
.step-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: var(--footer-text);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col p { font-size: 0.9rem; font-weight: 300; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  font-weight: 300;
  color: #cdd6e0;
  text-align: center;
  line-height: 1.7;
}
.footer-bottom a {
  color: var(--footer-text);
  text-decoration: underline;
  font-weight: 600;
}
.footer-bottom a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .page-hero { padding: 50px 0 44px; }
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 0.88rem; }
  .callout { padding: 24px 20px; }
  .cta-banner { padding: 44px 0; }
  .header-inner { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .brand { font-size: 1rem; }
}
@media (max-width: 520px) {
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 0.82rem; }
}
