@font-face {
  font-family: "TangoSans";
  src: url("../fonts/TangoSans.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "TangoSans";
  src: url("../fonts/TangoSans_Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  --color-primary: #6e75fa;
  --color-secondary: #74a6ff;
  --color-accent: #25d366;
  --color-dark: #141827;
  --color-text: #344054;
  --color-muted: #667085;
  --color-soft: #f5f7ff;
  --color-border: rgba(20, 24, 39, 0.1);
  --color-white: #ffffff;
  --gradient-main: linear-gradient(135deg, #6e75fa 0%, #74a6ff 100%);
  --gradient-dark: linear-gradient(135deg, #151932 0%, #28306a 55%, #6e75fa 100%);
  --shadow-sm: 0 8px 24px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container: 1160px;
  --font-main: "TangoSans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #fbfcff;
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(116, 166, 255, 0.55);
  outline-offset: 3px;
}

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

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(20, 24, 39, 0.06);
  box-shadow: 0 2px 14px rgba(20, 24, 39, 0.04);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(20, 24, 39, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

.logo {
  width: auto;
  height: 46px;
  object-fit: contain;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--color-primary);
}

nav a.active::after,
nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn-primary,
.btn-secondary,
.hero-button,
.cta-button,
.custom-btn,
.btn-course,
.btn-send,
.btn-social,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 0;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.btn-secondary,
.btn-course,
.btn-send,
.btn-social {
  background: var(--gradient-main);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(110, 117, 250, 0.22);
}

.btn-primary {
  flex: 0 0 auto;
  padding: 10px 18px;
}

.btn-primary:hover,
.btn-secondary:hover,
.hero-button:hover,
.cta-button:hover,
.custom-btn:hover,
.btn-course:hover,
.btn-send:hover,
.btn-social:hover,
.btn-whatsapp:hover,
.social-btn:hover {
  transform: translateY(-2px);
}

.chead-section {
  padding: clamp(48px, 7vw, 82px) 0;
  text-align: center;
  background: var(--gradient-dark);
  color: var(--color-white);
}

.chead-section h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.chead-section p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.custom-training {
  padding: clamp(44px, 7vw, 72px) 0;
}

.custom-container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(36px, 6vw, 58px) clamp(20px, 5vw, 48px);
  color: var(--color-white);
  text-align: center;
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.custom-container h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.custom-container p {
  max-width: 800px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.custom-btn,
.hero-button,
.cta-button {
  padding: 12px 22px;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(20, 24, 39, 0.12);
}

.site-footer {
  padding: clamp(48px, 7vw, 76px) 0 22px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  margin-bottom: 34px;
}

.footer-logo img {
  width: auto;
  height: 40px;
  margin-bottom: 14px;
}

.site-footer h4 {
  margin-bottom: 14px;
  color: var(--color-dark);
}

.site-footer p {
  max-width: 320px;
  color: var(--color-muted);
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6e75fa;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  color: var(--color-white) !important;
  box-shadow: 0 12px 24px rgba(110, 117, 250, 0.22);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 0;
  }

  nav {
    order: 3;
    flex: 1 0 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav ul {
    justify-content: center;
    min-width: max-content;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container,
  .custom-container {
    width: min(100% - 24px, var(--container));
  }

  .logo {
    height: 40px;
  }

  .btn-primary {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  nav a {
    padding-inline: 9px;
    font-size: 0.9rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
