/* ================= TITULOS ================= */

/* TITULO PRINCIPAL */
.catalogo-titulo{
  font-size:clamp(28px, 4vw, 32px);
  font-weight:700;
  color:var(--ribatech-azul);
  margin-bottom:50px;
  position:relative;
}

/* Línea elegante */
.catalogo-titulo::after{
  content:"";
  width:100px;
  height:3px;
  background:linear-gradient(90deg,var(--ribatech-acento),transparent);
  position:absolute;
  left:0;
  bottom:-12px;
}


/* SUBTITULOS */
.catalogo-subtitulo{
  font-size:clamp(18px, 2.5vw, 20px);
  font-weight:600;
  margin:50px 0 25px;
  color:#222;
  position:relative;
}

/* Línea sutil */
.catalogo-subtitulo::after{
  content:"";
  width:50px;
  height:2px;
  background:var(--ribatech-acento);
  position:absolute;
  left:0;
  bottom:-6px;
}


/* ================= CATALOGO ================= */

.catalogo{
  max-width:1200px;
  margin:70px auto;
  padding:0 20px;
}


/* ================= PRODUCTO ================= */

.producto-3col{
  display:grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:35px;
  align-items:center;
  padding:50px 0;
  position:relative;
}

/* Línea entre productos */
.producto-3col:not(:last-child)::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg,transparent,#ddd,transparent);
}


/* ================= INFO ================= */

.producto-info h2{
  font-size:clamp(22px, 3vw, 22px);
  color:var(--ribatech-azul);
  margin-bottom:12px;
}

.producto-info p{
  font-size:clamp(14px, 1.5vw, 16px);
  line-height:1.6;
  color:#555;
  margin-bottom:20px;
  max-width:420px;
  text-align:justify;
}


/* ================= BOTON ================= */

.btn-ficha{
  display:inline-block;
  padding:12px 26px;
  border-radius:25px;
  background:var(--ribatech-azul);
  color:white;
  font-weight:600;
  transition:.25s;
}

.btn-ficha:hover{
  background:var(--ribatech-acento);
  transform:translateY(-2px);
}


/* ================= IMAGENES ================= */

.producto-img,
.producto-carac{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.producto-img img{
  width:100%;
  max-width:280px;
  height:260px;
  object-fit:contain;
  transition:.3s;
}

.producto-carac img{
  width:100%;
  max-width:240px;
  height:320px;
  object-fit:contain;
  transition:.3s;
}

.producto-img img.cover,
.producto-carac img.cover{
  object-fit:cover;
}

.producto-img img:hover,
.producto-carac img:hover{
  transform:scale(1.03);
  cursor: pointer;
}


/* ================= RESPONSIVE ================= */

@media(max-width:900px){
  .producto-3col{
    grid-template-columns:1fr;
    text-align:center;
    gap:25px;
  }

  .producto-info p{
    margin:auto;
    margin-bottom:20px;
  }
}
/* LIGHTBOX FULL SCREEN */
.lightbox {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

/* CONTENEDOR CENTRAL */
.lightbox-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra vertical y horizontal */
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente */
  justify-content: center; /* centra verticalmente */
  text-align: center;
  max-width: 90%;
  width: auto;
}

/* IMAGEN */
.lightbox-content {
  max-width: 100%;
  max-height: 80vh; /* no sobrepasa la pantalla */
  border-radius: 6px;
  object-fit: contain;
  margin-bottom: 12px;
  width: 400px;
}

/* TEXTO */
#lightbox-caption {
  color: #fff;
  font-size: 16px;
  max-width: 90%;
}

/* CERRAR */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--ribatech-acento);
}