:root {
  --red: #DA1B2C;
  --white: #fff;
  --reddark-effect: #b0181d;
  --black: #000;
  --text-muted: #444;
  --card-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  --text-reg: poppinsregular, sans-serif;
  --text-semibold: poppinssemibold, sans-serif;
  --text-bold: poppinsbold, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  background-color: initial;
}

.contenido {
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

#home {
  font-family: var(--text-reg);
}

h1,
h2,
h3 {
  font-family: var(--text-bold);
}

.btn {
  border-radius: 40px;
  font-family: var(--text-semibold);
}

.nocut {
  text-wrap: nowrap;
}

.btn.bgred:hover {
  background-color: var(--reddark-effect);
  color: var(--white);
}

.btn.bgred:focus,
.btn.bgred:focus-visible {
  background-color: #545657;
  color: var(--white);
}

.pr {
  position: relative;
}

.pa,
.shape {
  position: absolute;
}

.shape {
  display: none;
}

/*.btn.bgred:focus-visible{outline: 2px solid var(--black);outline-offset: 2px;}*/

/* Focus visible styles with 2px offset for keyboard navigation */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--black) !important;
  outline-offset: 2px !important;
}

.skip-link {
  z-index: 9999;
}

.apertura {
  text-align: center;
  margin-bottom: 2em;
}

.apertura .col.areatxt {
  text-align: left;
  padding-bottom: 15px;
}

.apertura .badge {
  font-size: 1.25rem;
}


/* Clase de Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  font-size: 2.5em;
}

.apertura h1 {
  margin: 10px 0 15px;
}

.apertura .btn {
  width: 95%;
  max-width: 370px;
  font-size: 1.5rem;
  min-height: 56px;
  line-height: 40px;
  display: block;
  margin: auto;
}

.pretitle {
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0;
  font-size: 1.05em;
  font-family: var(--text-semibold);
}

.subtitle {
  font-size: 2.5em;
}

.bajada {
  font-size: 1.3rem;
}

/*Cards*/
.learning-path {
  padding: 35px 0 80px;
}

.path-header {
  margin-bottom: 20px;
}

/* Grid Responsive */
.learning-grid {
  display: grid;
  column-gap: 30px;
  row-gap: 120px;
  /*compensa el margin-top negativo de las imgs*/
  grid-template-columns: 1fr;
  max-width: 1330px;
  margin: 70px auto 0 auto;
}


@media (min-width: 600px) {
  .learning-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 90px;
    column-gap: 20px;
  }
}

@media (min-width: 950px) {
  .learning-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-visual {
  margin-top: -85px;
  /*sube la imagen sobre la card*/
  text-align: center;
  position: relative;
  z-index: 2;
}

.composite-img {
  width: 100%;
  max-width: 215px;
  height: auto;
}

.card-content {
  padding: 30px 25px 40px 25px;
  border-top: 5px solid var(--red);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.info-text,
.benefit-list li {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: var(--text-reg);
}

.info-text {
  margin-bottom: 15px;
}

/*Tags/Enlaces de horas*/
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--red);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--text-semibold);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(211, 30, 36, 0.2);
  transition: all 0.3s ease;
}

.tag-link:hover,
.tag-link:focus {
  background-color: var(--reddark-effect);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(211, 30, 36, 0.3);
}

.tag-link:focus-visible {
  outline: 2px solid var(--black, #000);
  outline-offset: 2px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.bi-check-all {
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  /* Evita que el icono se achique si el texto es largo */
}

/* Botón Explore Level */
.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--red);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  font-size: 1.12rem;
  font-family: var(--text-semibold);
  /* Empuja el botón al fondo de la card */
  box-shadow: 0 4px 12px rgba(211, 30, 36, 0.2);
}

.btn-card .btn-arrow {
  display: inline-block;
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.cta,
.btn-card {
  transition: all 0.3s ease;
}

.cta:hover,
.btn-card:hover {
  background-color: var(--reddark-effect);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(211, 30, 36, 0.3);
}

.btn-card:hover .btn-arrow {
  transform: translateX(4px);
}



/*Adaptaciones*/
@media(max-width:313px) {
  .apertura .btn {
    line-height: 1.4;
  }
}

@media(min-width:380px) {
  h1 {
    font-size: 2.6em;
  }
}

@media(min-width:420px) {
  h1 {
    font-size: 3.05em;
  }
}

@media(min-width:500px) {

  .shape.sh1,
  .shape.sh2,
  .shape.sh5 {
    display: block;
  }

  .sh1 {
    width: 43px;
    top: 20px;
    right: 50px;
  }

  .sh2 {
    width: 60px;
    bottom: 149px;
    right: 16px;
  }

  .sh5 {
    width: 43px;
    top: 35px;
    right: 12%;
  }
}

@media(min-width:576px) and (max-width:950px) {
  .container {
    max-width: 98%;
  }
}

@media(min-width:600px) {
  h1 {
    font-size: 3.35em;
  }

  .apertura h1 {
    margin: 10px 0 20px;
  }

  .sh2 {
    bottom: 125px;
  }
}

@media(min-width: 640px) {
  .sh2 {
    bottom: 9px;
    transform: rotate(-90deg);
  }
}

@media(min-width: 705px) and (max-width:768px) {
  .sh1 {
    top: -8px;
  }
}

@media(min-width: 768px) {
  .sh1 {
    top: -5px;
    right: 234px;
  }

  .sh2 {
    bottom: 19px;
    right: 16px;
    transform: rotate(-90deg);
  }

  .sh5 {
    width: 70px;
    top: 32px;
    right: 7%;
  }
}

@media(min-width: 950px) and (max-width: 992px) {
  .container {
    max-width: 98%;
  }
}

@media(min-width: 950px) {
  .learning-path {
    padding-top: 20px;
  }

  h1 {
    font-size: 3.2em;
  }

  .sh5 {
    width: 70px;
    top: 40px;
    right: 4%;
  }

  .apertura {
    text-align: initial;
  }

  .apertura .btn {
    margin: 0;
  }

  .apertura .col {
    display: inline-block;
    vertical-align: middle;
  }

  .apertura .col.areatxt {
    width: 44%;
    padding-right: 5%;
  }

  .apertura .col.novedad {
    width: 55%;
    max-width: 530px;
    margin: 0 auto;
  }

  .sh1 {
    top: 14px;
    right: 50px;
  }

  .sh2 {
    bottom: -82px;
  }
}

@media(min-width: 992px) {
  .sh1 {
    top: 22px;
    right: 54px;
  }

  .sh2 {
    bottom: -75px;
    right: 28px;
  }

  .learning-grid {
    column-gap: 25px;
  }
}

@media(min-width: 1200px) {

  .apertura .col.areatxt,
  .apertura .col.novedad {
    width: 49%;
  }

  .learning-path {
    padding-top: 20px;
  }

  .sh0b {
    display: block;
    width: 40px;
    right: 30px;
    top: 267px;
  }

  .sh1 {
    width: 53px;
    top: 20px;
    right: 100px;
  }

  .sh2 {
    width: 65px;
    bottom: -30px;
    right: 80px;
  }
}

@media(min-width: 1300px) {
  .learning-grid {
    column-gap: 30px;
  }

  .composite-img {
    max-width: 225px;
  }
}

@media(min-width: 1400px) {
  h1 {
    font-size: 3.45em;
  }

  .apertura .btn {
    font-size: 1.45rem;
  }

  .sh0b {
    right: 85px;
    top: 285px;
  }

  .sh1 {
    right: 116px;
  }

  .sh2 {
    bottom: 28px;
    right: 70px;
    transform: rotate(0);
  }

  .sh3,
  .sh4 {
    display: block;
  }

  .sh3 {
    width: 212px;
    left: -125px;
    top: 12%;
  }

  .sh4 {
    width: 225px;
    left: -125px;
    top: 54%;
  }
}

@media(min-width: 1450px) {
  .sh6 {
    display: block;
    width: 230px;
    right: -100px;
    top: 48%;
  }
}

@media(min-width: 1500px) {
  .sh0b {
    right: 128px;
  }

  .sh3 {
    width: 235px;
    left: -138px;
    top: 12%;
  }

  .sh5 {
    right: 7%;
  }
}

@media(min-width: 1600px) {
  .composite-img {
    max-width: 240px;
  }

  .sh0 {
    display: block;
    width: 95px;
    left: -5px;
    top: 240px;
    transform: rotate(90deg);
  }
}

@media(min-width: 1650px) {
  .sh3 {
    left: -98px;
  }
}

@media(min-width: 1700px) {
  .sh0 {
    left: 4%;
  }

  .sh0b {
    right: 8%;
  }

  .sh5 {
    right: 80px;
  }

  .sh4 {
    width: 280px;
    left: -145px;
  }
}

@media(min-width: 1800px) {
  .sh0 {
    left: 6%;
  }
}

@media(min-width: 1900px) {
  .sh0 {
    left: 7%;
  }
}