
  /* Overlay */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  /* Modal content */
  .modal-content {
    position: relative;
  }

  .modal-box {
    display: block;
    width:500px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
  }

  .modal-img {
    width: 100%;
    height: auto;
  }

  /* Botón de cerrar */
  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: all ease .3s;
  }

  .close-btn:hover{
    background-color: var(--black);
  }

  .close-btn i {
    font-size:25px;
    color: var(--silver);
    transition: all ease .3s;
  }

  .close-btn:hover i{
    color: var(--white);
    transform: rotate(360deg);
  }
  /* Para ocultar el modal si se agrega esta clase */
  .hidden {
    display: none !important;
  }

  @media(max-width:650px){
    .modal-box{width:400px;}
  }

  @media(max-width:500px){
    .modal-box{width:300px;}
    .close-btn {
        width:30px;
        height:30px;
    }
    .close-btn i {
        font-size:20px;
    }
  }

  @media(max-width:400px){
    .modal-box{width:250px;}
  }
