/* ============================================
   MAIA MASTERS ACADEMY - Main Stylesheet
   Identidad Visual v3 — Crema / Menta / Negro
   Fresco · Editorial · Aspiracional
   ============================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Paleta */
  --cream: #FDFCF5;
  --cream-dark: #F5F3EA;
  --mint: #BEE3DB;
  --mint-light: #D4EDE7;
  --mint-dark: #9DD4C8;
  --black: #1A1A1A;
  --black-soft: #2D2D2D;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-300: #BBBBBB;
  --gray-200: #E0DED6;
  --white: #FFFFFF;

  /* Semánticos */
  --color-bg: var(--cream);
  --color-text: var(--black);
  --color-text-secondary: var(--gray-600);
  --color-accent: var(--mint);
  --color-border: var(--black);

  /* Tipografía */
  --font-main: 'Poppins', 'Montserrat', system-ui, sans-serif;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;
  --space-5xl: 9rem;

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --border: 1px solid var(--black);
  --border-light: 1px solid var(--gray-200);

  /* Transiciones */
  --ease: 280ms ease;

  /* Layout */
  --container: 1100px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: opacity var(--ease);
}

a:hover { opacity: 0.7; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__header h2 {
  margin-bottom: var(--space-md);
}

.section__header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--mint);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  border: var(--border);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: var(--border);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--mint);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--mint-dark);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--cream);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.btn--dark:hover {
  background: var(--black-soft);
  color: var(--cream);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(253, 252, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--ease);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  border-bottom-color: var(--gray-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  z-index: 1001;
  letter-spacing: -0.02em;
}

.header__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 800;
}

/* Hamburger */
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--ease);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__toggle.active span:nth-child(2) {
  opacity: 0;
}
.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav mobile */
.header__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transition: right 0.4s ease;
  z-index: 1000;
}

.header__nav.active {
  right: 0;
}

.header__nav a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--black);
}

.header__nav a:hover,
.header__nav a.active {
  opacity: 0.5;
}

.header__nav .btn {
  margin-top: var(--space-md);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--cream);
  overflow: hidden;
}

/* Círculo decorativo menta */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.25;
  filter: blur(100px);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
}

.hero__content {
  max-width: 620px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--mint);
  border: var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.hero__badge svg {
  color: var(--black);
}

.hero__title {
  color: var(--black);
  margin-bottom: var(--space-lg);
  line-height: 1.05;
  font-weight: 800;
}

.hero__title span {
  display: inline;
  background: linear-gradient(to right, var(--mint-dark), var(--mint));
  background-size: 100% 35%;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.hero__subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.hero__stat {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--ease);
}

.hero__stat:hover {
  background: var(--mint-light);
  transform: translateY(-3px);
}

.hero__stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  display: block;
  letter-spacing: -0.03em;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: var(--space-xs);
  display: block;
  font-weight: 500;
}

/* ============================================
   BENTO BOX — DIFERENCIADORES
   ============================================ */
.value-props {
  padding: var(--space-4xl) 0;
}

.value-props__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.value-card {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--black);
}

.value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  background: var(--white);
  color: var(--black);
  border: var(--border);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
}

.value-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--black-soft);
}

/* ============================================
   CURSOS DESTACADOS
   ============================================ */
.courses {
  padding: var(--space-4xl) 0;
  background: var(--cream-dark);
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--black);
}

.course-card__image {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.course-card__image--entrepreneurship {
  background: var(--mint);
}

.course-card__image--marketing {
  background: linear-gradient(135deg, #F5E6CC, #E8D5B0);
}

.course-card__image--ai {
  background: linear-gradient(135deg, #D4E4F7, #B8D4F0);
}

.course-card__image--hospitality {
  background: linear-gradient(135deg, #F0D4E4, #E4BED4);
}

.course-card__image-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0.35;
}

.course-card__tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--black);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  border: var(--border);
}

.course-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card__title {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.course-card__description {
  font-size: 0.84rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  flex: 1;
  line-height: 1.6;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.78rem;
  color: var(--gray-400);
}

.course-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.course-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: var(--border-light);
}

.course-card__price {
  font-weight: 600;
  color: var(--black);
  font-size: 0.85rem;
}

/* ============================================
   CÓMO FUNCIONA
   ============================================ */
.how-it-works {
  padding: var(--space-4xl) 0;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 auto var(--space-lg);
  background: var(--black);
  color: var(--cream);
  border: var(--border);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.88rem;
  max-width: 260px;
  margin: 0 auto;
  color: var(--gray-600);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: var(--gray-300);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--black);
  color: var(--cream);
}

.testimonials .section__header p {
  color: rgba(253, 252, 245, 0.5);
}

.testimonials .section__tag {
  background: transparent;
  color: var(--mint);
  border-color: var(--mint);
}

.testimonials h2 {
  color: var(--cream);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.testimonial-card__stars {
  color: #FBBF24;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card__text {
  color: rgba(253, 252, 245, 0.75);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--black);
  background: var(--mint);
}

.testimonial-card__avatar--1 { background: var(--mint); }
.testimonial-card__avatar--2 { background: #F5E6CC; }
.testimonial-card__avatar--3 { background: #D4E4F7; }

.testimonial-card__name {
  font-weight: 600;
  color: var(--cream);
  font-size: 0.85rem;
}

.testimonial-card__role {
  font-size: 0.75rem;
  color: rgba(253, 252, 245, 0.4);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-banner__inner {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.35;
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--black);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: var(--black-soft);
  margin-bottom: var(--space-xl);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: rgba(253, 252, 245, 0.55);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.footer__logo .header__logo-icon {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  background: var(--mint);
  color: var(--black);
}

.footer__brand p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(253, 252, 245, 0.4);
}

.footer__heading {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(253, 252, 245, 0.4);
  font-size: 0.86rem;
}

.footer__links a:hover {
  color: var(--cream);
  opacity: 1;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.86rem;
  color: rgba(253, 252, 245, 0.4);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(253, 252, 245, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 252, 245, 0.45);
  transition: all var(--ease);
}

.footer__social-link:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--black);
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(253, 252, 245, 0.06);
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(253, 252, 245, 0.25);
}

.footer__bottom a {
  color: rgba(253, 252, 245, 0.35);
  font-size: 0.78rem;
}

.footer__bottom a:hover { color: var(--cream); opacity: 1; }

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 900;
  transition: all var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  color: white;
  opacity: 1;
}

.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.5s infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   ANIMACIONES
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.06s; }
.animate-delay-2 { transition-delay: 0.12s; }
.animate-delay-3 { transition-delay: 0.18s; }
.animate-delay-4 { transition-delay: 0.24s; }

/* ============================================
   RESPONSIVE — Tablet (640px+)
   ============================================ */
@media (min-width: 640px) {
  .value-props__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .how-it-works__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .step:not(:last-child)::after {
    bottom: auto;
    top: 26px;
    left: auto;
    right: -12px;
    width: 24px;
    height: 1px;
    transform: none;
  }

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

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

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .header__toggle {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .header__nav a {
    font-size: 0.88rem;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    min-height: calc(100dvh - var(--header-h));
    padding: 0;
  }

  .hero__content { flex: 1; }

  .hero__stats {
    flex: 0 0 auto;
    width: 340px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .value-props__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .courses__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cta-banner__inner {
    padding: var(--space-4xl) var(--space-3xl);
  }
}

@media (min-width: 1280px) {
  .hero__stats { width: 380px; }
}
