/* ------------------------------------------------------
   TIPOGRAFÍA Y BASE
------------------------------------------------------ */
body {
  font-family: 'Josefin Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #2c3e50;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 5px;
}

p {
  font-weight: 400;
  line-height: 1.6;
}

/* textos centrados en títulos importantes */
.titulo-seccion,
.hero-text h1,
.hero-text p,
.contacto-texto,
.testimonio p {
  text-align: center;
}

/* Espaciado general entre secciones */
section {
  padding: 20px 0;
  margin: 0;
}

/* ------------------------------------------------------
   NAVBAR
------------------------------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  box-sizing: border-box;
}

.logo {
  height: 50px;
}

.hamburger {
  display: block;
  font-size: 32px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  margin-right: 3px;
  z-index: 2100;
}

/* Menú móvil */
.nav-links {
  display: none;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  position: absolute;
  top: 50px;
  right: 0;
  width: 250px;
  padding: 15px 0;
  border-top: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-links.show {
  display: flex;
}

.nav-links li {
  list-style: none;
  padding: 12px 0;
  text-align: center;
  width: 100%;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color 0.3s;
}

/* Colores hover según categoría */
.nav-links li:nth-child(1) a:hover { color: #E5097F; }
.nav-links li:nth-child(2) a:hover { color: #678A6B; }
.nav-links li:nth-child(3) a:hover { color: #E5097F; }
.nav-links li:nth-child(4) a:hover { color: #F7D803; }
.nav-links li:nth-child(5) a:hover { color: #0F9398; }
.nav-links li:nth-child(6) a:hover { color: #F7D803; }
.nav-links li:nth-child(7) a:hover { color: #E5097F; }
.nav-links li:nth-child(8) a:hover { color: #678A6B; }
.nav-links li:nth-child(9) a:hover { color: #678A6B; }
.nav-links li:nth-child(10) a:hover { color: #0F9398; }
.nav-links li:nth-child(11) a:hover { color: #678A6B; }

/* ------------------------------------------------------
   BOTONES DE CATEGORÍAS
------------------------------------------------------ */
.categoria-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 90px;
  flex-wrap: wrap;
}

.categoria-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transform: translateY(0);
}

.categoria-btn:hover,
.categoria-btn.active {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* colores de categorías */
.categoria-btn[data-categoria="diseno"]     { background: #E5097F; }
.categoria-btn[data-categoria="grafica"]    { background: #BCD292; }
.categoria-btn[data-categoria="marketing"]  { background: #5FBCBF; }
.categoria-btn[data-categoria="digital"]    { background: #F7D803; }

/* ------------------------------------------------------
   TEXTO CENTRADO DE CURSOS
------------------------------------------------------ */
.texto-centro {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 10px;
  text-align: left;
}

.texto-centro p,
.curso-card p {
  text-align: justify;
  line-height: 1.23;
  margin: 2px 0 6px;
}

/* ------------------------------------------------------
   CAJA DE REQUISITOS
------------------------------------------------------ */
.texto-centro {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

.texto-centro p {
  margin: 10px 60px;        
  line-height: 1.35;
}

.requisitos-box {
  background: #f8f8f8;
  border-radius: 12px;
  margin: 20px 60px;
  text-align: left;
  border-left: 4px solid #E5097F;
  padding: 16px 18px;
}

.titulo-requisitos {
  color: #E5097F;
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.requisitos-box ul {
  margin: 0;
  padding-left: 18px;
}

.requisitos-box li {
  margin-bottom: 6px;
  line-height: 1.28;
}

/* ------------------------------------------------------
   CURSOS - CARDS
------------------------------------------------------ */
.cursos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.curso-card {
  width: 100%;
  max-width: 900px;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.curso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0,0,0,0.12);
}

/* Colores */
.curso-card.diseno h2,
.curso-card.diseno .btn-masinfo { color: #E5097F; }

.curso-card.grafica h2,
.curso-card.grafica .btn-masinfo { color: #BCD292; }

.curso-card.marketing h2,
.curso-card.marketing .btn-masinfo { color: #5FBCBF; }

.curso-card.digital h2,
.curso-card.digital .btn-masinfo { color: #F7D803; }

.curso-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ------------------------------------------------------
   SLIDER
------------------------------------------------------ */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.slide {
  display: none;
  justify-content: center;
  align-items: center;
}

.slide.active {
  display: flex;
}

/* imágenes */
.slider img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* VIDEO CORREGIDO */
.slider video.curso-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

/* flechas */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider button:hover {
  background: rgba(255,255,255,0.95);
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* ------------------------------------------------------
   BOTÓN MÁS INFO
------------------------------------------------------ */
.btn-masinfo {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 1.2rem;
}

.curso-card.diseno .btn-masinfo   { background: #E5097F; color: #fff; }
.curso-card.grafica .btn-masinfo  { background: #BCD292; color: #fff; }
.curso-card.marketing .btn-masinfo{ background: #0F9398; color: #fff; }
.curso-card.digital .btn-masinfo  { background: #F7D803; color: #fff; }

.btn-masinfo:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------ */
@media (max-width: 768px) {
  #nav-links { display: none; flex-direction: column; }
  #hamburger { display: block; }

  .curso-card { padding: 2rem 1rem; }
  .curso-card h2 { font-size: 1.4rem; }

  .btn-masinfo { font-size: 0.9rem; }
  .slider button { font-size: 1.6rem; }
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */
footer {
  background: #ffffff;
  color: #666;
  padding: 36px 12px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 420px;
}

footer .socials a {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .22s, filter .22s;
}

footer .socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer .socials a:hover {
  transform: scale(1.18);
  filter: brightness(1.05);
}

footer p,
footer .copyright {
  margin: 0;
  font-size: 0.88rem;
  color: #9b9b9b;
  text-align: center;
}

@media (max-width: 420px) {
  footer .socials { gap: 14px; max-width: 320px; }
  footer .socials a { width: 40px; height: 40px; }
  footer p { font-size: 0.82rem; }
}
