.tcp-section {
  background: #f5f5f5;
  padding: 50px 20px;
  overflow: hidden;
}

.tcp-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tcp-title {
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #222;
}

/* Logo Trustpilot centrado debajo del título */
.tcp-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 14px;
}

.tcp-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tcp-brand-text {
  color: #00b67a;
  font-size: 16px;
  font-weight: 700;
}

/* Estrellas + nota */
.tcp-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tcp-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tcp-stars {
  color: #00b67a;
  font-size: 20px;
  line-height: 1;
}

.tcp-score {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* Carrusel */
.tcp-carousel {
  position: relative;
  padding: 0 52px;
}

.tcp-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tcp-track::-webkit-scrollbar {
  display: none;
}

/* Tarjetas: 3 limpias en escritorio */
.tcp-card {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  min-height: 250px;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tcp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tcp-card-stars {
  color: #00b67a;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.tcp-card-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00b67a;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tcp-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 16px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.tcp-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcp-card-author {
  font-size: 13px;
  color: #888;
}

.tcp-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #00b67a;
}

/* Flechas */
.tcp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #00b67a;
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcp-arrow-left {
  left: 8px;
}

.tcp-arrow-right {
  right: 8px;
}

/* Tablet */
@media (max-width: 991px) {
  .tcp-title {
    font-size: 28px;
  }

  .tcp-card {
    flex: 0 0 290px;
    max-width: 290px;
    min-height: 240px;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .tcp-section {
    padding: 35px 12px;
  }

  .tcp-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .tcp-brand-center {
    margin-bottom: 12px;
  }

  .tcp-meta {
    gap: 12px;
    margin-bottom: 20px;
  }

  .tcp-carousel {
    padding: 0 34px;
  }

  .tcp-card {
    flex: 0 0 85%;
    max-width: 85%;
    min-height: 220px;
    padding: 18px;
  }

  .tcp-card-text {
    -webkit-line-clamp: 5;
  }

  .tcp-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 34px;
  }
}

/* El bloque de reseñas nunca debe ponerse por encima del menú móvil */
.tcp-section,
.tcp-inner,
.tcp-carousel,
.tcp-track,
.tcp-card {
  position: relative;
  z-index: 1 !important;
}

/* El menú móvil debe ganar siempre */
#mobile_top_menu_wrapper,
#mobile_top_menu_wrapper .js-top-menu,
#mobile_top_menu_wrapper .top-menu,
#_mobile_top_menu,
.mobile-menu,
.mobile-main-menu,
.iqitmegamenu-wrapper,
.iqitmegamenu-mobile,
.ets_mm_megamenu,
.ets_mm_megamenu_content,
.header-nav,
#header,
.header-top {
  position: relative;
  z-index: 99999 !important;
}

/* Si tu tema usa overlay o panel desplegable */
#mobile_top_menu_wrapper .dropdown-menu,
#mobile_top_menu_wrapper .popover,
.mobile-menu-overlay,
.menu-overlay,
.header-overlay,
.iqitmegamenu-overlay {
  z-index: 99999 !important;
}
/* Fondo integrado con la web */
#trustcarouselpro-home.tcp-section {
  background: #202020 !important;
  color: #fff !important;
}

#trustcarouselpro-home .tcp-inner,
#trustcarouselpro-home .tcp-carousel,
#trustcarouselpro-home .tcp-track {
  background: transparent !important;
}

/* Título igual que el resto de secciones */
#trustcarouselpro-home .tcp-title {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto 38px !important;
  padding: 0 15px;
  box-sizing: border-box;
  color: #f5f5f5 !important;
  font-family: inherit;
  font-size: clamp(24px, 1.6vw, 32px) !important;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-align: left !important;
}

#trustcarouselpro-home .tcp-title strong {
  color: #f5f5f5 !important;
  font-weight: 600;
}

#trustcarouselpro-home .tcp-title span {
  color: #929292 !important;
  font-weight: 500;
}

/* Recuperar el logo original */
#trustcarouselpro-home .tcp-brand-center {
  display: block;
  width: max-content;
  max-width: calc(100% - 30px);
  margin: 0 auto 15px;
  padding: 9px 14px;
  background: #fff;
  border-radius: 10px;
}

#trustcarouselpro-home .tcp-logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: none !important;
}

/* Puntuación */
#trustcarouselpro-home .tcp-rating,
#trustcarouselpro-home .tcp-score {
  color: #fff !important;
}

#trustcarouselpro-home .tcp-stars {
  color: #00b67a !important;
}

/* Tarjetas con contraste */
#trustcarouselpro-home .tcp-card {
  background: #2b2b2b !important;
  color: #fff !important;
  border: 1px solid #3b3b3b !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

#trustcarouselpro-home .tcp-card:hover {
  background: #303030 !important;
  border-color: #484848 !important;
}

/* Contenido de las reseñas */
#trustcarouselpro-home .tcp-card-text {
  color: #f5f5f5 !important;
}

#trustcarouselpro-home .tcp-card-author {
  color: #aaa !important;
}

#trustcarouselpro-home .tcp-card-stars,
#trustcarouselpro-home .tcp-card-verified,
#trustcarouselpro-home .tcp-card-verified span,
#trustcarouselpro-home .tcp-card-link {
  color: #00b67a !important;
}

/* Flechas en escritorio */
#trustcarouselpro-home .tcp-arrow {
  background: #00b67a !important;
  color: #fff !important;
}

@media (max-width: 768px) {

  /* Márgenes iguales que los demás banners */
  #trustcarouselpro-home.tcp-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #trustcarouselpro-home .tcp-inner {
    width: 100% !important;
    max-width: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }

  /* Cabecera */
  #trustcarouselpro-home .tcp-title,
  #trustcarouselpro-home .tcp-brand-simple,
  #trustcarouselpro-home .tcp-meta {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #trustcarouselpro-home .tcp-title {
    margin-bottom: 24px !important;
    font-size: 23px !important;
  }

  #trustcarouselpro-home .tcp-title span {
    display: block;
    margin-top: 4px;
  }

  /* Carrusel con controles superiores */
  #trustcarouselpro-home .tcp-carousel {
    display: grid !important;
    grid-template-columns: 38px 38px 1fr;
grid-template-areas:
  "track track track"
  "prev next .";
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    column-gap: 8px;
    row-gap: 12px;
  }

  #trustcarouselpro-home .tcp-track {
    grid-area: track;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important;
    scroll-padding: 0;
  }

  #trustcarouselpro-home .tcp-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Flechas encima de las reseñas */
  #trustcarouselpro-home .tcp-arrow {
    display: flex !important;
    position: static !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: 0;
    border-radius: 50%;
    background: #00b67a !important;
    color: #fff !important;
  }

  #trustcarouselpro-home .tcp-arrow-left {
    grid-area: prev;
    left: auto !important;
    right: auto !important;
  }

  #trustcarouselpro-home .tcp-arrow-right {
    grid-area: next;
    left: auto !important;
    right: auto !important;
  }
}
/* Acercar el logo al título */
#trustcarouselpro-home .tcp-title {
  margin-bottom: 22px !important;
}

/* Logo alineado con el título */
#trustcarouselpro-home .tcp-brand-center {
  display: block;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto 10px !important;
  padding: 0 15px !important;
  box-sizing: border-box;
  background: transparent !important;
  border-radius: 0 !important;
  text-align: left !important;
}

#trustcarouselpro-home .tcp-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  padding: 9px 14px;
  background: #fff;
  border-radius: 10px;
  filter: none !important;
}

/* Puntuación también alineada a la izquierda */
#trustcarouselpro-home .tcp-meta {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto 30px !important;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: left !important;
}

#trustcarouselpro-home .tcp-rating {
  justify-content: flex-start !important;
  text-align: left !important;
}

@media (max-width: 768px) {
  #trustcarouselpro-home .tcp-brand-center,
  #trustcarouselpro-home .tcp-meta {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #trustcarouselpro-home .tcp-logo-img {
    max-width: 165px;
  }
}
#trustcarouselpro-home .tcp-meta {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#trustcarouselpro-home .tcp-rating {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 auto 0 0 !important;
  text-align: left !important;
}
@media (min-width: 992px) {

  /* 1170px de contenido + espacio exterior para las flechas */
  #trustcarouselpro-home .tcp-inner {
    width: 100% !important;
    max-width: 1274px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Cabecera alineada con las tarjetas */
  #trustcarouselpro-home .tcp-title,
  #trustcarouselpro-home .tcp-brand-center,
  #trustcarouselpro-home .tcp-meta {
    width: 100% !important;
    max-width: 1170px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Las flechas quedan fuera de los 1170px */
  #trustcarouselpro-home .tcp-carousel {
    width: 100% !important;
    max-width: 1274px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 52px !important;
    padding-right: 52px !important;
    box-sizing: border-box;
  }

  /* Ancho real de las reseñas */
  #trustcarouselpro-home .tcp-track {
    width: 100% !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
  }

  #trustcarouselpro-home .tcp-card {
    flex: 0 0 calc((100% - 40px) / 3) !important;
  }
}
/* Logo alineado a la izquierda */
#trustcarouselpro-home .tcp-brand-simple {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Puntuación alineada con el logo */
#trustcarouselpro-home .tcp-meta {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

#trustcarouselpro-home .tcp-rating {
  justify-content: flex-start !important;
  margin: 0 !important;
  text-align: left !important;
}
@media (min-width: 769px) {

  #trustcarouselpro-home .tcp-brand-simple {
    width: 100% !important;
    max-width: 1170px !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  #trustcarouselpro-home .tcp-meta {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1170px !important;
    margin: 0 auto 30px !important;
    padding: 0 !important;
  }

  #trustcarouselpro-home .tcp-rating {
    justify-content: flex-start !important;
    margin: 0 !important;
    text-align: left !important;
  }

  #trustcarouselpro-home .tcp-brand-mark {
    color: #00b67a !important;
  }

  #trustcarouselpro-home .tcp-brand-text {
    color: #f5f5f5 !important;
  }
}