/* ================
   css/index.css — 
   ================ */

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}

/* -------- HERO -------- */
.hero-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 90px 30px;
  width: 100%;
  min-height: 400px;
  background: var(--beige);
  margin-bottom: 0;
}

.hero-left {
  position: relative;
  flex: 1;
  padding-left: 430px;
  padding-bottom: 100px;
  transform: translateY(5px);
  /* sólo desktop */
}

.hero-text p {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 35px;
  line-height: 1.4;
  font-weight: bold;
  margin: 0;
}

.hero-text .highlight {
  background: var(--blue-dark);
  color: #fff;
  padding: 6px 20px;
  border-radius: 15px;
  display: inline-block;
}

.hero-text .subtext {
  display: block;
  color: #000;
  font-weight: bold;
  margin-top: 6px;
}

.people {
  position: absolute;
  left: 70px;
  bottom: -82px;
  width: 320px;
  max-width: 100%;
  transform: translateY(18px);
  /* sólo desktop */
}

/* Form */
.h2-formulario {
  margin-bottom: 15px;
  text-align: center;
  font-size: 28px;
}

.hero-right {
  flex: 0 0 500px;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-right: 200px;
  transform: translateY(16px);
  /* sólo desktop */
}

.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 {
  display: block;
  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: .3s;
}

.hero-right button:hover {
  background: #6B9BCC;
}

/* -------- BANNER ICONOS -------- */
.site-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  background: var(--blue-dark);
  color: #fff;
  flex-wrap: wrap;
  margin-top: 0;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.banner-item i {
  font-size: 35px;
  color: #fff;
}

.banner-item .title {
  font-size: 13px;
  font-weight: 400;
  display: block;
}

.banner-item .subtitle {
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-top: -15px;
}

/* -------- TEXTO -------- */
.container {
  max-width: 1000px;
  margin: 40px auto 25px;
  padding: 0 40px;
  text-align: left;
  line-height: 1.6;
  font-size: 15px;
  color: #000;
}

/* -------- TABS -------- */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: var(--beige);
  color: var(--blue-dark);
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--blue-dark);
  color: #fff;
}

.tab-content {
  max-width: 940px;
  margin: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  position: absolute;
  left: 0;
  right: 0;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Titulo categoria */
.categoria {
  text-align: center;
  margin-top: -10px;
}

/* card */
.card {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  border: 2px solid #b2d4f5;
}

.card img {
  width: 50%;
  object-fit: cover;
  display: block;
}

.card-info h3 {
  font-size: 18px;
  margin: 20px 0 15px;
  color: var(--blue-dark);
}

.card-info .card-desc {
  font-size: 15px;
  margin-bottom: 15px;
  color: #000;
  line-height: 1.5;
  padding-right: 30px;
  padding-left: 5px;
  margin-top: 20px;
}

/* items */
.item {
  border-bottom: 1px solid #ccc;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}

.item h4 {
  font-size: 15px;
  font-weight: normal;
  color: #222;
  padding: 12px 15px;
  margin: 0;
  cursor: pointer;
}

.item .ver-mas {
  width: 90px;
  text-align: center;
  padding: 6px 0;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: .3s;
  margin-right: 15px;
}

.item .ver-mas:hover {
  background: #3c78d8;
}

.item-desc {
  display: none;
  margin: 8px 0 15px;
  font-size: 14px;
  color: #000;
  line-height: 1.4;
  padding-left: 10px;
}

/* -------- HIGHLIGHT -------- */
.highlight {
  background: var(--blue-dark);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* -------- TARJETAS (acordeón) -------- */
.tarjeta-container {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  background: #b2d4f5;
  border-radius: 8px;
  padding: 20px 0;
}

.tarjeta {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  cursor: pointer;
  overflow: hidden;
  transition: .3s;
  width: 30%;
  display: inline-block;
  vertical-align: top;
  margin: 10px;
  text-align: left;
}

.tarjeta.two-row {
  width: 30%;
  margin-left: 95px;
  margin-right: 90px;
}

.tarjeta-header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: -10px;
}

.header-left {
  display: flex;
  gap: 10px;
}

.tarjeta-header i.icon {
  font-size: 24px;
  color: var(--blue-dark);
  margin-top: -5px;
}

.tarjeta-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--blue-dark);
}

.arrow {
  font-size: 18px;
  color: var(--blue-dark);
  transition: transform .3s ease;
}

.tarjeta-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height .3s ease, padding .3s ease;
  color: #333;
  line-height: 1.5;
}

.tarjeta.active .tarjeta-content {
  padding: 0 20px;
  margin-bottom: 10px;
}

/* -------- 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 {
  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 img {
  width: 100%;
  border-radius: 6px;
}

.curso h3 {
  font-size: 16px;
  margin: 10px 0;
  text-align: left;
}

.precio {
  font-weight: bold;
  color: var(--blue-dark);
  margin: 10px 0;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.curso button {
  background: var(--blue-dark);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
}

.curso button:hover {
  background: #081c3a;
}

.icon-file {
  font-size: 16px;
  color: var(--blue-dark);
  margin-left: -120px;
}

.certificado {
  font-size: 14px;
  display: inline-block;
  margin-left: 10px;
}

/* Flechas (desktop base) */
.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-btn.disabled {
  opacity: .45;
  cursor: default;
}

/* Dots */
.precio-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.btn-whatsapp {
  border: 1px solid var(--blue-dark);
  background: transparent;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .3s;
  margin-left: 40px;
}

.btn-whatsapp:hover {
  background: #18c501;
}

.btn-whatsapp img {
  width: 18px;
  height: 18px;
}

.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: 376px;
  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;
  padding: 0;
}

.carrusel-dots button.active {
  background: var(--blue-dark);
  width: 12px;
  height: 12px;
}

.mini {
  display: inline-flex;
  padding: 4px 12px;
  background: #757575;
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  margin-top: 10px;
  margin-left: -130px;
}

/* -------- 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, border-color .25s, background .25s;
  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, color .2s;
}

.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;
  color: #1b3d82;
  font-size: 22px;
  font-weight: 700;
  transition: transform .25s, background .2s, color .2s;
}

.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, opacity .25s, transform .25s, padding .25s;
  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: Móvil -------- */
@media (max-width:768px) {
  .hero-wrap {
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
  }

  .hero-left {
    order: 1;
    padding: 0;
    transform: none;
  }

  .people {
    position: static;
    width: 200px;
    margin: 0 auto 5px;
    margin-top: -20px;
    transform: none;
  }

  .hero-text {
    order: 2;
    margin: 0 auto -15px;
  }

  .hero-text h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .hero-text .highlight {
    margin-left: 5px;
    font-size: 18px;
    padding: 4px 12px;
  }

  .hero-text .subtext {
    font-size: 16px;
    margin-top: 10px;
  }

  .hero-right {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    transform: none;
  }

  .banner-item {
    margin-bottom: 10px;
    min-width: 150px;
  }

  .tab-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tab-content {
    max-width: 350px;
  }

  .card {
    flex-direction: column;
    align-items: center;
  }

  .card img {
    width: 100%;
    height: auto;
  }

  .card-info {
    width: 100%;
    padding: 15px;
    text-align: center;
    margin-top: -35px;
  }

  .card-info .card-desc {
    padding: 0 10px;
    font-size: 14px;
    text-align: left;
  }

  .item {
    gap: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .item h4 {
    padding: 8px 0;
  }

  .item .ver-mas {
    margin: 0 auto 10px;
    margin-left: 110px;
  }

  .container {
    font-size: 14px;
  }

  .tarjeta-container {
    display: grid;
    gap: 15px;
    padding: 15px;
    text-align: center;
  }

  .tarjeta,
  .tarjeta.two-row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .tarjeta-content {
    grid-column: span 2;
  }

  .tarjeta-container .tarjeta:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .carrusel-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .curso {
    min-width: 50%;
    margin: 0 5px;
    padding: 8px;
  }

  /* flechas dentro del viewport en móvil */
  .carrusel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: 50%;
    z-index: 60;
  }

  .carrusel-btn.prev {
    left: -10px;
  }

  .carrusel-btn.next {
    right: -8px;
  }

  .precio-whatsapp {
    flex-direction: column;
    gap: 6px;
  }

  .btn-whatsapp {
    padding: 8px 17px;
    font-size: 13px;
    margin-left: -1px;
  }

  .curso.proximamente-card {
    min-height: 322px;
    font-size: 18px;
    padding: 15px;
  }

  .carrusel-dots {
    margin-top: 10px;
    gap: 6px;
  }

  .carrusel-dots button {
    width: 8px;
    height: 8px;
  }

  .carrusel-dots button.active {
    width: 10px;
    height: 10px;
  }

  .faq {
    margin: 30px 15px;
  }

  .faq h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .faq-question {
    padding: 10px 15px;
    font-size: 16px;
  }

  .faq-question h3 {
    font-size: 15px;
  }

  .arrow {
    font-size: 20px;
  }

  .faq-answer {
    padding: 0 15px;
  }

  .faq-answer p {
    font-size: 14px;
    padding: 12px 0;
    line-height: 1.4;
  }

  .faq-item {
    border-radius: 10px;
  }

  .categoria {
    text-align: center;
    margin-top: -20px;
  }

  .carrusel-container {
    overflow: visible;
    box-sizing: border-box;
    margin-left: -17px;
  }

  .carrusel {
    gap: 0px;
  }

  .mini {
    display: inline-flex;
    padding: 4px 12px;
    background: #757575;
    color: #fff;
    border-radius: 9999px;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
    margin-top: 10px;
    margin-left: -39px;
  }

  .certificado {
    font-size: 14px;
    display: inline-block;
    margin-left: 10px;
  }

  .icon-file {
    font-size: 16px;
    color: var(--blue-dark);
    margin-left: -30px;
  }

  .curso h3 {
    text-align: left;
  }

  /* contenedor en línea */
  .cta-row {
    display: flex;
    align-items: center;
    gap: 9px;
    /* espacio entre botones */
  }

}

/* -------- Responsive: Tablet (solo este bloque es nuevo) -------- */
@media (min-width:769px) and (max-width:1024px) {
  .hero-wrap {
    padding: 40px 24px;
    /* menos borde, más respiración */
    gap: 22px;
    min-height: 380px;
  }

  .hero-left {
    padding-left: 280px;
    /* antes 430px */
    padding-bottom: 80px;
    /* un poco menos */
    transform: none;
    /* quitamos bajada extra */
    min-width: 0;
  }

  .hero-text p {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .hero-text h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero-text .highlight {
    padding: 6px 16px;
    border-radius: 12px;
  }

  .people {
    left: 32px;
    /* acercamos al borde */
    bottom: -48px;
    /* toca el banner sin invadir de más */
    width: 260px;
    /* imagen más compacta */
    transform: none;
  }

  .hero-right {
    flex: 0 0 420px;
    /* formulario más angosto */
    margin-right: 40px;
    /* quitamos el 200px */
    padding: 30px;
    transform: none;
    /* alineado verticalmente */
    min-width: 0;
  }

  .h2-formulario {
    font-size: 24px;
  }
}