/* ===========================
   Variables y base
   =========================== */
:root {
  --blue-dark: #0c2c65;
  --blue-mid: #2b5f9a;
  --blue-accent: #2E86FF;
  --blue-accent-dark: #1B6DE0;

  --ink: #0b1531;
  --muted: #6b7280;
  --border: #e5e7eb;

  --chip-bg: #fff8ee;
  --chip-fg: #F2C811;
}

/* básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #111; background: #ffffff; }

/* ===========================
   BANER Y NAVEGADOR SECUNDARIO
   =========================== */
.banner {
  position: relative;
  width: 100%;
  height: 652px;
  background-image: url(/imagen/banner/curso-de-power-bi-incitap.jpg);
  background-repeat: no-repeat;
  background-position: 50% calc(50% + 117px);
  background-size: cover;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: white; text-align: left; overflow: hidden;
  padding-left: 200px; 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; padding-left:150px;
}
.h1-posicion { color: #ffffff; font-size: 30px !important; margin: 10px auto; margin-left: 269px !important; }

/* Formulario 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(33, 28, 82, 0.432); backdrop-filter: blur(5px);
  color: #fff; border: 1px solid rgba(255,255,255,0.3);
}
.hero-right select { padding: 12px; font-size: 15px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; }
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 input { padding: 12px; font-size: 15px; border: 1px solid #ccc; border-radius: 6px; }
.hero-right button {
  display: block; width: 100%; padding: 5px 0px; font-size: 16px; text-align: center;
  background: var(--blue-dark); color: #fff; border: none; border-radius: 6px; cursor: pointer; transition: background 0.3s;
}
.hero-right button:hover { background: #6B9BCC; }

/* miga de pan */
.breadcrumb { display: flex; align-items: center; font-size: 15px; gap: 8px; margin: 15px 0; color: #555; }
.breadcrumb a { text-decoration: none; color: #575757; font-weight: bold; transition: color 0.3s ease; }
.breadcrumb a:hover { color: #0c2c65; }
.breadcrumb span { color: #999; }
.breadcrumb .active { color: #0c2c65; font-weight: bold; }

/* container */
.container { max-width: 1000px; margin: 40px auto 25px; padding: 0 40px; text-align: left; line-height: 1.6; font-size: 15px; color: #000; }
.h1-power {
  color: #000000; font-size: 50px; margin: 10px 0; background-color: #D9B300; border-radius: 10px;
  display: inline-block; padding: 5px 15px;
}
.h1-wrapper { text-align: left; }
.h2-cuerpo { color: #0c2c65; font-size: 22px; margin: 25px auto; }
.h1-cuerpo { color: #000000; font-size: 25px; margin-bottom: 10px; margin-left: 240px; }

/* Check listado */
.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: #ffea8c; }
.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(255,157,46,0.18);
}
.curso-listado li, .curso-listado li p, .curso-listado li span { font-size: 15px; color: #1a1a1a }

/* Temario numerado */
.curso-numero { counter-reset: temario; list-style: none; padding-left: 0; margin: 16px 0 28px; display: grid; gap: 12px; }
.curso-numero li {
  position: relative; counter-increment: temario;
  padding: 14px 16px 14px 68px; border: 1px solid rgba(255,164,46,.22); border-radius: 14px; background: #fff;
  box-shadow: 0 10px 24px rgba(11,21,49,.06); line-height: 1.55; color: #0b1531;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.curso-numero li::before {
  content: counter(temario, decimal-leading-zero);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: .5px; color: #fff;
  background: linear-gradient(180deg, var(--chip-fg) 0%, #F2C811 100%);
  box-shadow: 0 8px 18px rgba(255,164,46,.35), 0 0 0 6px var(--chip-bg);
}
.curso-numero li:hover { border-color: rgba(255,164,46,.36); box-shadow: 0 16px 36px rgba(11,21,49,.10); background-color: #ffea8c;}

/* Razones PBI */
.pbi-reasons { margin: 18px 0 28px; }
.pbi-reason-grid {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 18px;
}
.pbi-card {
  background: #fff; border: 1px solid var(--chip-bg); border-radius: 16px; box-shadow: 0 10px 24px rgba(11,21,49,.06);
  padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease; min-height: 140px;
}
.pbi-card:hover { transform: translateY(-2px); border-color: rgba(255,164,46,.32); box-shadow: 0 16px 36px rgba(11,21,49,.10); background-color: #ffea8c;}
.pbi-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 20px; background: linear-gradient(180deg, var(--chip-fg) 0%, #F2C811 100%);
  box-shadow: 0 8px 18px rgba(255,164,46,.35), 0 0 0 6px var(--chip-bg);
}
.pbi-card p { margin: 0; color: #000; line-height: 1.55; font-weight: 500; }

/* Llamada a la acción */
.llamada-python {
  width: 100%; max-width: 1075px; margin: 10px auto 30px; border-radius: 12px; padding: 30px;
  background: #F2C811; color: #000000; display: flex; align-items: center; justify-content: center; text-align: center;
}
.llamada--contenido { max-width: 900px; }
.llamada-contenido h2 { font-size: 28px; margin-bottom: 10px; font-weight: 700; color: rgb(0,0,0); }
.llamada-contenido p { font-size: 16px; margin-bottom: 20px; line-height: 1.5; }
.llamada-botones { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.btn-llamada {
  padding: 12px 20px; border-radius: 25px; font-weight: 600; text-decoration: none; transition: 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px; color: #000;
}
.btn-rojo { background: #fff; color: #000000; border: none; }
.btn-rojo:hover { background: #f1f1f1; }

/* =========================
   CARRUSEL
   ========================= */
.carrusel-wrapper { position: relative; max-width: 1000px; margin: 10px auto; }
.carrusel-container { overflow: hidden; box-sizing: border-box; padding-bottom: 40px; }
.carrusel {
  display: flex; gap: 30px; transition: transform 0.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,0.1);
  border: 1px solid rgba(12,44,101,0.08); min-width: 30%; margin: 0 10px; text-align: center; padding: 15px; box-sizing: border-box;
}
.curso img { width: 100%; border-radius: 6px; }
.curso h3 { font-size: 16px; margin: 10px 0; }
.curso h3 a { color: #0c2c65; text-decoration: none; font-weight: bold; }
.curso h3 a:hover { color: #1e5bb8; text-decoration: underline; }

.carrusel-btn {
  position: absolute; top: 45%; transform: translateY(-50%); background: var(--blue-dark); color: #ffffff;
  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,0.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,0.08); border-radius: 10px;
  min-height: 240px; color: #0c2c65; font-size: 22px; font-weight: bold; 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: all .15s ease; padding: 0;
}
.carrusel-dots button.active { background: var(--blue-dark); width: 12px; height: 12px; }

/* ===============================
   FAQ
   =============================== */
.faq { max-width: 990px; margin: 48px auto; }
.faq h2 { text-align: center; margin-bottom: 22px; font-weight: 700; color: #0c2c65; letter-spacing: .2px; }
.faq-item {
  background: #F8FBFF; border: 1px solid #E1ECFF; border-radius: 14px; margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(12,44,101,.05); overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; position: relative;
}
.faq-item:hover { background: #deebff; border-color: #D1E2FF; }
.faq-item.active { background: #E8F1FF; border-color: #B8D4FF; box-shadow: 0 8px 28px rgba(12,44,101,.08); }
.faq-question {
  width: 100%; padding: 14px 18px; background: transparent; border: 0; outline: 0;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  color: #0c2c65; font-weight: 700; font-size: 14px; letter-spacing: .15px; transition: background .2s ease, color .2s ease;
}
.faq-question:hover { background: linear-gradient(180deg, rgba(33,121,255,.06), rgba(33,121,255,.03)); }
.faq-question:focus-visible { box-shadow: inset 0 0 0 2px rgba(46,134,255,.35); border-radius: 8px; }
.arrow {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #E1ECFF; color: #1b3d82; font-size: 22px; font-weight: 700; transition: transform .25s ease, background .2s ease, color .2s ease;
}
.faq-question:hover .arrow { background: #D2E4FF; }
.faq-item.active .arrow { transform: rotate(45deg); background: #BDD7FF; color: #0c2c65; }
.faq-answer {
  max-height: 0; opacity: 0; transform: translateY(-6px); overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease, padding .25s ease;
  background: #fff; padding: 0 18px; border-top: 1px dashed rgba(12,44,101,.15);
}
.faq-answer p { margin: 0; padding: 14px 0; color: #374151; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 520px; opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media screen and (max-width: 768px) {
  /* Banner centrado y con resguardo bajo el header */
  .banner{
    --form-shift: -12px;
    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::before{
    background:linear-gradient(180deg,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.12) 55%,
      rgba(0,0,0,0) 100%);
  }
  .banner h1{
    font-size:clamp(28px,10vw,44px);
    line-height:1.05;
    margin:0 auto 8px;
    max-width:18ch;
    text-wrap:balance;
    padding-left:0px;
  }
  /* Subtítulo “(desde cero)” ordenado bajo el H1 */
  .h1-posicion{
    position:static !important;
    margin:4px auto 10px !important;
    font-size:18px !important;
    color:#fff !important;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
  }

  /* Formulario: centrado y con ajuste lateral opcional */
  .hero-right{
    position:relative; top:auto; right:auto; 
    width:min(460px,94%);
    margin:8px auto 10px;
    padding:20px; border-radius:12px;
    background:rgba(59,51,128,0.15);
    backdrop-filter:blur(4px);
    border:1px solid rgba(255,255,255,0.2);
    /* === Ajuste fino izquierda/derecha (opcional) ===
       Cambia el valor en .banner:  --form-shift:-10px (izq) / 12px (der) */
    transform: translateX(var(--form-shift, 0));
  }
  .hero-right h2 { font-size: 18px; }

  .curso-listado li { display:flex; align-items:flex-start; margin-bottom:5px; }
  .curso-listado li i { flex:0 0 25px; margin-right:10px; color:#df7b1e; font-size:15px; font-weight:900; -webkit-text-stroke:0.6px #df7b1e; }

  .hero-wrap { flex-direction:column; align-items:center; padding:20px; text-align:center; min-height:200px; margin-top:-40px; }
  .carrusel-wrapper { max-width:100%; margin:10px auto; padding:0 20px; }
  .carrusel { gap:15px; padding-bottom:5px; }
  .curso { min-width:80%; margin:0 auto; padding:10px; }
  .curso img { width:100%; }
  .curso h3 { font-size:16px; }
  .curso h3 a { font-size:16px; }
  .curso.proximamente-card { min-height:214px; font-size:18px; padding:15px; }

  .carrusel-btn { width:36px; height:36px; font-size:18px; }
  .carrusel-btn.prev { left:-5px; }
  .carrusel-btn.next { right:-5px; }

  .carrusel-dots { gap:8px; margin-top:12px; }
  .carrusel-dots button { width:8px; height:8px; }
  .carrusel-dots button.active { width:10px; height:10px; }

  .faq { margin:30px 15px 40px; margin-top:-30px; }
  .faq h2 { font-size:20px; margin-top:-50px; }
  .faq-item { border-radius:10px; }
  .faq-question { padding:10px 15px; font-size:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; }
  .faq-question h3 { font-size:15px; margin:0; flex:1; text-align:left; line-height:1.4; }
  .arrow { width:28px; height:28px; min-width:28px; border-radius:50%; display:inline-grid; place-items:center; font-size:20px; background:#E1ECFF; color:#0c2c65; flex-shrink:0; }

  .faq-answer { padding:0 15px; }
  .faq-answer p { font-size:14px; padding:12px 0; line-height:1.4; }

  .h1-cuerpo { color:#000; font-size:25px; margin-bottom: 10px; margin-left: 180px; }
  .h1-power {
    font-size:42px; margin:10px 0; border-radius:10px; display:inline-block; padding:5px 15px;
  }
  .curso-listado { grid-template-columns:1fr; gap:10px 16px; }
  .h1-wrapper { margin-left: -5px; }

  .container {
    padding: 0 18px;
  }
}

/* Ajustes tarjetas razones en móviles pequeños */
@media (max-width: 560px) {
  .pbi-reason-grid { grid-template-columns: 1fr; gap: 10px; }
  .pbi-card { padding: 18px 16px; }
  .pbi-icon { width: 52px; height: 52px; font-size: 18px; }
}
