/* Subpages CSS — reuses variables from main style.css */
@font-face {
  font-family: 'Phenomena';
  src: url('/fonts/Phenomena-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Phenomena';
  src: url('/fonts/Phenomena-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Phenomena';
  src: url('/fonts/Phenomena-Black.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --color-bg: #FFFFFF;
  --color-text: #2B2A29;
  --color-text-secondary: #898989;
  --color-accent: #08A6A0;
  --color-accent-hover: #068580;
  --color-dark: #2B2A29;
  --color-border: #E5E5E5;
  --radius: 12px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Navigation (same as main page) */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  transition: all 0.3s ease; border-bottom: 1px solid transparent;
}
#nav.nav-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06); border-bottom: 1px solid var(--color-border);
}
.nav-container {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 44px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-menu a {
  color: #2B2A29; text-decoration: none; font-size: 20px; font-weight: 700;
  font-family: 'Phenomena', var(--font); transition: color 0.2s;
}
.nav-menu a:hover { color: var(--color-accent); }
.nav-cta {
  background: var(--color-accent); color: white !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 700 !important;
  font-family: 'Phenomena', var(--font); transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-accent-hover); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: all 0.3s;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: white; padding: 24px; gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.nav-menu-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* Article Hero */
.article-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #2B2A29 0%, #1a3a38 25%, #08A6A0 60%, #2B2A29 100%);
  background-size: 300% 300%;
  animation: heroGradient 8s ease-in-out infinite;
  overflow: hidden;
}
@keyframes heroGradient {
  0% { background-position: 0% 0%; }
  33% { background-position: 50% 100%; }
  66% { background-position: 100% 50%; }
  100% { background-position: 0% 0%; }
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(43,42,41,0.35); backdrop-filter: blur(1px);
}
.article-hero-content { position: relative; z-index: 2; padding: 48px 0; }
.article-hero h1 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: white;
  letter-spacing: -0.03em; margin: 12px 0 12px;
}
.article-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.8);
  max-width: 700px; line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { margin: 0 6px; }
.breadcrumb-current { color: rgba(255,255,255,0.9); }

/* Article Main Layout */
.article-main { padding: 64px 0; }
.article-main .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.article-content { max-width: 760px; }
.article-content h2 {
  font-size: 28px; font-weight: 700; margin: 40px 0 16px;
  letter-spacing: -0.02em; color: var(--color-text);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 20px; font-weight: 600; margin: 28px 0 12px; color: var(--color-text);
}
.article-content p {
  font-size: 17px; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px; color: var(--color-text-secondary);
}
.article-content li { font-size: 17px; line-height: 1.8; margin-bottom: 8px; }
.article-content strong { color: var(--color-text); font-weight: 600; }
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 24px; margin: 24px 0;
  background: rgba(8,166,160,0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--color-text); font-size: 17px;
}

/* Sidebar */
.sidebar-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--color-text);
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 12px; }
.sidebar-links a {
  color: var(--color-text-secondary); text-decoration: none; font-size: 15px;
  transition: color 0.2s;
}
.sidebar-links a:hover { color: var(--color-accent); }
.sidebar-cta {
  background: linear-gradient(135deg, rgba(8,166,160,0.06) 0%, rgba(8,166,160,0.02) 100%);
  border-color: rgba(8,166,160,0.2);
}
.sidebar-cta p { color: var(--color-text-secondary); font-size: 15px; margin-bottom: 16px; }

/* CTA Section */
.article-cta {
  background: var(--color-dark); color: white;
  padding: 80px 0; text-align: center;
}
.article-cta h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.article-cta p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 32px; }
.article-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons (same as main) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 16px; text-decoration: none; transition: all 0.2s ease;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-primary {
  background: var(--color-accent); color: white; position: relative; overflow: hidden;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(8,166,160,0.3); transform: translateY(-1px);
}
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3); transform: translateY(-1px);
}

/* Footer (same as main) */
.footer { background: var(--color-dark); color: rgba(255,255,255,0.5); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  background: #25D366; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 999;
  transition: all 0.3s; animation: pulse 2s infinite;
}
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
@keyframes pulse {
  0% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* Responsive */
@media (max-width: 900px) {
  .article-main .container { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .sidebar-card { display: none; }
  .sidebar-card.sidebar-cta { display: block; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
