/* ============================
   ACADEMIA TÉCNICA ONLINE
   Shared Stylesheet
   ============================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #1d1d1f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── VARIABLES ── */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-subtle: #a1a1a6;
  --border: rgba(0,0,0,0.07);
  --border-md: rgba(0,0,0,0.12);
  --accent: #1a5fff;
  --accent-fuchsia: #6b7d93;
  --gradient: linear-gradient(135deg, #0d0d14 0%, #001845 40%, #1a5fff 74%, #6b7d93 100%);
  --gradient-hero: linear-gradient(135deg, rgba(13,13,20,0.94) 0%, rgba(0,24,69,0.88) 40%, rgba(26,95,255,0.78) 74%, rgba(107,125,147,0.88) 100%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  height: 56px;
  transition: background 0.35s, box-shadow 0.35s;
}
nav.site-nav.scrolled { background: rgba(255,255,255,0.99); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a5fff, #5a6d84);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #333 !important; transform: scale(1.03) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.025); }
.btn:active { transform: scale(0.985); }
.btn-primary { background: #fff; color: #0d0d14; }
.btn-primary:hover { background: #efeff3; }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-dark { background: #0d0d14; color: #fff; }
.btn-dark:hover { background: #1a1a2e; }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-md);
}
.btn-ghost-dark:hover { background: var(--bg-alt); color: var(--text); }
.btn-accent {
  background: linear-gradient(135deg, #1a5fff, #e01e8c);
  color: #fff;
}
.btn-accent:hover { box-shadow: 0 8px 28px rgba(26,95,255,0.38); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }

/* ── SECTION HEADERS ── */
.section-head { margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-tag.light { color: rgba(255,255,255,0.42); }
.section-title {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 18px;
}
.section-title.light { color: #fff; }
.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 530px;
  line-height: 1.65;
}
.section-subtitle.light { color: rgba(255,255,255,0.5); }

/* ── GLASS MORPHISM ── */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-md);
}

/* ── GRADIENT BACKGROUNDS ── */
.gradient-bg { background: var(--gradient); }

/* ── CARD BASE ── */
.card {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.08);
}
.card-alt {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s, background 0.2s;
}
.card-alt:hover {
  background: var(--bg);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.07);
}

/* ── PILL TAGS ── */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: rgba(255,255,255,0.6);
}
.pill-dark {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  display: inline-block;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ── HERO BASE ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -30% 0 -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 100px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9ab0c8;
  box-shadow: 0 0 8px rgba(154,176,200,0.6);
}
.hero-title {
  font-size: clamp(44px, 7.5vw, 90px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -3.5px;
  color: #fff;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #7aacff 0%, #9ab0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.52);
  font-weight: 300;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.scroll-line {
  width: 44px; height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.65);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { left:-100%; } 100% { left:100%; } }

/* ── HERO MINI (pages internas) ── */
.hero-mini {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 72px;
}
.hero-mini .hero-content { padding: 120px 0 0; }
.hero-mini .hero-title { font-size: clamp(36px, 5.5vw, 68px); }

/* ── FOOTER ── */
footer.site-footer {
  background: #09090f;
  color: rgba(255,255,255,0.38);
  padding: 80px 0 36px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-name {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.82); margin-bottom: 10px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.75; max-width: 240px; }
.footer-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.42);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.82); }
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  padding: 24px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
  flex-wrap: wrap; gap: 8px;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── HELPERS ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.divider { width: 100%; height: 1px; background: var(--border); }
.divider-dark { width: 100%; height: 1px; background: rgba(255,255,255,0.06); }

/* ── HERO WIDE ALIGNMENT (desktop) ── */
@media (min-width: 1024px) {
  .hero .container,
  .hero-mini .container {
    max-width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero-content { max-width: 72vw; }
  .hero-subtitle { max-width: 56vw; font-size: clamp(16px, 1.4vw, 20px); }
  .hero-title { font-size: clamp(48px, 6.5vw, 96px); }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-title { letter-spacing: -2px; }
  .section { padding: 80px 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
