:root {
  --blue-dark: #0c2c65;
  --blue-mid: #2b5f9a;
  --yellow-accent: #FFD43B;
  --blue-accent-dark: #1B6DE0;
  --ink: #0b1531;
  --muted: #6b7280;
  --border: #e5e7eb;
  --chip-bg: #fdf9ea;
  --chip-fg: #FFD43B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6
}

img {
  max-width: 100%;
  display: block
}

/* Banner: ahora .jpg */
.banner {
  position: relative;
  width: 100%;
  height: 652px;
  background: url(/imagen/banner/curso-de-python-incitap.jpg) center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  text-align: left;
  overflow: hidden;
  padding-left: 280px;
  padding-bottom: 130px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none
}

.banner>.banner {
  background: none !important;
  height: auto;
  position: relative;
  z-index: 1
}

.banner h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px 0;
  font-size: 60px;
  font-weight: 700;
  line-height: .90;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  border-radius: 0 !important;
  margin-left: 140px
}

.h1-posicion {
  color: #ffffff;
  font-size: 30px !important;
  margin: 10px auto;
  margin-left: 215px !important
}

/* Formulario */
.h2-formulario {
  margin-bottom: 5px;
  text-align: center;
  font-size: 28px
}

.hero-right {
  position: absolute;
  top: 50%;
  right: 200px;
  transform: translateY(-50%);
  width: 480px;
  padding: 28px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(23, 31, 71, .42), rgba(23, 31, 71, .58));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  z-index: 2;
}

.hero-right form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.hero-right select,
.hero-right input {
  padding: 12px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 8px;
  background: #fff;
  color: #111
}

.hero-right p {
  margin: 5px 0;
  font-size: 18px;
  text-align: center
}

.hero-right button {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  text-align: center;
  background: var(--blue-dark);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .2s, transform .12s
}

.hero-right button:hover {
  background: #6B9BCC;
}

/* Titulo */
.h1-wrapper {
  text-align: left;
}

.h1-cuerpo {
  color: #000000;
  font-size: 25px;
  margin-bottom: 10px;
  margin-left: 190px;
}

.h1-power {
  color: #000000;
  font-size: 50px;
  margin: 10px 0;
  background-color: #F2C811;
  border-radius: 10px;
  display: inline-block;
  padding: 5px 15px;
}

/* Breadcrumb / container / headings */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 15px;
  gap: 8px;
  margin: 15px 0;
  color: #555
}

.breadcrumb a {
  color: #575757;
  text-decoration: none;
  font-weight: bold;
  transition: color .3s
}

.breadcrumb a:hover {
  color: var(--blue-dark)
}

.breadcrumb span {
  color: #999
}

.breadcrumb .active {
  color: var(--blue-dark);
  font-weight: bold
}

.container {
  max-width: 1000px;
  margin: 40px auto 25px;
  padding: 0 40px
}

.container>h1 {
  color: #000;
  font-size: 30px;
  margin: 10px 0;
  text-align: left;
  background: none !important;
  border-radius: 0 !important
}

.h2-cuerpo {
  color: #0c2c65;
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 12px
}

.h3-cuerpo {
  color: #000;
  font-size: 16px;
  margin: 10px 0;
  font-weight: 600
}

/* Listas tarjetas */
.curso-listado {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px
}

.curso-listado li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(12, 44, 101, .06);
  transition: transform .12s, box-shadow .15s, border-color .15s
}

.curso-listado li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 44, 101, .10);
  border-color: #d6dbe6;
  background-color: #ffd483;
}

.curso-listado li i {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(46, 134, 255, .18)
}

.curso-listado li,
.curso-listado li p,
.curso-listado li span {
  font-size: 15px;
  color: #1a1a1a
}

/* Carrusel (si lo usas aquí) */
.hero-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 50px 30px;
  width: 100%;
  min-height: 200px;
  background: #e9e6df
}

.carrusel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 10px auto
}

.carrusel-container {
  overflow: hidden;
  box-sizing: border-box
}

.carrusel {
  display: flex;
  gap: 30px;
  transition: transform .5s ease-in-out;
  will-change: transform;
  align-items: flex-start;
  padding-bottom: 10px
}

.curso {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  border: 1px solid rgba(12, 44, 101, .08);
  min-width: 30%;
  margin: 0 10px;
  text-align: center;
  padding: 15px;
  box-sizing: border-box
}

.curso h3 {
  font-size: 16px;
  margin: 10px 0
}

.curso h3 a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: bold
}

.curso h3 a:hover {
  color: #1e5bb8;
  text-decoration: underline
}

.curso.proximamente-card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f5f5f5;
  border: 1px solid rgba(12, 44, 101, .08);
  border-radius: 10px;
  min-height: 240px;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: bold;
  padding: 20px
}

.carrusel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: var(--blue-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  box-shadow: 0 6px 14px rgba(12, 44, 101, .12);
  transition: transform .12s, background .12s
}

.carrusel-btn.prev {
  left: -50px
}

.carrusel-btn.next {
  right: -63px
}

.carrusel-btn:hover {
  background: var(--blue-accent-dark);
  transform: translateY(-50%) scale(1.02)
}

.carrusel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px
}

.carrusel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #d6dbe6;
  cursor: pointer;
  transition: .15s
}

.carrusel-dots button.active {
  background: var(--blue-dark);
  width: 12px;
  height: 12px
}

/* AUDIENCIA (3 tarjetas) */
.aud-grid {
  max-width: 1000px;
  margin-top: 50px;
  margin-bottom: 36px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 0 15px;
  justify-content: center;
  align-items: start
}

.aud-grid>.h3-cuerpo:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1
}

.aud-grid>.h3-cuerpo:nth-of-type(1)+.curso-listado {
  grid-column: 1;
  grid-row: 2
}

.aud-grid>.h3-cuerpo:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1
}

.aud-grid>.h3-cuerpo:nth-of-type(2)+.curso-listado {
  grid-column: 2;
  grid-row: 2
}

.aud-grid>.h3-cuerpo:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1
}

.aud-grid>.h3-cuerpo:nth-of-type(3)+.curso-listado {
  grid-column: 3;
  grid-row: 2
}

.aud-grid>.h3-cuerpo {
  margin: 0;
  width: 100%;
  justify-self: center;
  text-align: center;
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(12, 44, 101, .08);
  padding: 22px 24px 18px;
  color: var(--blue-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2
}

.aud-grid>.h3-cuerpo::before {
  content: "\f501";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: -38px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fdf9ea;
  color: var(--yellow-accent);
  box-shadow: 0 6px 16px rgba(46, 134, 255, .18)
}

.aud-grid>.h3-cuerpo:nth-of-type(1)::before {
  content: "\f501"
}

.aud-grid>.h3-cuerpo:nth-of-type(2)::before {
  content: "\f201"
}

.aud-grid>.h3-cuerpo:nth-of-type(3)::before {
  content: "\f121"
}

.aud-grid>.h3-cuerpo+.curso-listado {
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(12, 44, 101, .10);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden
}

.aud-grid>.h3-cuerpo+.curso-listado::after {
  content: none !important;
  display: none !important
}

.aud-grid>.h3-cuerpo+.curso-listado>li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 44, 101, .06);
  width: 100%;
  min-width: 0
}

.aud-grid>.h3-cuerpo+.curso-listado>li:hover {
    background-color: #ffd483;
}

.aud-grid>.h3-cuerpo+.curso-listado>li i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--yellow-accent);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(46, 134, 255, .18)
}

/* Oportunidades */
.curso-listado.oportunidades {
  grid-template-columns: repeat(3, minmax(295px, 1fr));
  gap: 16px 18px
}

/* Responsive */
@media (max-width:768px) {

  /* Banner centrado y sin offsets de desktop */
  .banner {
    /* puedes microajustar el formulario con esta var (px) */
    --form-shift: -12px;
    height: auto;
    min-height: 480px;
    padding: 56px 18px 16px;
    /* quita el padding-left de desktop */
    align-items: center;
    /* centrar contenido */
    text-align: center;
    /* centrar texto */
    background-position: center;
    /* asegura foco de la imagen */
  }

  .banner::before {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, .25) 0%,
        rgba(0, 0, 0, .12) 55%,
        rgba(0, 0, 0, 0) 100%);
  }

  /* Título principal */
  .banner h1 {
    font-size: clamp(28px, 10vw, 44px);
    line-height: 1.05;
    margin: 0 auto 10px !important;
    /* anula margin-left de desktop */
    max-width: 18ch;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  }

  /* Subtítulo/parte adicional del h1 (si lo usas) */
  .h1-posicion {
    display: block;
    font-size: 22px !important;
    margin: 6px auto 0 !important;
    /* anula margin-left de desktop */
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  }

  .h2-formulario {
    font-size: 18px;
  }

  /* Formulario dentro del banner */
  .hero-right {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(460px, 94%);
    margin: 8px auto 14px;
    /* centrado */
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(23, 31, 71, .35), rgba(23, 31, 71, .55));
    transform: translateX(var(--form-shift));
    /* ajusta a izq/der si lo necesitas */
  }

  /* Cuerpo */
  .container {
    padding: 0 18px;
  }

  .h1-power {
    font-size: 45px;
  }

  .curso-listado {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .h1-wrapper {
    padding-left: 20px;
  }

  .h1-cuerpo {
    margin-left: 160px;
  }

  .aud-grid {
    max-width: 640px;
    margin-inline: auto;
    padding-inline: 14px;
    display: grid;
    grid-template-columns: 1fr;
    /* una sola columna */
    gap: 28px;
    /* espacio entre tarjetas */
    margin-top: 10px;
  }

  /* título-tarjeta */
  .aud-grid>.h3-cuerpo {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin: 20px 0 10px;
    /* baja un poco para el icono */
    padding: 20px 14px;
    font-size: 1.05rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(12, 44, 101, .08);
    text-align: center;
    padding-top: 30px;
  }

  .aud-grid>.h3-cuerpo::before {
    top: -26px;
    /* icono más cerca */
    width: 48px;
    height: 48px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(46, 134, 255, .18);
  }

  /* lista-tarjeta */
  .aud-grid>.h3-cuerpo+.curso-listado {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding: 20px;
    margin-top: -25px;
    gap: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(12, 44, 101, .08);
  }

  .aud-grid>.h3-cuerpo+.curso-listado>li {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .98rem;
  }

  .aud-grid>.h3-cuerpo+.curso-listado>li i {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .curso-listado.oportunidades {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 5px 10px;
  }
}