
.portada{
  width: calc(100% - 300px); /* 🔥 40px a cada lado */
  height: 300px;

  margin: 0 auto; /* centra horizontal */

  border-radius: 10px;
  overflow: hidden;

  position: relative;

border: 1px solid silver; /* borde plateado */

    box-shadow:
        6px 6px 12px rgba(0,0,0,0.25),
       -6px -6px 12px rgba(255,255,255,0.15);


}

/* IMG o VIDEO a fondo completo */
.portada img,
.portada video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}








/* 📱 MEDIA QUERY – moviles */
@media (max-width:768px){

  .portada{
    width: calc(100% - 10px); /* más pegado en móvil */
    height: 200px;
    border-radius: 8px;
  }

}


/* 📱 MEDIA QUERY – tablets  */
@media (min-width: 769px) and (max-width: 1024px){

  .portada{
    width: calc(100% - 100px);
    height: 300px;
  }

}







/* 🔵 BOTÓN REDONDO ARRIBA IZQUIERDA */
.cambiar-portada{
  position:absolute;
  top:10px;
  left:10px;

  width:35px;
  height:35px;

  background: rgba(0,0,0,0.5);
  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;
z-index: 999999 !important;
  cursor:pointer;
  transition:.2s;
}

.cambiar-portada img{
  width:18px;
  height:18px;
  object-fit:contain;
    filter: invert(1);
}

/* hover */
.cambiar-portada:hover{
  background: rgba(0,0,0,0.7);
}



/* 🔵 BOTÓN ABAJO DERECHA */
.btn-portada{
  position:absolute;
  bottom:10px;
  right:10px;

  height:35px;
  padding:0 12px;

  background: rgba(0,0,0,0.6);
  border-radius:8px;

  display:flex;
  align-items:center;
  gap:10px;

  cursor:pointer;
  transition:.2s;
}

/* icono */
.btn-portada img{
  width:18px;
  height:18px;
  object-fit:contain;
    filter: invert(1);
}

/* texto */
.btn-portada span{
  color:#fff;
  font-size:14px;
  white-space:nowrap;
}

/* hover */
.btn-portada:hover{
  background: rgba(0,0,0,0.8);
}


@media (max-width:768px){

  /* 🔵 botón redondo */
  .cambiar-portada{
    width:30px;
    height:30px;
    top:8px;
    left:8px;
  }

  .cambiar-portada img{
    width:15px;
    height:15px;
  }

  /* 🔵 botón inferior */
  .btn-portada{
    height:30px;
    padding:0 10px;
    bottom:8px;
    right:8px;
    gap:8px;
  }

  .btn-portada img{
    width:15px;
    height:15px;
  }

  .btn-portada span{
    font-size:12px;
  }

}




@media (min-width: 769px) and (max-width: 1024px){

  /* 🔵 botón redondo */
  .cambiar-portada{
    width:32px;
    height:32px;
  }

  .cambiar-portada img{
    width:16px;
    height:16px;
  }

  /* 🔵 botón inferior */
  .btn-portada{
    height:32px;
    padding:0 11px;
  }

  .btn-portada img{
    width:16px;
    height:16px;
  }

  .btn-portada span{
    font-size:13px;
  }

}







