.hero {
  background: url('/wp-content/themes/bioingentechtheme/assets/images/25sept.webp') center/cover no-repeat;
}
/* ================= OUR PRODUCTS LIST ================= */
.our-products-list {
  padding: 3rem 0 4rem;
  background: #f6f7fb; /* fondo claro */
}

.opl-title {
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 2rem;
  text-align: center;
  color: #022e47; /* ajusta a tu color de títulos */
  font-weight: 700;
}

/* Grid */
.opl-grid {
  list-style: none;
  margin: 0 4rem;
  padding: 0;
  display: grid;
  gap: 2rem;
}

/* Item */
.opl-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.opl-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.opl-item.reverse {
  grid-template-columns: 1fr 320px;
}
.opl-item.reverse .opl-imgwrap { order: 2; }
.opl-item.reverse .opl-content { order: 1; }

/* Imagen */
/* lienzo base */
.opl-imgwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff; /* para logos con fondo transparente */
}

/* default: fotos/banner -> recortar suave */
.opl-imgwrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

/* SI ES LOGO: no recortar; encajar y no hacer zoom en hover */
.opl-imgwrap.is-logo img {
  height: 160px;          /* un poco más chico para logos */
  object-fit: contain;
  width: auto;            /* que no estire a lo ancho */
  max-width: 100%;
  transform: none !important;
}

.opl-imgwrap:hover img { transform: scale(1.06); }
.opl-imgwrap.is-logo:hover img { transform: none; }

@media (max-width: 920px) {
  .opl-imgwrap img { height: 200px; }
  .opl-imgwrap.is-logo img { height: 140px; }
}


/* Contenido */
.opl-content {
  padding: .5rem 1rem;
}
.opl-item-title {
  font-size: 22px;
  margin: 0 0 .75rem;
  font-weight: 700;
}
.opl-item-title a {
  color: #022e47;
  text-decoration: none;
}
.opl-item-title a:hover { text-decoration: underline; }

.opl-desc {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: #022e47;
  font-size: 15px;
}

/* Botón */
.opl-btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  background: #6265fe;        /* color principal */
  color: #fff;
  box-shadow: 0 6px 16px rgba(98,101,254,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.opl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(98,101,254,.45);
  background: #4e51f3; /* tono más oscuro */
}

/* =========================================================
   OUR PRODUCTS — TABLET (<= 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .our-products-list { padding: 2.5rem 0 3rem; }

  .opl-title {
    font-size: clamp(26px, 3.2vw, 32px);
    margin-bottom: 1.75rem;
  }

  .opl-grid {
    margin: 0 2rem;     /* menos margen lateral */
    gap: 1.5rem;
  }

  .opl-item {
    grid-template-columns: 280px 1fr; /* imagen un poco más compacta */
    padding: 1.25rem;
    gap: 1.25rem;
    border-radius: 14px;
  }
  .opl-item.reverse { grid-template-columns: 1fr 280px; }

  .opl-imgwrap img { height: 200px; }
  .opl-imgwrap.is-logo img { height: 130px; }

  .opl-item-title { font-size: 20px; }
  .opl-desc { font-size: 14.5px; }
  .opl-btn { padding: .6rem 1.1rem; }
}

/* =========================================================
   OUR PRODUCTS — MOBILE / iPhone (<= 767px)
   ========================================================= */
@media (max-width: 767.98px) {
  .our-products-list { padding: 2rem 0 2.5rem; }

  .opl-title {
    font-size: clamp(22px, 5.5vw, 28px);
    margin: 0 1rem 1.25rem;
  }

  .opl-grid {
    margin: 0 1rem;
    gap: 1rem;
    display: grid;
  }

  /* Cada item a 1 columna (imagen arriba, texto abajo) */
  .opl-item,
  .opl-item.reverse {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
  }
  .opl-item.reverse .opl-imgwrap,
  .opl-item.reverse .opl-content { order: initial; } /* ya no invertimos en móvil */

  /* Imagen: usa ratio cómodo y recorte suave */
  .opl-imgwrap {
    border-radius: 10px;
  }
  .opl-imgwrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;   /* evita saltos de layout */
    object-fit: cover;
  }
  .opl-imgwrap.is-logo img {
    aspect-ratio: auto;
    height: 110px;
    max-width: 100%;
    object-fit: contain;
  }

  /* Tipos y espaciados */
  .opl-content { padding: .25rem .25rem .5rem; }
  .opl-item-title {
    font-size: 18px;
    margin: 0 0 .5rem;
  }
  .opl-desc {
    font-size: 14px;
    margin-bottom: .85rem;
    color: #0b2d40; /* un pelín más contraste */
  }

  /* Botón: a ancho completo con buen target táctil */
  .opl-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 999px;
  }
}

/* =========================================================
   OUR PRODUCTS — EXTRA COMPACT (<= 360px)
   ========================================================= */
@media (max-width: 360px) {
  .opl-grid { margin: 0 .75rem; }
  .opl-item { padding: .85rem; }
  .opl-item-title { font-size: 17px; }
  .opl-desc { font-size: 13.5px; }
  .opl-imgwrap.is-logo img { height: 100px; }
}

/* =========================================================
   DETALLES DE ACCESIBILIDAD / SUAVIDAD
   ========================================================= */
/* Menos animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .opl-item,
  .opl-imgwrap img,
  .opl-btn {
    transition: none !important;
  }
  .opl-item:hover { transform: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
}
