:root {
  --primary: #c90f17;
  --primary-dark: #8f0c12;
  --dark: #2e2e34;
  --muted: #686a73;
  --soft: #f5f5f7;
  --line: #e6e7eb;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(25, 28, 35, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: var(--dark);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell { overflow: hidden; }

.hero {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(201, 15, 23, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(46, 46, 52, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding-bottom: 48px;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 15, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 15, 23, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 85%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini__logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.brand-mini__eyebrow {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-mini__name {
  font-size: 1.2rem;
  color: var(--primary);
}

.topbar__cta {
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(201, 15, 23, 0.25);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
  padding: 36px 0 24px;
}

.pill,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(201, 15, 23, 0.10);
  color: var(--primary);
}

.section-tag--light {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  color: var(--primary);
}

.hero__lead {
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.highlight-card,
.info-tile,
.program-card,
.topic-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.highlight-card {
  padding: 18px;
}

.highlight-card__label,
.info-tile__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.highlight-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #ef1b25);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(201, 15, 23, 0.24);
}

.btn--secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--line);
}

.btn--light {
  background: #fff;
  color: var(--primary-dark);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 530px;
}

.logo-frame {
  width: min(100%, 500px);
  padding: 18px;
  border-radius: 50px;
  background: linear-gradient(160deg, #fff 0%, #fafafa 100%);
  border: 1px solid rgba(201, 15, 23, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);
}

.logo-frame img {
  width: 100%;
  border-radius: 32px;
}

.visual-badge {
  position: absolute;
  max-width: 220px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-one {
  top: 24px;
  right: -4px;
  color: var(--primary-dark);
}

.badge-two {
  bottom: 40px;
  left: -6px;
}

.quick-info {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 18px;
}

.info-tile {
  padding: 24px;
}

.info-tile h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary);
}

.info-tile p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.info-tile--accent {
  background: linear-gradient(145deg, #fff, #fff5f5);
  border-color: rgba(201, 15, 23, 0.18);
}

.program-section,
.topics-section,
.contact-section {
  padding: 88px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-card h2,
.certificate-band h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-copy p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.program-cards {
  display: grid;
  gap: 16px;
}

.program-card {
  padding: 24px;
}

.program-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 10px;
}

.program-card strong {
  font-size: 1.45rem;
  color: var(--dark);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.topic-card {
  padding: 24px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  inset: auto -20px -20px auto;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(201, 15, 23, 0.12), transparent 68%);
}

.topic-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 15, 23, 0.10);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}

.topic-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.certificate-band {
  padding: 38px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.certificate-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-card {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(201, 15, 23, 0.04), rgba(201, 15, 23, 0.01)),
    #fff;
}

.contact-list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 28px 0 110px;
  border-top: 1px solid var(--line);
  background: #fbfbfc;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.footer__brand p,
.footer__copy {
  margin: 0;
  color: var(--muted);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary), #ef1b25);
  color: #fff;
  padding: 15px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 20px 34px rgba(201, 15, 23, 0.30);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero__content,
  .split-grid,
  .quick-info,
  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__highlights {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .topbar,
  .certificate-band__inner,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content,
  .split-grid,
  .quick-info,
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 28px;
  }

  .hero__content {
    padding-top: 10px;
  }

  .program-section,
  .topics-section,
  .contact-section {
    padding: 64px 0;
  }

  .visual-badge {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .hero__visual {
    display: block;
  }

  .contact-card,
  .info-tile,
  .program-card,
  .topic-card {
    padding: 22px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 14px 16px;
  }
}
