/* ============================================================
   SUBPAGES.CSS — Shared styles for service & blog pages
   AIMA IntraGroup
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #7a9db5;
  --accent-2: #a8c4d4;
  --bg: #0a0c0f;
  --bg-secondary: #0f1215;
  --bg-card: #111518;
  --text: #e8edf2;
  --text-muted: #7a8a96;
  --border: rgba(255,255,255,0.08);
  --max-w: 1100px;
  --radius: 12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ───────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,12,15,0.92);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: 8px;
  font-weight: 500; font-size: 0.9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0a0c0f; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ── HERO ─────────────────────────────────────────── */
.page-hero {
  padding: 5rem 2rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero .eyebrow {
  display: block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); font-weight: 600;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem;
}
.page-hero p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SECTIONS ─────────────────────────────────────── */
.section {
  padding: 4rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  display: block; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-muted); font-size: 0.97rem;
  margin-bottom: 2.5rem; max-width: 600px;
}

/* ── FEATURES GRID ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── STEPS ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
}
.step-num {
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent); opacity: 0.35; line-height: 1; margin-bottom: 0.75rem;
}
.step h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; color: var(--text-muted); }

/* ── USE CASES ────────────────────────────────────── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.use-case {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.use-case .sector {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
.use-case h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.use-case p { font-size: 0.87rem; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 2rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; padding: 1.2rem 1.5rem; background: none; border: none;
  color: var(--text); font-size: 0.93rem; font-weight: 500;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--accent); }
.faq-a {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted); font-size: 0.9rem; display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--accent); }
.faq-chevron { flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── CTA SECTION ──────────────────────────────────── */
.cta-section {
  text-align: center; padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800; margin-bottom: 1rem;
}
.cta-section p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── RELATED CARDS ────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--accent); }
.related-card .label {
  font-size: 0.73rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); font-weight: 600;
}
.related-card h3 { font-size: 0.93rem; font-weight: 600; line-height: 1.4; }
.related-card p { font-size: 0.84rem; color: var(--text-muted); }

/* ── BLOG GRID ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card .tag {
  font-size: 0.73rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); font-weight: 600;
}
.blog-card h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.blog-card p { font-size: 0.87rem; color: var(--text-muted); flex: 1; }
.blog-card .meta { font-size: 0.78rem; color: var(--text-muted); margin-top: auto; }
.blog-card .read { font-size: 0.84rem; color: var(--accent); margin-top: 0.25rem; }

/* ── ARTICLE ──────────────────────────────────────── */
.article-header {
  padding: 4rem 2rem 2.5rem;
  max-width: 780px; margin: 0 auto;
}
.article-header .tag {
  display: inline-block; font-size: 0.73rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.article-header .intro {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.article-meta {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 1rem;
}
.article-body {
  max-width: 780px; margin: 0 auto; padding: 0 2rem 5rem;
}
.article-body h2 {
  font-size: 1.45rem; font-weight: 700;
  margin: 2.75rem 0 0.75rem; color: var(--text);
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600;
  margin: 1.75rem 0 0.5rem; color: var(--text);
}
.article-body p {
  font-size: 0.97rem; color: var(--text-muted); margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.article-body li {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.article-body a { color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem; margin: 2.5rem 0;
}
.article-cta-box p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 1rem; }
.article-cta-box strong { color: var(--text); }

/* ── DIVIDER ──────────────────────────────────────── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── FOOTER ───────────────────────────────────────── */
.page-footer {
  padding: 2rem; border-top: 1px solid var(--border);
  text-align: center; font-size: 0.8rem; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.page-footer a { color: var(--accent); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

/* ── RESPONSIVE ───────────────────────────────────── */
/* ── WHATSAPP FLOAT ───────────────────────────────── */
.wa-float-sub {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float-sub:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

@media (max-width: 768px) {
  .navbar { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .section { padding: 3rem 1.25rem; }
  .hero-ctas, .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns { align-items: center; }
  .article-header, .article-body { padding-left: 1.25rem; padding-right: 1.25rem; }
}
