:root {
  --font-size-base: 15px;
  --font-primary: "RedHatDisplay", sans-serif;
  --color-primary: #39beac;
  --color-secondary: #00657f;
  --color-primary-rgb: 33, 205, 173;
  --color-secondary-rgb: 6, 41, 47;
  --color-white: #ffffff;
  --color-accent: #00226c;
  --color-dark: #06292f;
  --color-light: #6d6fb3;
  --bs-gray: #828599;
  --bs-gray-dark: #222222;
  --color-gray-100: #f9f9f9;
  --color-gray-200: #e9e9f0;
  --color-gray-300: #dee2e6;
  --color-green-100: #d7f6f0;
  /* overide Bootstrap color theme */
  --bs-primary: #39beac;
  --bs-secondary: #00657f;
  --bs-success: #73dfc1;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #e4e0e5;
  --bs-dark: #06292f;
  --bs-primary-rgb: 33, 205, 173;
  --bs-secondary-rgb: 0, 38, 120;
  --bs-success-rgb: 25, 135, 84;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --color-white-rgb: 255, 255, 255;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33, 37, 41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233, 236, 239;
  --bs-link-color: #21cdad;
  --bs-link-color-rgb: 13, 110, 253;
  --bs-link-decoration: none;
  --bs-link-hover-color: #002678;
  --bs-link-hover-color-rgb: 10, 88, 202;
  --bs-highlight-bg: #fff3cd;
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
  .marcas-section {
    width: 100%;
    padding: 30px 20px 85px;
    background: #ffffff;
    overflow: hidden;
  }

  .marcas-container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
  }

  .marcas-header {
    position: relative;
    text-align: center;
    max-width: 950px;
    margin: 0 auto 55px;
  }

  .marcas-header h2 {
    font-family: var(--font-primary)!important;
    margin: 0 0 12px;
    font-family: inherit;
    font-size: clamp(22px, 4vw, 40px);
    line-height: 1.05;
  
    letter-spacing: -1.5px;
        color: var(--color-accent);
  }

  .marcas-header p {
     font-family: var(--font-primary)!important;
    margin: 0 auto;
    max-width: 920px;
    font-family: inherit;
    font-size: clamp(15px, 1.35vw, 22px);
    line-height: 1.6;
    font-weight: 400;
    color: #616161;
  }


  .marcas-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 42px 38px;
  }

  .marca-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
  }

  .marca-logo {
    display: block;
    width: 100%;
    max-width: 140px;
    max-height: 76px;
    object-fit: contain;

    filter: grayscale(100%) saturate(0%) contrast(1.05);
    opacity: 0.65;

    transition: 
      filter 0.35s ease,
      opacity 0.35s ease,
      transform 0.35s ease;
  }

  .marca-item:hover .marca-logo {
    filter: grayscale(0%) saturate(115%) contrast(1);
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }

  @media (max-width: 1200px) {
    .marcas-grid {
      grid-template-columns: repeat(6, 1fr);
      gap: 36px 30px;
    }

  
  }

  @media (max-width: 768px) {
    .marcas-section {
      padding: 15px 18px 65px;
    }

    .marcas-header {
      margin-bottom: 42px;
    }

    .marcas-header h2 {
      letter-spacing: -1px;
    }

    .marcas-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 28px 22px;
    }

    .marca-item {
      min-height: 62px;
    }

    .marca-logo {
      max-width: 105px;
      max-height: 58px;
      opacity: 0.48;
    }

    
  }

  @media (max-width: 480px) {
    .marcas-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 26px 18px;
    }

    .marca-logo {
      max-width: 115px;
    }
  }


  /* GRID DE CLIENTES - 11 columnas x 3 filas */
.marcas-grid-11 {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 55px;

  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: center;
  justify-items: center;

  column-gap: 34px;
  row-gap: 54px;
}

/* Cada logo centrado */
.marcas-grid-11 .marca-item {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tamaño general de los logos */
.marcas-grid-11 .marca-logo {
  max-width: 118px;
  max-height: 82px;
  object-fit: contain;
}

/* Para logos más horizontales */
.marcas-grid-11 .marca-logo.horizontal {
  max-width: 140px;
  max-height: 64px;
}

/* Para logos cuadrados o circulares */
.marcas-grid-11 .marca-logo.square {
  max-width: 96px;
  max-height: 96px;
}

/* Tablet */
@media (max-width: 1200px) {
  .marcas-grid-11 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 0 35px;
    column-gap: 28px;
    row-gap: 42px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .marcas-grid-11 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 20px;
    column-gap: 20px;
    row-gap: 34px;
  }

  .marcas-grid-11 .marca-logo {
    max-width: 100px;
    max-height: 68px;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .marcas-grid-11 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ocultamos el checkbox */
.clientes-more-check {
  display: none;
}

/* Botón oculto en desktop */
.clientes-toggle {
  display: none;
}

@media (max-width: 768px) {

  .marcas-grid-11 {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 18px;
    column-gap: 20px;
    row-gap: 30px;

    max-height: 430px;
    overflow: hidden;
    transition: max-height 0.45s ease;
  }

  .marcas-grid-11::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      #ffffff 80%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Cuando se toca "Ver más clientes" */
  .clientes-more-check:checked ~ .marcas-grid-11 {
    max-height: 2200px;
  }

  .clientes-more-check:checked ~ .marcas-grid-11::after {
    opacity: 0;
  }

  .clientes-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary)!important;
    width: fit-content;
    margin: 30px auto 0;
    padding: 15px 30px;

    border-radius: 999px;
    background: #082a75;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 18px 45px rgba(8, 42, 117, 0.22);
    transition: all 0.25s ease;
    position: relative;
    z-index: 5;
  }

  .clientes-toggle:hover {
    transform: translateY(-2px);
    background: #061f59;
  }

  .clientes-toggle .txt-less {
    display: none;
  }

  .clientes-more-check:checked ~ .clientes-toggle .txt-more {
    display: none;
  }

  .clientes-more-check:checked ~ .clientes-toggle .txt-less {
    display: inline;
  }
}