/* ============================================================================
   surtimonos.com — hoja de estilos compartida
   Editar aquí (un solo lugar) en vez de en cada página.
   ========================================================================= */

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

:root {
  --primary:   #1044A8;
  --primary-d: #0D3A96;
  --dark:      #040B1E;
  --gold:      #F5A623;
  --gold-d:    #E09610;
  --text:      #374151;
  --muted:     #6B7280;
  --light:     #F0F4FF;
  --border:    #E5E7EB;
  --white:     #FFFFFF;
  --success:   #10B981;
  --warning:   #F59E0B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  border: none; text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-gold { background: var(--gold); color: var(--dark) !important; }
.btn-gold:hover { background: var(--gold-d); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── Iconos (línea, monocromo, sin contenedor — estilo easyboxs) ────────── */
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.icon-lg { width: 26px; height: 26px; }
.btn .icon { width: 17px; height: 17px; }
.badge .icon { width: 14px; height: 14px; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
}
.badge-primary { background: rgba(16,68,168,.10); color: var(--primary); }
.badge-gold    { background: rgba(245,166,35,.15); color: #9A6700; }

/* ══ NAV ═════════════════════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: 210px; height: auto; display: block; max-height: 72px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-login:hover { color: var(--dark); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 6px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; transition: background .15s;
}
.hamburger:hover { background: rgba(16,68,168,.08); }
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--dark); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px; z-index: 99;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(4,11,30,.10);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .mobile-cta {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: 4px;
}
.mobile-menu .mobile-cta a { border-bottom: none; }
.mobile-menu .btn { width: 100%; }

/* ══ HERO ════════════════════════════════════════════════════════════════ */
#hero {
  background: linear-gradient(160deg, #EEF2FF 0%, #FFFFFF 60%);
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,68,168,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900; color: var(--dark);
  line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 18px; background: rgba(16,68,168,.08);
  border: 1px solid rgba(16,68,168,.20); border-radius: 10px;
}
.hero-note .icon { width: 18px; height: 18px; color: var(--primary); }
.hero-note span { font-size: 13px; color: var(--primary); font-weight: 600; }
a.hero-note { transition: background .15s, border-color .15s; }
a.hero-note:hover { background: rgba(16,68,168,.14); border-color: rgba(16,68,168,.35); }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-trust-text { font-size: 13px; color: var(--muted); }
.hero-trust-text strong { color: var(--dark); }
.hero-trust-sep { width: 1px; height: 40px; background: var(--border); }
.hero-visual {
  background: linear-gradient(135deg, var(--dark) 0%, #0A1A50 100%);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 32px 80px rgba(4,11,30,.30);
  position: relative;
}
.app-card {
  background: rgba(255,255,255,.06); border-radius: 16px; padding: 20px;
  border: 1px solid rgba(255,255,255,.1); margin-bottom: 12px;
}
.app-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-card-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.app-card-title .icon { width: 14px; height: 14px; }
.app-pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.pill-green  { background: rgba(16,185,129,.2);  color: #34D399; }
.pill-orange { background: rgba(245,166,35,.25); color: #F5A623; }
.pill-blue   { background: rgba(59,130,246,.2);  color: #60A5FA; }
.order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.order-row:last-child { border: none; }
.order-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }
.order-name .icon { width: 15px; height: 15px; }
.order-amount { font-size: 13px; color: var(--gold); font-weight: 700; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.stat-box {
  background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px;
  border: 1px solid rgba(255,255,255,.08); text-align: center;
}
.stat-num { font-size: 24px; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ══ SECCIONES GENÉRICAS ═══════════════════════════════════════════════ */
.section { padding: 96px 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 17px; color: var(--muted); }

/* ── Pasos ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: var(--white); border-radius: 20px; padding: 36px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.step:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Rejilla de funcionalidades ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card {
  display: flex; gap: 18px; padding: 28px;
  border-radius: 16px; border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(16,68,168,.10); }
.feature-icon { flex-shrink: 0; color: var(--primary); }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-body h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.feature-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Nichos ─────────────────────────────────────────────────────────────── */
.niches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.niche {
  background: var(--white); border-radius: 16px; padding: 28px 20px;
  text-align: center; border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.niche:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(16,68,168,.08); }
.niche-icon { color: var(--primary); margin-bottom: 12px; }
.niche-icon .icon { width: 30px; height: 30px; }
.niche h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.niche p { font-size: 13px; color: var(--muted); }
.niche a { text-decoration: underline; }

/* ── Precios ────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { border-radius: 20px; padding: 36px 28px; border: 2px solid var(--border); position: relative; }
.plan-featured { border-color: var(--primary); box-shadow: 0 16px 48px rgba(16,68,168,.18); }
.plan-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: var(--dark);
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 100px;
  white-space: nowrap;
}
.plan-tag .icon { width: 13px; height: 13px; }
.plan-name { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.plan-price sup { font-size: 18px; vertical-align: super; }
.plan-price-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text); padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.plans-note { text-align: center; margin-top: 32px; font-size: 13px; color: var(--muted); }
.plans-note .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--success); }

.impulso-band { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px;
  padding: 24px; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; }
.impulso-ico { flex-shrink: 0; }
.impulso-ico .icon { width: 30px; height: 30px; color: var(--gold); }
.impulso-band h3 { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.impulso-band > div > p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.impulso-ej { margin: 12px 0 0; padding-left: 18px; }
.impulso-ej li { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 5px; }
@media (max-width: 560px) { .impulso-band { flex-direction: column; gap: 12px; } }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--dark);
  font-family: inherit; gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-toggle { font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform .2s; line-height: 1; }
.faq-answer { display: none; padding-bottom: 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.faq-answer a { color: var(--primary); text-decoration: underline; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ── CTA final ──────────────────────────────────────────────────────────── */
#cta-final {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #0A1A50 100%);
  text-align: center; position: relative; overflow: hidden;
}
#cta-final::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(16,68,168,.35) 0%, transparent 70%);
  pointer-events: none;
}
#cta-final .badge { background: rgba(245,166,35,.2); color: var(--gold); margin-bottom: 24px; position: relative; }
#cta-final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: #fff; margin-bottom: 16px; position: relative; }
#cta-final p { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 40px; position: relative; }
#cta-final .btn-gold { font-size: 17px; padding: 18px 40px; position: relative; }
#cta-final .cta-fine { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ══ FOOTER ════════════════════════════════════════════════════════════ */
footer { background: var(--dark); padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.45); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: underline; }
.footer-bottom p:last-child a { margin-right: 16px; }

/* ── Botón flotante WhatsApp ───────────────────────────────────────────── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab-icon { width: 26px; height: 26px; }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .niches { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 68px; }
  .nav-logo img { width: 170px; max-height: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .steps, .features-grid, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section, #hero, #cta-final { padding: 72px 0; }
}
@media (max-width: 480px) {
  .niches { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .nav-inner { height: 60px; }
  .nav-logo img { width: 140px; max-height: 50px; }
  .container { padding: 0 18px; }
}

/* ══ MIGAS DE PAN ══════════════════════════════════════════════════════ */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--muted); }

/* ══ HERO DE PÁGINA INTERIOR ═══════════════════════════════════════════ */
.page-hero { padding: 56px 0 40px; background: linear-gradient(160deg, #EEF2FF 0%, #FFFFFF 70%); }
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; color: var(--dark); line-height: 1.12; letter-spacing: -1px; margin-bottom: 16px; max-width: 20ch; }
.page-hero .lead { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 60ch; margin-bottom: 28px; }
.page-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Bloque de dolores (3 columnas) ───────────────────────────────────── */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.pain .icon { width: 24px; height: 24px; color: var(--gold); margin-bottom: 12px; }
.pain h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.pain p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Lista de "qué obtienes" ──────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-item .icon { width: 26px; height: 26px; color: var(--primary); margin-bottom: 10px; }
.value-item h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Grupo de funcionalidades ────────────────────────────────────────── */
.feature-group { margin-bottom: 48px; }
.feature-group > h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.roadmap-list { max-width: 720px; margin: 0 auto; }
.roadmap-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted);
}
.roadmap-list li:last-child { border-bottom: none; }
.roadmap-list .icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.roadmap-list strong { color: var(--dark); }

@media (max-width: 900px) {
  .pains, .value-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 32px; }
}

/* ══ PÁGINAS LEGALES ══════════════════════════════════════════════════ */
.legal { max-width: 860px; margin: 0 auto; padding: 8px 24px 80px; color: #334155; line-height: 1.7; }
.legal .breadcrumbs { padding: 20px 0 0; }
.legal-header { margin: 24px 0 40px; padding-bottom: 28px; border-bottom: 2px solid var(--border); }
.legal-header h1 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
.legal-meta { font-size: 13px; color: var(--muted); }
.legal h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 24px 0 8px; }
.legal h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.legal p { margin-bottom: 14px; font-size: 15px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { font-size: 15px; margin-bottom: 6px; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }
.legal .notice { background: #FEF3C7; border-left: 4px solid #F59E0B; border-radius: 0 10px 10px 0; padding: 16px 20px; margin-bottom: 36px; font-size: 14px; color: #78350F; }
.legal .highlight, .legal .authorization-box { background: var(--light); border: 1px solid rgba(16,68,168,.15); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--light); color: var(--dark); font-weight: 700; }
.legal .rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.legal .right-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.legal .right-card .icon { width: 18px; height: 18px; color: var(--primary); }
.legal .right-card p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .legal .rights-grid { grid-template-columns: 1fr; } }

/* ══ ÍNDICE DEL BLOG ══════════════════════════════════════════════════ */
.group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 44px 0 16px; }
.group-title:first-of-type { margin-top: 0; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { display: block; border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(16,68,168,.08); }
.post-card .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.post-card h3 { font-size: 20px; color: var(--dark); margin: 10px 0; font-weight: 800; letter-spacing: -0.3px; }
.post-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .posts { grid-template-columns: 1fr; } }

/* ══ RED SURTIMONOS ═══════════════════════════════════════════════════ */
.red-demo-banner { background: #FEF3C7; color: #78350F; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #F5A623; }
.red-demo-banner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

.red-muni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.red-muni { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--border); }
.red-muni-name { font-size: 17px; font-weight: 800; color: var(--dark); }
.red-muni-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.red-muni-on { transition: border-color .2s, transform .2s; }
.red-muni-on:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,68,168,.08); }
.red-muni-on .red-muni-tag { color: var(--success); }
.red-muni-off { opacity: .6; }
.red-muni-off .red-muni-tag { color: var(--muted); }

.red-cta-negocio { margin-top: 40px; padding: 28px; border-radius: 16px; background: var(--light); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.red-cta-negocio p { font-size: 15px; color: var(--dark); font-weight: 600; margin: 0; }

.red-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 24px; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
.red-search .icon { width: 18px; height: 18px; color: var(--muted); }
.red-search input { border: none; outline: none; width: 100%; font-size: 15px; font-family: inherit; background: transparent; }

.red-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.red-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--dark); transition: border-color .2s, background .2s; }
.red-chip:hover { border-color: var(--primary); background: rgba(16,68,168,.06); }
.red-chip .icon { width: 16px; height: 16px; color: var(--primary); }
.red-chip span { color: var(--muted); font-weight: 700; }

.red-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.red-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.red-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(16,68,168,.08); }
.red-card-logo img { width: 92px; height: 92px; border-radius: 14px; object-fit: contain; padding: 8px; background: #fff; border: 1px solid var(--border); }
.red-card-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.red-card-body h3 { font-size: 17px; font-weight: 800; color: var(--dark); margin: 4px 0 4px; display: flex; align-items: center; gap: 6px; }
.red-card-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.red-star .icon { width: 14px; height: 14px; color: var(--gold); }
.red-empty { text-align: center; color: var(--muted); padding: 32px 0; }
.red-ofertas { background: rgba(245,166,35,.10); border: 1px solid rgba(245,166,35,.35); border-radius: 16px; padding: 20px 24px; margin: 0 0 28px; }
.red-ofertas h2 { font-size: 16px; font-weight: 800; color: #9A6410; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.red-ofertas h2 .icon { width: 18px; height: 18px; }
.red-ofertas ul { list-style: none; padding: 0; margin: 0; }
.red-ofertas li { padding: 7px 0; border-bottom: 1px solid rgba(245,166,35,.25); font-size: 14px; }
.red-ofertas li:last-child { border-bottom: none; }
.red-ofertas a { color: var(--dark); }
.red-ofertas a:hover { text-decoration: underline; }
.red-ficha-oferta { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,.14); color: #9A6410; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; margin-bottom: 20px; }
.red-ficha-oferta .icon { width: 16px; height: 16px; }
.red-map-wrap { margin: 0 0 32px; }
.red-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.red-map-head h2 { font-size: 18px; font-weight: 800; color: var(--dark); }
#red-map { height: 360px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; z-index: 0; }
.leaflet-container { font: inherit; }

.red-ficha .breadcrumbs { padding: 0 0 8px; }
.red-ficha-head { display: flex; gap: 20px; align-items: flex-start; margin: 20px 0 24px; }
.red-ficha-logo { width: 168px; height: 168px; border-radius: 20px; object-fit: contain; padding: 14px; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.red-ficha-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--dark); line-height: 1.15; margin: 6px 0 8px; }
.red-ficha-desc { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.red-ficha-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.red-ficha-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; }
.red-ficha-info dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.red-ficha-info dt .icon { width: 15px; height: 15px; }
.red-ficha-info dd { font-size: 15px; color: var(--dark); }
.red-ficha-info a { color: var(--primary); }
.red-ficha-fine { margin-top: 28px; font-size: 13px; color: var(--muted); }
.red-ficha-fine a { color: var(--primary); text-decoration: underline; }

@media (max-width: 900px) {
  .red-muni-grid { grid-template-columns: 1fr 1fr; }
  .red-grid { grid-template-columns: 1fr; }
  .red-ficha-info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .red-muni-grid { grid-template-columns: 1fr; }
  .red-ficha-head { flex-direction: column; gap: 14px; }
  .red-ficha-logo { width: 128px; height: 128px; padding: 12px; }
  .red-card-logo img { width: 76px; height: 76px; }
}

/* ══ ARTÍCULO DE BLOG ═════════════════════════════════════════════════ */
.article-shell { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.art-header { padding: 8px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.art-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; background: rgba(16,68,168,.10); color: var(--primary); margin-bottom: 18px; }
.art-badge .icon { width: 14px; height: 14px; }
h1.art-title { font-size: clamp(26px, 4.2vw, 40px); font-weight: 900; color: var(--dark); line-height: 1.16; letter-spacing: -0.5px; margin-bottom: 16px; }
.art-meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.art-lead { font-size: 18px; margin-top: 20px; line-height: 1.7; color: var(--text); }
.art-lead strong { color: var(--dark); }
.art-photo { width: 100%; height: auto; border-radius: 14px; margin: 0 0 36px; }
.article-body h2 { font-size: clamp(21px, 2.8vw, 25px); font-weight: 800; color: var(--dark); margin: 44px 0 16px; letter-spacing: -0.3px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 26px 0 10px; }
.article-body p { font-size: 16px; line-height: 1.75; margin-bottom: 18px; max-width: 68ch; }
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; max-width: 66ch; }
.article-body a { color: var(--primary); text-decoration: underline; }
.callout { background: var(--light); border: 1px solid rgba(16,68,168,.15); border-left: 4px solid var(--primary); border-radius: 10px; padding: 20px 22px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); display: block; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
.table-wrap thead th { text-align: left; background: var(--light); color: var(--dark); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table-wrap tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.cta-block { background: linear-gradient(135deg, var(--dark) 0%, #0A1A50 100%); border-radius: 20px; padding: 40px 32px; text-align: center; margin: 52px 0; }
.cta-block h3 { color: #fff; font-size: 23px; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,.65); margin-bottom: 24px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-block .microcopy { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 14px; }
.faq-mini-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-mini-item h3 { margin: 0 0 8px; }
.faq-mini-item p { margin: 0; color: var(--muted); }
.related { background: var(--light); border-radius: 16px; padding: 28px; margin: 44px 0; }
.related h3 { margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 10px; }
.related a { color: var(--primary); font-weight: 600; }
.related a:hover { text-decoration: underline; }
