/* ============================================================
   main.css — FormaOnline
   ============================================================ */

/* ─── Variables ─── */
:root {
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --primary-light:#e0e7ff;
  --secondary:    #f59e0b;
  --secondary-dk: #d97706;
  --success:      #10b981;
  --danger:       #ef4444;
  --dark:         #0f172a;
  --mid:          #334155;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(15,23,42,.08);
  --shadow-lg:    0 12px 40px rgba(15,23,42,.14);
  --transition:   0.3s cubic-bezier(.4,0,.2,1);
  --nav-h:        68px;
  --font-main:    'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); background: var(--bg); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ─── Overflow global ─── */
html { overflow-x: hidden; }

/* ─── Página system ─── */
.page { display: none; }
.page.active { display: block; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 300;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right var(--transition);
}

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

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--primary-light); }

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

/* Estado abierto del hamburger (animación X) */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary); }

/* ─── Mobile menu ─── */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  /* Animación de apertura */
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu.open {
  display: flex;
  transform: scaleY(1);
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover { background: var(--primary-light); color: var(--primary); }

  
/* ══════════════════════════════════════════
   BOTONES
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-sm   { font-size: 13px; padding: 8px 18px; }
.btn-md   { font-size: 14px; padding: 11px 24px; }
.btn-lg   { font-size: 15px; padding: 14px 32px; border-radius: 10px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.35); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.35); }

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
  background: var(--bg);
  color: var(--mid);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(79,70,229,.7) 100%);
}

.hero .container { position: relative; z-index: 2; padding: 80px 24px; }

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .04em;
}

.hero-stats strong { display: block; font-size: 24px; font-family: var(--font-display); color: var(--white); }

.hero-stats .divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════
   SECCIÓN GENÉRICA
══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
}

.section-header p {
  font-size: 17px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════
   CURSOS
══════════════════════════════════════════ */
.courses { padding: 96px 0; background: var(--white); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.course-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.06); }

.course-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--secondary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
}

.course-body { padding: 20px; }

.course-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.course-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.course-rating { color: var(--secondary); font-weight: 600; }

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.course-price { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--dark); }
.course-price span { font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-left: 6px; }

/* ══════════════════════════════════════════
   CARACTERÍSTICAS
══════════════════════════════════════════ */
.features { padding: 96px 0; background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 28px rgba(99,102,241,.12); transform: translateY(-4px); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════ */
.dashboard { padding: calc(var(--nav-h) + 40px) 0 80px; }

.dashboard-header { margin-bottom: 36px; }
.dashboard-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.dashboard-header p  { color: var(--muted); margin-top: 6px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.stat-icon.blue  { background: #dbeafe; }
.stat-icon.green { background: #d1fae5; }
.stat-icon.amber { background: #fef3c7; }
.stat-icon.violet{ background: #ede9fe; }

.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Mis cursos (dashboard) */
.my-courses-list { display: flex; flex-direction: column; gap: 16px; }

.my-course-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: box-shadow var(--transition);
}

.my-course-item:hover { box-shadow: var(--shadow); }

.my-course-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.my-course-info { flex: 1; min-width: 0; overflow: hidden; }

.my-course-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.my-course-instructor { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.progress-bar {
  background: var(--border);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 50px;
  transition: width .6s ease;
}

.progress-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Certificados */
.certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.cert-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '🏆';
  position: absolute;
  right: 16px; top: 12px;
  font-size: 28px; opacity: .95;
}

.cert-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cert-date  { font-size: 11px; opacity: .75; }
.cert-id    { font-size: 10px; opacity: .5; margin-top: 12px; letter-spacing: .06em; }

/* Actividad */
.activity-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; padding-bottom: 0; }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.activity-text { font-size: 13px; color: var(--mid); line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 72px 0 32px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.footer-brand svg { width: 26px; height: 26px; color: var(--primary); }

.footer h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer a { transition: color var(--transition); }
.footer a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════
   BOTONES FLOTANTES (FAB)
══════════════════════════════════════════ */
.fab-group {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(15,23,42,.2);
  flex-shrink: 0;
  position: relative;
}

/* WhatsApp */
.fab-whatsapp {
  background: #25D366;
  animation: fabPulse 3s ease-out infinite;
}

.fab-whatsapp:hover { animation: none; }

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

/* Tooltip */
.fab::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 4px 12px rgba(15,23,42,.2);
}

.fab-whatsapp::before { border-left: 3px solid #25D366; }
.fab-scroll::before   { border-left: 3px solid var(--primary); }

.fab:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Scroll top */
.fab-scroll {
  background: var(--primary);
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.fab-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-scroll svg { width: 22px; height: 22px; stroke: var(--white); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Hover */
.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 32px rgba(15,23,42,.25);
}

.fab-scroll.visible:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--primary-dark);
}

@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ══════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp .8s .2s both; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* ── Tablet grande (≤1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  .courses-grid  { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid{ grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* El panel de actividad en tablet ocupa el ancho completo */
  .activity-panel { margin-top: 0; }

  /* Cursos: evitar que la grid de metadatos desborde */
  .course-meta { flex-wrap: wrap; gap: 6px; }
}

/* ── Tablet / móvil grande (≤768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero .container { padding: 56px 20px 48px; }
  .hero-content { max-width: 100%; }
  .hero-content p { font-size: 16px; max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stats .divider { display: none; }

  /* Secciones */
  .courses  { padding: 64px 0; }
  .features { padding: 64px 0; }
  .dashboard { padding: calc(var(--nav-h) + 24px) 0 60px; }

  /* Grids */
  .courses-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .certs-grid    { grid-template-columns: 1fr; }

  /* Dashboard: cursos inscritos — evitar overflow en items */
  .my-course-item { flex-wrap: wrap; }
  .my-course-item .btn { margin-top: 8px; width: 100%; }
  .my-course-info { min-width: 0; width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 48px 0 28px; }
}

/* ── Móvil (≤640px) ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero .container { padding: 48px 16px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; }
  .hero-stats > div { font-size: 11px; }
  .hero-stats strong { font-size: 20px; }

  /* Secciones */
  .courses  { padding: 48px 0; }
  .features { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 15px; }

  /* Cursos */
  .course-body { padding: 16px; }
  .course-meta { flex-wrap: wrap; }
  .course-footer { flex-wrap: wrap; gap: 10px; }
  .course-footer .btn { width: 100%; justify-content: center; }

  /* Dashboard */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card  { padding: 16px 12px; gap: 10px; }
  .stat-value { font-size: 22px; }
  .dashboard-header h1 { font-size: 26px; }
  .certs-grid { grid-template-columns: 1fr; }

  /* Mis cursos: thumb más pequeño en móvil */
  .my-course-thumb { width: 56px; height: 56px; }
  .my-course-title { font-size: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 12px; }

  /* FABs */
  .fab-group { bottom: 20px; right: 16px; gap: 10px; }
  .fab { width: 48px; height: 48px; border-radius: 14px; }
  .fab-whatsapp svg { width: 24px; height: 24px; }
  .fab-scroll svg   { width: 20px; height: 20px; }
  .fab::before { display: none; } /* tooltips off en móvil */
}

/* ── Móvil pequeño (≤400px) ── */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 30px; }
  .hero-buttons .btn { font-size: 14px; padding: 12px 20px; }
  .nav-logo { font-size: 17px; }
  .nav-logo svg { width: 22px; height: 22px; }
  .fab-group { right: 12px; bottom: 16px; }
}
