/* ---------- 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: 0;
}

p {
  font-weight: 400;
  line-height: 1.6;
}

/* Centrar todos los títulos de secciones y subtítulos */
.titulo-seccion,
.hero-text h1,
.hero-text p,
.contacto-texto,
.testimonio p {
  text-align: center;
}

/* ---------- ESPACIADO ENTRE SECCIONES ---------- */
section {
  padding: 20px 20px;   
  margin: 20px 0;       
}

.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; 
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  text-align: center;
  color: #333;
  padding: 20px 20px;
  background: url('/Imagenes/Banner.png') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0); 
}

.hero-text {
  position: relative; 
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.3em;
  margin-bottom: 0;
}

/* ---------- TITULOS DE SECCIONES ---------- */
.titulo-seccion {
  font-size: 2em;
  margin: 20px 0 20px 0;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

/* Ajuste de separación títulos de otras secciones */
#testimonios .titulo-seccion,
#instagram .titulo-seccion,
#contacto .titulo-seccion,
.mapa .titulo-seccion {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ---------- 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: #000000;
  cursor: pointer;
  z-index: 2100;
  margin-right: 3px;
}

/* Menú desplegable */
.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;
}

.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;; 
}

.banner {
  background: #E3F8BC;
  color: #000000;
  text-align: center;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 70px; 
}

.banner a.btn-banner {
  background: #BCD292;
  color: #000000;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}


.banner {
  background: #78C904;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 0; 
}


.banner a.btn-banner {
  background: #BCD292;
  color: #000000;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}


.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; 
  background-color: #a2c98a;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.hero {
  position: relative;
  margin-top: 80px; 
  z-index: 5;
}

/* ---------- BANNER VERDE ---------- */
.banner {
  background: #E3F8BC;
  color: #000000;
  text-align: center;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 70px; 
}

.banner a.btn-banner {
  background: #BCD292;
  color: #000000;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;   
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.banner a.btn-banner:hover {
  background: #A4BC7A;   
  transform: scale(1.08);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 
}

/* SECCIÓN CÓMO ME INSCRIBO */
.inscripcion {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

.inscripcion-container {
  display: flex;
  align-items: center; 
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 400px;
}

.video-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  background-color: #d9d9d9;
  border: 3px solid #BCD292;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 60px; 
}

.play-icon {
  font-size: 48px;
  color: #678A6B;
}

.inscripcion-texto {
  max-width: 500px;
  text-align: left;
}

.inscripcion-texto h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background-color: #BCD292;
  padding: 15px 40px;
  border-radius: 40px;   
  display: inline-block;
  margin-top: 60px;
  margin-bottom: 40px;
}

.inscripcion-texto p,
.inscripcion-texto ul {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0;
}

.inscripcion-texto ul {
  padding-left: 20px;
}

.contacto {
  margin-top: 20px;
  font-weight: bold;
}

.video-texto {
  font-size: 18px;
  color: #678A6B;
  font-weight: 600;
  text-align: center;
  padding: 15px 25px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ----------------------------- */
/* BOTÓN INSCRIBITE 
/* ----------------------------- */

.btn-inscribite {
  display: inline-block;
  padding: 12px 25px;
  background: #BCD292;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  margin-top: 25px;
}

.btn-inscribite:hover {
  background: #A4BC7A; 
  transform: scale(1.08);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* ---------- CURSOS ---------- */
.titulo-cursos {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  color: #333;
}

/* ---------- BOTONES DE CATEGORÍAS ---------- */
.categoria-buttons {
  display: flex;
  justify-content: center;
  gap: 15px; 
  margin-top: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap; 
}

.categoria-btn {
  font-family: 'Josefin Sans', sans-serif;
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: filter 0.3s;
  font-size: 1rem;
}

.categoria-btn:hover {
  filter: brightness(1.2);
}

.categoria-btn.active {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Colores por categoría */
.categoria-btn[data-categoria="diseno"]     { background: #C90469; }
.categoria-btn[data-categoria="grafica"] { background: #BCD292; }
.categoria-btn[data-categoria="marketing"]  { background: #5FBCBF; }
.categoria-btn[data-categoria="digital"]       { background: #F7D803; color: #ffffff; }

/* Botones principales de categoría */
.categoria-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.categoria-btn {
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.categoria-btn:hover {
  filter: brightness(1.2);
}

.categoria-btn.active {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ==== GRID DE CURSOS ==== */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* ==== CARD ==== */
.course-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  width: 100%;
  max-width: 300px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.card-content p {
  font-size: 0.9rem;
  color: #444;
  margin: 0.25rem 0;
}

.info-adicional {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.8rem;
}

/* ==== BOTÓN ==== */
.btn-masinfo {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

/* ==== COLORES POR CATEGORÍA ==== */
#diseno .course-card h3,
#diseno .btn-masinfo {
  color: #C90469;
}

#diseno .btn-masinfo {
  border: 2px solid #E5097F;
}
#diseno .btn-masinfo:hover {
  background-color: #E5097F;
  color: #fff;
}

#grafica .course-card h3,
#grafica .btn-masinfo {
  color: #678A6B;
}
#grafica .btn-masinfo {
  border: 2px solid #BCD292;
}
#grafica .btn-masinfo:hover {
  background-color: #BCD292;
  color: #fff;
}

#marketing .course-card h3,
#marketing .btn-masinfo {
  color: #0F666B;
}
#marketing .btn-masinfo {
  border: 2px solid #5FBCBF;
}
#marketing .btn-masinfo:hover {
  background-color: #5FBCBF;
  color: #fff;
}

#digital .course-card h3 {color:#444}
#digital .btn-masinfo {
  color: #F7D803;
}
#digital .btn-masinfo {
  border: 2px solid #F7D803;
}
#digital .btn-masinfo:hover {
  background-color: #F7D803;
  color: #545454;
}

.categoria-btn {
  font-weight: 600;
  color: #fff;
  background-color: #333; 
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4); 
}

.categoria-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


/* Colores por categoría */
.categoria-diseno { background: #E5097F; }
.categoria-grafica { background: #BCD292; }
.categoria-marketing { background: #5FBCBF; }
.categoria-digital { background: #F7D803; color:#545454; }

.categoria-diseno:hover { background: #F772C1; }
.categoria-grafica:hover { background: #E3F8BC; }
.categoria-marketing:hover { background: #5FBCBF; }
.categoria-digital:hover { background: #FFF691; }

/* Ocultar secciones por defecto */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Responsivo cursos */
@media(max-width:1024px) { .cursos-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:768px) { .cursos-grid { grid-template-columns: 1fr; } }


/* --- SECCIÓN QUIÉNES SOMOS --- */
#quienes {
  background-color: #ffffff;
  padding: 60px 10%;
}

.titulo-quienes {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background-color: #33b5aa;
  padding: 15px 40px;
  border-radius: 40px;
  display: inline-block;
  margin-top: 10px;     
  margin-bottom: 5px;  
  margin-left: 0;       
}


.quienes-container {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;


}

.quienes-texto {
  flex: 1 1 55%;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
  text-align: justify;
}

/* Enlace dentro del texto */
.link-cfp {
  color: #5FBCBF;
  font-weight: 600;
  text-decoration: none;
}

/* Contenedor del video */
.quienes-video {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

/* Recuadro del video */
.video-placeholder-quienes {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  background-color: #ccc;
  border: 4px solid #0F9398; 
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.insta-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.insta-video-container iframe {
  max-width: 400px;
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* ---------- TESTIMONIOS ---------- */
#testimonios {
  padding: 60px 20px;
  text-align: center;
}

.titulo-experiencias {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
  margin-bottom: 40px; 
}


.testimonios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonio {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonio img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
}

.testimonio p {
  font-style: italic;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.nombre-testimonio {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.turquesa { color: #0F9398; }   
.verde    { color: #678A6B; }   
.magenta  { color: #E5097F; }  

@media (max-width: 768px) {
  .testimonio { width: 90%; }
}

/* ---------- INSTAGRAM ---------- */
#posteos {
  padding: 60px 5%;
  text-align: center;
}

.titulo-posteos {
  background-color: #E5097F; 
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  padding: 15px 40px;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 40px;

  /* centrado */
  margin-left: auto;
  margin-right: auto;
}

/* Contenedor general */
.instagram-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cada tarjeta (iframe envuelto) */
.insta-wrap {
  flex: 1 1 320px;
  max-width: 350px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  position: relative;
}

/* El iframe de Instagram */
.insta-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden !important;
  scrollbar-width: none !important;
}

.insta-wrap iframe::-webkit-scrollbar {
  display: none !important;
}


@media (max-width: 1024px) {
  .insta-wrap {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .instagram-posts {
    gap: 20px;
  }
  .insta-wrap {
    flex: 1 1 90%;
    max-width: 90%;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 480px) {
  .titulo-posteos {
    font-size: 1.3rem;
    padding: 10px 20px;
  }
  .insta-wrap {
    flex: 1 1 100%;
    max-width: 100%;
    border-radius: 12px;
  }
}

/* ---------- BOTONES EXTRA ---------- */

.extras-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.btn-extra {
  padding: 12px 25px;
  background: #5FBCBF;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-extra:hover {
  background: #0F666B;
  transform: scale(1.08);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .btn-extra {
    width: 80%;
    text-align: center;
    font-size: 1rem;
  }
}

/* ---------- FORMULARIO ---------- */
#contacto {
  padding: 60px 5%;
  text-align: center;
}

/* Título */
.titulo-seccion-contacto {
  background-color: #BCD292; 
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  padding: 15px 40px;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 20px;

  /* centrado */
  margin-left: auto;
  margin-right: auto;
}

/* Texto explicativo */
.contacto-texto {
  color: #333;
  font-size: 1rem;
  margin-bottom: 30px;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* Campos */
form input,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

form button {
  font-family: 'Josefin Sans', sans-serif;
  background-color: #BCD292;     
  color: #ffffff;                 
  font-weight: 600;
  border: none;
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;      
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); 
}

form button:hover {
  background-color: #A4BC7A;     
  transform: scale(1.08);         
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 
}


@media (max-width: 768px) {
  form {
    width: 90%;
  }
}

/* ---------- MAPA ---------- */
.mapa {
  margin: 0;
  padding: 0;
}

.mapa-container {
  width: 100%;
  height: 250px; 
  margin: 0;
  padding: 0;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- 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;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px; 
  padding-bottom: 6px; 
}

footer .socials a {
  display: inline-block;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

footer .socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


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; }
}

@media(max-width:1024px) {
  .hero { height: 350px; }
  .course-card { min-width: 200px; }
  .insta-wrap { width: 45%; height: auto; }
  .insta-wrap iframe { width: 100%; height: auto; transform: translateY(0); }
}

@media(max-width:600px) {
  .hero { height: 300px; }
  .course-card { min-width: 180px; }
  .insta-wrap { width: 90%; height: auto; }
  .insta-wrap iframe { width: 100%; height: auto; transform: translateY(0); }
}

/* BOTONES DE CATEGORÍAS (TABS) */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.tab-btn {
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.tab-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.tab-btn.active {
  outline: 3px solid #333;
  transform: scale(1.1);
}

/* CONTENIDO DE LAS SECCIONES */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
  .tab-btn {
    min-width: 45%;
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    min-width: 100%;
  }
}
