/* ═══════════════════════════════════════════
   RMBJ Consultoria — Frontend Público
   Palette: Navy + Amber · Fonts: DM Serif + Plus Jakarta Sans
   ═══════════════════════════════════════════ */

:root {
  --navy: #0B1D3A;
  --navy-mid: #132B50;
  --navy-light: #1A3A6B;
  --amber: #D4A437;
  --amber-light: #E8C468;
  --amber-glow: rgba(212,164,55,0.15);
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --grey-100: #F5F3EE;
  --grey-200: #E8E4DC;
  --grey-500: #8A8578;
  --grey-700: #4A4640;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--grey-700);
  background: var(--cream); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width:100%; height:auto; }

/* ─── NAV ─── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(11,29,58,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,164,55,0.15);
  transition: background 0.3s;
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-inner {
  max-width:1140px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; height:68px;
}
.nav-logo {
  font-family: var(--serif); font-size:1.35rem; color: var(--white);
  text-decoration:none; letter-spacing:-0.02em;
}
.nav-logo span { color: var(--amber); }
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration:none; font-size:0.82rem;
  font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--amber); color: var(--navy); border:none; padding:10px 22px;
  font-family: var(--sans); font-weight:700; font-size:0.8rem; border-radius:6px;
  text-decoration:none; letter-spacing:0.04em; text-transform:uppercase;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--amber-light); transform:translateY(-1px); }
.nav-mobile { display:none; background:none; border:none; cursor:pointer; }
.nav-mobile svg { width:28px; height:28px; stroke: var(--white); }

/* ─── HERO ─── */
.hero {
  padding:160px 24px 100px;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; top:-40%; right:-20%; width:700px; height:700px;
  background: radial-gradient(circle, rgba(212,164,55,0.08) 0%, transparent 70%);
}
.hero::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:120px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-inner {
  max-width:800px; margin:0 auto; text-align:center; position:relative; z-index:2;
}
.hero-tag {
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.14em;
  text-transform:uppercase; color: var(--amber);
  border:1px solid rgba(212,164,55,0.35); padding:6px 18px; border-radius:100px;
  margin-bottom:28px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white); line-height:1.15; margin-bottom:24px; letter-spacing:-0.02em;
}
.hero h1 em { font-style:italic; color: var(--amber); }
.hero p {
  font-size:1.1rem; line-height:1.7; color:rgba(255,255,255,0.7);
  max-width:620px; margin:0 auto 40px;
}
.hero-btn {
  display:inline-flex; align-items:center; gap:10px;
  background: var(--amber); color: var(--navy); padding:16px 36px;
  font-family: var(--sans); font-weight:700; font-size:0.9rem;
  border-radius:8px; text-decoration:none; letter-spacing:0.03em;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(212,164,55,0.3); border:none; cursor:pointer;
}
.hero-btn:hover {
  background: var(--amber-light); transform:translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,164,55,0.4);
}

/* ─── STATS ─── */
.stats {
  max-width:960px; margin:-50px auto 0; position:relative; z-index:10;
  display:grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius:16px;
  box-shadow: 0 8px 40px rgba(11,29,58,0.08); padding:40px 20px;
}
.stat { text-align:center; }
.stat + .stat { border-left:1px solid var(--grey-200); }
.stat-num {
  font-family: var(--serif); font-size:2.4rem; color: var(--navy); line-height:1; margin-bottom:6px;
}
.stat-num span { color: var(--amber); }
.stat-label {
  font-size:0.78rem; font-weight:600; color: var(--grey-500);
  text-transform:uppercase; letter-spacing:0.08em;
}

/* ─── LOGOS ─── */
.logos-section { padding:48px 24px 60px; text-align:center; }
.logos-label {
  font-size:0.72rem; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color: var(--grey-500); margin-bottom:28px;
}
.logos-row {
  max-width:900px; margin:0 auto;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:40px;
}
.logo-item {
  font-family: var(--sans); font-weight:700; font-size:0.95rem;
  color: var(--grey-500); opacity:0.55; letter-spacing:0.02em; transition: opacity 0.3s;
}
.logo-item:hover { opacity:0.9; }

/* ─── SECTIONS ─── */
.section { padding:80px 24px; }
.section-inner { max-width:1060px; margin:0 auto; }
.section-tag {
  font-size:0.72rem; font-weight:700; letter-spacing:0.14em;
  text-transform:uppercase; color: var(--amber); margin-bottom:12px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy); line-height:1.2; margin-bottom:18px; letter-spacing:-0.02em;
}
.section-desc {
  font-size:1rem; line-height:1.7; color: var(--grey-500);
  max-width:600px; margin-bottom:36px;
}

/* ─── METHOD ─── */
.method-grid { display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.method-visual {
  background: var(--navy); border-radius:20px; padding:48px 36px;
  position:relative; overflow:hidden;
}
.method-visual::before {
  content:''; position:absolute; top:0; right:0; width:200px; height:200px;
  background: radial-gradient(circle, rgba(212,164,55,0.12) 0%, transparent 70%);
}
.pillar { display:flex; align-items:flex-start; gap:16px; margin-bottom:32px; position:relative; z-index:2; }
.pillar:last-child { margin-bottom:0; }
.pillar-icon {
  flex-shrink:0; width:44px; height:44px; border-radius:10px;
  background: rgba(212,164,55,0.15); display:flex; align-items:center; justify-content:center;
}
.pillar-icon svg { width:22px; height:22px; stroke: var(--amber); fill:none; stroke-width:1.8; }
.pillar h3 { font-family: var(--serif); font-size:1.15rem; color: var(--white); margin-bottom:4px; }
.pillar p { font-size:0.85rem; line-height:1.6; color: rgba(255,255,255,0.6); }

/* ─── PRODUCTS ─── */
.products-bg { background: var(--white); }
.products-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; margin-top:12px; }
.product-card {
  border:1px solid var(--grey-200); border-radius:14px; padding:32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  background: var(--white); position:relative; overflow:hidden;
}
.product-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--amber); opacity:0; transition: opacity 0.3s;
}
.product-card:hover {
  border-color: var(--amber); transform:translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,29,58,0.06);
}
.product-card:hover::before { opacity:1; }
.product-tier {
  font-size:0.68rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--amber); margin-bottom:14px;
}
.product-card h3 {
  font-family: var(--serif); font-size:1.3rem; color: var(--navy);
  margin-bottom:8px; line-height:1.25;
}
.product-card p { font-size:0.88rem; line-height:1.65; color: var(--grey-500); margin-bottom:20px; }
.product-price { font-family: var(--serif); font-size:1.5rem; color: var(--navy); margin-bottom:18px; }
.product-price small { font-family: var(--sans); font-size:0.75rem; color: var(--grey-500); font-weight:400; }
.product-link {
  font-size:0.82rem; font-weight:700; color: var(--amber); text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; transition: gap 0.2s;
}
.product-link:hover { gap:10px; }

/* ─── DIAGNOSTIC ─── */
.diagnostic {
  background: var(--navy); padding:80px 24px; position:relative; overflow:hidden;
}
.diagnostic::before {
  content:''; position:absolute; top:-30%; left:-10%; width:500px; height:500px;
  background: radial-gradient(circle, rgba(212,164,55,0.06) 0%, transparent 70%);
}
.diag-inner {
  max-width:900px; margin:0 auto; display:grid;
  grid-template-columns: 1fr 1fr; gap:56px; align-items:center;
}
.diag-content { position:relative; z-index:2; }
.diag-content .section-title { color: var(--white); }
.diag-content p { font-size:0.95rem; line-height:1.7; color: rgba(255,255,255,0.65); margin-bottom:32px; }
.diag-card {
  background: var(--navy-mid); border:1px solid rgba(212,164,55,0.2);
  border-radius:16px; padding:36px 28px; text-align:center;
}
.diag-card h3 { font-family: var(--serif); font-size:1.2rem; color: var(--white); margin-bottom:8px; }
.diag-card p { font-size:0.82rem; color: rgba(255,255,255,0.5); margin-bottom:24px; }
.diag-dimensions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:28px; }
.diag-dim {
  font-size:0.7rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  padding:6px 14px; border-radius:100px;
  background: rgba(212,164,55,0.1); color: var(--amber); border:1px solid rgba(212,164,55,0.2);
}
.diag-btn {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--amber); color: var(--navy); padding:14px 30px;
  font-weight:700; font-size:0.85rem; border-radius:8px; text-decoration:none;
  transition: background 0.25s, transform 0.2s; border:none; cursor:pointer;
  box-shadow: 0 4px 20px rgba(212,164,55,0.25);
}
.diag-btn:hover { background: var(--amber-light); transform:translateY(-2px); }

/* ─── BLOG ─── */
.blog-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
.blog-card {
  background: var(--white); border:1px solid var(--grey-200); border-radius:14px;
  overflow:hidden; text-decoration:none; transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform:translateY(-4px); box-shadow: 0 12px 40px rgba(11,29,58,0.06); }
.blog-card-img {
  height:180px; background-size:cover; background-position:center; background-color: var(--grey-100);
}
.blog-card-img--placeholder {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}
.blog-card-body { padding:20px 24px 24px; }
.blog-card-meta { font-size:0.72rem; color: var(--grey-500); margin-bottom:8px; font-weight:500; }
.blog-card-cat { color: var(--amber); font-weight:700; text-transform:uppercase; letter-spacing:0.06em; }
.blog-card h3 {
  font-family: var(--serif); font-size:1.1rem; color: var(--navy);
  line-height:1.3; margin-bottom:8px;
}
.blog-card p { font-size:0.82rem; line-height:1.6; color: var(--grey-500); }

.blog-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:36px; }
.blog-filter {
  font-size:0.78rem; font-weight:600; padding:8px 18px; border-radius:100px;
  text-decoration:none; border:1px solid var(--grey-200); color: var(--grey-500);
  transition: all 0.2s;
}
.blog-filter:hover, .blog-filter--active {
  background: var(--amber); color: var(--navy); border-color: var(--amber);
}

.pagination { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:48px; }
.pagination-link {
  font-size:0.85rem; font-weight:600; color: var(--amber); text-decoration:none;
}
.pagination-info { font-size:0.82rem; color: var(--grey-500); }

/* ─── ARTICLE ─── */
.article-header {
  padding:140px 24px 48px;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.article-header-inner { max-width:700px; margin:0 auto; text-align:center; }
.article-cat {
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color: var(--amber); text-decoration:none; margin-bottom:16px;
}
.article-header h1 {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white); line-height:1.2; margin-bottom:16px;
}
.article-meta { font-size:0.82rem; color: rgba(255,255,255,0.5); }
.article-hero-img {
  max-width:800px; margin:-40px auto 0; position:relative; z-index:2;
  border-radius:12px; overflow:hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.article-hero-img img { display:block; width:100%; }
.article-body { max-width:700px; margin:0 auto; padding:48px 24px 0; }
.article-cta {
  background: var(--amber-glow); border:1px solid rgba(212,164,55,0.3);
  border-radius:14px; padding:32px; margin:48px 0; text-align:center;
}
.article-cta h3 { font-family: var(--serif); color: var(--navy); margin-bottom:8px; font-size:1.2rem; }
.article-cta p { font-size:0.88rem; color: var(--grey-500); margin-bottom:20px; }

/* ─── PRODUCT DETAIL ─── */
.product-detail-section { margin:32px 0; }
.product-detail-section h3 { font-family: var(--serif); color: var(--navy); margin-bottom:12px; }
.product-detail-section ul { padding-left:20px; }
.product-detail-section li { margin-bottom:8px; font-size:0.92rem; line-height:1.6; }
.product-detail-cta {
  background: var(--grey-100); border-radius:14px; padding:36px; text-align:center; margin-top:40px;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding:140px 24px 48px; background: var(--cream);
  border-bottom:1px solid var(--grey-200);
}
.page-header-inner { max-width:700px; margin:0 auto; text-align:center; }
.page-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy); line-height:1.2; margin-bottom:12px;
}
.page-subtitle { font-size:1rem; line-height:1.7; color: var(--grey-500); }

/* ─── PROSE ─── */
.prose { font-size:1rem; line-height:1.8; color: var(--grey-700); }
.prose h2 { font-family: var(--serif); font-size:1.6rem; color: var(--navy); margin:36px 0 12px; }
.prose h3 { font-family: var(--serif); font-size:1.25rem; color: var(--navy); margin:28px 0 10px; }
.prose p { margin-bottom:18px; }
.prose ul, .prose ol { padding-left:24px; margin-bottom:18px; }
.prose li { margin-bottom:8px; }
.prose a { color: var(--amber); text-decoration:underline; }
.prose img { border-radius:8px; margin:24px 0; }
.prose blockquote {
  border-left:3px solid var(--amber); padding:12px 20px; margin:24px 0;
  background: var(--amber-glow); border-radius:0 8px 8px 0; font-style:italic;
}

/* ─── NEWSLETTER ─── */
.newsletter { background: var(--white); border-top:1px solid var(--grey-200); padding:80px 24px; text-align:center; }
.newsletter .section-title { margin-left:auto; margin-right:auto; }
.newsletter .section-desc { margin-left:auto; margin-right:auto; }
.newsletter-form { max-width:480px; margin:0 auto; display:flex; gap:10px; }
.newsletter-input {
  flex:1; padding:14px 18px; border:1px solid var(--grey-200); border-radius:8px;
  font-family: var(--sans); font-size:0.9rem; background: var(--grey-100); transition: border-color 0.25s;
}
.newsletter-input:focus { outline:none; border-color: var(--amber); }
.newsletter-submit {
  background: var(--amber); color: var(--navy); border:none; padding:14px 28px;
  font-family: var(--sans); font-weight:700; font-size:0.85rem; border-radius:8px;
  cursor:pointer; transition: background 0.25s;
}
.newsletter-submit:hover { background: var(--amber-light); }
.newsletter-msg { margin-top:16px; font-size:0.85rem; padding:12px; border-radius:8px; }
.newsletter-msg--ok { background: #e8f5e9; color: #2e7d32; }
.newsletter-msg--err { background: #fce4ec; color: #c62828; }

/* ─── FORMS ─── */
.form-group { margin-bottom:20px; }
.form-group label {
  display:block; font-size:0.82rem; font-weight:600; color: var(--navy);
  margin-bottom:6px;
}
.form-input {
  width:100%; padding:12px 16px; border:1px solid var(--grey-200); border-radius:8px;
  font-family: var(--sans); font-size:0.9rem; background: var(--white);
  transition: border-color 0.25s;
}
.form-input:focus { outline:none; border-color: var(--amber); }
textarea.form-input { resize: vertical; }
select.form-input { cursor:pointer; }

/* ─── ALERTS ─── */
.alert { padding:16px 20px; border-radius:8px; margin-bottom:24px; font-size:0.88rem; }
.alert--ok { background: #e8f5e9; color: #2e7d32; border:1px solid #c8e6c9; }
.alert--err { background: #fce4ec; color: #c62828; border:1px solid #f8bbd0; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align:center; padding:60px 24px; }
.empty-state h3 { font-family: var(--serif); color: var(--navy); margin-bottom:8px; font-size:1.3rem; }
.empty-state p { color: var(--grey-500); font-size:0.92rem; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); padding:60px 24px 32px; color: rgba(255,255,255,0.5); }
.footer-inner {
  max-width:1060px; margin:0 auto;
  display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:40px;
}
.footer-brand .nav-logo { display:block; margin-bottom:14px; }
.footer-brand p { font-size:0.82rem; line-height:1.6; max-width:280px; }
.footer h4 {
  font-family: var(--sans); font-size:0.72rem; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase; color: var(--amber); margin-bottom:16px;
}
.footer ul { list-style:none; }
.footer ul li { margin-bottom:10px; }
.footer ul a { color: rgba(255,255,255,0.5); text-decoration:none; font-size:0.85rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--amber); }
.footer-bottom {
  max-width:1060px; margin:40px auto 0; padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.08);
  font-size:0.75rem; display:flex; justify-content:space-between; align-items:center;
}
.footer-social { display:flex; gap:16px; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-social a:hover { color: var(--amber); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}
.hero-tag, .hero h1, .hero p, .hero-btn {
  animation: fadeUp 0.7s ease-out both;
}
.hero h1 { animation-delay:0.1s; }
.hero p { animation-delay:0.2s; }
.hero-btn { animation-delay:0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { 
    display:none; position:absolute; top:68px; left:0; right:0;
    background: var(--navy); flex-direction:column; padding:20px 24px; gap:16px;
    border-bottom:1px solid rgba(212,164,55,0.15);
  }
  .nav-links--open { display:flex; }
  .nav-cta { display:none; }
  .nav-mobile { display:block; }
  .stats { grid-template-columns: repeat(2, 1fr); gap:24px; margin:-30px 16px 0; padding:28px 16px; }
  .stat + .stat { border-left:none; }
  .stat:nth-child(odd) { border-right:1px solid var(--grey-200); }
  .method-grid { grid-template-columns:1fr; gap:32px; }
  .products-grid { grid-template-columns:1fr; }
  .diag-inner { grid-template-columns:1fr; gap:32px; }
  .blog-grid { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  .newsletter-form { flex-direction:column; }
  .hero { padding:130px 20px 80px; }
  .footer-bottom { flex-direction:column; gap:12px; text-align:center; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns:1fr 1fr; }
  .footer-inner { grid-template-columns:1fr; }
  .logos-row { gap:24px; }
}
