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

:root {
  --teal:        #2BB8C8;
  --teal-dark:   #1A95A3;
  --teal-light:  #E4F8FA;
  --teal-mid:    #B2E8ED;
  --navy:        #0D3B4F;
  --text:        #1A2B35;
  --muted:       #6B8795;
  --white:       #FFFFFF;
  --off-white:   #F5FBFC;
  --border:      #D9EEF2;
  --grad: linear-gradient(135deg, #2BB8C8 0%, #1A95A3 100%);
  --max-w:       1440px;
  --px:          3%;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  box-shadow: 0 2px 12px rgba(43,184,200,.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; border-radius: 4px; }
.logo-text {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -1px;
  color: var(--teal);
}
.logo-text span { color: var(--navy); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--text); transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

/* ── NAV RIGHT (lang switcher + hamburger group) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}



/* ── HERO ── */
.hero {
  background: #ffffff;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--px) 50px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.hero-tag {
  display: inline-block; color: var(--teal-dark);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  margin-bottom: 16px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.2;
  color: #1A2B35; margin-bottom: 18px;
}
.hero-title-grad {
  background: linear-gradient(90deg, #0C515C, #1AA3BB, #8FD7E3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: .95rem; color: #3D3D3D; line-height: 1.75;
  max-width: 460px; margin-bottom: 32px;
}
.hero-link {
  color: var(--teal-dark); text-decoration: none;
  cursor: default; pointer-events: none;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(90deg, #0C515C, #1AA3BB, #8FD7E3);
  color: #ffffff;
  padding: 12px 26px; border-radius: 12px; border: none;
  font-family: 'Outfit', sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { opacity: .88; transform: scale(1.04); }

.btn-primary-outline {
  color: #1AA3BB;
  padding: 12px 26px; border-radius: 12px;
  font-family: 'Outfit', sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid #1AA3BB;
  background: transparent;
}
.btn-primary-outline:hover { opacity: .8; transform: scale(1.04); }

.btn-outline {
  background: transparent; color: var(--teal-dark);
  padding: 13px 28px; border-radius: 12px;
  border: 2px solid var(--teal); font-family: 'Outfit', sans-serif;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-sm {
  background: transparent; color: var(--teal-dark);
  border: 1.5px solid var(--teal); padding: 7px 18px; border-radius: 20px;
  font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.btn-sm:hover { background: var(--teal); color: var(--white); }

.btn-card {
  display: inline-block; margin-top: 12px;
  background: var(--teal-light); color: var(--teal-dark);
  padding: 7px 16px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-card:hover { background: var(--teal); color: var(--white); }

.btn-white {
  background: var(--white); color: var(--teal-dark);
  padding: 14px 32px; border-radius: 28px; border: none;
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }

/* ── HERO IMAGE SIDE ── */
.hero-image {
  position: relative; display: flex;
  justify-content: center; align-items: flex-end;
  min-height: 420px;
}
.hero-blob {
  position: absolute;
  width: 380px; height: 380px; border-radius: 50%;
  background: linear-gradient(135deg, #1AA3BB 0%, #8FD7E3 100%);
  bottom: 0; right: 20px;
  z-index: 0;
}
.hero-doctor {
  position: relative; z-index: 1;
  height: 420px; width: auto; object-fit: contain;
  object-position: bottom;
}
.hero-badge {
  position: absolute; bottom: 80px; right: -10px; z-index: 2;
  background: var(--white); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  display: flex; align-items: center; gap: 10px;
}
.hero-badge-icon { font-size: 1.4rem; }
.hero-badge strong { font-size: 1.1rem; color: var(--navy); display: block; font-weight: 800; }
.hero-badge span { font-size: .72rem; color: var(--muted); }
.stars { color: #F5A623; font-size: .82rem; }
.hero-quote {
  position: absolute; bottom: 0px; left: -20px; z-index: 2;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border: 1px solid rgba(26,163,187,.2);
}
.hero-quote-mark {
  font-size: 2rem; line-height: .8; color: var(--teal);
  font-family: 'Lora', serif; display: block; margin-bottom: 6px;
}
.hero-quote p {
  font-size: .78rem; color: #3D3D3D; line-height: 1.5;
  margin: 0; max-width: none;
}

/* ── STATS ── */
.stats-wrapper {
  padding: 24px var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.stats {
  border-radius: 12px;
  padding: 36px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  background-image:
    radial-gradient(circle at center, #F3FDFF 0%, #FFFFFF 100%),
    linear-gradient(90deg, #19A4BB, #C5ECFF);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
}
.stat-divider {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, #19A4BB 40%, #C5ECFF 70%, transparent);
  margin: 0 20px;
}
.stat-item { text-align: center; padding: 0 8px; }
.stat-item strong {
  display: block; font-size: 2rem; font-weight: 800; line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #0C515C, #1AA3BB, #8FD7E3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: .82rem; color: #3D3D3D; line-height: 1.4; display: block; }

/* ── SECTION COMMON ── */
section { padding: 0; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--px);
}
.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 1.7rem; font-weight: 700; color: var(--navy);
}
.section-header h2 em { font-style: normal; color: var(--teal); }
.section-alt { background: var(--off-white); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43,184,200,.18);
}
.card-img {
  height: 160px;
  background: var(--grad);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-img-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  background: rgba(0,0,0,.35); color: #fff;
  padding: 4px 10px; border-radius: 12px;
  position: absolute; top: 12px; left: 12px;
  text-transform: uppercase;
}
.card-img-icon { font-size: 3rem; color: rgba(255,255,255,.35); }
.card-body { padding: 18px; }
.card-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card-body p { font-size: .83rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.card-meta { display: flex; align-items: center; gap: 14px; font-size: .78rem; color: var(--muted); }
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── EVENTOS ── */
.eventos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.evento-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: transform .25s, box-shadow .25s;
}
.evento-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(43,184,200,.18); }
.evento-img {
  height: 140px;
  background: linear-gradient(135deg, var(--navy), #1A95A3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.evento-date {
  position: absolute; top: 12px; left: 12px;
  background: var(--white); border-radius: 10px;
  padding: 6px 10px; text-align: center;
  font-size: .75rem; font-weight: 700; color: var(--teal-dark);
  line-height: 1.2;
}
.evento-date strong { display: block; font-size: 1.3rem; color: var(--navy); }
.evento-body { padding: 18px; }
.evento-body h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.evento-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  background: var(--teal-light); color: var(--teal-dark);
  padding: 3px 10px; border-radius: 12px; margin-bottom: 10px;
}

/* ── TESTIMONIALS ── */
.testimonials { background: var(--navy); color: var(--white); }
.testimonials .section-header h2 { color: var(--white); }
.testimonials .section-header h2 em { color: var(--teal-mid); }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 28px;
}
.testimonial-card p {
  font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.82);
  margin-bottom: 20px; font-family: 'Lora', serif; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--white);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; }
.author-role { font-size: .78rem; color: var(--teal-mid); }

/* ── PARTNERS ── */
.partners { background: var(--off-white); }
.partners-track {
  display: flex; gap: 40px; align-items: center;
  overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none;
}
.partners-track::-webkit-scrollbar { display: none; }
.partner-logo {
  flex-shrink: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 24px;
  font-weight: 700; font-size: .9rem; color: var(--muted);
  white-space: nowrap;
}

/* ── FORMADORES ── */
.formadores-section-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px 24px;
  align-items: stretch;
}
/* Cards 2-4 span both rows so they stretch full height */
.formador-card:nth-child(2),
.formador-card:nth-child(3),
.formador-card:nth-child(4) {
  grid-row: 1 / 3;
}
/* First card stays in row 1 */
.formador-card:first-child {
  grid-row: 1;
}
.formadores-grid {
  display: contents;
}

/* First card spans full height of its column — wider */
.formador-card {
  border-radius: 12px;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #19A4BB, #C5ECFF);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: visible;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.formador-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(43,184,200,.18); }

/* First card: auto height, image fully visible */
.formador-card:first-child .formador-photo-wrap {
  aspect-ratio: unset;
  height: 260px;
}
.formador-card:first-child .formador-photo-wrap img {
  object-fit: contain;
  object-position: center bottom;
}

.formador-photo-wrap {
  background: #DFFAFF;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px 10px 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.formador-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Teal icon badge between photo and text */
.formador-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #19A4BB, #8FD7E3);
  display: flex; align-items: center; justify-content: center;
  margin: -22px auto 0;
  position: relative; z-index: 2;
  box-shadow: 0 4px 12px rgba(25,164,187,.3);
  font-size: 1.1rem;
}

.formador-body {
  padding: 10px 12px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.formador-body h3 { font-size: .95rem; font-weight: 700; color: #3D3D3D; margin: 0; }
.formador-esp { font-size: .82rem; font-weight: 600; color: #19A4BB; }
.formador-local { font-size: .78rem; color: #3D3D3D; line-height: 1.4; }

/* Button: centred under first card, aligned to bottom of sibling cards */
.formador-btn-wrap {
  grid-column: 1;
  display: flex; justify-content: center;
  align-items: flex-end;
  padding-top: 4px;
}

/* ── NOTICIAS ── */
.noticias { background: var(--off-white); }
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.noticia-card {
  border-radius: 16px; background: var(--white);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.noticia-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(43,184,200,.15); }
.noticia-img {
  height: 140px;
  background: linear-gradient(135deg, #2BB8C8 0%, #0D3B4F 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,.3);
}
.noticia-body { padding: 18px; }
.noticia-body h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.noticia-body p { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.noticia-date { font-size: .75rem; color: var(--teal-dark); font-weight: 600; margin-top: 10px; display: block; }

/* ── CTA CONTACTO ── */
.cta-contact {
  background: #ffffff;
  text-align: center;
  padding: 80px 5%;
}
.cta-contact-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cta-contact h2 {
  font-size: 2rem; font-weight: 800;
  color: var(--navy); margin: 0;
}
.cta-contact h2 .grad-text { font-style: normal; }
.cta-contact p {
  color: #ACACAC; font-size: .95rem;
  line-height: 1.6; margin: 0;
}

/* ── FOOTER ── */
footer {
  background: #0D3B4F;
  color: rgba(255,255,255,.9);
  padding: 52px 0 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}
.footer-logo-col {
  display: flex;
  align-items: flex-start;
}
.footer-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
}
.footer-links-col {
  padding-left: 0;
}
.footer-links-col:last-child {
  padding-left: 0;
}
.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links-col ul a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
.footer-links-col ul a:hover { color: #fff; text-decoration: underline; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 20px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.social-icon:hover { background: rgba(255,255,255,.35); transform: translateY(-2px); }
.footer-copy {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; animation: fadeUp .6s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .15s; }
.fade-up:nth-child(3) { animation-delay: .25s; }
.fade-up:nth-child(4) { animation-delay: .35s; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--teal-dark); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: 14px 5%;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
  }
}

@media (max-width: 900px) {
  /* Hero: stack vertically, show image smaller */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px; padding-bottom: 40px;
  }
  .hero-image {
    display: flex;
    min-height: 280px;
    justify-content: center;
  }
  .hero-blob {
    width: 260px; height: 260px;
    right: 50%; transform: translateX(50%);
  }
  .hero-doctor { height: 280px; }
  .hero-badge { right: 5%; bottom: 20px; }
  .hero-quote { left: 5%; bottom: 0; max-width: 180px; }

  /* Stats: 2x2 grid */
  .stats {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }
  .stat-divider { display: none; }
  .stat-item {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .cards-grid, .eventos-grid, .noticias-grid { grid-template-columns: 1fr 1fr; }
  .formadores-section-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  /* Reset row-spanning — all cards same size, stacked */
  .formador-card:nth-child(2),
  .formador-card:nth-child(3),
  .formador-card:nth-child(4) {
    grid-row: auto;
  }
  .formador-card:first-child {
    grid-row: auto;
  }
  .formador-card:first-child .formador-photo-wrap {
    aspect-ratio: 3 / 4;
    height: auto;
  }
  .formador-card:first-child .formador-photo-wrap img {
    object-fit: cover;
    object-position: center top;
  }
  .formador-btn-wrap { grid-column: 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-logo-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-image { min-height: 240px; }
  .hero-blob { width: 210px; height: 210px; }
  .hero-doctor { height: 240px; }
  .hero-quote { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat-item strong { font-size: 1.5rem; }

  .cards-grid, .eventos-grid, .noticias-grid { grid-template-columns: 1fr; }
  .formadores-section-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-logo-col { grid-column: 1 / -1; }
  .section-inner { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-primary-outline { justify-content: center; }
}

/* ── SECTION HEADER CENTERED ── */
.section-header--center {
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.section-header--center h2 {
  font-size: 1.8rem;
}

/* ── GRADIENT TEXT ── */
.grad-text {
  font-style: normal;
  background: linear-gradient(90deg, #0E5B68, #19A4BB);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GRADIENT BUTTON ── */
.btn-grad {
  background: linear-gradient(90deg, #0C515C, #1AA3BB, #8FD7E3);
  color: #ffffff;
  padding: 11px 24px; border-radius: 12px; border: none;
  font-family: 'Outfit', sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: opacity .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-grad:hover { opacity: .88; transform: scale(1.04); }
.btn-grad--sm {
  padding: 9px 22px; font-size: .88rem;
  align-self: center;
}

/* ── FORMAÇÕES ON-DEMAND GRID ── */
.formacoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.formacao-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(43,184,200,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.formacao-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43,184,200,.18);
}
.formacao-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--teal-light);
}
.formacao-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.formacao-footer {
  padding: 18px 16px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.formacao-footer h3 {
  font-size: 1rem; font-weight: 700;
  color: #1AA3BB;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .formacoes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .formacoes-grid { grid-template-columns: 1fr; }
  .section-header--center { flex-direction: column; align-items: center; text-align: center; }
}

/* ── CURSO META LINE ── */
.curso-meta {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin-top: -6px;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: #F8FEFF;
  padding: 80px 0;
  overflow: hidden;
}
.testimonials-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
  min-height: 480px;
}
.testimonials-left {
  display: flex; flex-direction: column; gap: 20px;
  position: relative; z-index: 2;
}
.testimonials-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  color: var(--teal-dark); text-transform: uppercase;
}
.testimonials-title {
  font-size: 2.4rem; font-weight: 800; line-height: 1.15;
  color: var(--navy);
}
.testimonials-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}
.t-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #b0d8e0; background: transparent;
  color: var(--teal-dark); font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.t-arrow:hover { background: var(--teal); color: white; border-color: var(--teal); }

/* Track wrapper */
.testimonials-track-wrap {
  position: relative;
  margin-right: calc(-1 * var(--px));
  overflow: hidden;
}

/* Blob image */
.t-blob {
  position: absolute;
  top: 50%; right: -60px;
  transform: translateY(-50%);
  width: 600px; height: auto;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* Scrollable track */
.testimonials-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 48px 8px 48px;
  position: relative; z-index: 1;
}
.testimonials-track::-webkit-scrollbar { display: none; }

/* Individual card */
.t-card {
  flex: 0 0 420px;
  min-height: 240px;
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(rgba(255,255,255,.96), rgba(255,255,255,.96)),
    linear-gradient(135deg, #19A4BB, #C5ECFF);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 32px;
  scroll-snap-align: start;
  transition: opacity .35s, transform .35s, box-shadow .35s;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.t-card--peek {
  opacity: .5;
  transform: scale(.97) translateX(8px);
  box-shadow: none;
}
.t-card--active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 36px rgba(25,164,187,.15);
}
.t-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.t-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #19A4BB, #8FD7E3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(25,164,187,.35);
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-name {
  font-weight: 700; font-size: 1rem;
  background: linear-gradient(90deg, #0C515C, #1AA3BB);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.t-role { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.t-card p {
  font-size: .9rem; color: #3D3D3D; line-height: 1.8;
  font-family: 'Lora', serif; font-style: italic;
}

/* Responsive */
@media (max-width: 1100px) {
  .t-card { flex: 0 0 380px; }
  .t-blob { width: 460px; }
}
@media (max-width: 900px) {
  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: unset;
  }
  .t-blob { width: 340px; right: -40px; }
  .testimonials-title { font-size: 1.6rem; }
  .t-card { flex: 0 0 78vw; }
}
@media (max-width: 560px) {
  .t-card { flex: 0 0 88vw; padding: 22px; }
  .t-blob { display: none; }
}

/* ── PARCEIROS ── */
.partners-section {
  background: var(--white);
  padding: 72px 0;
}
.partners-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.partners-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #b0d8e0; background: transparent;
  color: var(--teal-dark); font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.p-arrow:hover { background: var(--teal); color: white; border-color: var(--teal); }

.partners-viewport {
  overflow: hidden;
  flex: 1;
}
.partners-viewport::-webkit-scrollbar { display: none; }
.partners-track {
  display: flex;
  gap: 24px;
  align-items: center;
  will-change: transform;
  /* width set by JS */
}
.partner-item {
  flex: 0 0 136px;
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: box-shadow .2s;
}
.partner-item:hover {
  box-shadow: 0 4px 16px rgba(43,184,200,.12);
}
.partner-item img {
  max-width: 100%; max-height: 52px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .2s;
}
.partner-item:hover img { filter: grayscale(0%); }

@media (max-width: 640px) {
  .partner-item { flex: 0 0 110px; height: 60px; }
}

/* ══════════ NAV DROPDOWN (Formação / Sobre) ══════════ */
.nav-drop { position: relative; }
.nav-drop__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 500;
  color: var(--text); padding: 0; transition: color .2s;
}
.nav-drop__btn:hover { color: var(--teal); }
.nav-drop__chev { transition: transform .2s; flex-shrink: 0; }
.nav-drop__menu { list-style: none; margin: 0; padding: 0; }

/* — Desktop: abre ao passar o rato — */
@media (min-width: 1025px) {
  .nav-links { align-items: center; margin-left: auto; margin-right: 18px; }
  .nav-drop { display: flex; align-items: center; height: 64px; }
  .nav-drop__menu {
    position: absolute; top: 100%; left: -20px;
    min-width: 215px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 34px rgba(13,59,79,.12);
    opacity: 0; visibility: hidden;
    transition: opacity .16s ease, visibility .16s ease;
    z-index: 20;
  }
  .nav-drop:hover .nav-drop__menu,
  .nav-drop:focus-within .nav-drop__menu,
  .nav-drop.open .nav-drop__menu { opacity: 1; visibility: visible; }
  .nav-drop:hover .nav-drop__chev,
  .nav-drop.open .nav-drop__chev { transform: rotate(180deg); }
  .nav-drop__menu li a { display: block; padding: 13px 20px; white-space: nowrap; }
  .nav-drop__menu li + li { border-top: 1px solid var(--border); }
}

/* — Mobile: acordeão dentro do menu hambúrguer — */
@media (max-width: 1024px) {
  .nav-drop__btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 14px 5%; border-bottom: 1px solid var(--border);
    font-size: .95rem; text-align: left;
  }
  .nav-drop__menu { display: none; background: var(--off-white); }
  .nav-drop.open .nav-drop__menu { display: block; }
  .nav-drop.open .nav-drop__chev { transform: rotate(180deg); }
  .nav-drop__menu li a { padding-left: 9%; }
}
