/* ================
   css/index.css —
   ================ */

/* Variables */
:root {
  --blue-dark: #0c2c65;
  --blue-mid: #1652a5;
  --blue-accent: #2E86FF;
  --blue-accent-dark: #1B6DE0;

  --beige: #e9e6df;

  --ink: #0b1531;
  --muted: #6b7280;
  --border: #e5e7eb;

  --chip-bg: #eef6ff;
  /* celeste muy claro para iconos */
  --chip-fg: #2E86FF;
  /* azul corporativo icono */
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}

/* ===========================
   BANNER
   =========================== */
.banner {
  position: relative;
  width: 100%;
  height: 652px;
  background: url(/imagen/banner/curso-tecnologia-incitap.jpg) no-repeat 50% calc(50% + 117px) / cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  text-align: left;
  overflow: hidden;
  padding-left: 250px;
  padding-bottom: 70px;
}

.banner h1 {
  font-size: 60px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, .7);
}

/* Overlay para legibilidad del texto */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Neutraliza el banner anidado de tu HTML */
.banner>.banner {
  background: none !important;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Form del banner */
.h2-formulario {
  margin-bottom: 15px;
  text-align: center;
  font-size: 28px;
}

.hero-right {
  position: absolute;
  top: 50%;
  right: 200px;
  transform: translateY(-50%);
  width: 480px;
  padding: 30px;
  border-radius: 12px;
  background: rgba(59, 51, 128, .2);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}

.hero-right select,
.hero-right input {
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

select:invalid {
  color: #707070;
}

select option {
  color: #000;
}

.hero-right p {
  margin: 5px 0;
  font-size: 18px;
  text-align: center;
}

.hero-right form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-right button {
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  text-align: center;
  background: var(--blue-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
}

.hero-right button:hover {
  background: #6B9BCC;
}

/* ===========================
   MIGAS + CONTENEDOR + TITULARES
   =========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  color: #555;
  font-size: 15px;
}

.breadcrumb a {
  text-decoration: none;
  color: #575757;
  font-weight: 700;
  transition: color .3s;
}

.breadcrumb a:hover {
  color: #0c2c65;
}

.breadcrumb span {
  color: #999;
}

.breadcrumb .active {
  color: #0c2c65;
  font-weight: 700;
}

.container {
  max-width: 1000px;
  margin: 40px auto 25px;
  padding: 0 40px;
  text-align: left;
  line-height: 1.7;
  font-size: 16px;
  color: #000;
}

.container>.titulo {
  color: #000;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 8px 0 14px;
  line-height: 1.2;
}

/* Subtítulos con subrayado pro */
.h2-cuerpo {
  position: relative;
  color: #0c2c65;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 26px 0 14px;
}

.h2-cuerpo::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-accent-dark));
  border-radius: 3px;
  margin-top: 8px;
  opacity: .9;
}

/* Párrafos intro */
.container>p {
  margin: 10px 0 16px;
  color: #111;
}

/* ===========================
   FONDO CARRUSEL
   =========================== */
.hero-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 50px 30px;
  width: 100%;
  min-height: 200px;
  background: var(--beige);
}

/* ===========================
   CARRUSEL
   =========================== */
.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 {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  min-width: 30%;
  margin: 0 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  text-align: center;
}

.curso-img-wrap {
  position: relative;
  border: 15px solid #fff;
  border-radius: 8px;
  overflow: hidden;
}

.curso-img-wrap img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.curso-img-wrap h3 {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  margin: 0;
  padding: 15px 12px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: rgba(12, 44, 101, .75);
  backdrop-filter: blur(4px);
  border-radius: 6px;
}

.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 ease, background .12s ease;
}

.carrusel-btn.prev {
  left: -50px;
}

.carrusel-btn.next {
  right: -63px;
}

.carrusel-btn:hover {
  background: var(--blue-accent-dark);
  transform: translateY(-50%) scale(1.02);
}

.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: 198px;
  color: #0c2c65;
  font-size: 15px;
  font-weight: 700;
  padding: 20px;
}

.carrusel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.carrusel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d6dbe6;
  cursor: pointer;
  transition: .15s;
  padding: 0;
}

.carrusel-dots button.active {
  background: var(--blue-dark);
  width: 12px;
  height: 12px;
}

/* ===========================
   LISTADOS GENERALES (.curso-listado)
   =========================== */
.curso-listado {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.curso-listado li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 44, 101, .08);
  border-radius: 10px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.curso-listado li:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 44, 101, .10);
  border-color: rgba(12, 44, 101, .18);
  background-color: #cddcff;
}

.curso-listado i {
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-accent), var(--blue-accent-dark));
  color: #fff !important;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(27, 109, 224, .25);
}

.curso-listado li,
.curso-listado li p,
.curso-listado li span {
  font-size: 15px;
  color: #1a1a1a;
}

/* ===========================
   “¿A quién…?”
   =========================== */
.h2-cuerpo+p+.curso-listado {
  background: #fff;
  border: 1px solid rgba(12, 44, 101, .08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(12, 44, 101, .06);
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.h2-cuerpo+p+.curso-listado li {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
  background: #fafcff;
  border-radius: 12px;
}

.h2-cuerpo+p+.curso-listado li:hover {
  background: #b4d2ff;
}

.h2-cuerpo+p+.curso-listado li i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--blue-accent) 0%, var(--blue-accent-dark) 100%);
  color: #fff !important;
  font-size: 0;
  box-shadow: 0 8px 22px rgba(27, 109, 224, .25);
}

.h2-cuerpo+p+.curso-listado li i::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 26px;
  content: "\f00c";
}

.h2-cuerpo+p+.curso-listado li:nth-child(1) i::before {
  content: "\f0b1";
}

/* briefcase */
.h2-cuerpo+p+.curso-listado li:nth-child(2) i::before {
  content: "\f135";
}

/* rocket */
.h2-cuerpo+p+.curso-listado li:nth-child(3) i::before {
  content: "\f19d";
}

/* graduation-cap */
.h2-cuerpo+p+.curso-listado li:nth-child(4) i::before {
  content: "\f1ad";
}

/* building */

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .carrusel-wrapper {
    max-width: 100%;
  }

  .carrusel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .curso-listado {
    grid-template-columns: 1fr;
  }

  .h2-cuerpo+p+.curso-listado {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Banner centrado y con resguardo bajo el header */
  .banner {
    --form-shift: -11px;
    height: auto;
    min-height: 480px;
    background-position: center center;
    padding: 56px 18px 16px;
    /* ↑ despega del header; laterales cómodos */
    align-items: center;
    text-align: center;
  }

  .banner h1 {
    font-size: clamp(28px, 10vw, 44px);
    line-height: 1.05;
    margin: 0 auto 14px;
    /* centrado */
    max-width: 18ch;
    /* ancho cómodo de líneas */
    text-wrap: balance;
  }

  /* Formulario dentro del banner */
  .hero-right {
    position: relative;
    top: auto;
    right: auto;
    width: min(460px, 94%);
    margin: 8px auto 10px;
    /* centrado horizontal */
    padding: 20px;
    border-radius: 12px;
    background: rgba(59, 51, 128, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);

    /* === Ajuste fino izquierda/derecha (opcional) ===
       Para mover el formulario:
       .banner{ --form-shift:-10px; }  ← a la izquierda
       .banner{ --form-shift: 12px; }  ← a la derecha */
    transform: translateX(var(--form-shift, 0));
  }

  .hero-right h2 {
    font-size: 18px;
  }

  /* Fondo carrusel */
  .hero-wrap {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  /* Carrusel */
  .carrusel-wrapper {
    max-width: 100%;
    margin: 10px auto;
    padding: 0 20px;
  }

  .carrusel {
    gap: 15px;
    padding-bottom: 5px;
    justify-content: flex-start;
  }

  .curso {
    min-width: 80%;
    margin: 0 auto;
  }

  .curso-img-wrap {
    border: 8px solid #fff;
    border-radius: 6px;
  }

  .curso-img-wrap h3 {
    font-size: 14px;
    padding: 10px 8px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .carrusel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .carrusel-btn.prev {
    left: -5px;
  }

  .carrusel-btn.next {
    right: -5px;
  }

  /* Contenido y listas */
  .container {
    padding: 0 18px;
  }

  .container>.titulo {
    font-size: 24px;
  }

  .h2-cuerpo {
    font-size: 20px;
  }

  .curso-listado {
    grid-template-columns: 1fr;
  }

  .h2-cuerpo+p+.curso-listado {
    grid-template-columns: 1fr;
  }

  /* Contenido y listas */
  .curso.proximamente-card {
    min-height: 180px;
  }
}