* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #021b45;
  --blue-main: #003087;
  --blue-light: #007bff;
  --yellow: #ffd500;
  --orange: #f59e0b;
  --text: #1f2937;
  --muted: #667085;
  --bg: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(2, 27, 69, 0.14);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(2, 27, 69, 0.96);
  backdrop-filter: blur(14px);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.header-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 22px rgba(0, 123, 255, 0.35);
}

.main-nav .nav-highlight {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 0 24px rgba(255, 213, 0, 0.34);
}

.main-nav .nav-highlight:hover {
  background: #ffe45c;
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 999px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 720px;
  padding: 170px 20px 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(2, 27, 69, 0.88), rgba(0, 48, 135, 0.76)),
    url("../../images/hero-labtronica.jpg") center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.25), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
}

.hero-tag,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: 0.25s ease;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(255, 213, 0, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #ffe45c;
  box-shadow: 0 0 35px rgba(255, 213, 0, 0.55);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 28px rgba(0, 123, 255, 0.38);
}

.btn-light {
  background: var(--white);
  color: var(--blue-main);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.35);
}

/* Sections */

.section {
  padding: 86px 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section h2 {
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.section p {
  color: var(--muted);
  font-size: 17px;
}

.intro-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.intro-card,
.course-card,
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 48, 135, 0.08);
  transition: 0.25s ease;
}

.intro-card {
  padding: 28px;
}

.intro-card strong {
  display: block;
  color: var(--blue-main);
  font-size: 22px;
  margin-bottom: 10px;
}

.intro-card:hover,
.course-card:hover,
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(0, 48, 135, 0.20);
  border-color: rgba(0, 123, 255, 0.25);
}

/* Courses */

.courses-preview {
  background: #f5f7fb;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course-card {
  overflow: hidden;
}

.course-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.course-card div {
  padding: 26px;
}

.course-card h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.course-card p {
  margin-bottom: 18px;
}

.card-link {
  color: var(--blue-main);
  font-weight: 800;
}

.card-link:hover {
  color: var(--blue-light);
}

.center-action {
  text-align: center;
  margin-top: 40px;
}

/* Features */

.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 900;
  font-size: 14px;
}

.feature-card h3 {
  color: var(--blue-dark);
  font-size: 20px;
  margin-bottom: 12px;
}

/* Callout */

.calculator-callout {
  background: #f5f7fb;
}

.callout-box {
  background:
    linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  box-shadow: 0 24px 70px rgba(2, 27, 69, 0.25);
}

.callout-box h2,
.callout-box p {
  color: var(--white);
}

.callout-box p {
  max-width: 680px;
  opacity: 0.86;
}

/* Final CTA */

.final-cta {
  text-align: center;
  background: var(--white);
}

.final-cta p {
  margin-bottom: 28px;
}

/* Footer */

.site-footer {
  background: var(--blue-dark);
  color: var(--white);
}

.footer-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
}

.footer-brand h2,
.footer-links h3,
.footer-contact h3 {
  margin-bottom: 14px;
}

.footer-brand p,
.footer-contact p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a,
.footer-whatsapp {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 9px;
  transition: 0.25s ease;
}

.footer-links a:hover,
.footer-whatsapp:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */

@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    background: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
    padding: 14px 16px;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .intro-grid,
  .cards-grid,
  .features-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .callout-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 650px;
  }
}

@media (max-width: 520px) {
  .container,
  .footer-container {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    font-size: 19px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .callout-box {
    padding: 32px 24px;
  }
}