/* ==========================================================================
   Seu IMC Saudável — Design System Unificado (Energético/Vibrante)
   ========================================================================== */

/* === CSS Reset & Variables === */
:root {
  --n-50: #FFF9F5;
  --n-100: #F6F1FB;
  --n-200: #EAE2F5;
  --n-300: #D5C7E6;
  --n-400: #A99FBF;
  --n-500: #7A718C;
  --n-600: #4A4557;
  --n-700: #2E2A36;
  --n-800: #1C1923;
  --n-900: #120F18;

  --accent-primary: #FF5A2D;
  --accent-primary-hover: #E8491A;
  --accent-secondary: #00C897;
  --accent-tertiary: #FF3D68;

  --success: #00C897;
  --warning: #FFA726;
  --error: #FF3D5A;
  --info: #FF5A2D;

  --grad-primary: linear-gradient(135deg, #FF5A2D 0%, #FF3D68 55%, #8E2DE2 100%);
  --grad-cta: linear-gradient(135deg, #FF5A2D, #FF3D68);
  --grad-card: linear-gradient(180deg, #FFF, #FFF9F5);

  --bg-primary: #FFF9F5;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F6F1FB;

  --text-primary: #1C1923;
  --text-secondary: #4A4557;
  --text-muted: #7A718C;
  --border: #EAE2F5;

  --radius: 0.6rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-xl: 1.5rem;

  --shadow: 0 2px 8px rgba(142, 45, 226, 0.08);
  --shadow-xl: 0 12px 32px rgba(255, 61, 104, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 15% 0%, rgba(255, 90, 45, 0.06), transparent 40%),
                    radial-gradient(circle at 90% 20%, rgba(142, 45, 226, 0.06), transparent 40%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--n-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.logo span {
  font-weight: 800;
  font-size: 1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  color: var(--n-600);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

nav a:hover {
  background: var(--n-100);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

nav a.active {
  background: var(--grad-primary);
  color: #fff;
}

/* === Hero (index) === */
.hero {
  background: var(--grad-primary);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
  margin: 24px 16px 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(255, 61, 104, 0.28);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -120px;
  right: -60px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  bottom: -90px;
  left: -40px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 24px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* === Calculator (index) === */
.calculator-section {
  padding: 40px 0 0;
}

.calculator-card {
  background: var(--grad-card);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.calculator-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--n-800);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--n-700);
}

.form-group input {
  padding: 13px 16px;
  border: 2px solid var(--n-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 45, 0.15);
}

.sex-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sex-btn,
.profile-btn {
  padding: 12px 14px;
  border: 2px solid var(--n-200);
  background: #fff;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.sex-btn:hover,
.profile-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sex-btn.active,
.profile-btn.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 61, 104, 0.25);
}

.profile-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 61, 104, 0.35);
}

/* === Results === */
.results-card {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 20px;
  box-shadow: var(--shadow-xl);
  display: none;
}

.results-card.show {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--n-100);
}

.results-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--n-800);
}

.new-calc-btn {
  padding: 9px 16px;
  background: var(--n-100);
  border: 1px solid var(--n-200);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.new-calc-btn:hover {
  background: var(--n-200);
  color: var(--n-800);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.result-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.result-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--n-800);
  line-height: 1.1;
}

.result-unit {
  font-size: 0.8rem;
  color: var(--n-500);
  font-weight: 500;
}

.result-classification {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--grad-cta);
  color: #fff;
}

/* IMC Bar */
.imc-bar-container {
  margin: 20px 0;
}

.imc-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00C897 0%, #00C897 25%, #00C897 25%, #FFA726 25%, #FFA726 50%, #FF3D5A 50%, #FF3D5A 100%);
  overflow: visible;
}

.imc-marker {
  position: absolute;
  top: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

.imc-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--n-500);
}

/* Recommendations */
.recommendations {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.recommendations h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--n-800);
  margin-bottom: 10px;
}

.recommendations ul {
  margin: 0 0 0 18px;
  color: var(--n-600);
}

.recommendations li {
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === Ad Slot === */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--n-300);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 32px 0;
  text-align: center;
  color: var(--n-400);
  font-size: 0.8rem;
}

/* === SEO Content === */
.seo-content {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 24px;
}

.seo-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--n-800);
  margin-bottom: 16px;
}

.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--n-700);
  margin-top: 24px;
  margin-bottom: 10px;
}

.seo-content p {
  font-size: 1rem;
  color: var(--n-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.seo-content ul,
.seo-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.seo-content li {
  margin-bottom: 8px;
  color: var(--n-600);
  line-height: 1.7;
}

.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.seo-content th,
.seo-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--n-200);
}

.seo-content th {
  background: var(--n-100);
  font-weight: 700;
  color: var(--n-800);
}

.seo-content td {
  color: var(--n-600);
}

/* === FAQ === */
.faq-section {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 24px;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--n-800);
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--n-200);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--n-700);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--n-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* === Articles Section (index) === */
.articles-section {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 24px;
}

.articles-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--n-800);
  margin-bottom: 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

a.article-card {
  display: block;
  background: var(--bg-tertiary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

a.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.2s;
}

a.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-tertiary);
  box-shadow: var(--shadow-xl);
}

a.article-card:hover::before {
  opacity: 1;
}

a.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--n-800);
  margin-bottom: 8px;
  line-height: 1.4;
}

a.article-card p {
  font-size: 0.85rem;
  color: var(--n-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

a.article-card .read-more {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Footer === */
footer {
  background: var(--n-900);
  border-top: 1px solid var(--n-800);
  padding: 40px 0 28px;
  margin-top: 48px;
  color: var(--n-300);
}

footer .container {
  max-width: 1000px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-section p {
  font-size: 0.85rem;
  color: var(--n-400);
  line-height: 1.7;
}

.footer-section a {
  display: block;
  font-size: 0.85rem;
  color: var(--n-400);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s, transform 0.2s;
}

.footer-section a:hover {
  color: var(--accent-secondary);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--n-800);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--n-500);
}

/* === Páginas institucionais === */
.page-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--n-800);
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 1rem;
  color: var(--n-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.last-updated {
  font-size: 0.82rem;
  color: var(--n-500);
  margin-bottom: 24px;
}

.content-section {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--n-800);
  margin-bottom: 12px;
}

.content-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--n-700);
  margin: 16px 0 8px;
}

.content-section p {
  font-size: 0.97rem;
  color: var(--n-600);
  line-height: 1.75;
  margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
  margin-left: 22px;
  margin-bottom: 12px;
  color: var(--n-600);
}

.content-section li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.content-section a {
  color: var(--accent-primary);
  font-weight: 600;
}

/* === Contato === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--n-800);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--n-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-info {
  font-size: 0.85rem;
  color: var(--n-500);
}

/* === Artigos: página do artigo === */
.article-card {
  background: var(--grad-card);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.back-link:hover {
  transform: translateX(-3px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta .author b {
  color: var(--text-secondary);
}

.article-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.article-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-tertiary);
  color: var(--n-800);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--n-700);
}

.article-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.article-card ul,
.article-card ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-card li {
  margin-bottom: 0.5rem;
}

.article-card a {
  color: var(--accent-primary);
  font-weight: 600;
}

.article-card strong {
  color: var(--text-primary);
}

.article-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow-xl);
}

.figure {
  margin: 1.5rem 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-grid figure {
  margin: 0;
}

.img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.img-grid figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 61, 104, 0.3);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.highlight-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.highlight-box.green {
  border-left-color: var(--accent-secondary);
}

.highlight-box.orange {
  border-left-color: var(--warning);
}

.highlight-box.red {
  border-left-color: var(--error);
}

.highlight-box p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.formula-box {
  background: var(--bg-tertiary);
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.formula-box .formula {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.formula-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th {
  background: var(--grad-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.step-list {
  counter-reset: step;
  margin: 1rem 0 1rem 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}

.step-list li p {
  margin-bottom: 0;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.tip-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border-top: 3px solid var(--grad-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tip-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tip-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tip-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.references {
  margin: 2rem 0;
}

.references h2 {
  font-size: 1.1rem;
}

.references ol {
  margin: 0.75rem 0 0 1.25rem;
}

.references li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.references a {
  color: var(--accent-primary);
  word-break: break-word;
}

.disclaimer {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--error);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.disclaimer h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.disclaimer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: block;
  background: var(--bg-tertiary);
}

.related-card:hover {
  border-color: var(--accent-tertiary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 90, 45, 0.08), rgba(142, 45, 226, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.cta-box p {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--grad-primary);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 61, 104, 0.35);
}

/* === Responsivo === */
@media (max-width: 640px) {
  .hero {
    margin: 16px 12px 0;
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  header .container {
    flex-direction: column;
    gap: 8px;
  }

  nav {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .results-card,
  .seo-content,
  .faq-section,
  .articles-section,
  .content-section {
    padding: 20px;
  }

  .article-card {
    padding: 1.25rem;
  }

  .article-card h1 {
    font-size: 1.4rem;
  }

  .tip-grid,
  .img-grid {
    grid-template-columns: 1fr;
  }

  .step-list li {
    padding-left: 3rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}