/* ===== VARIÁVEIS ===== */
:root {
  --color-primary: #4a7c74;
  --color-primary-dark: #35615a;
  --color-primary-light: #e8f2f0;
  --color-accent: #d4a5a5;
  --color-text: #2d3748;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f7faf9;
  --color-border: #e2e8f0;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Lora', 'Georgia', 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container: 1140px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--color-text); }
ul { list-style: none; }

/* ===== ACESSIBILIDADE ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== SEÇÕES ===== */
.section { padding: 5rem 0; }
.bg-light { background: var(--color-bg-light); }
.bg-default { background: var(--color-bg); }
.bg-primary-light { background: var(--color-primary-light); }
.bg-secondary-light { background: #f0f4f8; }

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.max-narrow { max-width: 900px; margin: 0 auto; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb955; color: #fff; }

/* ===== HEADER / NAVBAR (unificado) ===== */
header, .navbar {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Nav index.html */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-img {
  height: 96px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-primary); }
.nav-cta { margin-left: 0.5rem; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Nav páginas internas */
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  line-height: 1.2;
}
.navbar-brand small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}
.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--color-primary); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--color-text); }
.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--color-border);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-menu a { color: var(--color-text); font-weight: 500; font-size: 1rem; }
.mobile-menu a:hover { color: var(--color-primary); }
.mobile-menu.open { display: block; }

/* ===== MOBILE CTA BAR ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  z-index: 200;
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 100%);
  padding: 6rem 0;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1.2rem; }
.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.hero-btns, .hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* ===== TRUST BADGES ===== */
.trust {
  padding: 2.5rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}
.trust-item { flex: 1; min-width: 160px; }
.trust-item strong { display: block; font-size: 1.5rem; color: var(--color-primary); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== CARDS ===== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}
.card:hover,
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}
.card h3 { margin: 1rem 0 0.7rem; font-size: 1.25rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; color: var(--color-primary); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(74, 124, 116, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.step-card p { color: var(--color-text-muted); }

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.article-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.article-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.article-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.article-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.text-link {
  font-weight: 600;
  color: var(--color-primary);
}
.text-link:hover { text-decoration: underline; }

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 1.5rem;
  align-items: center;
}
.cta-label {
  color: #dfeae8;
  margin-bottom: 0.5rem;
}

/* ===== GALERIA DO CONSULTÓRIO ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,124,116,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-overlay svg { width: 2rem; height: 2rem; color: #fff; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ===== DEPOIMENTOS ===== */
.testimonial { text-align: center; padding: 1.5rem; }
.testimonial-slider {
  position: relative;
  margin-top: 2rem;
}
.testimonial-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
  gap: 1rem;
}
.testimonial-slider { overflow: hidden; }
.testimonial-card {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 2rem 2.5rem;
  /* start hidden for fade-in effect; JS will reveal visible cards */
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.45s ease;
}
/* Responsive: show 2 per view on medium, 3 per view on large */
@media (min-width: 640px) {
  .testimonial-card { min-width: calc(50% - 0.5rem); }
}
@media (min-width: 900px) {
  .testimonial-card { min-width: calc(33.3333% - 0.66rem); }
}
.testimonial blockquote {
  font-style: italic;
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.testimonial .stars { color: #f59e0b; margin-bottom: 0.5rem; font-size: 1.1rem; }
.testimonial cite {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16,24,32,0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 22, 18, 0.06);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.testimonial-arrow svg { width: 18px; height: 18px; color: var(--color-primary); }
.testimonial-arrow:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 10px 28px rgba(11,22,18,0.08); }
.testimonial-prev { left: 8px; }
.testimonial-next { right: 8px; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}
.testimonial-card {
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.45s ease;
}
.testimonial-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  font-family: var(--font-body);
  gap: 1rem;
}
.faq-question span { flex: 1; }
.faq-question svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-question::after { display: none; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
/* Fallback para FAQ do index (sem svg) */
.faq-question:not(:has(svg))::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: 0.3s;
}
.faq-item.open .faq-question:not(:has(svg))::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p,
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== FORMULÁRIO ===== */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border 0.3s, box-shadow 0.3s;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,116,0.15);
}

/* ===== CALLOUT ===== */
.callout {
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-light);
}
.callout p { margin-top: 0.3rem; font-size: 0.9rem; color: var(--color-text-muted); }
.callout-primary {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn { background: #fff; color: var(--color-primary); }
.cta .btn:hover { background: var(--color-bg-light); color: var(--color-primary-dark); }

/* ===== RODAPÉ (index) ===== */
footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
footer ul li { margin-bottom: 0.6rem; }
footer a { color: #9ca3af; }
footer a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-credit {
  margin-top: 0.6rem;
  color: #d1d5db;
}
.footer-credit a {
  color: #fff;
  text-decoration: none;
}
.footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== RODAPÉ (páginas internas) ===== */
.footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.footer-crp {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.footer h3 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a { color: #9ca3af; }
.footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.footer-social a {
  width: 2.2rem;
  height: 2.2rem;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social svg { width: 1rem; height: 1rem; color: #9ca3af; }
.footer-social a:hover { background: var(--color-primary); }
.footer-social a:hover svg { color: #fff; }
.footer .footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== PÁGINAS INTERNAS — PAGE HEADER ===== */
.page-header {
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.8rem; }
.page-header p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.step p { color: var(--color-text-muted); margin: 0; padding-top: 0.4rem; }

/* ===== PROSE ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose p { margin-bottom: 1.2rem; color: var(--color-text); }
.prose ul { margin: 0 0 1.5rem 1.5rem; list-style: disc; }
.prose li { margin-bottom: 0.5rem; }

/* ===== GALERIA CONSULTÓRIO ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== GALERIA DIPLOMAS ===== */
.diploma-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.diploma-item {
  background: none;
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  transition: box-shadow 0.3s, transform 0.3s;
}
.diploma-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.diploma-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 900px) {
  .diploma-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid, .article-grid { grid-template-columns: 1fr; }
  .cta-content { grid-template-columns: 1fr; text-align: center; }
  .cta-content .hero-btns { justify-content: center; }
}
@media (max-width: 640px) {
  .diploma-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { overflow: hidden; }
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-card .card-body { padding: 1.5rem; }
.blog-card .date { color: var(--color-text-muted); font-size: 0.85rem; }
.blog-card h3 { margin: 0.5rem 0; font-size: 1.15rem; }
.read-more { font-weight: 600; display: inline-block; margin-top: 0.8rem; }

.blog-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.blog-hero h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 560px;
}
.blog-cta-panel {
  background: linear-gradient(135deg, rgba(74,124,116,0.12), rgba(74,124,116,0.02));
  border: 1px solid rgba(74,124,116,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.blog-cta-panel p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.article-grid--six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(41, 65, 58, 0.04);
}
.article-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.contact-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
}
.contact-copy p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.benefits-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 0;
}
.benefits-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-text);
}
.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.contact-form-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: rgba(74,124,116,0.9);
  box-shadow: 0 0 0 4px rgba(74,124,116,0.12);
}
.callout {
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--color-bg-light);
}
.callout strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-text);
}
.callout p {
  margin: 0;
  color: var(--color-text-muted);
}
.success-message {
  background: rgba(74,124,116,0.08);
  border-color: rgba(74,124,116,0.3);
}
.error-message {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.2);
}
.cta-band {
  background: linear-gradient(135deg, #214a46 0%, var(--color-primary) 100%);
  padding: 3rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}
.cta-band .section-label.light {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.7rem;
}
.cta-band-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-band .btn-outline {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.cta-band .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ===== RESPONSIVO 900px ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-btns, .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero,
  .contact-shell,
  .cta-band-inner { grid-template-columns: 1fr; display: grid; }
  .cta-band-actions { justify-content: center; }
  /* Navbar páginas internas */
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .navbar .nav-cta { display: none; }
  .mobile-cta { display: block; }
  /* Reduce header/logo height on smaller screens to prevent menu overlap */
  .logo-img { height: 64px; }
  .nav { padding: 0.6rem 0; }
  /* Ensure CTA in nav remains visible when present inside .nav */
  .nav .nav-cta { display: inline-flex; }
}

/* ===== RESPONSIVO 640px ===== */
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .page-header h1 { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  /* Navbar index */
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
    border-top: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  /* Reduce logo header height on small phones to avoid clipping menu */
  .logo-img { height: 48px; }
  .nav { padding: 0.5rem 0; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
