/* =========================
SERVICIOS
========================= */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:24px;
}

.service{
  position:relative;
  border:1px solid rgba(0,0,0,.06);
  border-radius:24px;
  padding:26px;
  background:linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
  box-shadow:0 14px 40px rgba(0,0,0,.06);
  transition:all .28s ease;
}

.service:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 55px rgba(0,0,0,.10);
  border-color:rgba(217,11,63,.18);
}

.service::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg, var(--rojo) 0%, #ef335f 100%);
}

.service h3{
  font-size:22px;
  margin-bottom:10px;
  color:var(--negro);
}

.service p{
  color:var(--gris);
  font-size:15px;
  line-height:1.6;
}

/* =========================
PRODUCTOS
========================= */
.products{
  background:
    radial-gradient(circle at top right, rgba(217,11,63,.06), transparent 24%),
    var(--gris-claro);
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.product{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.06);
  transition:all .28s ease;
}

.product:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 60px rgba(0,0,0,.12);
  border-color:rgba(217,11,63,.18);
}

.product img{
  width:100%;
  height:220px;
  object-fit:cover;
  background:#f3f3f3;
  transition:transform .5s ease;
}

.product:hover img{
  transform:scale(1.04);
}

.product-body{
  padding:22px;
}

.product-body h3{
  margin-bottom:8px;
  font-size:22px;
  color:var(--negro);
}

.product-body p{
  color:var(--gris);
  font-size:15px;
  line-height:1.6;
}

/* =========================
CLIENTES
========================= */
.clients-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.client-box{
  border:1px solid rgba(0,0,0,.06);
  border-radius:20px;
  padding:24px 18px;
  background:#fff;
  text-align:center;
  font-weight:700;
  box-shadow:0 12px 34px rgba(0,0,0,.05);
  transition:all .25s ease;
}

.client-box:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 45px rgba(0,0,0,.10);
  border-color:rgba(217,11,63,.18);
  color:var(--rojo);
}

/* =========================
EQUIPO
========================= */
.team-wrap{
  max-width:900px;
  margin:0 auto;
  border:1px solid rgba(0,0,0,.06);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(0,0,0,.08);
  background:#fff;
  transition:all .3s ease;
}

.team-wrap:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(0,0,0,.12);
  border-color:rgba(217,11,63,.16);
}

.team-wrap img{
  width:100%;
  display:block;
  object-fit:cover;
}
/* =========================
CATALOGO MODAL
========================= */
.modal-catalogo{
  display:none;
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(17,17,17,.58);
  backdrop-filter:blur(7px);
  z-index:9999;
  justify-content:center;
  align-items:center;
  padding:20px;
}

.catalogo-contenido{
  background:#fff;
  width:min(1200px, 96vw);
  height:min(92vh, 900px);
  max-height:92vh;
  border-radius:26px;
  padding:14px 22px 84px;
  position:relative;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* cerrar */
.cerrar{
  position:absolute;
  top:14px;
  right:18px;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:#f4f4f4;
  color:#222;
  font-size:28px;
  cursor:pointer;
  z-index:40;
}

.cerrar:hover{
  background:var(--rojo);
  color:#fff;
}

/* header */
.catalogo-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-right:56px;
  margin-bottom:12px;
  flex-shrink:0;
}

.catalogo-kicker{
  color:var(--rojo);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
}

.catalogo-header h3{
  margin:0;
  font-size:28px;
}

/* libro */
.catalogo-libro{
  position:relative;
  flex:1;
  min-height:0;
  overflow:hidden;
}

/* paginas */
.pagina{
  display:none;
  height:100%;
  animation:fadeCatalogo .25s ease;
}

.pagina.activa{
  display:block;
}

@keyframes fadeCatalogo{
  from{opacity:0; transform:translateY(8px);}
  to{opacity:1; transform:translateY(0);}
}

/* =========================
PORTADA
========================= */
.catalogo-portada-baccio{
  background:linear-gradient(180deg,#fff,#fff9fa);
}

.revista-portada{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:28px;
  align-items:center;
}

.revista-portada-texto h2{
  font-size:44px;
  margin-bottom:16px;
}

.revista-portada-texto p{
  color:var(--gris);
  font-size:17px;
  line-height:1.6;
}

.revista-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.revista-tags span{
  background:#fff;
  border:1px solid rgba(217,11,63,.15);
  color:var(--rojo);
  border-radius:999px;
  padding:8px 14px;
  font-size:13px;
  font-weight:700;
}

.revista-portada-imagen img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:20px;
}

/* =========================
IMAGENES DEL CATALOGO
========================= */
.catalogo-pagina{
  height:100%;
  background:linear-gradient(180deg,#fff,#fff8f9);
  border-radius:24px;
  padding:10px;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

.catalogo-imagen-wrap,
.catalogo-imagen-wrap-cremhaus{
  width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.catalogo-imagen,
.catalogo-imagen-cremhaus{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

/* Cremhaus más contenido */
.catalogo-imagen-wrap-cremhaus .catalogo-imagen-cremhaus{
  max-width:85%;
  max-height:100%;
}

/* =========================
CARDS SABORES
========================= */
.catalogo-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.catalogo-card{
  background:#fff;
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.catalogo-card h4{
  font-size:20px;
  margin-bottom:10px;
}

.catalogo-card ul{
  padding-left:18px;
  line-height:1.8;
  color:var(--gris);
}

/* =========================
OCULTAR BOTONES ANTIGUOS
========================= */
.catalogo-botones-final{
  display:none !important;
}

/* =========================
DESCARGA FINAL
========================= */
.descarga-catalogos{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px;
  width:100%;
}

.bloque-descarga{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:24px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}

.bloque-descarga h4{
  margin:0 0 10px;
  font-size:28px;
}

.bloque-descarga p{
  margin:0 0 18px;
  color:#666;
  font-size:16px;
  line-height:1.5;
}

.btn-descarga{
  display:inline-block;
  background:#e63b63;
  color:#fff !important;
  text-decoration:none !important;
  padding:14px 22px;
  border-radius:14px;
  font-weight:700;
  line-height:1;
  box-shadow:0 10px 24px rgba(230,59,99,.25);
  transition:transform .2s ease, background .2s ease;
}

.btn-descarga:hover{
  background:#d72f57;
  transform:translateY(-2px);
}

/* =========================
CONTROLES VISIBLES
========================= */
.controles{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 18px;
  pointer-events:none;
  z-index:30;
}

.controles button{
  pointer-events:auto;
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:#c4002f;
  color:#fff;
  font-size:24px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(196,0,47,.28);
  opacity:1;
  transition:transform .2s ease, opacity .2s ease, background .2s ease;
}

.controles button:hover{
  transform:scale(1.06);
  background:#a80028;
}

.controles button:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 900px){
  .revista-portada{
    grid-template-columns:1fr;
  }

  .revista-portada-imagen img{
    height:260px;
  }

  .catalogo-grid-2{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .catalogo-contenido{
    width:100%;
    height:94vh;
    padding:12px 12px 72px;
  }

  .catalogo-pagina{
    padding:6px;
  }

  .catalogo-imagen,
  .catalogo-imagen-cremhaus{
    max-width:100%;
    max-height:100%;
    border-radius:14px;
  }

  .catalogo-imagen-wrap-cremhaus .catalogo-imagen-cremhaus{
    max-width:100%;
  }

  .descarga-catalogos{
    grid-template-columns:1fr;
  }

  .btn-descarga{
    width:100%;
    text-align:center;
  }

  .controles{
    padding:0 12px;
    bottom:12px;
  }

  .controles button{
    width:46px;
    height:46px;
    font-size:20px;
  }
}