/* Estilos de las páginas estáticas de DevoluMX (servicios, preguntas frecuentes y blog).
   Misma identidad que la home: verde #1A3D28, dorado #D4AF37, crema #F5F0E8, Outfit + Manrope. */
:root {
  --green: #1a3d28;
  --green-dark: #143021;
  --gold: #d4af37;
  --cream: #f5f0e8;
  --bg: #fafafa;
  --ink: #1d1d1f;
  --muted: #4b5563;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--green); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span span { color: var(--gold); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: 15px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; border-radius: 9999px; padding: 14px 30px; transition: all 0.3s; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(26, 61, 40, 0.25); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green); box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3); }
.btn-gold:hover { background: #c9a431; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 15px; }

/* Portada de la página */
.page-hero { background: var(--cream); padding: 40px 0 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9ca3af; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #3d5a47; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 4px; height: 36px; background: var(--gold); }
h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.1; letter-spacing: -0.01em; color: var(--green); margin-bottom: 22px; }
.lead { font-size: 19px; line-height: 1.7; color: #374151; max-width: 780px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.meta { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* Contenido */
.content { padding: 56px 0 24px; }
.content section + section { margin-top: 8px; }
h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.2; color: var(--green); margin: 44px 0 14px; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin-top: 12px; }
.content h2:first-child { margin-top: 0; }
h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--green); margin: 26px 0 8px; }
.content p { margin-bottom: 16px; }
.content a:not(.btn) { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.content ul, .content ol { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.content ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.content ul li::before { content: ""; position: absolute; left: 6px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.content ol { counter-reset: paso; }
.content ol li { position: relative; padding-left: 52px; margin-bottom: 16px; counter-increment: paso; }
.content ol li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid rgba(212, 175, 55, 0.6); color: var(--gold); font-family: 'Outfit', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.content strong { color: var(--green); }

.respuesta { background: #fff; border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; padding: 22px 26px; margin: 0 0 36px; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05); }
.respuesta .label { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #3d5a47; margin-bottom: 6px; }
.respuesta p { margin: 0; font-size: 18px; }
.nota { background: var(--cream); border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 14px; padding: 16px 20px; margin: 36px 0 0; font-size: 16px; }

/* Tarjetas relacionadas y blog */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0 0 8px; }
.card { display: block; background: #fff; border: 1px solid rgba(26, 61, 40, 0.1); border-radius: 18px; padding: 24px; transition: all 0.3s; }
.card:hover { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07); }
.card .card-title { display: block; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--green); margin-bottom: 8px; line-height: 1.3; }
.card .card-text { display: block; font-size: 16px; color: var(--muted); line-height: 1.6; }
.card .card-date { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.related { padding: 24px 0 56px; }
.related h2 { margin-top: 24px; }

/* Llamada a la acción */
.cta-band { background: #0a1f12; color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(28px, 4.4vw, 40px); }
.cta-band h2::after { margin: 14px auto 0; }
.cta-band h2 span { color: var(--gold); }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 560px; margin: 0 auto 28px; }

/* Pie */
.site-footer { background: #fafafa; border-top: 1px solid #e5e7eb; padding: 40px 0 28px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; margin-bottom: 28px; }
.site-footer h2 { font-size: 16px; margin: 0 0 12px; color: var(--green); }
.site-footer h2::after { display: none; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--green); }
.copy { font-size: 14px; border-top: 1px solid #e5e7eb; padding-top: 18px; }

@media (max-width: 860px) {
  .bar { gap: 8px 16px; }
  .site-nav { order: 3; width: 100%; gap: 2px 20px; font-size: 15px; }
  .header-cta { display: none; }
  .site-header { position: static; }
  .page-hero { padding: 28px 0 44px; }
  .lead { font-size: 18px; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
