/* Oculta versión mobile por defecto */
.mobile-marcas {
    display: none;
  }
  
  /* Mostrar mobile y ocultar desktop desde 0 a 500px */
  @media (max-width: 500px) {
    .seccion-marcas {
      display: none !important;
    }
  
    .mobile-marcas {
      display: block !important;
      padding: 2rem 1rem;
      text-align: center;
    }
  
    .contenedor-mobail {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .tarjeta-marca-mobail {
      width: 90%;
      height: 360px;
      margin-bottom: 1rem;
      perspective: 1000px;
      border-radius: 20px;
    }
  
    .tarjeta-marca__inner {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 20px;
      transition: transform 0.8s;
      transform-style: preserve-3d;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transform: rotateY(0deg);
    }
  
    .tarjeta-marca__inner.activa {
      transform: rotateY(180deg);
    }
  
    .tarjeta-marca__front,
    .tarjeta-marca__back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 20px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1em;
      text-align: center;
    }
  
    .tarjeta-marca__front img {
      width: 80%;
      height: auto;
      max-height: 80%;
      object-fit: contain;
    }
  
    .tarjeta-marca__back {
      background: linear-gradient(to bottom right, #0077c0, #61dafb);
      color: white;
      transform: rotateY(180deg);
      flex-direction: column;
      justify-content: center;
    }
  
    .tarjeta-marca__back h3 {
      margin-bottom: 0.5em;
    }
  
    .tarjeta-marca__back p {
      font-size: 0.9em;
      line-height: 1.4;
      max-width: 90%;
    }
  
    .botones-mobail {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 1rem;
    }
  
    .botones-mobail button {
      background-color: #0077c0;
      color: white;
      border: none;
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
    }
  }
  