/**
 * Alçada Digital — design system
 * Cores: #FF5B00 (primária), #6B230A (contraste profundo)
 */

:root {
  --color-primary: #ff5b00;
  --color-primary-dark: #e04f00;
  --color-ink: #6b230a;
  --color-ink-soft: #3d2a22;
  --color-bg: #070505;
  --color-surface: #14100e;
  --color-surface-2: #1c1512;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-muted: #c4b5ad;
  --color-white: #faf7f4;
  --header-bg: rgba(6, 4, 3, 0.82);
  /* Menu móvel: fundo opaco (evita conteúdo por trás a “vazar”) */
  --nav-mobile-bg: #0a0807;
  --nav-mobile-border: rgba(255, 255, 255, 0.12);
  --burger-bar: #faf7f4;
  --footer-heading: #fff;
  --hero-mesh-a: rgba(255, 91, 0, 0.5);
  --hero-mesh-b: rgba(255, 130, 60, 0.38);
  --hero-mesh-c: rgba(107, 35, 10, 0.55);
  --hero-fade: #0f0806;
  --tile-media-bg: linear-gradient(135deg, #3a2218, #16100e);
  --quote-text: #e7ddd6;
  --cta-band-text: #f0e4dc;
  --prose-body: #e8ded8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 70px rgba(255, 91, 0, 0.28);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --container-max: 1180px;
  --container-pad-x: clamp(1rem, 4.5vw, 1.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* Intensidade média para animação de cards */
  --card-anim-lift: -5px;
  --card-anim-scale: 1.012;
  --card-anim-glow: 0 0 34px rgba(255, 91, 0, 0.12);
  --card-media-zoom: 1.04;
  --card-float-y: -2.5px;
}

/* Interruptor global de intensidade de animação (default: média) */
html[data-anim-intensity="low"] {
  --card-anim-lift: -2px;
  --card-anim-scale: 1.004;
  --card-anim-glow: 0 0 16px rgba(255, 91, 0, 0.07);
  --card-media-zoom: 1.015;
  --card-float-y: -1px;
}

html[data-anim-intensity="medium"] {
  --card-anim-lift: -5px;
  --card-anim-scale: 1.012;
  --card-anim-glow: 0 0 34px rgba(255, 91, 0, 0.12);
  --card-media-zoom: 1.04;
  --card-float-y: -2.5px;
}

html[data-anim-intensity="high"] {
  --card-anim-lift: -8px;
  --card-anim-scale: 1.02;
  --card-anim-glow: 0 0 48px rgba(255, 91, 0, 0.2);
  --card-media-zoom: 1.065;
  --card-float-y: -4px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

/* Fundo vivo — modo escuro (auroras + profundidade) */
html[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 75% at 10% -15%, var(--hero-mesh-a), transparent 52%),
    radial-gradient(ellipse 80% 60% at 95% 5%, var(--hero-mesh-b), transparent 48%),
    radial-gradient(ellipse 70% 50% at 50% 105%, var(--hero-mesh-c), transparent 58%),
    linear-gradient(168deg, #1a0c06 0%, #070504 38%, #0a0604 100%);
  animation: vivid-pulse 16s ease-in-out infinite alternate;
}

html[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  inset: -35%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.65;
  background: conic-gradient(
    from 200deg at 50% 45%,
    rgba(255, 91, 0, 0.14),
    transparent 22%,
    rgba(255, 60, 140, 0.08),
    transparent 48%,
    rgba(255, 200, 120, 0.1),
    transparent 72%,
    rgba(107, 35, 10, 0.12),
    transparent
  );
  animation: vivid-spin 50s linear infinite;
}

@keyframes vivid-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vivid-pulse {
  0% {
    filter: saturate(1) brightness(1);
  }
  100% {
    filter: saturate(1.2) brightness(1.06);
  }
}

/* Modo claro — fundo quente e luminoso */
html[data-theme="light"] {
  --color-bg: #f6f0ea;
  --color-surface: #ffffff;
  --color-surface-2: #fff8f4;
  --color-border: rgba(107, 35, 10, 0.14);
  --color-muted: #4f3b32;
  --color-white: #1c1410;
  --header-bg: rgba(255, 252, 249, 0.9);
  --nav-mobile-bg: #fffdfb;
  --nav-mobile-border: rgba(107, 35, 10, 0.14);
  --burger-bar: #3d2a22;
  --footer-heading: #2c1810;
  --hero-mesh-a: rgba(255, 91, 0, 0.22);
  --hero-mesh-b: rgba(255, 160, 90, 0.18);
  --hero-mesh-c: rgba(107, 35, 10, 0.1);
  --hero-fade: #fffdfb;
  --tile-media-bg: linear-gradient(135deg, #ffe8dc, #f6ebe4);
  --quote-text: #4a352c;
  --cta-band-text: #4a352c;
  --prose-body: #453930;
  --shadow-card: 0 18px 44px rgba(107, 35, 10, 0.1);
  --shadow-glow: 0 0 50px rgba(255, 91, 0, 0.2);
}

html[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 85% at 100% -10%, rgba(255, 91, 0, 0.28), transparent 52%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(255, 180, 120, 0.2), transparent 48%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(255, 200, 160, 0.15), transparent 50%),
    linear-gradient(185deg, #fffefb 0%, #f6f0ea 50%, #fff5ee 100%);
}

html[data-theme="light"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background: radial-gradient(circle at 50% 0%, rgba(255, 140, 80, 0.25), transparent 55%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: max(var(--container-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad-x), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* Movimento global dos objectos (intensidade média) */
@keyframes object-ambient-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes object-soft-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

:where(.card, .tile, .course-card, .team-card, .admin-card, .stats-strip, .cta-band, .testimonial-form-card) {
  animation: object-soft-in 0.52s var(--ease-out-expo) both;
}

:where(.card, .tile, .course-card, .team-card, .admin-card) {
  animation:
    object-soft-in 0.52s var(--ease-out-expo) both,
    object-ambient-float 7.2s ease-in-out infinite;
}

.grid-3 > :nth-child(2),
.grid-portfolio > :nth-child(2),
.course-grid > :nth-child(2),
.admin-stats-grid > :nth-child(2) {
  animation-delay: 0.08s, 0.12s;
}

.grid-3 > :nth-child(3),
.grid-portfolio > :nth-child(3),
.course-grid > :nth-child(3),
.admin-stats-grid > :nth-child(3) {
  animation-delay: 0.14s, 0.22s;
}

.grid-3 > :nth-child(4),
.grid-portfolio > :nth-child(4),
.course-grid > :nth-child(4),
.admin-stats-grid > :nth-child(4) {
  animation-delay: 0.2s, 0.3s;
}

.site-footer__grid > div {
  animation: object-soft-in 0.55s var(--ease-out-expo) both;
}

.site-footer__grid > div:nth-child(2) {
  animation-delay: 0.08s;
}

.site-footer__grid > div:nth-child(3) {
  animation-delay: 0.14s;
}

.site-footer__grid > div:nth-child(4) {
  animation-delay: 0.2s;
}

/* ——— Header ——— */
body.nav-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* backdrop-filter cria contexto de empilhamento: em mobile quebra position:fixed do .nav (menu cortado) */
@media (max-width: 960px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 961px) {
  .site-header {
    overflow: visible;
  }
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: max(var(--container-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad-x), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 961px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
  }

  .site-header__inner .logo {
    justify-self: start;
  }

  .site-header__inner .nav {
    justify-self: center;
  }

  .site-header__inner .site-header__tools {
    justify-self: end;
  }
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s;
}

.theme-toggle:hover {
  border-color: rgba(255, 91, 0, 0.45);
  box-shadow: var(--shadow-glow);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
  place-items: center;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: grid;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__moon {
  display: grid;
}

html[data-theme="light"] .theme-toggle__sun {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #ff8a4a);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: logo-glow 4.5s ease-in-out infinite;
}

@keyframes logo-glow {
  0%,
  100% {
    box-shadow: var(--shadow-glow);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 28px rgba(255, 91, 0, 0.45);
    transform: translateY(-2px);
  }
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
}

.logo__text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: -2px;
}

/* Logotipo a voar pelo ecrã */
.flying-logo {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
}

.flying-logo__item {
  --fly-size: clamp(36px, 4.5vw, 64px);
  position: absolute;
  top: 7vh;
  left: 5vw;
  width: var(--fly-size);
  height: var(--fly-size);
  opacity: 0.78;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.32));
  will-change: transform;
  animation:
    logo-flight-path 24s linear infinite,
    logo-flight-hover 3.8s ease-in-out infinite;
}

.flying-logo__img,
.flying-logo__mark {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.flying-logo__img {
  object-fit: contain;
}

.flying-logo__mark {
  display: block;
  background: linear-gradient(135deg, var(--color-primary), #ff8a4a);
  box-shadow: var(--shadow-glow);
}

@keyframes logo-flight-path {
  0% {
    transform: translate3d(0vw, 0vh, 0) rotate(-8deg);
  }

  20% {
    transform: translate3d(72vw, 10vh, 0) rotate(8deg);
  }

  40% {
    transform: translate3d(58vw, 64vh, 0) rotate(-5deg);
  }

  60% {
    transform: translate3d(12vw, 70vh, 0) rotate(7deg);
  }

  80% {
    transform: translate3d(74vw, 36vh, 0) rotate(-7deg);
  }

  100% {
    transform: translate3d(0vw, 0vh, 0) rotate(-8deg);
  }
}

@keyframes logo-flight-hover {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -8px;
  }
}

@media (max-width: 960px) {
  .flying-logo__item {
    --fly-size: clamp(30px, 7.5vw, 48px);
    opacity: 0.66;
    animation-duration: 20s, 3.4s;
  }
}

@media (max-width: 380px) {
  .logo__text span {
    display: none;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 961px) {
  .nav {
    overflow: visible;
  }
}

.nav > a,
.nav .nav__link {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--color-muted);
  transition:
    color 0.28s var(--ease-out-expo),
    background 0.28s var(--ease-out-expo),
    transform 0.2s var(--ease);
}

.nav > a:hover,
.nav .nav__link:hover {
  color: var(--color-white);
  background: rgba(255, 91, 0, 0.12);
  transform: translateY(-1px);
}

.nav > a.is-active,
.nav .nav__link.is-active {
  color: var(--color-white);
  background: rgba(255, 91, 0, 0.12);
}

/* ——— Serviços: submenu ——— */
.nav__dropdown {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  z-index: 85;
}

.nav__dropdown-expand {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.35s var(--ease-out-expo);
}

.nav__caret {
  display: block;
}

.nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.nav__submenu li {
  margin: 0;
}

.nav__submenu a {
  display: block;
  padding: 0.55rem 1rem 0.55rem 1.15rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition:
    color 0.22s var(--ease-out-expo),
    background 0.22s var(--ease-out-expo),
    border-color 0.22s var(--ease-out-expo),
    transform 0.2s var(--ease);
}

.nav__submenu a:hover {
  color: var(--color-white);
  background: rgba(255, 91, 0, 0.1);
  border-left-color: var(--color-primary);
  transform: translateX(4px);
}

.nav__submenu a.is-active {
  color: var(--color-white);
  background: rgba(255, 91, 0, 0.14);
  border-left-color: var(--color-primary);
}

@media (min-width: 961px) {
  .nav__dropdown-expand {
    display: none;
  }

  /* Ponte invisível entre o link e o submenu — evita fechar ao atravessar o espaço */
  .nav__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.65rem;
    z-index: 79;
  }

  .nav__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 0.5rem;
    transform: translateX(-50%) translateY(4px);
    min-width: 280px;
    padding: 0.5rem;
    background: linear-gradient(168deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 91, 0, 0.07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s var(--ease-out-expo),
      transform 0.28s var(--ease-out-expo),
      visibility 0.28s;
    z-index: 80;
  }

  .nav__dropdown:hover .nav__submenu,
  .nav__dropdown:focus-within .nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav__dropdown:hover .nav__link,
  .nav__dropdown:focus-within .nav__link {
    color: var(--color-white);
    background: rgba(255, 91, 0, 0.12);
  }

  .nav__submenu a {
    padding: 0.62rem 1rem 0.62rem 1.1rem;
  }
}

@media (max-width: 960px) {
  .nav__dropdown {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.15rem;
  }

  .nav__dropdown .nav__link {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: var(--radius-sm);
    text-align: left;
  }

  .nav__dropdown-expand {
    display: flex;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .nav__dropdown-expand:hover,
  .nav__dropdown-expand:focus-visible {
    color: var(--color-primary);
    background: rgba(255, 91, 0, 0.1);
  }

  .nav__dropdown.is-open .nav__caret {
    transform: rotate(180deg);
  }

  .nav__submenu {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition:
      max-height 0.45s var(--ease-out-expo),
      padding 0.35s var(--ease-out-expo);
  }

  .nav__dropdown.is-open .nav__submenu {
    max-height: min(70vh, 520px);
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.nav__cta {
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.88rem, 2.8vw, 0.95rem);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 91, 0, 0.35);
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo),
    filter 0.25s ease;
}

.btn--primary:hover {
  box-shadow: 0 16px 40px rgba(255, 91, 0, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
  transition:
    transform 0.28s var(--ease-out-expo),
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.btn--ghost:hover {
  border-color: rgba(255, 91, 0, 0.45);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--burger-bar);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 960px) {
  .site-header .logo,
  .site-header__tools {
    position: relative;
    z-index: 210;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 200;
    background: var(--nav-mobile-bg);
    background-color: var(--nav-mobile-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid var(--nav-mobile-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem max(1rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-right));
    gap: 0.35rem;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s var(--ease),
      transform 0.28s var(--ease),
      visibility 0.28s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  html[data-theme="light"] .nav.is-open {
    box-shadow: 0 12px 40px rgba(107, 35, 10, 0.18);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav > a,
  .nav .nav__link {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
  }

  .nav__submenu a {
    padding: 0.65rem 1rem 0.65rem 1.25rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

html[data-theme="light"] .hero__grid {
  background-image: linear-gradient(rgba(107, 35, 10, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 35, 10, 0.07) 1px, transparent 1px);
}

.hero-carousel {
  position: relative;
  min-height: min(78vh, 640px);
}

.hero-carousel__bgs {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.05s var(--ease-out-expo);
  pointer-events: none;
}

.hero-carousel__bg.is-active {
  opacity: 1;
  animation: hero-carousel-bg-drift 20s ease-in-out infinite alternate;
}

@keyframes hero-carousel-bg-drift {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.09);
  }
}

.hero-carousel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(5, 3, 2, 0.93) 0%,
    rgba(7, 4, 3, 0.78) 40%,
    rgba(10, 6, 4, 0.5) 68%,
    rgba(12, 8, 5, 0.28) 100%
  );
}

html[data-theme="light"] .hero-carousel__scrim {
  background: linear-gradient(
    105deg,
    rgba(255, 253, 251, 0.94) 0%,
    rgba(255, 252, 248, 0.82) 48%,
    rgba(246, 240, 234, 0.62) 100%
  );
}

.hero-carousel__grid {
  z-index: 2;
  opacity: 0.22;
}

html[data-theme="light"] .hero-carousel__grid {
  opacity: 0.14;
}

.hero-carousel__stage {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding:
    max(clamp(3rem, 7vw, 7rem), env(safe-area-inset-top, 0px))
    0
    max(clamp(3.25rem, 8vw, 8rem), env(safe-area-inset-bottom, 0px));
}

@keyframes carousel-hero-part-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes carousel-hero-btn-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 91, 0, 0.12);
  color: #ffc7a8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-carousel__slide.is-active .hero__eyebrow {
  animation: carousel-hero-part-in 0.78s var(--ease-out-expo) both;
  animation-delay: 0.08s;
}

.hero h1 {
  font-size: clamp(1.65rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: linear-gradient(120deg, #fff 10%, #ffd4bf 55%, #fff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.45));
}

html[data-theme="light"] .hero h1 {
  filter: drop-shadow(0 2px 16px rgba(255, 255, 255, 0.5));
}

.hero-carousel__slide.is-active h1 {
  animation: carousel-hero-part-in 0.88s var(--ease-out-expo) both;
  animation-delay: 0.16s;
}

.hero p.lead {
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  color: var(--color-muted);
  max-width: 560px;
  overflow-wrap: anywhere;
}

.hero-carousel__slide.is-active .lead {
  animation: carousel-hero-part-in 0.82s var(--ease-out-expo) both;
  animation-delay: 0.26s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-carousel__slide.is-active .hero__actions .btn--primary {
  animation: carousel-hero-btn-in 0.76s var(--ease-out-expo) both;
  animation-delay: 0.38s;
}

.hero-carousel__slide.is-active .hero__actions .btn--ghost {
  animation: carousel-hero-btn-in 0.76s var(--ease-out-expo) both;
  animation-delay: 0.5s;
}

.hero-carousel__btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.hero-carousel__btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 91, 0, 0.55);
  color: #fff;
}

html[data-theme="light"] .hero-carousel__btn-ghost {
  border-color: rgba(107, 35, 10, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-ink);
}

html[data-theme="light"] .hero-carousel__btn-ghost:hover {
  color: var(--color-ink);
  border-color: rgba(255, 91, 0, 0.45);
}

/* ——— Hero carrossel (home) ——— */
.hero-carousel__slides {
  position: relative;
  min-height: min(48vw, 380px);
}

@media (min-width: 720px) {
  .hero-carousel__slides {
    min-height: 300px;
  }
}

.hero-carousel__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.99);
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    visibility 0.85s linear;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-border);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out-expo),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-carousel__dot:hover {
  background: rgba(255, 91, 0, 0.45);
  transform: scale(1.15);
}

.hero-carousel__dot.is-active {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.25);
  transform: scale(1.2);
}

/* Hero carrossel — mobile: legibilidade, altura com barra de URL, dots tocáveis */
@media (max-width: 639px) {
  .hero-carousel {
    min-height: clamp(380px, 70vh, 560px);
    min-height: clamp(380px, 70dvh, 560px);
  }

  .hero-carousel__bg {
    background-position: center 22%;
  }

  .hero-carousel__scrim {
    background: linear-gradient(
      180deg,
      rgba(5, 3, 2, 0.9) 0%,
      rgba(7, 4, 3, 0.78) 42%,
      rgba(10, 6, 4, 0.62) 100%
    );
  }

  html[data-theme="light"] .hero-carousel__scrim {
    background: linear-gradient(
      180deg,
      rgba(255, 253, 251, 0.95) 0%,
      rgba(255, 252, 248, 0.88) 45%,
      rgba(246, 240, 234, 0.78) 100%
    );
  }

  .hero-carousel__stage {
    max-width: none;
    padding-top: max(clamp(1.35rem, 5vw, 2.25rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(1.25rem, 4.5vw, 2rem), env(safe-area-inset-bottom, 0px));
  }

  .hero-carousel__slides {
    min-height: 0;
  }

  .hero-carousel__slide {
    text-align: center;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
    padding: 0.3rem 0.72rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.8vw, 2.05rem);
    line-height: 1.14;
    margin-bottom: 0.7rem;
  }

  .hero p.lead {
    margin-bottom: 1.25rem;
    font-size: clamp(0.9rem, 3.6vw, 1.02rem);
    line-height: 1.55;
    max-width: none;
  }

  .hero-carousel__dots {
    justify-content: center;
    margin-top: 1.1rem;
    gap: 0.15rem;
    row-gap: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .hero-carousel__dot {
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel__dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-border);
    transition:
      transform 0.25s var(--ease-out-expo),
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  .hero-carousel__dot:hover {
    background: transparent;
    transform: none;
  }

  .hero-carousel__dot:hover::before {
    background: rgba(255, 91, 0, 0.45);
    transform: scale(1.12);
  }

  .hero-carousel__dot.is-active {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .hero-carousel__dot.is-active::before {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.25);
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
    transform: none;
  }

  .hero-carousel__slide:not(.is-active) {
    display: none;
  }

  .hero-carousel__dots {
    display: none;
  }

  .hero-carousel__bg.is-active {
    animation: none;
    transform: none;
  }

  .hero-carousel__slide.is-active .hero__eyebrow,
  .hero-carousel__slide.is-active h1,
  .hero-carousel__slide.is-active .lead,
  .hero-carousel__slide.is-active .hero__actions .btn {
    animation: none !important;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--color-muted);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) and (min-width: 540px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.4s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(var(--card-anim-lift)) scale(var(--card-anim-scale));
    border-color: rgba(255, 91, 0, 0.35);
    box-shadow:
      var(--shadow-card),
      var(--card-anim-glow);
  }
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 91, 0, 0.15);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ——— Portfolio / blog cards ——— */
.grid-portfolio {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) and (min-width: 600px) {
  .grid-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(var(--card-anim-lift)) scale(var(--card-anim-scale));
    box-shadow: var(--shadow-card), var(--card-anim-glow);
  }
}

.tile__media {
  aspect-ratio: 16 / 10;
  background: var(--tile-media-bg);
  position: relative;
  overflow: hidden;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media img {
    transform: scale(var(--card-media-zoom));
  }
}

.tile__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.tile__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.tile__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

/* ——— Why us / testimonials ——— */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.quote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 0;
  color: var(--quote-text);
}

.quote footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.testimonials-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonials-marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: testimonials-scroll 34s linear infinite;
}

.testimonials-marquee:hover .testimonials-marquee__track {
  animation-play-state: paused;
}

.testimonials-marquee__item {
  width: min(360px, 82vw);
  margin: 0;
  flex: 0 0 auto;
}

@keyframes testimonials-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(165deg, var(--color-surface), var(--color-surface-2));
  box-shadow: var(--shadow-card), 0 0 40px rgba(255, 91, 0, 0.12);
  padding: 1.1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

/* ——— CTA band ——— */
.cta-band {
  margin: 3rem 0 0;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 91, 0, 0.2), rgba(107, 35, 10, 0.55));
  border: 1px solid rgba(255, 91, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-band .flex {
    justify-content: center;
    width: 100%;
  }

  .cta-band .btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
  }
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--cta-band-text);
}

/* ——— Stats (home) ——— */
.section--stats {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 91, 0, 0.14), rgba(107, 35, 10, 0.22));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .stat-item__label {
    font-size: 0.76rem;
  }
}

.stat-item {
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.stat-item:hover {
  background: rgba(255, 91, 0, 0.08);
  transform: translateY(-2px);
}

.stat-item__value {
  display: block;
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}

.stat-item__suffix {
  color: var(--color-primary);
  font-weight: 700;
}

.stat-item__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-muted);
}

html[data-theme="light"] .stats-strip {
  background: linear-gradient(145deg, rgba(255, 91, 0, 0.12), rgba(255, 200, 170, 0.2));
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--footer-heading);
  font-size: 0.95rem;
}

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

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer h4.mt-2 {
  margin-top: 1.35rem;
}

.site-footer__contact .site-footer__address {
  line-height: 1.45;
  max-width: 280px;
  color: var(--color-muted);
  font-size: 0.88rem;
  list-style: none;
}

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

/* ——— Page hero inner ——— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(ellipse 75% 65% at 0% 0%, rgba(255, 91, 0, 0.22), transparent 58%);
}

html[data-theme="dark"] .page-hero {
  background: radial-gradient(ellipse 85% 70% at 0% 0%, rgba(255, 91, 0, 0.32), transparent 60%);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--color-muted);
}

.page-hero--compact {
  padding-bottom: 1.15rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.breadcrumb__sep {
  opacity: 0.45;
  user-select: none;
}

.breadcrumb__current {
  color: var(--color-white);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

html[data-theme="light"] .breadcrumb__current {
  color: var(--color-ink);
}

.section--tight-top {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.course-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.course-detail__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .course-detail__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: start;
  }

  .course-detail__media {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.course-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.course-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}

.course-detail__prose {
  margin-top: 0.5rem;
}

.course-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .course-detail__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .course-detail__actions .course-enroll-actions,
  .course-detail__actions .course-enroll-actions .btn,
  .course-detail__actions > .btn {
    width: 100%;
    justify-content: center;
  }
}

.course-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.course-enroll-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e7ddd6;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 91, 0, 0.55);
  outline: none;
}

html[data-theme="light"] label {
  color: #3f2d24;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #fff;
  color: #2a1f1a;
  border-color: rgba(80, 50, 36, 0.28);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #775f53;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  border-color: rgba(255, 91, 0, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.18);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert--ok {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #bff7d2;
}

.alert--err {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffc9c9;
}

html[data-theme="light"] .alert--ok {
  background: rgba(10, 160, 84, 0.12);
  border-color: rgba(10, 160, 84, 0.35);
  color: #115f37;
}

html[data-theme="light"] .alert--err {
  background: rgba(216, 53, 53, 0.12);
  border-color: rgba(216, 53, 53, 0.35);
  color: #7f1d1d;
}

/* ——— Article ——— */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article__meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.article__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.prose {
  color: var(--prose-body);
  font-size: clamp(0.98rem, 2.8vw, 1.05rem);
  overflow-wrap: anywhere;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ——— WhatsApp float ——— */
@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  50% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.35),
      0 0 0 6px rgba(37, 211, 102, 0.2);
  }
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-out-expo);
  animation: wa-pulse 3.2s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.06);
  animation: none;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo),
    filter 0.55s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

.reveal-stagger > .reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-stagger > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-stagger > .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-stagger > .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* Cursos / cards interactivos */
.course-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

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

.course-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.05rem, 3.5vw, 1.35rem) clamp(1rem, 3.5vw, 1.35rem) 1.4rem;
  background: linear-gradient(155deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.4s var(--ease-out-expo);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 91, 0, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .course-card:hover {
    transform: translateY(var(--card-anim-lift)) scale(var(--card-anim-scale));
    border-color: rgba(255, 91, 0, 0.35);
    box-shadow: var(--shadow-card), var(--card-anim-glow);
  }

  .course-card:hover::before {
    transform: translateX(100%);
  }
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 91, 0, 0.14);
  color: #ffb894;
}

html[data-theme="light"] .course-tag {
  color: #8b3d12;
  background: rgba(255, 91, 0, 0.18);
}

.course-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.course-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.course-card__foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-muted);
}

@media (max-width: 400px) {
  .course-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .course-card__foot .course-card__links {
    width: 100%;
  }

  .course-card__foot .course-card__links .btn {
    width: 100%;
    justify-content: center;
  }
}

.course-card__hl {
  color: var(--color-primary);
  font-weight: 600;
}

.course-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 91, 0, 0.15);
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.course-card__media {
  margin-top: calc(-1 * clamp(1.05rem, 3.5vw, 1.35rem));
  margin-right: calc(-1 * clamp(1rem, 3.5vw, 1.35rem));
  margin-bottom: 0.85rem;
  margin-left: calc(-1 * clamp(1rem, 3.5vw, 1.35rem));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card__accord {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-card__details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.12);
  padding: 0;
  font-size: 0.85rem;
}

html[data-theme="light"] .course-card__details {
  background: rgba(0, 0, 0, 0.03);
}

.course-card__details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  list-style: none;
}

.course-card__details summary::-webkit-details-marker {
  display: none;
}

.course-card__details .prose {
  padding: 0 0.65rem 0.65rem;
  margin: 0;
  font-size: 0.88rem;
}

.course-card__details .prose > *:first-child {
  margin-top: 0;
}

/* ——— Team (home) ——— */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  animation: team-card-float 5.8s ease-in-out infinite;
  animation-delay: calc(var(--team-card-index, 0) * 0.18s);
}

.team-card__media {
  width: clamp(92px, 20vw, 132px);
  height: clamp(92px, 20vw, 132px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 91, 0, 0.35);
  background: var(--tile-media-bg);
  margin-bottom: 0.7rem;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(255, 91, 0, 0.08);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 91, 0, 0.24), rgba(26, 21, 18, 0.9));
}

.team-card .team-card__role {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-primary);
}

.team-card h3 {
  margin-bottom: 0.15rem;
}

.team-card p {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(var(--card-anim-lift)) scale(var(--card-anim-scale));
    box-shadow:
      var(--shadow-card),
      var(--card-anim-glow);
  }

  .team-card:hover .team-card__media {
    transform: scale(var(--card-media-zoom));
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.32),
      0 0 0 8px rgba(255, 91, 0, 0.13);
  }
}

@keyframes team-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--card-float-y));
  }
}

/* ——— Admin (scoped) ——— */
.admin-body {
  --admin-bg: #0b0d12;
  --admin-surface: #121722;
  --admin-surface-2: #171d2a;
  --admin-border: #273046;
  --admin-text: #f7f9ff;
  --admin-muted: #c7d1ee;
  --admin-primary-soft: rgba(255, 123, 48, 0.18);
  --admin-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 10% -10%, rgba(255, 123, 48, 0.16), transparent 40%), var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  line-height: 1.55;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(230px, 260px) 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: linear-gradient(175deg, #111622, #0e1420);
  border-right: 1px solid var(--admin-border);
  padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.25rem 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.admin-sidebar__brand {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.admin-sidebar__nav {
  display: grid;
  gap: 0.25rem;
}

.admin-sidebar a {
  display: block;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  color: var(--admin-muted);
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), color 0.2s var(--ease), border-color 0.22s var(--ease);
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  background: var(--admin-primary-soft);
  border-color: rgba(255, 123, 48, 0.32);
  color: #fff;
}

.admin-sidebar__user {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
  font-size: 0.9rem;
}

.admin-sidebar__user-name {
  font-weight: 600;
  color: #fff;
}

.admin-sidebar__user-role {
  margin-top: 0.2rem;
  color: var(--admin-muted);
  font-size: 0.84rem;
}

.admin-sidebar__logout {
  width: 100%;
  padding: 0.54rem;
}

.admin-main {
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1.5rem;
  padding-left: max(clamp(0.85rem, 3vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(0.85rem, 3vw, 2rem), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 20%);
}

.admin-body a {
  color: #ffe1d0;
}

.admin-body a:hover {
  color: #ffffff;
}

.admin-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.admin-stat-label {
  font-size: 0.84rem;
}

.admin-stat-value {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.2rem 0 0.45rem;
  color: #fff;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-bottom: 0.25rem;
}

.admin-table-wrap .admin-table {
  min-width: 520px;
}

.admin-table-wrap--wide .admin-table {
  min-width: 680px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table thead {
  background: #131a28;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--admin-border);
  padding: 0.7rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #ecf1ff;
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-card {
  background: linear-gradient(165deg, var(--admin-surface), var(--admin-surface-2));
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 1.25rem;
  max-width: 900px;
  box-shadow: var(--admin-shadow);
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.3s var(--ease),
    box-shadow 0.35s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .admin-card:hover {
    transform: translateY(var(--card-anim-lift)) scale(var(--card-anim-scale));
    border-color: rgba(255, 123, 48, 0.36);
    box-shadow:
      var(--admin-shadow),
      0 0 30px rgba(255, 123, 48, 0.15);
  }
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 91, 0, 0.2), transparent 40%), #0c0c0d;
}

.admin-login__box {
  width: min(400px, 100%);
  background: linear-gradient(170deg, #141926, #101521);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 2rem;
}

.admin-body .text-muted {
  color: var(--admin-muted);
}

.admin-body label {
  color: #f0f4ff;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  background: #0f1420;
  color: #f7f9ff;
  border-color: var(--admin-border);
}

.admin-body input::placeholder,
.admin-body textarea::placeholder {
  color: #b7c2df;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: rgba(255, 123, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 123, 48, 0.2);
}

.admin-body .btn--ghost {
  color: #f3f6ff;
  border-color: #4a577b;
}

.admin-body .btn--ghost:hover {
  color: #ffffff;
  border-color: #ff8a47;
  background: rgba(255, 138, 71, 0.12);
}

.admin-body .alert--err {
  color: #ffdcdc;
  border-color: rgba(255, 150, 150, 0.5);
}

.admin-body .alert--ok {
  color: #d7ffe4;
  border-color: rgba(126, 244, 168, 0.52);
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--admin-border);
    padding-top: max(0.8rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.9rem;
  }

  .admin-sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .admin-sidebar__user {
    margin-top: 0.55rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 580px) {
  .admin-sidebar__nav {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
  }

  .admin-card {
    padding: 1rem;
    border-radius: 12px;
  }
}

/* Utilities */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-muted);
}

.flex {
  display: flex;
}

.gap {
  gap: 0.75rem;
}

.inline-form {
  display: inline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

@media (max-width: 900px) {
  .service-split {
    grid-template-columns: 1fr;
  }
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-side a.is-active {
  color: #fff !important;
  background: rgba(255, 91, 0, 0.14);
}

/* Ajustes modo claro */
html[data-theme="light"] .hero h1 {
  background: linear-gradient(120deg, #1a100c 6%, #9a4518 48%, #2c1818 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero__eyebrow {
  color: #7a3410;
  background: rgba(255, 91, 0, 0.2);
}

html[data-theme="light"] .page-hero {
  background: radial-gradient(ellipse 75% 60% at 0% 0%, rgba(255, 91, 0, 0.16), transparent 62%);
}

html[data-theme="light"] .cta-band {
  background: linear-gradient(120deg, rgba(255, 91, 0, 0.16), rgba(107, 35, 10, 0.1));
  border-color: rgba(255, 91, 0, 0.28);
}

html[data-theme="light"] .blog-side a.is-active {
  color: var(--color-white) !important;
  background: rgba(255, 91, 0, 0.18);
}

html[data-theme="light"] .blog-side a:not(.is-active):hover {
  color: var(--color-white);
  background: rgba(107, 35, 10, 0.06);
}

.section--warm-tint {
  background: linear-gradient(180deg, transparent, rgba(255, 91, 0, 0.07));
}

html[data-theme="light"] .section--warm-tint {
  background: linear-gradient(180deg, transparent, rgba(255, 91, 0, 0.04));
}

@media (prefers-reduced-motion: reduce) {
  :where(.card, .tile, .course-card, .team-card, .admin-card, .stats-strip, .cta-band, .testimonial-form-card),
  .site-footer__grid > div {
    animation: none !important;
  }

  .flying-logo__item {
    animation: none;
    transform: translate3d(0, 0, 0);
    opacity: 0.35;
  }

  html[data-theme="dark"] body::before,
  html[data-theme="dark"] body::after {
    animation: none;
  }

  html[data-theme="dark"] body::after {
    transform: none;
  }

  .logo__mark {
    animation: none;
  }

  .hero-carousel__stage {
    animation: none;
  }

  .hero__eyebrow {
    animation: none !important;
  }

  .reveal {
    filter: none !important;
    transition-duration: 0.35s;
  }

  .reveal-stagger > .reveal:nth-child(n) {
    transition-delay: 0s !important;
  }

  .tile:hover .tile__media img {
    transform: none;
  }

  .course-card::before {
    display: none;
  }

  .team-card {
    animation: none;
  }

  .testimonials-marquee {
    mask-image: none;
  }

  .testimonials-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
  }

  .testimonials-marquee__item {
    width: 100%;
  }

  .modal-overlay {
    padding: 0.55rem;
  }

  .modal-dialog {
    max-height: 92dvh;
    border-radius: var(--radius-md);
    padding: 0.9rem;
  }

  .wa-float {
    animation: none;
  }

  .stat-item:hover {
    transform: none;
  }
}
