* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  background: #111; color: #eee; line-height: 1.6;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; }

/* ---------- MÓVIL (base) ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: #000000; padding: 10px 12px; text-align: center;
}
header h1 {
  font-size: 1.1rem; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
header h1 img { height: 32px; width: auto; }

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
nav a {
  color: #ffffff; text-decoration: none; font-weight: bold;
  font-size: clamp(.7rem, 3.2vw, .9rem); padding: 6px 2px;
}
nav a.activo { border-bottom: 2px solid #fefdfc; }

section { padding: 40px 16px; scroll-margin-top: 90px; }
section h2 {
  color: #969496; margin-bottom: 12px;
  font-size: clamp(1.4rem, 5vw, 2rem);
}
section ul { margin: 12px 0 0 20px; }

/* Inicio a todo el ancho */
.hero {
  width: 100%;
  min-height: 70vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 60px 20px;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.8)),
              url('Imagen.jpg') center/cover no-repeat;
}
.hero h2 { font-size: clamp(1.8rem, 7vw, 3.2rem); color: #fff; }
.hero p { font-size: clamp(1rem, 3.5vw, 1.3rem); max-width: 600px; }

.btn {
  display: inline-block; margin-top: 20px; padding: 12px 24px;
  background: #1C1B1C; color: #eae2e2; border-radius: 6px;
  text-decoration: none; font-weight: bold;
}

/* Galería: siempre 3 + 3 */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.galeria img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; display: block;
}
/* Cursos */
.cursos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.curso {
  background: #1b1b1b; border: 1px solid #333; border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.curso h3 { color: #fff; font-size: 1.15rem; }
.curso p { font-size: .95rem; color: #ccc; }
.curso-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.curso-botones a {
  flex: 1 1 140px; text-align: center; text-decoration: none;
  font-weight: bold; font-size: .9rem; padding: 10px 14px; border-radius: 6px;
}
.btn-info { background: #1C1B1C; color: #000; }
.btn-wpp { background: #25D366; color: #fff; }

/* Cursos: próximamente */
.proximamente {
  margin-top: 16px; padding: 32px 20px; text-align: center;
  background: #1b1b1b; border: 2px dashed #8a8588; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.proximamente > i { font-size: 2rem; color: #d4a017; }
.proximamente h3 { color: #fff; font-size: 1.3rem; }
.proximamente p { color: #ccc; max-width: 480px; }
.proximamente .btn-wpp {
  margin-top: 8px; padding: 12px 20px; border-radius: 6px;
  text-decoration: none; font-weight: bold;
}

/* Mapa */
.mapa { margin-top: 12px; border-radius: 8px; overflow: hidden; }
.mapa iframe { width: 100%; height: 280px; border: 0; display: block; }

/* WhatsApp flotante */
.wpp {
  position: fixed; bottom: 20px; right: 20px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* Footer */
footer {
  background: #000; border-top: 2px solid #e5e4e2;
  padding: 40px 16px 90px; /* abajo deja lugar al botón de WhatsApp */
  margin-top: 20px;
}
.footer-contenido {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  max-width: 1000px; margin: 0 auto;
}
.footer-col h3 { color: #70706f; margin-bottom: 8px; }
.footer-col h4 { color: #70706f; margin-bottom: 10px; font-size: 1rem; }
.footer-col p { font-size: .9rem; color: #ccc; margin-bottom: 4px; }
.footer-col > a {
  display: block; color: #ccc; text-decoration: none;
  font-size: .9rem; padding: 3px 0;
}
.footer-col > a:hover { color: #f9f8f6; }

.redes { display: flex; gap: 12px; }
.redes a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1b1b1b; color: #a9a9a6; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .3s, color .3s;
}
.redes a:hover { background: #1C1B1C; color: #000; }

.footer-final {
  max-width: 1000px; margin: 28px auto 0; padding-top: 16px;
  border-top: 1px solid #333; text-align: center;
  font-size: .8rem; color: #999;
}
.footer-final a { color: #faf8f8; text-decoration: none; font-weight: bold; }

/* ---------- TABLET (768px o más) ---------- */
@media (min-width: 768px) {
  header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 32px;
  }
  header h1 { margin: 0; font-size: 1.4rem; justify-content: flex-start; }
  header h1 img { height: 44px; }
  nav { gap: 24px; }
  nav a { font-size: 1rem; padding: 6px 4px; }

  section { padding: 64px 32px; scroll-margin-top: 80px; }
  section:not(.hero) { max-width: 900px; margin: 0 auto; }

  .hero { min-height: 80vh; }
  .galeria { gap: 12px; }
  .mapa iframe { height: 380px; }
  .wpp { width: 64px; height: 64px; font-size: 36px; bottom: 28px; right: 28px; }
  footer { padding: 48px 32px 40px; }
.footer-contenido { grid-template-columns: repeat(2, 1fr); }
.cursos { grid-template-columns: repeat(2, 1fr); }
}




/* ---------- COMPU (1100px o más) ---------- */
@media (min-width: 1100px) {
  section:not(.hero) { max-width: 1000px; }
  .galeria { gap: 16px; }
  .mapa iframe { height: 450px; }
  .btn:hover { background: #fdfcfb; }
  .galeria img { transition: transform .3s; }
  .galeria img:hover { transform: scale(1.04); }
  .cursos { grid-template-columns: repeat(3, 1fr); }
  .footer-contenido { grid-template-columns: 1.5fr 1fr 1.5fr 1fr; }
}