/* ================================================
   IglesiaFormación Tech — UI/UX Design Pro v2
   Dirección: Sophistication & Trust + calidez espiritual
   Foundation: Azul profundo (hue 250) + Dorado cálido
   Depth: Sombras premium multicapa
   Spacing: Base 8px generosa
   Radius: 12px equilibrado
   Typography: DM Sans + Space Grotesk + JetBrains Mono
   ================================================ */

:root {
  /* Tokens de color — oklch */
  --color-fg: oklch(0.12 0.01 250);
  --color-fg-secondary: oklch(0.38 0.01 250);
  --color-fg-tertiary: oklch(0.52 0.008 250);
  --color-fg-muted: oklch(0.62 0.005 250);
  --color-surface: oklch(0.97 0.005 250);
  --color-surface-raised: #ffffff;
  --color-surface-canvas: oklch(0.985 0.003 250);
  --color-border: oklch(0 0 0 / 0.06);
  --color-border-subtle: oklch(0 0 0 / 0.04);
  --color-border-strong: oklch(0 0 0 / 0.10);
  
  /* Brand — Azul profundo + Dorado */
  --brand-primary: #0a1628;
  --brand-primary-light: #132240;
  --brand-primary-medium: #1a3058;
  --brand-accent: #c9a84c;
  --brand-accent-light: #e8d48b;
  --brand-accent-dim: oklch(0.72 0.12 85);
  --brand-glow: rgba(201, 168, 76, 0.12);
  
  /* Dark mode surfaces */
  --dark-surface-base: #0a0a12;
  --dark-surface-100: #0f0f1a;
  --dark-surface-200: #161622;
  
  /* Tipografía */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-body-alt: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing — base 4px, scale generosa */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows premium multicapa */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04);
  --shadow-md: 
    0 0 0 0.5px oklch(0 0 0 / 0.04),
    0 1px 3px oklch(0 0 0 / 0.06),
    0 4px 12px oklch(0 0 0 / 0.04);
  --shadow-lg:
    0 0 0 0.5px oklch(0 0 0 / 0.05),
    0 2px 4px oklch(0 0 0 / 0.04),
    0 8px 24px oklch(0 0 0 / 0.08);
  --shadow-xl:
    0 0 0 0.5px oklch(0 0 0 / 0.06),
    0 4px 8px oklch(0 0 0 / 0.04),
    0 12px 40px oklch(0 0 0 / 0.10);
  --shadow-glow: 0 0 30px rgba(201, 168, 76, 0.15);

  /* Layout */
  --max-width: 1200px;
  --header-h: 72px;
  
  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ================================================
   RESET
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-surface-canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ================================================
   TIPOGRAFÍA — Modular scale Major Third
   ================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); }
h4 { font-size: 1rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--brand-glow);
  color: var(--brand-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

/* ================================================
   BOTONES
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover {
  background: var(--brand-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
}
.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.header-logo .accent {
  color: var(--brand-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  padding: var(--space-1) 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav a:hover { color: white; }
.nav a:hover::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(165deg, var(--brand-primary) 0%, var(--brand-primary-light) 40%, var(--brand-primary-medium) 100%);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 60%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content h5 {
  color: var(--brand-accent);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 2.8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: var(--space-6);
}

.hero-content h1 .highlight {
  color: var(--brand-accent);
  position: relative;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-accent);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  backdrop-filter: blur(12px);
  transition: all var(--duration-slow) var(--ease-out);
}

.hero-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.06);
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand-accent);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.hero-card-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}

.hero-card-item:hover {
  background: rgba(201, 168, 76, 0.08);
  transform: translateX(4px);
}

.hero-card-item .icon {
  width: 38px;
  height: 38px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ================================================
   SECCIONES
   ================================================ */
.section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  color: var(--color-fg);
  margin-bottom: var(--space-4);
}

.section-header h2 .accent {
  color: var(--brand-accent);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-fg-secondary);
  line-height: 1.7;
}

/* ================================================
   CURSOS
   ================================================ */
.cursos {
  background: white;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
}

.curso-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.curso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.2);
}

.curso-card:hover::before {
  opacity: 1;
}

.curso-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: var(--space-5);
}

.curso-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--color-fg);
  margin-bottom: var(--space-3);
}

.curso-card p {
  font-size: 0.9375rem;
  color: var(--color-fg-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.curso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.curso-tag {
  padding: 4px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-fg-tertiary);
  letter-spacing: 0.01em;
}

.curso-tag.accent {
  background: var(--brand-glow);
  color: var(--brand-accent);
}

/* ================================================
   SOBRE / VISIÓN
   ================================================ */
.sobre {
  background: var(--color-surface-canvas);
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.sobre-text h2 {
  margin-bottom: var(--space-5);
  color: var(--color-fg);
}

.sobre-text p {
  font-size: 1rem;
  color: var(--color-fg-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.sobre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-card {
  padding: var(--space-6);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.15);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card .label {
  font-size: 0.8125rem;
  color: var(--color-fg-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ================================================
   INSCRIPCIÓN
   ================================================ */
.inscripcion {
  background: linear-gradient(165deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  position: relative;
}

.inscripcion .section-header h2 {
  color: white;
}

.inscripcion .section-header h2 .accent {
  color: var(--brand-accent);
}

.inscripcion .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--brand-primary);
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  margin-top: var(--space-2);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.25);
}

.form-submit:hover {
  background: var(--brand-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.form-success .check-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-5);
}

.form-success h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

.form-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* ================================================
   ANUNCIOS
   ================================================ */
.anuncios {
  background: white;
}

.anuncios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.anuncio-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
}

.anuncio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.anuncio-preview img {
  width: 100%;
  display: block;
}

.anuncio-body {
  padding: var(--space-6);
}

.anuncio-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-fg);
  margin-bottom: var(--space-2);
}

.anuncio-body p {
  font-size: 0.875rem;
  color: var(--color-fg-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.anuncio-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-download:hover {
  background: var(--brand-primary-medium);
  transform: translateY(-1px);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: #25D366;
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-share:hover {
  background: #1da851;
  transform: translateY(-1px);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.footer-brand h3 .accent {
  color: var(--brand-accent);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-3);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ================================================
   WHATSAPP FLOTANTE
   ================================================ */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.float-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

/* ================================================
   ANIMACIONES ENTRADA
   ================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}

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

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto var(--space-8);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .sobre-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .sobre-text p {
    max-width: 600px;
    margin: 0 auto var(--space-4);
  }

  .sobre-stats {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: var(--space-6);
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
  }

  .hero-card {
    padding: var(--space-6);
  }

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

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

  .sobre-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .section-header h2 {
    font-size: clamp(1.25rem, 1rem + 2vw, 1.75rem);
  }
}
