/* ======== PRODUCTOS ======== */
#productos {
    background: #e2e8f0;
    padding: 40px 20px;
    text-align: center;
}
.EnvolturaSlider {
    position: relative;
    width: 90%;
    /*max-width: 1450px;*/
    justify-content: center;
    margin: 10px auto;
    padding: 60px;/*  */
    overflow: hidden;
    
  }
  .ContenidoSlider {
    /* overflow: hidden; */
    overflow: visible;/* permitte que dsalga  */
    border: 2px solid #ccc;

  }
  .slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    align-items: flex-start; /* matener alineados arriba */
  }
  .slider-item {
    min-width: calc(100% / 3); /* 3 items visibles */
    text-align: center;
    /*padding: 40px 0;*/
    padding: 4px;
    background-color: #f2f2f2;
    border-right: 1px solid #ccc;
    box-sizing: border-box;/**/
}
  .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    border: none;
    padding: 100px 25px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;

  }
  .btnAnterior {
    left: 0;/* Un poco afuera del contenedor */
  }
  .btn-right {
    right: 0;
  }

  /* para separar los items */
  .slider-item:last-child {
    border-right: none;
  }
  /* ---- Tarjeta dentro de cada item ---- */
.card {
    height: 250px;/* Alturra inicial */
    /*width: 310px;/* Ancho inicial */
    position: relative;
    background: #fff;    
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    /* transform: translateY(-5px); */
    transform: scale(1.05);
    z-index: 10;
    /* position: absolute; */
    overflow: visible;
    /*top: -50%; /* Desplazar hacia arriba al hacer hover */
    height: 400px; /* Altura al hacer hover */
        
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Contenido principal (siempre visible) */
.card-content {
    /* padding: 15px; */
    color: #2d3748;
}

.card a {
    text-decoration: none;
    color: inherit;
    inset: 0;    
    z-index: 2;
}
/* .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
} */
 /* Información extra (oculta al inicio) */
.overlay {
    position: absolute;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 15px;
}

/* .card:hover .overlay {
    display: flex;
} */
/* Cuando pasas el mouse, aparece la información */
.card:hover .overlay {
    opacity: 1;
    max-height: 250px;
    padding: 15px;
}