/* =============================================
   NÚCLEO DE SAÚDE CIDADE NOVA
   Design System — Refined Clinical Elegance
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ==== DESIGN TOKENS ==== */
:root {
  /* Paleta extraída da logo */
  --green-deep: #0E4D3F;
  --green-deep-2: #1A5E4E;
  --green-deep-soft: #265D50;
  --green-vibrant: #5DB83A;
  --green-vibrant-2: #4FA12E;
  --green-pale: #E8F3E0;
  --green-pale-2: #F4F9EE;
  --off-white: #FAFAF7;
  --white: #FFFFFF;

  /* Tipografia ink */
  --ink: #0F1E1A;
  --ink-muted: #4A5C56;
  --ink-light: #8B9A94;
  --line: #E8E5DE;
  --line-soft: #F0EEE7;

  /* Acento dourado sóbrio (detalhes premium) */
  --gold: #B89968;

  /* WhatsApp brand */
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  /* Container */
  --container: 1240px;
  --container-narrow: 920px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 320ms var(--ease);
}

/* ==== RESET ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ==== TIPOGRAFIA ==== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-xl { font-size: clamp(3rem, 7vw, 5.5rem); }
.display-lg { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-md { font-size: clamp(2rem, 4vw, 3rem); }
.display-sm { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.italic { font-style: italic; }
.serif { font-family: var(--font-display); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-vibrant-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green-vibrant);
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
}

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: var(--space-xl) 0; }
@media (max-width: 768px) { section { padding: var(--space-lg) 0; } }

/* ==== BOTÕES ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}
.btn-primary:hover {
  background: var(--green-deep-2);
  border-color: var(--green-deep-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(14, 77, 63, 0.4);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
}
.btn-ghost {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--green-deep);
  border-radius: 0;
  color: var(--green-deep);
}
.btn-ghost:hover { color: var(--green-vibrant-2); border-color: var(--green-vibrant-2); }

/* ==== HEADER ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 2rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .logo-img { height: 42px; }
}
.site-nav ul {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a.active { color: var(--green-deep); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-vibrant);
}
.header-cta { flex-shrink: 0; }
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--green-deep); }

@media (max-width: 920px) {
  .site-nav, .header-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 24px;
  }
  .site-nav.open ul { flex-direction: column; gap: 1.2rem; }
  .header-cta.show-mobile { display: inline-flex; }
}

/* ==== HERO ==== */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--green-deep);
}
.hero-lead { max-width: 480px; margin-bottom: 2.5rem; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  box-shadow: 0 30px 80px -20px rgba(14, 77, 63, 0.25);
}
.hero-visual-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.hero-visual-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(220deg, transparent 40%, rgba(14, 77, 63, 0.2) 100%);
}
.hero-visual-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -45px;
  left: -55px;
  z-index: 3;
  background: var(--white);
  padding: 1.6rem 2rem 1.6rem 1.8rem;
  border-radius: 2px;
  box-shadow:
    0 40px 80px -20px rgba(14, 30, 26, 0.28),
    0 12px 30px -8px rgba(14, 30, 26, 0.15),
    0 2px 6px rgba(14, 30, 26, 0.05);
  display: flex;
  align-items: center;
  gap: 1.3rem;
  max-width: 320px;
  border-left: 3px solid var(--green-vibrant);
}
.hero-badge .number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--green-deep);
  line-height: 0.95;
  font-style: italic;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.hero-badge .label-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-badge .label-top {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--green-vibrant-2);
  letter-spacing: 0.02em;
}
.hero-badge .label {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-badge { display: none; }
  .hero { padding: 3rem 0 4rem; }
}

/* ==== DIVIDERS ==== */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--green-vibrant);
  margin: var(--space-md) 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--green-vibrant);
  opacity: 0.4;
}
.divider-ornament svg { width: 24px; height: 24px; }

/* ==== SECTION HEADINGS ==== */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-heading .eyebrow { margin-bottom: 1.5rem; }
.section-heading h2 {
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.section-heading p { max-width: 640px; margin: 0 auto; }

/* ==== PILLARS ==== */
.pillars {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.pillar:last-child { border-right: none; }
.pillar-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border: 1px solid var(--green-vibrant);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.pillar p { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.55; }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
}

/* ==== SPECIALTIES GRID ==== */
.specialties-section { background: var(--off-white); }
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec-card {
  background: var(--white);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  min-height: 200px;
}
.spec-card:hover {
  background: var(--green-pale-2);
  transform: translateY(-2px);
}
.spec-card::after {
  content: "→";
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  color: var(--green-vibrant);
  opacity: 0;
  transition: all var(--transition);
}
.spec-card:hover::after { opacity: 1; right: 1.2rem; }
.spec-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-vibrant-2);
  font-weight: 500;
}
.spec-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.spec-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: auto;
  line-height: 1.5;
}

@media (max-width: 900px) { .specialties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specialties-grid { grid-template-columns: 1fr; } }

/* ==== TEAM CARDS ==== */
.team-preview { background: var(--green-pale-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.team-card {
  background: var(--white);
  padding: 0 0 2rem;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -15px rgba(14, 77, 63, 0.15); }
.team-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--green-pale);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 1.8rem 1.8rem 0; }
.team-info .role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-vibrant-2);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.team-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.team-info .credential {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-family: var(--font-body);
}

@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* ==== TESTIMONIALS ==== */
.testimonials {
  background: var(--green-deep);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 184, 58, 0.1) 0%, transparent 70%);
}
.testimonials .section-heading h2 { color: var(--white); }
.testimonials .section-heading .eyebrow { color: var(--green-vibrant); }
.testimonials .section-heading .eyebrow::before { background: var(--green-vibrant); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}
.testimonial {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--green-vibrant);
  display: block;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 300;
  color: rgba(250, 250, 247, 0.9);
  margin-bottom: 1.5rem;
}
.testimonial .author {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-vibrant);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ==== CONVENIOS STRIP ==== */
.convenios-strip {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.convenios-strip .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: 1.8rem;
  font-weight: 500;
}
.convenios-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.convenio-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-muted);
  opacity: 0.75;
}

/* ==== CTA STRIP / LOCATION ==== */
.location-section {
  background: var(--white);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.location-info { padding: 1rem 0; }
.location-info h2 { margin-bottom: 1.5rem; }
.location-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.location-block:last-of-type { border-bottom: 1px solid var(--line); }
.location-block .label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 500;
}
.location-block .content { color: var(--ink); }
.location-block .content strong { color: var(--green-deep); font-weight: 500; }
.location-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.map-embed {
  aspect-ratio: 1/1;
  background: var(--green-pale);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-embed { aspect-ratio: 4/3; }
}

/* ==== FOOTER ==== */
.site-footer {
  background: var(--green-deep);
  color: rgba(250, 250, 247, 0.82);
  padding: var(--space-lg) 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-img { height: 58px; width: auto; display: block; margin-bottom: 1.2rem; }
.footer-brand p { line-height: 1.6; max-width: 300px; color: rgba(250,250,247,0.7); font-size: 0.88rem; }
.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-vibrant);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: rgba(250, 250, 247, 0.75); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 250, 247, 0.55);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ==== FLOATING WHATSAPP ==== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px -5px rgba(37, 211, 102, 0.6);
}
.float-whatsapp svg { width: 28px; height: 28px; }

/* ==== PAGE HEADER (internal pages) ==== */
.page-header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 { color: var(--ink); max-width: 780px; margin-bottom: 1.5rem; }
.page-header p.lead { max-width: 640px; }

/* ==== ANIMATIONS ==== */
.fade-in {
  /* Visível por padrão — JS adiciona a animação progressivamente */
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.fade-in.will-animate {
  opacity: 0;
  transform: translateY(24px);
}
.fade-in.will-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== ABOUT PAGE — TIMELINE ==== */
.story-section { background: var(--white); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.story-image {
  aspect-ratio: 3/4;
  background: var(--green-pale);
  overflow: hidden;
  position: relative;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-content h2 { margin-bottom: 1.5rem; }
.story-content p { margin-bottom: 1.3rem; font-size: 1.05rem; line-height: 1.7; color: var(--ink-muted); }
.story-content p.first-paragraph::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.9;
  font-weight: 300;
  color: var(--green-deep);
  float: left;
  margin: 0.2rem 0.6rem 0 0;
  font-style: italic;
}

.timeline { padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--green-vibrant-2);
  font-style: italic;
  line-height: 1;
}
.timeline-content h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; }
.timeline-content p { color: var(--ink-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ==== SPECIALTIES PAGE ==== */
.spec-group { margin-bottom: 5rem; }
.spec-group-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.spec-group-header .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--green-vibrant);
  line-height: 1;
}
.spec-group-header h2 { color: var(--ink); }
.spec-group-header p { color: var(--ink-muted); margin-left: auto; max-width: 400px; font-size: 0.95rem; }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.spec-item {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all var(--transition);
}
.spec-item:hover { border-color: var(--green-vibrant); }
.spec-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.spec-item > p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.2rem; }
.spec-item .professionals {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.spec-item .prof-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 500;
}
.spec-item .prof-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-deep);
}

@media (max-width: 700px) {
  .spec-group-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .spec-group-header p { margin-left: 0; }
  .spec-list { grid-template-columns: 1fr; }
}

/* ==== TEAM PAGE ==== */
.team-category { margin-bottom: 4.5rem; }
.team-category-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.team-category-header h2 { color: var(--ink); }
.team-category-header .count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-vibrant-2);
}
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-member {
  background: var(--white);
  border: 1px solid var(--line);
  transition: all var(--transition);
}
.team-member:hover { border-color: var(--green-vibrant); transform: translateY(-2px); }
.team-member-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.team-member-photo .placeholder-svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.team-member-info { padding: 1.5rem; }
.team-member-info .spec-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-vibrant-2);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.team-member-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.team-member-info .credential {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.8rem;
}
.team-member-info .bio {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.reception-block {
  grid-column: 1 / -1;
  background: var(--green-pale-2);
  border: none;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.reception-block h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--green-deep); margin-bottom: 1rem; }
.reception-block p { color: var(--ink-muted); line-height: 1.7; }
.reception-names {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.reception-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.reception-person .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-vibrant);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}
.reception-person .name {
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .team-full-grid { grid-template-columns: repeat(2, 1fr); }
  .team-member-photo { height: 260px; }
  .reception-block { grid-template-columns: 1fr; padding: 2rem; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .team-full-grid { grid-template-columns: 1fr; }
  .team-member-photo { height: 340px; }
}

/* ==== CONVENIOS PAGE ==== */
.convenios-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.convenio-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition);
}
.convenio-card:hover { border-color: var(--green-vibrant); background: var(--green-pale-2); }
.convenio-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.info-box {
  background: var(--green-pale-2);
  padding: 3rem;
  border-left: 4px solid var(--green-vibrant);
}
.info-box h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); margin-bottom: 1.2rem; }
.info-box p { color: var(--ink-muted); line-height: 1.7; margin-bottom: 1rem; }

@media (max-width: 900px) { .convenios-page-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (max-width: 600px) { .convenios-page-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } .convenio-card { padding: 1rem 0.75rem; min-height: 64px; } .convenio-card .name { font-size: 0.88rem; } .info-box { padding: 1.5rem; } }

/* ==== CONTACT PAGE ==== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 2rem; }
.contact-list { margin-bottom: 2.5rem; }
.contact-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}
.contact-item .value { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.contact-item a.value { color: var(--green-deep); transition: color var(--transition); }
.contact-item a.value:hover { color: var(--green-vibrant-2); }
.contact-map {
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dotted var(--line);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--ink-muted); }
.hours-list .time { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ==== FINAL CTA BAND ==== */
.cta-band {
  background: var(--green-pale-2);
  text-align: center;
  padding: 5rem 24px;
}
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band p { max-width: 520px; margin: 0 auto 2rem; }

/* ==== UTILITIES ==== */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ==== SUBMENU ESPECIALIDADES ==== */
.has-submenu {
  position: relative;
}
.has-submenu > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.has-submenu > a::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--green-vibrant);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-top: 1px;
}
.has-submenu:hover > a::after,
.has-submenu.open > a::after {
  transform: rotate(180deg);
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 12px 40px -8px rgba(14, 30, 26, 0.15);
  min-width: 200px;
  z-index: 200;
  overflow: visible;
  padding-top: 8px;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}
.submenu a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-soft);
  transition: all var(--transition);
}
.submenu a:last-child { border-bottom: none; }
.submenu a::after { display: none !important; }
.submenu a:hover {
  background: var(--green-pale-2);
  color: var(--green-deep);
  padding-left: 1.5rem;
}
.has-submenu:hover .submenu,
.has-submenu.open .submenu {
  display: block;
}

/* Mobile submenu */
@media (max-width: 920px) {
  .submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--green-vibrant);
    background: var(--green-pale-2);
    border-radius: 0;
    margin-left: 1rem;
    margin-top: 0.3rem;
    padding-top: 0;
  }
  .submenu a {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }
  .has-submenu > a::after {
    margin-left: auto;
  }
}

/* ==== HERO AREA CHIPS ==== */
.hero-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--green-deep);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-deep);
  background: transparent;
  transition: all var(--transition);
}
.area-chip:hover {
  background: var(--green-deep);
  color: var(--white);
}
.area-chip svg {
  flex-shrink: 0;
  stroke: currentColor;
}
