/**
 * VERSPORT — RESPONSIVE v10
 *
 * Objetivo:
 * - mantener el diseño maestro de 1920 px en desktop;
 * - adaptar HOME y PRODUCTO a tablet y móvil;
 * - pensado para navegadores modernos de Android/iOS/iPadOS.
 *
 * Este archivo se carga con prioridad 900 y, por tanto, contiene
 * deliberadamente los overrides responsive finales del tema hijo.
 */

/* ==========================================================
   PANTALLAS SUPERIORES A 1920
   ========================================================== */

@media (min-width: 1921px) {
  .versport-site-width,
  body#index .versport-home,
  body#product .versport-product {
    max-width: 1920px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ==========================================================
   INTERACCIÓN TÁCTIL / iOS / ANDROID
   ========================================================== */

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  input,
  select {
    -webkit-tap-highlight-color: transparent;
  }

  body#index .versport-categories__link:hover .versport-categories__image {
    transform: none;
  }
}

/* ==========================================================
   TABLET HORIZONTAL / PORTÁTIL PEQUEÑO <= 1199
   ========================================================== */

@media (max-width: 1199.98px) {
  /* ---------- Header HOME ---------- */
  body#index .versport-header__inner {
    padding-right: 32px !important;
    padding-left: 32px !important;
  }

  body#index .versport-header__logo-image {
    max-width: 165px !important;
  }

  body#index .versport-header .ps-mainmenu__tree {
    gap: 22px !important;
  }

  body#index .versport-header .ps-mainmenu__tree-link {
    font-size: 12px !important;
  }

  /* ---------- HOME ---------- */
  body#index .versport-benefits__inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  body#index .versport-benefits__item {
    padding-right: 12px;
    padding-left: 12px;
  }

  body#index .versport-benefits__icon {
    flex-basis: 78px;
    width: 78px;
    margin-right: 12px;
  }

  body#index .versport-benefits__title {
    font-size: 14px;
  }

  body#index .versport-benefits__text {
    font-size: 12px;
  }

  body#index .versport-categories__content {
    left: 10%;
    width: 80%;
  }

  body#index .versport-sports__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
    padding: 24px 28px;
  }

  body#index .versport-technology {
    height: clamp(500px, 44vw, 603px);
  }

  body#index .versport-technology__intro {
    left: 4%;
    width: 36%;
    max-width: 390px;
  }

  body#index .versport-technology__features--left {
    left: 43%;
  }

  body#index .versport-stats {
    height: auto;
    min-height: 430px;
    padding-right: 28px;
    padding-left: 28px;
  }

  body#index .versport-stats__grid {
    padding: 0 24px;
  }

  body#index .versport-stores {
    height: auto;
    min-height: 430px;
  }

  body#index .versport-stores__content {
    padding-left: 48px;
  }

  /* ---------- PRODUCTO ---------- */
  body#product .versport-product-hero__identity {
    top: 69%;
  }

  body#product .versport-product-hero__name {
    font-size: clamp(46px, 5vw, 68px);
  }

  body#product .versport-product-benefits {
    padding-right: 20px;
    padding-left: 20px;
  }

  body#product .versport-product-colors,
  body#product .versport-product-technology,
  body#product .versport-product-sports,
  body#product .versport-product-certifications {
    width: calc(100% - 64px) !important;
  }

  body#product .versport-product-colors__grid {
    gap: 18px;
  }

  body#product .versport-product-sports__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 20px;
  }
}

/* ==========================================================
   TABLET VERTICAL <= 991
   ========================================================== */

@media (max-width: 991.98px) {
  /* --------------------------------------------------------
     HEADER HOME + PRODUCTO
     En tablet/móvil conservamos el menú real de PrestaShop,
     pero lo convertimos en una segunda fila desplazable.
     No dependemos de un menú JS alternativo.
     -------------------------------------------------------- */

  body#index .versport-header__inner,
  body#product .versport-header--product .versport-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: center;
    align-items: center !important;
    min-height: 112px !important;
    height: 112px !important;
    padding: 10px 24px 8px !important;
  }

  body#index .versport-header__logo,
  body#product .versport-header--product .versport-header__logo {
    order: 1;
  }

  body#index .versport-header__logo-image,
  body#product .versport-header--product .versport-header__logo-image {
    max-width: 155px !important;
    max-height: 34px !important;
  }

  body#index .versport-header__account,
  body#product .versport-header--product .versport-header__account {
    order: 2;
    margin-left: auto !important;
  }

  body#index .versport-header__navigation,
  body#product .versport-header--product .versport-header__navigation {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 8px 0 0 !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body#index .versport-header__navigation::-webkit-scrollbar,
  body#product .versport-header--product .versport-header__navigation::-webkit-scrollbar {
    display: none;
  }

  body#index .versport-header .ps-mainmenu--desktop,
  body#product .versport-header--product .ps-mainmenu--desktop {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 18px 0 0 !important;
  }

  body#index .versport-header .ps-mainmenu__tree,
  body#product .versport-header--product .ps-mainmenu__tree {
    display: flex !important;
    min-width: max-content;
    gap: 22px !important;
  }

  body#index .versport-header .ps-mainmenu__tree-link,
  body#product .versport-header--product .ps-mainmenu__tree-link {
    font-size: 11px !important;
  }

  body#index .versport-header #_desktop_ps_searchbar,
  body#product .versport-header--product #_desktop_ps_searchbar {
    flex: 0 0 32px !important;
    width: 32px !important;
    margin-left: auto !important;
  }

  body#index .versport-header #_desktop_ps_searchbar:has(.ps-searchbar__form:focus-within),
  body#product .versport-header--product #_desktop_ps_searchbar:has(.ps-searchbar__form:focus-within) {
    flex-basis: 220px !important;
    width: 220px !important;
  }

  body#index .versport-header::before {
    height: 112px !important;
  }

  body#index .versport-header::after {
    top: 112px !important;
  }

  body#product .versport-header--product {
    height: 112px !important;
    min-height: 112px !important;
  }

  /* ---------- HOME HERO ---------- */
  body#index .versport-hero__slides {
    height: 760px;
    min-height: 760px;
  }

  body#index .versport-hero__content {
    top: 23%;
    left: 5%;
    width: min(560px, 62%);
  }

  body#index .versport-hero__title {
    font-size: clamp(38px, 6vw, 52px);
  }

  body#index .versport-hero__description {
    font-size: 16px;
  }

  body#index .versport-benefits__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  body#index .versport-benefits__icon {
    flex-basis: 58px;
    width: 58px;
  }

  body#index .versport-benefits__title {
    font-size: 12px;
    white-space: normal;
  }

  body#index .versport-benefits__text {
    font-size: 11px;
  }

  /* ---------- HOME CATEGORÍAS ---------- */
  body#index .versport-categories__content {
    top: 8%;
    left: 8%;
    width: 84%;
  }

  body#index .versport-categories__title {
    margin-bottom: 20px;
    font-size: clamp(20px, 3vw, 28px);
  }

  body#index .versport-categories__description {
    font-size: 13px;
  }

  /* ---------- HOME TECNOLOGÍA ---------- */
  body#index .versport-technology {
    height: 560px;
  }

  body#index .versport-technology__background {
    object-position: center center;
  }

  body#index .versport-technology__intro {
    top: auto;
    right: auto;
    bottom: 28px;
    left: 28px;
    width: 44%;
    max-width: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, .58);
  }

  body#index .versport-technology__title {
    margin-bottom: 22px;
    font-size: 26px;
  }

  body#index .versport-technology__description {
    margin-bottom: 24px;
    font-size: 14px;
  }

  body#index .versport-technology__cta {
    width: 100%;
    height: 58px;
  }

  body#index .versport-technology__features {
    font-size: 11px;
  }

  body#index .versport-technology__features--left {
    top: 12%;
    left: 51%;
  }

  /* ---------- HOME STATS ---------- */
  body#index .versport-stats {
    height: auto;
    min-height: 0;
    padding: 44px 24px;
  }

  body#index .versport-stats__heading {
    margin-bottom: 44px;
    font-size: 30px;
  }

  body#index .versport-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 20px;
    padding: 0;
  }

  /* ---------- HOME STORES ---------- */
  body#index .versport-stores {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    height: auto;
    min-height: 430px;
  }

  body#index .versport-stores__content {
    padding: 40px 28px;
  }

  body#index .versport-stores__cta {
    height: 60px;
  }

  /* ---------- NEWSLETTER HOME ---------- */
  body#index .versport-newsletter__inner {
    padding-right: 28px;
    padding-left: 28px;
  }

  body#index .versport-newsletter__form {
    max-width: 100%;
  }

  /* ---------- PRODUCT HERO ---------- */
  body#product .versport-product-hero {
    height: 900px;
    min-height: 900px;
  }

  body#product .versport-product-hero__claim {
    top: 20%;
    right: 4%;
    width: 300px;
    max-width: 35%;
    font-size: clamp(34px, 5vw, 48px);
  }

  body#product .versport-product-hero__identity {
    top: 67%;
    width: min(610px, 68%);
  }

  body#product .versport-product-hero__certifications-image {
    width: 440px !important;
    height: auto !important;
    max-height: 96px !important;
  }

  body#product .versport-product-benefits {
    height: 190px;
    padding-right: 16px;
    padding-left: 16px;
  }

  body#product .versport-product-benefits__icon {
    flex-basis: 60px;
  }

  body#product .versport-product-benefits__icon img {
    max-width: 58px;
    max-height: 58px;
  }

  body#product .versport-product-benefits__title {
    font-size: 12px;
  }

  body#product .versport-product-benefits__text {
    font-size: 11px;
  }

  body#product .versport-product-colors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#product .versport-product-sports__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body#product .versport-product-certifications__grid {
    grid-template-columns: 1fr;
  }

  body#product .versport-product-certifications__item {
    min-height: 135px;
  }
}

/* ==========================================================
   MÓVIL <= 767
   ========================================================== */

@media (max-width: 767.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Respeta notch / Dynamic Island en iPhone modernos. */
  @supports (padding: max(0px)) {
    body#index .versport-header__inner,
    body#product .versport-header--product .versport-header__inner {
      padding-right: max(16px, env(safe-area-inset-right)) !important;
      padding-left: max(16px, env(safe-area-inset-left)) !important;
    }
  }

  /* ---------- Header ---------- */
  body#index .versport-header__inner,
  body#product .versport-header--product .versport-header__inner {
    min-height: 118px !important;
    height: 118px !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  body#index .versport-header__logo-image,
  body#product .versport-header--product .versport-header__logo-image {
    max-width: 142px !important;
    max-height: 31px !important;
  }

  body#index .versport-header .ps-mainmenu__tree,
  body#product .versport-header--product .ps-mainmenu__tree {
    gap: 18px !important;
  }

  body#index .versport-header .ps-mainmenu__tree-link,
  body#product .versport-header--product .ps-mainmenu__tree-link {
    font-size: 10px !important;
  }

  body#index .versport-header::before {
    height: 118px !important;
  }

  body#index .versport-header::after {
    top: 118px !important;
  }

  body#product .versport-header--product {
    height: 118px !important;
    min-height: 118px !important;
  }

  /* ---------- HOME HERO ---------- */
  body#index .versport-hero__slides {
    height: 650px;
    min-height: 650px;
  }

  body#index .versport-hero__image {
    object-position: 58% top;
  }

  body#index .versport-hero__content {
    top: 165px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 430px;
  }

  body#index .versport-hero__title {
    max-width: 390px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
  }

  body#index .versport-hero__description {
    width: min(340px, 92%);
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.4;
  }

  body#index .versport-hero__cta {
    width: min(260px, 86%);
    min-height: 58px;
    margin-top: 20px;
  }

  /* Benefits dejan de superponerse al hero en móvil. */
  body#index .versport-benefits {
    height: auto;
    min-height: 0;
    margin-top: 0;
    background: rgba(16, 0, 8, .96);
  }

  body#index .versport-benefits__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    padding: 10px;
  }

  body#index .versport-benefits__item {
    min-height: 132px;
    height: auto;
    padding: 14px 10px;
  }

  body#index .versport-benefits__icon {
    flex: 0 0 48px;
    width: 48px;
    margin-right: 8px;
  }

  body#index .versport-benefits__icon img {
    max-width: 46px;
    max-height: 46px;
  }

  body#index .versport-benefits__title {
    margin-bottom: 8px;
    font-size: 11px;
  }

  body#index .versport-benefits__text {
    max-width: none;
    font-size: 10px;
  }

  /* ---------- HOME CATEGORÍAS ---------- */
  body#index .versport-categories {
    grid-template-columns: 1fr;
  }

  body#index .versport-categories__item {
    aspect-ratio: 4 / 5;
  }

  body#index .versport-categories__content {
    top: 9%;
    left: 8%;
    width: 78%;
  }

  body#index .versport-categories__title {
    margin-bottom: 22px;
    font-size: clamp(28px, 8vw, 38px);
  }

  body#index .versport-categories__description {
    font-size: 15px;
  }

  /* ---------- HOME DEPORTES ---------- */
  body#index .versport-sports__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    padding: 20px 12px;
    gap: 8px 0;
  }

  body#index .versport-sports__item {
    min-height: 112px;
    padding: 8px 4px;
  }

  body#index .versport-sports__icon {
    max-width: 54px;
    height: 50px;
    max-height: 50px;
    margin-bottom: 8px;
  }

  body#index .versport-sports__label {
    font-size: 10px;
    white-space: normal;
  }

  /* ---------- HOME TECNOLOGÍA ---------- */
  body#index .versport-technology {
    height: 620px;
    min-height: 620px;
  }

  body#index .versport-technology__background {
    object-position: 61% center;
  }

  body#index .versport-technology__intro {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
    max-width: none;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
  }

  body#index .versport-technology__title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  body#index .versport-technology__description {
    margin-bottom: 18px;
    font-size: 13px;
  }

  body#index .versport-technology__cta {
    width: 100%;
    height: 56px;
    font-size: 12px;
  }

  body#index .versport-technology__features {
    display: none;
  }

  /* ---------- HOME STATS ---------- */
  body#index .versport-stats {
    padding: 36px 16px;
  }

  body#index .versport-stats__heading {
    margin-bottom: 34px;
    font-size: 25px;
    line-height: 1.15;
  }

  body#index .versport-stats__heading span {
    margin-right: 7px;
    margin-left: 7px;
  }

  body#index .versport-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 12px;
  }

  body#index .versport-stats__icon {
    max-width: 72px;
    height: 74px;
    max-height: 74px;
    margin-bottom: 16px;
  }

  body#index .versport-stats__value {
    font-size: 19px;
  }

  body#index .versport-stats__label {
    font-size: 11px;
  }

  /* ---------- HOME STORES ---------- */
  body#index .versport-stores {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  body#index .versport-stores__content {
    min-height: 390px;
    padding: 34px 22px;
  }

  body#index .versport-stores__eyebrow {
    margin-bottom: 24px;
  }

  body#index .versport-stores__title {
    font-size: 29px;
  }

  body#index .versport-stores__description {
    font-size: 15px;
  }

  body#index .versport-stores__cta {
    width: 100%;
    height: 58px;
  }

  body#index .versport-stores__visual {
    min-height: 280px;
  }

  body#index .versport-stores__image {
    position: absolute;
  }

  /* ---------- HOME NEWSLETTER ---------- */
  body#index .versport-newsletter__inner {
    padding: 34px 20px !important;
  }

  body#index .versport-newsletter__title {
    font-size: 25px;
  }

  body#index .versport-newsletter__form,
  body#index .versport-newsletter form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body#index .versport-newsletter input[type="email"],
  body#index .versport-newsletter input[type="text"],
  body#index .versport-newsletter button,
  body#index .versport-newsletter input[type="submit"] {
    width: 100% !important;
    min-height: 52px;
  }

  /* ---------- PRODUCT HERO ---------- */
  body#product .versport-product-hero {
    height: 920px !important;
    min-height: 920px !important;
  }

  body#product .versport-product-hero__background {
    object-position: center top;
  }

  body#product .versport-product-hero__claim {
    top: 145px !important;
    right: 16px !important;
    width: 48% !important;
    max-width: 48% !important;
    font-size: clamp(30px, 8.5vw, 42px) !important;
    line-height: 1 !important;
  }

  body#product .versport-product-hero__store {
    top: 205px !important;
    left: 16px !important;
    width: 230px !important;
    height: 56px !important;
    padding-left: 64px !important;
  }

  body#product .versport-product-hero__store-pin {
    top: -18px !important;
    left: 12px !important;
    width: 42px !important;
    height: 58px !important;
  }

  body#product .versport-product-hero__store-label {
    font-size: 10px !important;
  }

  /* En móvil el bloque de identidad queda por debajo del rostro,
     justo antes de los benefits. */
  body#product .versport-product-hero__identity {
    top: 54% !important;
    width: calc(100% - 32px) !important;
  }

  body#product .versport-product-hero__name {
    font-size: clamp(40px, 12vw, 58px) !important;
  }

  body#product .versport-product-hero__certifications {
    height: auto !important;
    min-height: 64px !important;
    margin-top: 14px !important;
  }

  body#product .versport-product-hero__certifications-image {
    width: auto !important;
    max-width: min(330px, 86%) !important;
    height: auto !important;
    max-height: 72px !important;
  }

  body#product .versport-product-benefits {
    height: 300px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 8px 10px !important;
  }

  body#product .versport-product-benefits__item {
    min-height: 140px;
    padding: 12px 8px;
  }

  body#product .versport-product-benefits__icon {
    flex: 0 0 44px !important;
    margin-right: 8px !important;
  }

  body#product .versport-product-benefits__icon img {
    max-width: 44px !important;
    max-height: 44px !important;
  }

  body#product .versport-product-benefits__title {
    font-size: 10px !important;
    line-height: 1.15;
  }

  body#product .versport-product-benefits__text {
    font-size: 9px !important;
    line-height: 1.25;
  }

  /* ---------- PRODUCT INTRO ---------- */
  html body#product .versport-product > .versport-product-intro {
    height: auto !important;
    min-height: 0 !important;
  }

  body#product .versport-product-intro__inner {
    padding: 36px 18px 40px !important;
  }

  body#product .versport-product-intro__title {
    font-size: 23px !important;
  }

  body#product .versport-product-intro__description {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body#product .versport-product-intro__download,
  body#product .versport-product-intro__download--disabled {
    width: min(330px, 100%) !important;
    height: 58px !important;
  }

  /* ---------- PRODUCT BLOQUES CONTENIDOS ---------- */
  html body#product .versport-product-colors,
  html body#product .versport-product-technology,
  html body#product .versport-product-sports,
  html body#product .versport-product-certifications {
    width: calc(100% - 24px) !important;
  }

  body#product .versport-product-colors {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  body#product .versport-product-colors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body#product .versport-product-colors__item,
  body#product .versport-product-colors__placeholder {
    min-width: 0;
  }

  body#product .versport-product-technology {
    height: auto !important;
    min-height: 0 !important;
  }

  body#product .versport-product-technology__image {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  body#product .versport-product-sports {
    height: auto !important;
    min-height: 0 !important;
  }

  body#product .versport-product-sports__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 0 !important;
    padding: 20px 6px !important;
  }

  body#product .versport-product-sports__item {
    min-width: 0;
  }

  body#product .versport-product-sports__icon {
    max-width: 46px !important;
    max-height: 46px !important;
  }

  body#product .versport-product-sports__label {
    font-size: 9px !important;
    white-space: normal !important;
  }

  body#product .versport-product-certifications {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 24px !important;
  }

  body#product .versport-product-certifications__header {
    min-height: 100px !important;
    padding: 28px 12px 18px !important;
  }

  body#product .versport-product-certifications__title {
    font-size: 21px !important;
  }

  body#product .versport-product-certifications__grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body#product .versport-product-certifications__item {
    min-height: 128px !important;
    padding: 18px 16px !important;
  }

  body#product .versport-product-certifications__logo {
    flex-basis: 92px !important;
  }

  body#product .versport-product-certifications__logo img {
    max-width: 88px !important;
    max-height: 82px !important;
  }

  /* ---------- PRODUCT STORES ---------- */
  body#product .versport-product-stores {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body#product .versport-product-stores__content {
    min-height: 360px;
    padding: 34px 20px !important;
  }

  body#product .versport-product-stores__visual {
    min-height: 280px;
  }

  /* Newsletter: nunca en ficha de producto. */
  body#product .versport-newsletter,
  body#product .block_newsletter,
  body#product .block-newsletter {
    display: none !important;
  }
}

/* ==========================================================
   MÓVIL ESTRECHO <= 430
   ========================================================== */

@media (max-width: 430px) {
  body#index .versport-hero__slides {
    height: 620px;
    min-height: 620px;
  }

  body#index .versport-hero__content {
    top: 150px;
  }

  body#index .versport-hero__title {
    font-size: 34px;
  }

  body#index .versport-benefits__inner {
    grid-template-columns: 1fr;
  }

  body#index .versport-benefits__item {
    min-height: 104px;
  }

  body#index .versport-sports__grid,
  body#product .versport-product-sports__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body#index .versport-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  body#product .versport-product-hero {
    height: 900px !important;
    min-height: 900px !important;
  }

  body#category .versport-category-hero {
    height: 900px !important;
    min-height: 900px !important;
  }

  body#product .versport-product-hero__claim {
    top: 135px !important;
    font-size: 30px !important;
  }

  body#product .versport-product-hero__identity {
    top: 52% !important;
  }

  body#product .versport-product-benefits {
    height: 310px !important;
  }
}

/* ==========================================================
   VERSPORT v11 — POSICIÓN RESPONSIVE DE IDENTIDAD DE PRODUCTO
   ========================================================== */

/* Tablet: la franja de benefits mide 190 px. */
@media (min-width: 768px) and (max-width: 991.98px) {
  html body#product .versport-product-hero__identity {
    top: auto !important;
    bottom: 198px !important;
    transform: translateX(-50%) !important;
  }
}

/* Móvil: benefits ocupa 300 px. */
@media (max-width: 767.98px) {
  html body#product .versport-product-hero__identity {
    top: auto !important;
    bottom: 308px !important;
    transform: translateX(-50%) !important;
  }
}

/* Móvil estrecho: benefits ocupa 310 px. */
@media (max-width: 430px) {
  html body#product .versport-product-hero__identity {
    top: auto !important;
    bottom: 318px !important;
    transform: translateX(-50%) !important;
  }
}

/* ==========================================================
   v12 — ALTURA DE HEADER UNIFICADA EN DESKTOP
   La variante PRODUCTO es la referencia visual.
   Tablet y móvil ya comparten las mismas alturas en los
   breakpoints anteriores (112 px / 118 px).
   ========================================================== */

@media (min-width: 992px) {
  /* HOME: misma altura exterior que PRODUCTO */
  body#index .versport-header--home,
  body#index .versport-header {
    height: min(7.865vw, 151px) !important;
    min-height: 92px !important;
  }

  /* La banda oscura de HOME acompaña toda la altura del header. */
  body#index .versport-header::before {
    height: 100% !important;
  }

  body#index .versport-header::after {
    top: 100% !important;
  }

  /* Misma geometría interna que la cabecera de producto. */
  body#index .versport-header__inner {
    height: 100% !important;
    min-height: 0 !important;
    align-items: flex-end !important;
    padding: 0 96px 25px !important;
  }

  body#index .versport-header__logo-image {
    max-width: 247px !important;
    max-height: 40px !important;
  }

  body#index .versport-header__navigation {
    margin-left: 56px !important;
  }
}

/* ==========================================================
   v13 — HEADER HOME = HEADER PRODUCTO (DESKTOP)
   Referencia única: geometría de .versport-header--product.
   Se elimina en HOME la banda generada por pseudo-elementos
   para que ambos headers tengan exactamente la misma caja.
   ========================================================== */

@media (min-width: 992px) {
  /* Caja exterior: idéntica en HOME y PRODUCTO. */
  body#index #header,
  body#product #header {
    position: absolute !important;
    z-index: 100 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body#index .versport-header--home,
  body#index .versport-header,
  body#product .versport-header--product {
    position: relative !important;
    width: 100% !important;
    height: min(7.865vw, 151px) !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.62) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* HOME deja de crear una segunda banda distinta mediante pseudo-elementos. */
  body#index .versport-header::before,
  body#index .versport-header::after,
  body#index .versport-header--home::before,
  body#index .versport-header--home::after {
    display: none !important;
    content: none !important;
  }

  /* Contenedor interior: exactamente los valores del header de producto. */
  body#index .versport-header__inner,
  body#product .versport-header--product .versport-header__inner {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    max-width: 1920px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 96px 25px !important;
  }

  body#index .versport-header__logo,
  body#product .versport-header--product .versport-header__logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header__logo a,
  body#product .versport-header--product .versport-header__logo a {
    display: block !important;
    line-height: 0 !important;
  }

  body#index .versport-header__logo-image,
  body#product .versport-header--product .versport-header__logo-image {
    display: block !important;
    width: auto !important;
    max-width: 247px !important;
    height: auto !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header__navigation,
  body#product .versport-header--product .versport-header__navigation {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    margin-left: 56px !important;
    padding: 0 !important;
  }

  body#index .versport-header .ps-mainmenu--desktop,
  body#product .versport-header--product .ps-mainmenu--desktop {
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 30px 0 auto !important;
    padding: 0 !important;
  }

  body#index .versport-header .ps-mainmenu__tree,
  body#product .versport-header--product .ps-mainmenu__tree {
    display: flex !important;
    align-items: center !important;
    gap: clamp(20px, 2vw, 38px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header .ps-mainmenu__tree-link,
  body#product .versport-header--product .ps-mainmenu__tree-link {
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body#index .versport-header #_desktop_ps_searchbar,
  body#product .versport-header--product #_desktop_ps_searchbar {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header__account,
  body#product .versport-header--product .versport-header__account {
    flex: 0 0 32px !important;
    width: 32px !important;
    margin: 0 0 0 14px !important;
    padding: 0 !important;
  }
}

/* ==========================================================
   v14 — CATEGORÍA VERSPORT RESPONSIVE
   ========================================================== */

@media (max-width: 991.98px) {
  body#category .versport-header--category {
    height: 112px !important;
    min-height: 112px !important;
  }

  body#category .versport-header--category .versport-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: center;
    align-items: center !important;
    min-height: 112px !important;
    height: 112px !important;
    padding: 10px 24px 8px !important;
  }

  body#category .versport-header--category .versport-header__logo {
    order: 1;
  }

  body#category .versport-header--category .versport-header__logo-image {
    max-width: 155px !important;
    max-height: 34px !important;
  }

  body#category .versport-header--category .versport-header__account {
    order: 2;
    margin-left: auto !important;
  }

  body#category .versport-header--category .versport-header__navigation {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    margin: 8px 0 0 !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body#category .versport-header--category .versport-header__navigation::-webkit-scrollbar {
    display: none;
  }

  body#category .versport-header--category .ps-mainmenu--desktop {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 18px 0 0 !important;
  }

  body#category .versport-header--category .ps-mainmenu__tree {
    display: flex !important;
    min-width: max-content;
    height: auto !important;
    gap: 22px !important;
  }

  body#category .versport-header--category .ps-mainmenu__tree-link {
    font-size: 11px !important;
  }

  body#category .versport-header--category #_desktop_ps_searchbar {
    flex: 0 0 32px !important;
    width: 32px !important;
    margin-left: auto !important;
  }

  body#category .versport-header--category #_desktop_ps_searchbar:has(.ps-searchbar__form:focus-within) {
    flex-basis: 220px !important;
    width: 220px !important;
  }

  /* Categoría: misma altura base responsive que el hero de producto. */
  body#category .versport-category-hero {
    height: 900px !important;
    min-height: 900px !important;
  }

  body#category .versport-category-hero__image {
    object-position: center top;
  }

  body#category .versport-category-hero__inner {
    height: 100%;
    min-height: 0;
    padding: 0 40px 60px;
  }

  body#category .versport-category-hero__title {
    font-size: clamp(42px, 7vw, 58px);
  }

  body#category .versport-category-products__inner {
    width: calc(100% - 64px);
  }

  body#category .versport-category-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }
}

@media (max-width: 767.98px) {
  @supports (padding: max(0px)) {
    body#category .versport-header--category .versport-header__inner {
      padding-right: max(16px, env(safe-area-inset-right)) !important;
      padding-left: max(16px, env(safe-area-inset-left)) !important;
    }
  }

  body#category .versport-header--category,
  body#category .versport-header--category .versport-header__inner {
    height: 118px !important;
    min-height: 118px !important;
  }

  body#category .versport-header--category .versport-header__inner {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  body#category .versport-header--category .versport-header__logo-image {
    max-width: 142px !important;
    max-height: 31px !important;
  }

  body#category .versport-header--category .ps-mainmenu__tree {
    gap: 18px !important;
  }

  body#category .versport-header--category .ps-mainmenu__tree-link {
    font-size: 10px !important;
  }

  /* Móvil: misma filosofía que producto (hero alto + crop por cover). */
  body#category .versport-category-hero {
    height: 920px !important;
    min-height: 920px !important;
  }

  body#category .versport-category-hero__image {
    object-position: center top;
  }

  body#category .versport-category-hero__inner {
    height: 100%;
    min-height: 0;
    justify-content: flex-end;
    padding: 0 20px 44px;
  }

  body#category .versport-category-hero__title {
    font-size: clamp(34px, 11vw, 48px);
  }

  body#category .versport-category-hero__description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.42;
  }

  body#category .versport-category-products {
    padding: 52px 0 70px;
  }

  body#category .versport-category-products__inner {
    width: calc(100% - 32px);
  }

  body#category .versport-category-products__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  body#category .versport-category-product__content {
    padding-top: 20px;
  }
}

/* ==========================================================
   v14 — HEADER DESKTOP ÚNICO Y DEFINITIVO
   HOME + PRODUCTO + CATEGORÍA
   Este bloque incorpora la corrección manual que quedó
   confirmada después de la v13.
   ========================================================== */

@media (min-width: 992px) {
  body#index #header,
  body#product #header,
  body#category #header {
    height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body#index .versport-header,
  body#product .versport-header,
  body#category .versport-header,
  body#index .versport-header--home,
  body#product .versport-header--product,
  body#category .versport-header--category {
    position: relative !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.62) !important;
  }

  body#index .versport-header::before,
  body#index .versport-header::after,
  body#product .versport-header::before,
  body#product .versport-header::after,
  body#category .versport-header::before,
  body#category .versport-header::after {
    display: none !important;
    content: none !important;
  }

  body#index .versport-header__inner,
  body#product .versport-header__inner,
  body#category .versport-header__inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1920px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
  }

  body#index .versport-header__logo,
  body#product .versport-header__logo,
  body#category .versport-header__logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header__logo-image,
  body#product .versport-header__logo-image,
  body#category .versport-header__logo-image {
    display: block !important;
    width: auto !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: 48px !important;
    margin: 0 !important;
  }

  body#index .versport-header__navigation,
  body#product .versport-header__navigation,
  body#category .versport-header__navigation {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    margin: 0 30px 0 60px !important;
    padding: 0 !important;
  }

  body#index .versport-header .ps-mainmenu,
  body#product .versport-header .ps-mainmenu,
  body#category .versport-header .ps-mainmenu {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 30px 0 auto !important;
    padding: 0 !important;
  }

  body#index .versport-header .ps-mainmenu__tree,
  body#product .versport-header .ps-mainmenu__tree,
  body#category .versport-header .ps-mainmenu__tree {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#index .versport-header #_desktop_ps_searchbar,
  body#product .versport-header #_desktop_ps_searchbar,
  body#category .versport-header #_desktop_ps_searchbar {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body#index .versport-header__account,
  body#product .versport-header__account,
  body#category .versport-header__account {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ==========================================================
   VERSPORT v16 — HERO CATEGORÍA = HERO PRODUCTO
   La categoría comparte la misma altura/recorte del producto
   y la misma franja oscura superpuesta en la base.
   ========================================================== */

@media (min-width: 992px) {
  body#category .versport-category-hero {
    height: min(63.125vw, 1212px) !important;
    min-height: 760px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-hero__inner {
    height: 203px !important;
  }

  body#category .versport-category-hero__inner {
    justify-content: center !important;
    padding: 0 96px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#category .versport-category-hero {
    height: 900px !important;
    min-height: 900px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-hero__inner {
    height: 190px !important;
  }

  body#category .versport-category-hero__inner {
    justify-content: center !important;
    padding: 0 40px !important;
  }
}

@media (max-width: 767.98px) {
  body#category .versport-category-hero {
    height: 920px !important;
    min-height: 920px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-hero__inner {
    height: 170px !important;
  }

  body#category .versport-category-hero__inner {
    justify-content: center !important;
    padding: 0 20px !important;
  }
}

@media (max-width: 430px) {
  body#category .versport-category-hero {
    height: 900px !important;
    min-height: 900px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-hero__inner {
    height: 160px !important;
  }
}

/* ==========================================================
   VERSPORT v17 — CONTENIDO EDITORIAL DE CATEGORÍA
   Mantiene el mismo paradigma responsive del Hero de producto.
   ========================================================== */

@media (min-width: 992px) {
  body#category .versport-category-hero__editorial {
    top: 12% !important;
    left: 2.85% !important;
    width: min(710px, 43%) !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-benefits {
    height: 203px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#category .versport-category-hero__editorial {
    top: 155px !important;
    left: 40px !important;
    width: min(540px, 58%) !important;
  }

  body#category .versport-category-hero__claim {
    margin-bottom: 20px !important;
    font-size: clamp(38px, 5.8vw, 50px) !important;
  }

  body#category .versport-category-hero__subtitle {
    margin-bottom: 28px !important;
    font-size: clamp(16px, 2.3vw, 20px) !important;
  }

  body#category .versport-category-hero__description {
    margin-bottom: 28px !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  body#category .versport-category-hero__certifications-image {
    width: min(430px, 100%) !important;
    max-height: 94px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-benefits {
    height: 190px !important;
  }

  body#category .versport-category-benefits {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body#category .versport-category-benefits__item {
    gap: 10px !important;
    padding: 14px 8px !important;
  }

  body#category .versport-category-benefits__icon {
    flex-basis: 60px !important;
  }

  body#category .versport-category-benefits__icon img {
    max-width: 58px !important;
    max-height: 58px !important;
  }

  body#category .versport-category-benefits__title {
    font-size: 12px !important;
  }

  body#category .versport-category-benefits__text {
    font-size: 11px !important;
  }
}

@media (max-width: 767.98px) {
  body#category .versport-category-hero__editorial {
    top: 145px !important;
    left: 20px !important;
    width: calc(100% - 40px) !important;
    max-width: 500px !important;
  }

  body#category .versport-category-hero__claim {
    max-width: 72% !important;
    margin-bottom: 18px !important;
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: 1 !important;
  }

  body#category .versport-category-hero__subtitle {
    max-width: 78% !important;
    margin-bottom: 24px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body#category .versport-category-hero__description {
    max-width: 72% !important;
    margin-bottom: 24px !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
  }

  body#category .versport-category-hero__certifications-image {
    width: min(330px, 72vw) !important;
    max-height: 72px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-benefits {
    height: 300px !important;
  }

  body#category .versport-category-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 8px 10px !important;
  }

  body#category .versport-category-benefits__item {
    min-height: 140px !important;
    gap: 8px !important;
    padding: 12px 8px !important;
  }

  body#category .versport-category-benefits__icon {
    flex: 0 0 44px !important;
  }

  body#category .versport-category-benefits__icon img {
    max-width: 44px !important;
    max-height: 44px !important;
  }

  body#category .versport-category-benefits__title {
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  body#category .versport-category-benefits__text {
    font-size: 9px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 430px) {
  body#category .versport-category-hero__editorial {
    top: 135px !important;
    left: 16px !important;
    width: calc(100% - 32px) !important;
  }

  body#category .versport-category-hero__claim {
    font-size: 32px !important;
  }

  body#category .versport-category-hero__subtitle {
    font-size: 14px !important;
  }

  body#category .versport-category-hero__description {
    font-size: 12px !important;
  }

  body#category .versport-category-hero__shade,
  body#category .versport-category-benefits {
    height: 310px !important;
  }
}

/* ==========================================================
   VERSPORT v18 — EDITORIAL DE CATEGORÍA
   - soporta saltos reales y /n / \\n desde Back Office
   - homologaciones alineadas a la izquierda y ancladas abajo
   ========================================================== */

@media (min-width: 992px) {
  body#category .versport-category-hero__editorial {
    top: 12% !important;
    left: 2.85% !important;
    width: min(710px, 43%) !important;
  }

  body#category .versport-category-hero__subtitle {
    margin-bottom: 52px !important;
  }

  body#category .versport-category-hero__description {
    margin-bottom: 0 !important;
  }

  body#category .versport-category-hero__certifications {
    left: 2.85% !important;
    bottom: 272px !important;
    width: min(533px, 43%) !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#category .versport-category-hero__certifications {
    left: 40px !important;
    bottom: 235px !important;
    width: min(430px, 55%) !important;
  }
}

@media (max-width: 767.98px) {
  body#category .versport-category-hero__editorial {
    top: 120px !important;
  }

  body#category .versport-category-hero__subtitle {
    margin-bottom: 28px !important;
  }

  body#category .versport-category-hero__certifications {
    left: 20px !important;
    bottom: 205px !important;
    width: min(390px, calc(100% - 40px)) !important;
  }
}

@media (max-width: 430px) {
  body#category .versport-category-hero__certifications {
    bottom: 195px !important;
    width: min(340px, calc(100% - 40px)) !important;
  }
}

/* ==========================================================
   VERSPORT v19 — CATEGORY EDITORIAL / INTRO RESPONSIVE
   ========================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  body#category .versport-category-hero__claim {
    font-family: "Inter", sans-serif !important;
    font-size: clamp(29px, 4vw, 32px) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
  }

  body#category .versport-category-hero__certifications {
    left: 40px !important;
    bottom: 228px !important;
    width: min(430px, 58%) !important;
  }

  body#category .versport-category-intro,
  body#category .versport-category-intro__inner {
    min-height: 245px !important;
  }

  body#category .versport-category-intro__inner {
    padding: 38px 40px 44px !important;
  }

  body#category .versport-category-intro__title {
    margin-bottom: 24px !important;
    font-size: 25px !important;
  }

  body#category .versport-category-intro__description {
    font-size: 15px !important;
  }
}

@media (max-width: 767.98px) {
  body#category .versport-category-hero__claim {
    font-family: "Inter", sans-serif !important;
    font-size: clamp(28px, 8.5vw, 32px) !important;
    font-weight: 600 !important;
    line-height: 1.06 !important;
  }

  body#category .versport-category-hero__certifications {
    left: 20px !important;
    bottom: 325px !important;
    width: min(330px, calc(100% - 40px)) !important;
  }

  body#category .versport-category-intro,
  body#category .versport-category-intro__inner {
    min-height: 230px !important;
  }

  body#category .versport-category-intro__inner {
    padding: 34px 20px 38px !important;
  }

  body#category .versport-category-intro__title {
    margin-bottom: 20px !important;
    font-size: 22px !important;
  }

  body#category .versport-category-intro__description {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

/* ==========================================================
   VERSPORT v21 — CATEGORÍA: MAQUETACIÓN INFERIOR CENTRADA
   Referencia maestra PSD: 1920 px
   Zona útil interior desktop: 1728 px (96 px por lado)
   Estas reglas se cargan al final para imponerse sobre
   definiciones anteriores sin tocar Home ni Producto.
   ========================================================== */

/* ---------- COMPARAR MODELOS ---------- */
body#category .versport-category-compare {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  padding: 50px 0 60px !important;
  text-align: center !important;
  background: #fff !important;
}

body#category .versport-category-compare__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(395px, calc(100% - 40px)) !important;
  height: 76px !important;
  margin: 0 auto !important;
}

/* ---------- HOMOLOGACIONES ---------- */
body#category .versport-category-certifications {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  padding: 0 0 72px !important;
  background: #fff !important;
}

body#category .versport-category-certifications__header {
  width: calc(100% - 192px) !important;
  max-width: 1728px !important;
  margin: 0 auto 52px !important;
  padding: 0 !important;
  text-align: center !important;
}

body#category .versport-category-certifications__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: calc(100% - 192px) !important;
  max-width: 1728px !important;
  min-height: 215px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #f1f1f1 !important;
}

body#category .versport-category-certifications__item {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  min-width: 0 !important;
  padding: 28px 34px !important;
  margin: 0 !important;
}

body#category .versport-category-certifications__logo {
  flex: 0 0 128px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 120px !important;
}

body#category .versport-category-certifications__logo img {
  display: block !important;
  width: auto !important;
  max-width: 128px !important;
  height: auto !important;
  max-height: 130px !important;
  object-fit: contain !important;
}

/* ---------- TECNOLOGÍA VERSPORT ---------- */
body#category .versport-category-technology {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  padding: 0 0 16px !important;
  background: #fff !important;
}

body#category .versport-category-technology__inner {
  display: block !important;
  width: calc(100% - 192px) !important;
  max-width: 1728px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body#category .versport-category-technology__image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- SERVICIOS ---------- */
body#category .versport-category-services {
  width: calc(100% - 192px) !important;
  max-width: 1728px !important;
  min-height: 197px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #000 !important;
  color: #fff !important;
}

body#category .versport-category-services__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-height: 197px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#category .versport-category-services__item {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 24px 20px !important;
}

body#category .versport-category-services__icon {
  flex: 0 0 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body#category .versport-category-services__item--shipping .versport-category-services__icon {
  flex-basis: 126px !important;
}

body#category .versport-category-services__icon img {
  display: block !important;
  width: auto !important;
  max-width: 96px !important;
  height: auto !important;
  max-height: 96px !important;
  object-fit: contain !important;
}

body#category .versport-category-services__item--shipping .versport-category-services__icon img {
  max-width: 126px !important;
}

/* ---------- ENCUENTRA TU ÓPTICA: VUELVE A FULL WIDTH ---------- */
body#category .versport-category-stores {
  display: grid !important;
  grid-template-columns: minmax(0, 34%) minmax(0, 66%) !important;
  width: 100% !important;
  max-width: 1920px !important;
  min-height: 472px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}

body#category .versport-category-stores__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 46px 40px 38px 96px !important;
  background: #000 !important;
  color: #fff !important;
}

body#category .versport-category-stores__visual {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 472px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body#category .versport-category-stores__image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ---------- TABLET ---------- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  body#category .versport-category-certifications__header,
  body#category .versport-category-certifications__grid,
  body#category .versport-category-technology__inner,
  body#category .versport-category-services {
    width: calc(100% - 64px) !important;
  }

  body#category .versport-category-certifications__grid {
    grid-template-columns: 1fr !important;
  }

  body#category .versport-category-certifications__item + .versport-category-certifications__item {
    border-left: 0 !important;
    border-top: 1px solid rgba(0,0,0,.14) !important;
  }

  body#category .versport-category-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body#category .versport-category-stores {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%) !important;
  }

  body#category .versport-category-stores__content {
    padding: 40px !important;
  }
}

/* ---------- MÓVIL ---------- */
@media (max-width: 767.98px) {
  body#category .versport-category-compare {
    padding: 34px 0 42px !important;
  }

  body#category .versport-category-certifications {
    padding-bottom: 42px !important;
  }

  body#category .versport-category-certifications__header,
  body#category .versport-category-certifications__grid,
  body#category .versport-category-technology__inner,
  body#category .versport-category-services {
    width: calc(100% - 24px) !important;
  }

  body#category .versport-category-certifications__header {
    margin-bottom: 28px !important;
  }

  body#category .versport-category-certifications__grid {
    grid-template-columns: 1fr !important;
  }

  body#category .versport-category-certifications__item {
    gap: 18px !important;
    padding: 22px 18px !important;
  }

  body#category .versport-category-certifications__item + .versport-category-certifications__item {
    border-left: 0 !important;
    border-top: 1px solid rgba(0,0,0,.14) !important;
  }

  body#category .versport-category-certifications__logo {
    flex-basis: 92px !important;
  }

  body#category .versport-category-certifications__logo img {
    max-width: 92px !important;
    max-height: 92px !important;
  }

  body#category .versport-category-services {
    min-height: 0 !important;
  }

  body#category .versport-category-services__grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body#category .versport-category-services__item {
    min-height: 112px !important;
    padding: 18px 16px !important;
  }

  body#category .versport-category-services__icon,
  body#category .versport-category-services__item--shipping .versport-category-services__icon {
    flex-basis: 74px !important;
  }

  body#category .versport-category-services__icon img,
  body#category .versport-category-services__item--shipping .versport-category-services__icon img {
    max-width: 74px !important;
    max-height: 74px !important;
  }

  body#category .versport-category-stores {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body#category .versport-category-stores__content {
    min-height: 340px !important;
    padding: 34px 24px !important;
  }

  body#category .versport-category-stores__visual {
    min-height: 300px !important;
  }
}

/* ==========================================================
   CATEGORÍA — SERVICIOS FULL WIDTH
   ========================================================== */

@media (min-width: 992px) {

  body#category .versport-category-services {
    position: relative !important;

    left: 50% !important;

    width: min(100vw, 1920px) !important;
    max-width: 1920px !important;

    margin-right: 0 !important;
    margin-left: 0 !important;

    transform: translateX(-50%) !important;

    background: #000 !important;
  }


  body#category .versport-category-services__grid {
    width: 100% !important;
    max-width: none !important;

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

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

}


/* ==========================================================
   VERSPORT v22 — CATEGORÍA: STORES = HOME RESPONSIVE
   Mismo componente .versport-stores, con los mismos cambios
   de layout de HOME en tablet y móvil.
   ========================================================== */

@media (max-width: 1199.98px) {
  body#category .versport-stores {
    height: auto !important;
    min-height: 430px !important;
  }

  body#category .versport-stores__content {
    padding-left: 48px !important;
  }
}

@media (max-width: 991.98px) {
  body#category .versport-stores {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    height: auto !important;
    min-height: 430px !important;
  }

  body#category .versport-stores__content {
    padding: 40px 28px !important;
  }

  body#category .versport-stores__cta {
    height: 60px !important;
  }
}

@media (max-width: 767.98px) {
  body#category .versport-stores {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body#category .versport-stores__content {
    min-height: 390px !important;
    padding: 34px 22px !important;
  }

  body#category .versport-stores__eyebrow {
    margin-bottom: 24px !important;
  }

  body#category .versport-stores__title {
    font-size: 29px !important;
  }

  body#category .versport-stores__description {
    font-size: 15px !important;
  }

  body#category .versport-stores__cta {
    width: 100% !important;
    height: 58px !important;
  }

  body#category .versport-stores__visual {
    min-height: 280px !important;
  }

  body#category .versport-stores__image {
    position: absolute !important;
  }
}
