:root {
  --bg: #f3f6fa;
  --surface: rgba(255,255,255,0.8);
  --surface-strong: #ffffff;
  --surface-dark: #0b1016;
  --text: #0c1117;
  --muted: #566170;
  --line: rgba(12, 17, 23, 0.08);
  --line-strong: rgba(12, 17, 23, 0.14);
  --brand: #176e89;
  --brand-2: #88d14f;
  --brand-3: #0d1a27;
  --shadow: 0 28px 60px rgba(9, 18, 32, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23,110,137,0.08), transparent 30%),
    radial-gradient(circle at right 20%, rgba(136,209,79,0.12), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #eef3f7 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--muted); line-height: 1.75; margin: 0; }
h1,h2,h3 { margin: 0; letter-spacing: -0.06em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: 0.96; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.02; }
h3 { font-size: 1.25rem; line-height: 1.15; }
.site-shell { width: min(calc(100% - 32px), 1320px); margin: 0 auto; }
.section { width: min(var(--max), 100%); margin: 0 auto; }
.site-header {
  position: sticky; top: 14px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 20px auto 0; padding: 14px 18px;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(20px); border-radius: 999px; box-shadow: var(--shadow);
}
.compact-header { position: relative; top: auto; }
.brand-logo { height: 42px; width: auto; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.96rem; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 999px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white !important;
  background: linear-gradient(135deg, var(--brand) 0%, #0e5772 42%, var(--brand-2) 130%);
  box-shadow: 0 16px 32px rgba(23,110,137,0.22);
}
.button-secondary {
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.72); color: var(--text) !important;
}
.button-ghost { background: rgba(12,17,23,0.04); border: 1px solid var(--line); color: var(--text) !important; }
.eyebrow {
  color: var(--brand); font-size: 0.82rem; letter-spacing: 0.18em; font-weight: 800; text-transform: uppercase;
}
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
  padding: 78px 0 48px;
}
.hero-copy { display: grid; gap: 22px; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.36rem); max-width: 62ch; }
.narrow-lead { max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.hero-points li {
  padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(23,110,137,0.16);
  background: rgba(255,255,255,0.64); color: #29414c; font-weight: 600;
}
.hero-panel {
  position: relative; padding: 24px;
  background: linear-gradient(180deg, rgba(13,26,39,0.98) 0%, rgba(15,24,38,0.93) 100%);
  border-radius: var(--radius-xl); color: white; overflow: hidden;
  box-shadow: 0 35px 80px rgba(8, 14, 25, 0.28);
}
.hero-panel::before {
  content: ""; position: absolute; inset: auto -18% -28% auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(136,209,79,0.25), transparent 66%);
}
.panel-card { position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.1); border-radius: 26px; padding: 24px; background: rgba(255,255,255,0.04); }
.panel-card-main { margin-bottom: 18px; }
.panel-kicker,.mini-label { color: rgba(255,255,255,0.7); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.panel-card h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 12px 0; }
.panel-card p { color: rgba(255,255,255,0.75); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compact strong { display: block; margin: 12px 0 8px; font-size: 1.06rem; }
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 10px 0 40px;
}
.trust-item {
  padding: 22px 24px; background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px; box-shadow: var(--shadow);
}
.trust-item span { display: block; color: var(--brand); font-size: 0.84rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.trust-item strong { font-size: 1.1rem; line-height: 1.35; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.section-heading.narrow { max-width: 800px; }
.service-grid, .blog-grid, .method-grid, .audience-grid {
  display: grid; gap: 18px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  min-height: 230px; padding: 26px; border-radius: 28px; background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.85); box-shadow: var(--shadow); display: grid; gap: 14px;
}
.service-card.featured {
  grid-column: span 2; background: linear-gradient(135deg, rgba(23,110,137,0.08), rgba(136,209,79,0.12)), #fff;
}
.service-tag, .post-tag {
  display: inline-flex; width: fit-content; padding: 8px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); background: rgba(23,110,137,0.08);
}
.service-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 600; }
.text-link { color: var(--brand); font-weight: 700; }
.text-link:hover { color: #0e5772; }
.methodology, .perspective, .insights, .newsletter-section { padding-top: 70px; }
.method-grid { grid-template-columns: repeat(4, 1fr); }
.method-card, .blog-card, .audience-grid article {
  padding: 24px; border-radius: 26px; background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.84); box-shadow: var(--shadow);
}
.method-card span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(23,110,137,0.1), rgba(136,209,79,0.18)); color: var(--brand); font-weight: 800; margin-bottom: 14px;
}
.method-card h3, .audience-grid h3, .blog-card h3, .blog-card h2 { margin-bottom: 12px; }
.audience-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid-list { grid-template-columns: 1fr; }
.blog-card.full h2 { font-size: 1.8rem; }
.newsletter-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center;
  padding: 34px; border-radius: 32px; background: linear-gradient(135deg, rgba(13,26,39,0.98), rgba(15,24,38,0.92)); box-shadow: 0 40px 80px rgba(9, 18, 32, 0.22);
}
.newsletter-card h2, .newsletter-card p, .newsletter-card .eyebrow { color: white; }
.newsletter-card p { color: rgba(255,255,255,0.76); }
.newsletter-form {
  display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
}
.newsletter-form label { display: grid; gap: 8px; color: rgba(255,255,255,0.88); font-weight: 600; }
.newsletter-form input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08); color: white; font: inherit;
}
.form-note { min-height: 24px; color: #d5ff80; font-size: 0.95rem; }
.site-footer {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 30px;
  padding: 70px 0 40px; margin-top: 44px; border-top: 1px solid rgba(12,17,23,0.08);
}
.site-footer h3 { font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li a { color: var(--muted); }
.page-hero { padding: 70px 0 20px; }
.page-title { max-width: 12ch; }
.article-shell { max-width: 1100px; }
.article-page { width: min(800px, 100%); margin: 0 auto; padding: 20px 0 80px; }
.article-content {
  padding: 40px; border-radius: 32px; background: rgba(255,255,255,0.84); border: 1px solid rgba(255,255,255,0.88); box-shadow: var(--shadow);
}
.article-content h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; margin: 12px 0 18px; }
.article-content h2 { font-size: 1.6rem; margin: 30px 0 12px; }
.article-content p + p { margin-top: 14px; }
.article-lead { font-size: 1.18rem; margin-bottom: 22px; }
@media (max-width: 1024px) {
  .hero, .newsletter-card, .service-grid, .blog-grid, .method-grid, .audience-grid, .trust-strip, .site-footer { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }
  .newsletter-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 20px), 1320px); }
  .site-header { border-radius: 24px; align-items: start; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 12px; padding: 18px;
    background: rgba(255,255,255,0.95); border: 1px solid rgba(12,17,23,0.08); border-radius: 24px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .static-nav { display: flex; position: static; flex-direction: row; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .hero, .service-grid, .blog-grid, .method-grid, .audience-grid, .trust-strip, .site-footer, .panel-grid { grid-template-columns: 1fr; }
  .section { width: min(calc(100% - 4px), var(--max)); }
  .hero { padding-top: 50px; }
  .article-content { padding: 26px; }
  .brand-logo { height: 34px; }
}

.brand { display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--text);}
.brand-mark {display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--brand),#0e5772 55%,var(--brand-2) 150%);color:#fff;font-size:.78rem;letter-spacing:.02em;box-shadow:0 10px 24px rgba(23,110,137,.22);}
.brand-name{font-size:1rem;letter-spacing:-.03em;}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-weight:800;}

.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;}

.legal-content ul{color:var(--muted);line-height:1.75;padding-left:1.35rem;}
.legal-content li+li{margin-top:8px;}
.legal-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:34px;padding-top:24px;border-top:1px solid var(--line);}
.youtube-inline{display:inline-flex;align-items:center;gap:8px;}
.youtube-play{display:inline-block;position:relative;width:25px;height:17px;border-radius:5px;background:#ff0033;flex:0 0 auto;}
.youtube-play::after{content:"";position:absolute;left:10px;top:4px;border-left:7px solid #fff;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;}

/* Brand system from Mercado Dinámico card */
.brand{min-width:220px;}
.brand-logo{display:block;width:auto;height:44px;max-width:250px;object-fit:contain;}
.footer-logo{display:block;width:auto;height:58px;max-width:300px;object-fit:contain;}
.footer-brand{display:inline-flex;align-items:center;margin-bottom:14px;}
.brand-subline{font-size:.96rem;font-weight:650;color:#566170;margin-top:-9px;}
@media(max-width:760px){.brand{min-width:0}.brand-logo{height:36px;max-width:205px}.footer-logo{height:48px;max-width:250px}}
