/*
 * INFOSTYLE - Personalizaciones Front Office
 * PrestaShop 9.1.4 / Hummingbird 2.0.0
 *
 * Archivo reservado exclusivamente para personalizaciones
 * visuales propias de INFOSTYLE.
 */

/* CONTROL 7.4 - Header y navegación */

:root {
  --infostyle-blue: #1f4e79;
  --infostyle-orange: #f28c28;
}

/* =========================================================
   CONTROL 7.4.9 - HEADER INFOSTYLE
   ========================================================= */

/* Franja superior */
.header-top {
  min-height: 36px;
  font-size: 0.875rem;
}

/* Cabecera principal */
.header-bottom {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #ffffff;
}

/* Alineación general */
.header-bottom__row {
  align-items: center !important;
  row-gap: 12px;
}

/* Logo */
.header-bottom__logo {
  flex: 0 0 auto;
}

.header-bottom__logo img {
  width: auto;
  max-width: 210px;
  max-height: 72px;
  object-fit: contain;
}

/* Buscador: darle prioridad visual */
.header-bottom .ps-searchbar {
  flex: 1 1 520px;
  max-width: none;
  margin-left: 20px;
  margin-right: 20px;
}

.header-bottom .ps-searchbar__container {
  width: 100%;
}

.header-bottom .ps-searchbar__form {
  width: 100%;
}

.header-bottom .ps-searchbar__input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
}

/* Icono del buscador */
.header-bottom .ps-searchbar__magnifier {
  color: var(--infostyle-blue);
}

/* Cuenta / carrito */
.header-top__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

/* Separación suave del header */
.header-bottom {
  border-bottom: 1px solid #e7eaee;
}

/* Desktop */
@media (min-width: 992px) {
  .header-bottom__container {
    max-width: 1320px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .header-bottom__logo img {
    max-width: 170px;
    max-height: 62px;
  }

  .header-bottom .ps-searchbar {
    flex-basis: 360px;
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .header-bottom {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-bottom__logo img {
    max-width: 150px;
    max-height: 56px;
  }

  .header-bottom .ps-searchbar {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    margin: 8px 0 0 0;
  }

  .header-bottom .ps-searchbar__input {
    min-height: 44px;
  }
}

/* =========================================================
   CONTROL 7.4.9B - CORRECCION ESTRUCTURAL LOGO + BUSCADOR
   ========================================================= */

/*
 * ps_mainmenu actualmente no contiene categorías.
 * En escritorio no debe reservar espacio hasta que construyamos
 * la navegación comercial definitiva.
 */
@media (min-width: 1200px) {
  .header-bottom .ps-mainmenu--desktop {
    flex: 0 0 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  /*
   * El wrapper desktop del buscador viene de Hummingbird como
   * col-auto + ms-auto. Lo convertimos en la columna flexible
   * principal del header.
   */
  .header-bottom #_desktop_ps_searchbar {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin-left: 48px !important;
    padding-right: 0;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar__form {
    width: 100%;
  }

  /*
   * Ancho máximo visual del campo para evitar que en monitores
   * muy grandes resulte excesivamente largo.
   */
  .header-bottom #_desktop_ps_searchbar .ps-searchbar__input {
    width: 100%;
  }
}

/* Desktop intermedio */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .header-bottom #_desktop_ps_searchbar {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin-left: 28px !important;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
}

/* =========================================================
   CONTROL 7.4.10 - WHATSAPP COMERCIAL HEADER
   ========================================================= */

.infostyle-whatsapp-header {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.infostyle-whatsapp-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.infostyle-whatsapp-header__link:hover,
.infostyle-whatsapp-header__link:focus {
  color: inherit;
  text-decoration: none;
  opacity: 0.78;
}

.infostyle-whatsapp-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #25d366;
}

.infostyle-whatsapp-header__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.infostyle-whatsapp-header__text {
  line-height: 1.2;
  white-space: nowrap;
}

.infostyle-whatsapp-header__text strong {
  font-weight: 600;
}

/* Tablet / móvil */
@media (max-width: 767.98px) {
  .infostyle-whatsapp-header__text {
    font-size: 0.8125rem;
    white-space: normal;
  }

  .infostyle-whatsapp-header__text > strong {
    display: inline;
  }
}

/* Móviles angostos: mensaje más compacto */
@media (max-width: 479.98px) {
  .infostyle-whatsapp-header__text {
    font-size: 0;
  }

  .infostyle-whatsapp-header__text strong {
    font-size: 0.8125rem;
  }
}

/* =========================================================
   CONTROL 7.4.10A - WHATSAPP VISIBLE EN MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

  .header-top {
    display: block;
    min-height: auto;
    padding: 6px 0;
    border-bottom: 1px solid #e7eaee;
  }

  .header-top .container-md {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-top .row {
    margin: 0;
  }

  .header-top__left {
    width: 100%;
    padding: 0;
  }

  /*
   * Cuenta y carrito ya tienen componentes móviles propios
   * en header-bottom. Evitamos duplicarlos en header-top.
   */
  .header-top__right {
    display: none;
  }

  .infostyle-whatsapp-header {
    justify-content: center;
    min-height: 30px;
  }

  .infostyle-whatsapp-header__link {
    justify-content: center;
    gap: 6px;
  }

  .infostyle-whatsapp-header__icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .infostyle-whatsapp-header__text {
    font-size: 0;
    white-space: nowrap;
  }

  .infostyle-whatsapp-header__text strong {
    font-size: 0.8125rem;
  }
}

/* =========================================================
   CONTROL 7.4.13B - NAVEGACION PRINCIPAL INFOSTYLE
   ========================================================= */

.header-nav-full-width {
  background: #ffffff;
  border-bottom: 1px solid #e7eaee;
}

.header-nav-full-width .ps-mainmenu--desktop {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
}

.header-nav-full-width .ps-mainmenu__desktop {
  width: 100%;
}

.header-nav-full-width .ps-mainmenu__tree {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.header-nav-full-width .ps-mainmenu__tree-link {
  padding: 12px 14px;
  font-weight: 600;
  color: #24313d;
}

.header-nav-full-width .ps-mainmenu__tree-link:hover,
.header-nav-full-width .ps-mainmenu__tree-link:focus {
  color: var(--infostyle-blue);
}

/* Mobile */
@media (max-width: 1199.98px) {
  .header-nav-full-width .ps-mainmenu--desktop {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }
}

/* =========================================================
   CONTROL 7.4.13I - MENU DESPLEGABLE COMPACTO
   Solo escritorio.
   Mobile conserva la navegación lateral nativa de Hummingbird.
   ========================================================= */

@media (min-width: 768px) {

  /*
   * El desplegable de una categoría no necesita ocupar
   * todo el ancho disponible.
   */
  .ps-mainmenu--desktop .menu__dropdown {
    width: max-content;
    min-width: 320px;
    max-width: 720px;
  }

  /*
   * Contenido interno compacto.
   */
  .ps-mainmenu--desktop .menu__dropdown .menu__list {
    width: auto;
    min-width: 280px;
  }

  /*
   * Cada opción mantiene un ancho cómodo y legible.
   */
  .ps-mainmenu--desktop .menu__dropdown .menu__item {
    min-width: 280px;
  }

  /*
   * Evita grandes espacios vacíos cuando existen
   * pocas subcategorías.
   */
  .ps-mainmenu--desktop .menu__dropdown .menu__link {
    white-space: nowrap;
  }
}


/* =========================================================
   CONTROL 7.4.13I-R2
   SUBMENU COMPACTO REAL - REPUESTOS TV Y BACKLIGHT

   Hummingbird genera:
   .submenu > .container > .submenu__row
   con columnas 3/9.

   Para CATEGORY 3 actualmente sólo existe una subcategoría
   terminal, por lo que no necesitamos el panel derecho.
   ========================================================= */

@media (min-width: 1200px) {

  /*
   * El contenedor general del submenu puede seguir ocupando
   * la zona de navegación, pero sin pintar una franja blanca
   * completa sobre todo el ancho de la pantalla.
   */
  #submenu-category-3.submenu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /*
   * Conservamos el container de Hummingbird para mantener
   * exactamente la misma alineación izquierda que el menú.
   */
  #submenu-category-3 > .container {
    background: transparent;
  }

  /*
   * Sólo el bloque que contiene las opciones se presenta
   * visualmente como dropdown.
   */
  #submenu-category-3 .submenu__row {
    width: 360px;
    max-width: 360px;
    margin-left: 0;
    margin-right: 0;

    padding: 14px;

    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 0 0 8px 8px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  /*
   * Con una única rama terminal, la columna izquierda pasa
   * a utilizar todo el ancho disponible.
   */
  #submenu-category-3 .submenu__left {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;

    padding-left: 0;
    padding-right: 0;

    border: 0;
  }

  /*
   * El panel derecho está vacío actualmente y Bootstrap le
   * reservaba el 75 % del mega-menu.
   */
  #submenu-category-3 .submenu__right {
    display: none !important;
  }

  /*
   * Presentación de la opción.
   */
  #submenu-category-3 .submenu__left-item {
    display: block;
    width: 100%;

    padding: 12px 16px;

    border-radius: 6px;
    white-space: nowrap;
  }
}







/* CONTROL 7.5.4.5 - BANNER FINAL START */

/*
 * HOME INFOSTYLE - BANNER DESKTOP FINAL
 *
 * Imagen diseñada para utilizar su relación natural.
 * No se fuerza altura.
 * No se utiliza object-fit: cover.
 * No se recorta texto ni productos.
 */

#ps_imageslider {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-top: 10px !important;
    margin-bottom: 24px !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

#ps_imageslider .carousel,
#ps_imageslider .carousel-inner,
#ps_imageslider .carousel-item,
#ps_imageslider figure {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    overflow: visible !important;
}

#ps_imageslider .carousel-item img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 auto !important;

    object-fit: contain !important;
    object-position: center center !important;
}

/*
 * El texto ya está integrado en la pieza gráfica.
 */
#ps_imageslider .ps-imageslider__figcaption {
    display: none !important;
}

/*
 * Mientras exista un único slide no mostramos
 * controles ni indicadores.
 *
 * Cuando incorporemos los otros dos banners,
 * este criterio se revisará.
 */
#ps_imageslider .carousel-indicators,
#ps_imageslider .carousel-control-prev,
#ps_imageslider .carousel-control-next {
    display: none !important;
}

/* CONTROL 7.5.4.5 - BANNER FINAL END */

/* CONTROL 7.5.4.6 - MOBILE FINAL START */

/*
 * HOME INFOSTYLE
 *
 * Desktop / Tablet:
 *   infostyle-home-hero-v5.png
 *
 * Mobile:
 *   infostyle-home-mobile-v1.png
 *
 * No se fuerza altura.
 * No se utiliza object-fit: cover.
 */


/* MOBILE */
@media (max-width: 767.98px) {

    #ps_imageslider {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 8px 0 18px !important;
    }

    #ps_imageslider .carousel,
    #ps_imageslider .carousel-inner,
    #ps_imageslider .carousel-item,
    #ps_imageslider figure {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    /*
     * Sustituye visualmente la imagen desktop
     * por la pieza diseñada específicamente para mobile.
     */
    #ps_imageslider .carousel-item img {
        content: url("/modules/ps_imageslider/images/infostyle-home-mobile-v1.png") !important;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 auto !important;

        object-fit: contain !important;
        object-position: center center !important;
    }

    #ps_imageslider .ps-imageslider__figcaption {
        display: none !important;
    }

    /*
     * Un solo banner por ahora:
     * sin flechas ni indicadores.
     */
    #ps_imageslider .carousel-indicators,
    #ps_imageslider .carousel-control-prev,
    #ps_imageslider .carousel-control-next {
        display: none !important;
    }
}

/* CONTROL 7.5.4.6 - MOBILE FINAL END */

/* =========================================================
   INFOSTYLE - CATEGORIAS DESTACADAS
   Control 7.5.5.12
   ========================================================= */

.infostyle-categories {
  width: 100%;
  padding: 42px 0 48px;
  background: #f7f9fc;
}

.infostyle-categories__header {
  text-align: center;
  margin-bottom: 28px;
}

.infostyle-categories__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #172033;
}

.infostyle-categories__subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  color: #677184;
}

.infostyle-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.infostyle-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e7ebf1;
  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(18, 32, 51, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.infostyle-category-card:hover {
  transform: translateY(-5px);
  border-color: #cfd7e5;
  box-shadow: 0 12px 28px rgba(18, 32, 51, 0.12);
}

.infostyle-category-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(77, 171, 247, 0.18),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      #eef5ff 0%,
      #f8fbff 55%,
      #eaf2fb 100%
    );
}

.infostyle-category-card__icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(18, 32, 51, 0.12);
}

.infostyle-category-card__icon::before,
.infostyle-category-card__icon::after {
  content: "";
  position: absolute;
}

/* Repuestos TV y Backlight */
.infostyle-category-card--3
.infostyle-category-card__icon::before {
  left: 13px;
  top: 16px;
  width: 46px;
  height: 30px;
  border: 4px solid #2581c4;
  border-radius: 5px;
}

.infostyle-category-card--3
.infostyle-category-card__icon::after {
  left: 27px;
  top: 51px;
  width: 20px;
  height: 4px;
  background: #2581c4;
  box-shadow: 0 7px 0 #2581c4;
}

/* Almacenamiento */
.infostyle-category-card--5
.infostyle-category-card__icon::before {
  left: 17px;
  top: 13px;
  width: 38px;
  height: 46px;
  border: 4px solid #2581c4;
  border-radius: 8px;
}

.infostyle-category-card--5
.infostyle-category-card__icon::after {
  left: 27px;
  top: 23px;
  width: 18px;
  height: 18px;
  border: 3px solid #2581c4;
  border-radius: 50%;
}

/* Cables y adaptadores */
.infostyle-category-card--8
.infostyle-category-card__icon::before {
  left: 14px;
  top: 30px;
  width: 44px;
  height: 12px;
  border: 4px solid #2581c4;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.infostyle-category-card--8
.infostyle-category-card__icon::after {
  left: 12px;
  top: 17px;
  width: 9px;
  height: 19px;
  border-radius: 3px;
  background: #2581c4;
  box-shadow: 40px 18px 0 #2581c4;
}

/* Electrónica */
.infostyle-category-card--14
.infostyle-category-card__icon::before {
  left: 17px;
  top: 17px;
  width: 38px;
  height: 38px;
  border: 4px solid #2581c4;
  border-radius: 9px;
}

.infostyle-category-card--14
.infostyle-category-card__icon::after {
  left: 31px;
  top: 31px;
  width: 10px;
  height: 10px;
  background: #2581c4;
  border-radius: 2px;
}

/* Software */
.infostyle-category-card--16
.infostyle-category-card__icon::before {
  left: 13px;
  top: 16px;
  width: 46px;
  height: 38px;
  border: 4px solid #2581c4;
  border-radius: 5px;
}

.infostyle-category-card--16
.infostyle-category-card__icon::after {
  left: 21px;
  top: 29px;
  width: 28px;
  height: 4px;
  background: #2581c4;
  box-shadow:
    0 9px 0 #2581c4,
    0 18px 0 #2581c4;
}

.infostyle-category-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 16px 17px;
  text-align: center;
}

.infostyle-category-card__name {
  margin: 0;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #172033;
}

.infostyle-category-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2581c4;
}

.infostyle-category-card__link::after {
  content: " →";
}

/* TABLET */
@media (max-width: 1199px) {

  .infostyle-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* MOBILE */
@media (max-width: 767px) {

  .infostyle-categories {
    padding: 30px 0 34px;
  }

  .infostyle-categories__header {
    margin-bottom: 20px;
  }

  .infostyle-categories__title {
    font-size: 24px;
  }

  .infostyle-categories__subtitle {
    font-size: 14px;
  }

  .infostyle-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .infostyle-category-card__visual {
    height: 115px;
  }

  .infostyle-category-card__icon {
    width: 62px;
    height: 62px;
    transform: scale(.86);
  }

  .infostyle-category-card__content {
    padding: 14px 10px 15px;
  }

  .infostyle-category-card__name {
    min-height: 40px;
    font-size: 14px;
  }

  .infostyle-category-card__link {
    font-size: 12px;
  }

}

/* MOBILE PEQUEÑO */
@media (max-width: 380px) {

  .infostyle-categories__grid {
    grid-template-columns: 1fr;
  }

  .infostyle-category-card {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   INFOSTYLE - CATEGORIAS DESTACADAS
   Control 7.5.5.12-R1
   Ajuste final mobile
   ========================================================= */

@media (max-width: 767px) {

  /* Compactar ligeramente la zona visual */
  .infostyle-category-card__visual {
    height: 105px;
  }

  /*
   * Quinta categoría:
   * mantener ancho de una tarjeta pero centrarla
   * dentro de la grilla de dos columnas.
   */
  .infostyle-category-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 12px) / 2);
    justify-self: center;
  }

}

/* En móviles muy pequeños volvemos a una sola columna */
@media (max-width: 380px) {

  .infostyle-category-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

}

/* =========================================================
   INFOSTYLE - IMAGEN REAL CATEGORIA
   Control 7.5.5.13
   ========================================================= */

.infostyle-category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   INFOSTYLE - COMPRÁ CON CONFIANZA
   Control 7.5.6.5-R1
   Diseño visual aprobado
   ========================================================= */

.infostyle-trust {
  margin: 42px 0 48px;
}

.infostyle-trust__header {
  margin-bottom: 26px;
  text-align: center;
}

.infostyle-trust__title {
  margin: 0 0 8px;
  color: #172033;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.18;
}

.infostyle-trust__subtitle {
  margin: 0;
  color: #687580;
  font-size: 16px;
  line-height: 1.5;
}


/* Panel principal */

.infostyle-trust__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid #dbe8ed;
  border-top: 4px solid #4D92AB;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 97% 94%,
      rgba(77, 146, 171, 0.08) 0,
      rgba(77, 146, 171, 0.08) 2px,
      transparent 3px
    ),
    linear-gradient(145deg, #ffffff 0%, #fbfdfe 100%);
  box-shadow: 0 8px 28px rgba(27, 64, 78, 0.07);
}


/* Trayectoria */

.infostyle-trust__experience {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 285px;
  padding: 34px 36px;
  border-right: 1px solid #dce6ea;
}

.infostyle-trust__experience-icon {
  width: 145px;
  max-width: 100%;
}

.infostyle-trust__experience-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.infostyle-trust__years {
  margin: 0;
  color: #1582a3;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.infostyle-trust__experience-title {
  margin: 4px 0 0;
  color: #172033;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.3;
}

.infostyle-trust__accent-line {
  display: block;
  width: 66px;
  height: 2px;
  margin: 18px 0;
  background: #4D92AB;
}

.infostyle-trust__experience-text {
  max-width: 390px;
  margin: 0;
  color: #4e5c66;
  font-size: 14px;
  line-height: 1.55;
}


/* Mercado Libre */

.infostyle-trust__reputation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 36px 26px;
}

.infostyle-trust__ml-label {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #ffe36e;
  color: #151515;
}

.infostyle-trust__ml-label-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.infostyle-trust__ml-brand {
  padding-left: 15px;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}


/* Indicadores */

.infostyle-trust__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
}

.infostyle-trust__metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 14px;
  border-right: 1px solid #dbe3e7;
}

.infostyle-trust__metric:last-child {
  border-right: 0;
}

.infostyle-trust__metric-icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f4f8;
  color: #195a74;
  font-size: 22px;
  font-weight: 800;
}

.infostyle-trust__metric-icon--platinum {
  border-radius: 12px;
  background: #5756a8;
  color: #ffe36e;
}

.infostyle-trust__metric-icon--positive {
  background: #daf4e7;
  color: #147649;
}

.infostyle-trust__metric-main,
.infostyle-trust__metric-small {
  display: block;
}

.infostyle-trust__metric-main {
  color: #151b27;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.infostyle-trust__metric-small {
  margin-top: 2px;
  color: #333d46;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}


/* CTA */

.infostyle-trust__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 520px);
  min-height: 50px;
  margin: 0 auto;
  padding: 12px 22px;
  border: 0;
  border-radius: 9px;
  background: #1684a4;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.infostyle-trust__link:hover,
.infostyle-trust__link:focus {
  background: #126f8a;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(18, 111, 138, 0.18);
  transform: translateY(-1px);
}

.infostyle-trust__source {
  margin: 20px 0 0;
  color: #717d85;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}


/* Tablet */

@media (max-width: 1199.98px) {

  .infostyle-trust__panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .infostyle-trust__experience {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
  }

  .infostyle-trust__experience-icon {
    width: 110px;
  }

  .infostyle-trust__years {
    font-size: 24px;
  }

  .infostyle-trust__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .infostyle-trust__metric:nth-child(2) {
    border-right: 0;
  }

}


/* Mobile */

@media (max-width: 767.98px) {

  .infostyle-trust {
    margin: 32px 0 38px;
  }

  .infostyle-trust__header {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .infostyle-trust__title {
    font-size: 25px;
  }

  .infostyle-trust__subtitle {
    font-size: 14px;
  }

  .infostyle-trust__panel {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }

  .infostyle-trust__experience {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    min-height: auto;
    padding: 26px 22px;
    border-right: 0;
    border-bottom: 1px solid #dce6ea;
  }

  .infostyle-trust__experience-icon {
    width: 88px;
  }

  .infostyle-trust__years {
    font-size: 23px;
  }

  .infostyle-trust__experience-title {
    font-size: 17px;
  }

  .infostyle-trust__experience-text {
    font-size: 13px;
  }

  .infostyle-trust__accent-line {
    margin: 13px 0;
  }

  .infostyle-trust__reputation {
    padding: 24px 18px 22px;
  }

  .infostyle-trust__ml-label {
    gap: 9px;
    margin-bottom: 22px;
    padding: 9px 13px;
  }

  .infostyle-trust__ml-label-text {
    font-size: 10px;
  }

  .infostyle-trust__ml-brand {
    padding-left: 9px;
    font-size: 15px;
  }

  .infostyle-trust__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 24px;
  }

  .infostyle-trust__metric {
    justify-content: flex-start;
    min-height: 72px;
    padding: 10px 8px;
  }

  .infostyle-trust__metric:nth-child(1),
  .infostyle-trust__metric:nth-child(2) {
    border-bottom: 1px solid #e1e8eb;
  }

  .infostyle-trust__metric:nth-child(2) {
    border-right: 0;
  }

  .infostyle-trust__metric:nth-child(3) {
    border-right: 1px solid #dbe3e7;
  }

  .infostyle-trust__metric:last-child {
    border-right: 0;
  }

  .infostyle-trust__metric-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .infostyle-trust__metric-main {
    font-size: 14px;
  }

  .infostyle-trust__metric-small {
    font-size: 11px;
  }

  .infostyle-trust__link {
    min-height: 48px;
    padding: 11px 15px;
    font-size: 13px;
  }

  .infostyle-trust__source {
    margin-top: 15px;
    font-size: 10.5px;
  }

}


/* Mobile pequeño */

@media (max-width: 380px) {

  .infostyle-trust__experience {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 17px;
  }

  .infostyle-trust__experience-icon {
    width: 68px;
  }

  .infostyle-trust__years {
    font-size: 20px;
  }

  .infostyle-trust__experience-title {
    font-size: 15px;
  }

  .infostyle-trust__metrics {
    grid-template-columns: 1fr;
  }

  .infostyle-trust__metric {
    border-right: 0 !important;
    border-bottom: 1px solid #e1e8eb;
  }

  .infostyle-trust__metric:last-child {
    border-bottom: 0;
  }

}

