/* ==========================================================================
   Comercial Plus — Hoja de estilos principal
   ========================================================================== */

:root {
  --navy: #0f1e33;
  --navy-light: #16294a;
  --green: #10a05e;
  --green-dark: #0b7c48;
  --gold: #c9992a;
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --card: #ffffff;
  --text: #1c2430;
  --text-soft: #4d5a6b;
  --border: #e2e6ec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 30, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 30, 51, 0.14);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--text-soft); }
p.lead { font-size: 1.15rem; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(16, 160, 94, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(16,160,94,0.28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-gold { background: var(--gold); color: #241a03; box-shadow: 0 10px 24px rgba(201,153,42,0.3); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,250,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}
.logo .dot { color: var(--green); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); border-color: var(--green); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--navy); display: block; }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 0.25s ease; z-index: 60; }
  .nav-links.open { transform: translateY(0); }
  .nav-links .mobile-cta { color: var(--green-dark); font-weight: 800; display: inline-block; }
  .burger { display: flex; z-index: 61; }
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, #0c3b2b 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16,160,94,0.35), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; }
.hero-card p { color: rgba(255,255,255,0.75); }
.hero-card ul { padding-left: 18px; color: rgba(255,255,255,0.85); margin: 0 0 20px; }
.hero-card li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Section */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Grid / Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 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-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(16,160,94,0.12);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Blog cards */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); margin-bottom: 10px; }
.post-body h3 { margin-bottom: 10px; font-size: 1.12rem; }
.post-body p { font-size: 0.94rem; flex: 1; }
.post-meta { font-size: 0.82rem; color: var(--text-soft); margin-top: 12px; }

/* Testimonials */
.testi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.testi .quote { font-size: 0.98rem; color: var(--text); font-style: italic; margin-bottom: 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi .name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.testi .role { font-size: 0.82rem; color: var(--text-soft); }
.testi .metric { display: inline-block; margin-top: 14px; background: rgba(16,160,94,0.12); color: var(--green-dark); font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }

/* Pricing / offer box */
.offer-box {
  background: var(--card);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.offer-box .price { font-size: 2.6rem; font-weight: 800; color: var(--navy); }
.offer-box .price span { font-size: 1rem; font-weight: 600; color: var(--text-soft); }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-dark); font-weight: 800; }

/* Phase timeline */
.phase {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.phase .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* Member / discount */
.discount-card {
  background: linear-gradient(135deg, var(--gold), #a97e1f);
  color: #241a03;
  border-radius: var(--radius);
  padding: 26px;
}
.discount-card h3 { color: #241a03; }

/* Resource table */
.resource {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.resource .r-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.resource h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); }
.resource p { margin: 0; font-size: 0.88rem; }
.affiliate-note { font-size: 0.78rem; color: var(--text-soft); background: var(--bg-alt); padding: 14px 18px; border-radius: 10px; }

@media (max-width: 620px) {
  .resource { grid-template-columns: 1fr; text-align: left; }
}

/* Form */
.form-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); border-color: var(--green); }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.68); font-size: 0.9rem; margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Ad slot placeholders */
.ad-slot {
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 10px, #e5e9ee 10px, #e5e9ee 20px);
  border: 1px dashed #c3cad4;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  min-height: 100px;
  margin: 32px 0;
  text-align: center;
  padding: 10px;
}

/* Cookie banner */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--navy); color: #fff;
  padding: 18px 24px;
  display: none;
}
#cookie-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: var(--maxw); }
#cookie-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.85rem; max-width: 640px; }
#cookie-banner .actions { display: flex; gap: 10px; }

/* Breadcrumb / article */
.article-body h2 { margin-top: 40px; }
.article-body ul, .article-body ol { color: var(--text-soft); }
.article-body blockquote {
  border-left: 4px solid var(--green);
  padding: 6px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
}
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: var(--text-soft); font-size: 0.9rem; }

.badge { display: inline-block; background: rgba(16,160,94,0.12); color: var(--green-dark); font-weight: 700; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; margin-right: 6px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
