.fondo_num {
  background: linear-gradient(to right, #005b67, #005d68);
  width: 100%;
  max-width: 100vw;
  margin-top: 10rem;
  margin-bottom: 10rem;
}

body:not(.home) .fondo_num {
  margin-bottom: 5%;
}

.fondo_num .banner-btn:hover{
  background-color: var(--color2) !important;
  color: var(--color1) !important;
  text-decoration: none !important;
}

.banner-stat-divider {
  display: none;
}

.banner-rating {
  display: none;
}

/* ===== LAYOUT ===== */
.section_num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: auto;
  padding: 80px 24px;
  width: 90%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .section_num {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .banner-rating {
    display: none;
  }
}

/* ===== COLUMNA IZQUIERDA ===== */
.banner-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .banner-left {
    width: 40%;
    align-items: flex-start;
    text-align: left;
  }
}

.fondo_num .banner-titulo {
  font-family: "Lexend Deca";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
  margin-top: 0px;
  margin-bottom: 0px;
  display: block;
}

.fondo_num .banner-subtitulo {
  color: #FFF;
  font-family: "Lexend Deca";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px;
  margin-bottom: 0px;
  display: block;
}

.fondo_num .banner-btn {
  background: var(--color1);
  color: #fff;
  font-family: "Lexend Deca", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  line-height: 24px;
  text-align: center;
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-right: 0;
}

/* ===== ESTADÍSTICAS ===== */
.banner-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .banner-stats {
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
}

.banner-stat {
  text-align: center;
  color: #fff;
  flex: 1;
}

@media (min-width: 768px) {
  
}

.fondo_num .stat-label {
  text-align: center;
  font-family: "Lexend Deca";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  color: #fff;
  margin-bottom: calc(var(--tamanio-base) * 1.5rem);
}

.fondo_num .stat-num {
  text-align: center;
  font-family: "Lexend Deca";
  font-size: 64px;
  font-style: normal;
  font-weight: 200;
  line-height: 42px;
  color: #fff;
  margin: 0 0 4px;
}

.fondo_num .stat-sub {
  text-align: center;
  font-family: "Lexend Deca";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  color: #fff;
  margin-bottom: 0px;
  margin-top: calc(var(--tamanio-base) * 1.5rem);
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .fondo_num {
    width: 100vw !important;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
  .fondo_num .stat-sub {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: calc(var(--tamanio-base) * 0.5rem);
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  .fondo_num .banner-subtitulo {
      color: #FFF;
      font-family: "Lexend Deca";
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      margin-bottom: 2rem !important;
      text-align: left;
  }
  .fondo_num .banner-titulo {
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 38px;
  }
  .fondo_num .stat-label{
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: calc(var(--tamanio-base) * 0.5rem);
  }
  .fondo_num .stat-num{
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
  }
  .section_num {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: auto;
    padding: 28px 0px !important;
    width: 90% !important;
    box-sizing: border-box;
  }
  /* Separador entre stats */
  .banner-stat {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .banner-stat:first-child {
    padding-top: 0;
  }
  .banner-stat:last-child {
    padding-bottom: 0;
  }
  .banner-stat-divider {
    display: block;
    width: 50vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-top: 2px solid rgba(255,255,255,1);
    margin: 0;
  }
  /* Botón al final: banner-left se vuelve transparente al layout,
     sus hijos (titulo, subtitulo, btn) pasan a ser flex items directos de section_num */
  .banner-left {
    display: contents;
  }
  .banner-stats {
    order: 1;
    gap: 0;
  }
  .fondo_num .banner-btn {
    order: 2;
    width: 100%;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .banner-rating {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
  .banner-rating-logo {
    height: 21px;
    width: auto;
    flex-shrink: 0;
  }
  .banner-rating-score {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }
  .banner-rating-stars {
    height: 16px;
    width: auto;
    flex-shrink: 0;
  }
  .banner-rating-reviews {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }
}

@media (max-width: 425px) {
  .section_num {
    width: 100% !important;
  }
}

/* ── Blog / single post: layout en columna ─────── */
@media (min-width: 769px) {
  body.single .fondo_num {
    padding: 0 24px;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  body.single .section_num {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 48px 0;
    gap: 40px;
  }

  body.single .banner-left {
    display: flex;
    width: 100%;
    align-items: center;
    text-align: center;
    order: unset;
  }

  body.single .banner-titulo {
    text-align: center !important;
    color: #fff !important;
    font-family: "Lexend Deca" !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  body.single .banner-subtitulo {
    text-align: center !important;
    color: #fff !important;
    font-family: "Lexend Deca" !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 22px !important;
    margin: 0 !important;
  }

  body.single .banner-btn {
    width: 100% !important;
    padding: 12px 40px !important;
    order: unset;
    margin: 0 !important;
    background: var(--color1) !important;
    color: #fff !important;
    font-family: "Lexend Deca", sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    display: inline-block !important;
  }

  body.single .banner-stats {
    flex-direction: row;
    flex: unset;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0;
    order: unset;
  }

  body.single .banner-stat {
    flex: 1;
    padding: 0 20px;
  }

  body.single .stat-label {
    color: #fff !important;
    font-family: "Lexend Deca" !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
    text-align: center !important;
    margin-bottom: calc(var(--tamanio-base) * 1.5rem) !important;
  }

  body.single .stat-num {
    color: #fff !important;
    font-family: "Lexend Deca" !important;
    font-size: 64px !important;
    font-weight: 200 !important;
    line-height: 42px !important;
    text-align: center !important;
    margin: 0 0 4px !important;
  }

  body.single .stat-sub {
    color: #fff !important;
    font-family: "Lexend Deca" !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
    text-align: center !important;
    margin-top: calc(var(--tamanio-base) * 1.5rem) !important;
    margin-bottom: 0 !important;
  }

  /* Sin separadores en blog */
  body.single .banner-stat-divider {
    display: none !important;
  }
}


