/* ==========================================================================
   HERO DE CAPACITACIONES (DISEÑO CON MOCKUP DE TELÉFONO)
   ========================================================================== */
.cap-hero-section {
  padding: 60px 0;
  background: var(--bg-color);
  overflow: hidden;
}

.cap-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.cap-badge {
  display: inline-block;
  background: rgba(255, 107, 26, 0.15);
  color: var(--orange);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.cap-text-side h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--green-dark);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 25px;
  letter-spacing: -1.5px;
}

.text-orange { color: var(--orange) !important; }
.text-green-dark { color: var(--green-dark) !important; }

.cap-text-side p {
  color: var(--gray);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
}

.cap-hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-solid-orange {
  background: var(--orange);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 107, 26, 0.3);
  transition: all 0.3s;
}
.btn-solid-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 26, 0.4);
}

.btn-outline-white {
  background: var(--white);
  color: var(--green-dark);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 800;
  border: 2px solid rgba(8, 98, 63, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline-white:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Teléfono Mockup a la derecha */
.cap-visual-side {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  height: 650px;
  background: #ffdb58; /* Borde amarillo tipo imagen */
  border-radius: 40px;
  padding: 15px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.4s;
}
.phone-mockup:hover { transform: rotate(0deg) translateY(-10px); }

.phone-screen {
  background: var(--white);
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ==========================================================================
   GRID DE CURSOS (TARJETAS)
   ========================================================================== */
.cap-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.course-featured-card {
  background: #fdf5e0;
  border-radius: 30px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  border: 2px solid rgba(255, 212, 59, 0.2);
}
.course-featured-card:hover { transform: translateY(-8px); }

.cf-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cf-badge-green { color: var(--green-dark); font-weight: 900; font-size: 1.1rem; }
.cf-badge-yellow { background: var(--yellow); color: var(--dark); padding: 6px 16px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; }

.cf-image-container {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cf-image-container img { width: 100%; height: 350px; object-fit: cover; object-position: top; }

.cf-body h3 { color: var(--green-dark); font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.cf-body p { color: var(--gray); font-weight: 500; margin-bottom: 20px; }

.btn-view-course {
  background: transparent; color: var(--orange); font-weight: 800; font-size: 1rem;
  cursor: pointer; border: none; display: flex; align-items: center; transition: color 0.3s;
}
.btn-view-course:hover { color: var(--red); }

/* ==========================================================================
   VISTAS DE DETALLE (Mantiene lo que hicimos previamente)
   ========================================================================== */
.curso-detalle-page { padding: 40px 0 80px; min-height: calc(100vh - 80px); }
.cd-header { max-width: 700px; margin: 0 auto 50px; }
.cd-subtitle { color: var(--orange); font-weight: 900; letter-spacing: 2px; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 15px; }
.cd-header h2 { color: var(--green-dark); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.cd-header p { color: var(--gray); font-size: 1.1rem; }
.cd-margin-top { margin-top: 100px; }

.cd-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cd-info-card { background: var(--white); border-radius: 30px; padding: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); }
.cd-icon-box { width: 50px; height: 50px; background: #fdf5e0; border-radius: 12px; margin-bottom: 25px; display: grid; place-items: center; }
.cd-info-card h3 { color: var(--green-dark); font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; }
.cd-info-card ul { list-style: none; padding: 0; }
.cd-info-card li { color: var(--gray); margin-bottom: 15px; font-size: 1rem; line-height: 1.6; }

.cd-afiches-grid { display: grid; grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; gap: 40px; }
.afiche-wrapper { background: var(--white); padding: 15px; border-radius: 35px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.afiche-wrapper img { width: 100%; border-radius: 20px; display: block; }

.btn-back-home { display: inline-flex; padding: 14px 35px; border-radius: 50px; font-weight: 800; font-size: 1.05rem; cursor: pointer; border: 2px solid var(--green); color: var(--green); background: transparent; transition: all 0.3s;}
.btn-back-home:hover { background: var(--green); color: var(--white); }

/* Clases de Ocultamiento Globales */
.hidden { display: none !important; }

@media (max-width: 980px) {
  .cap-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .cap-text-side p, .cap-hero-buttons { justify-content: center; margin-left: auto; margin-right: auto; }
  .cd-info-grid { grid-template-columns: 1fr; }
}