.main {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.up {
    display: flex;
    flex-direction: row;
    gap: 0.6em;
}

.down {
    display: flex;
    flex-direction: row;
    gap: 0.6em;
}

.card1,
.card2,
.card3,
.card4,
.card5,
.card6,
.card7,
.card8 {
    width: 100px;
    height: 100px;
    outline: none;
    border: none;
    background: white;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .2s ease-in-out;
}

.card1 {
    border-radius: 90px 5px 5px 5px;
}

.instagram {
    margin-top: 1.5em;
    margin-left: 1.2em;
    fill: #8e44ad ;
}

.card2 {
    border-radius: 5px 90px 5px 5px;
}

.twitter {
    margin-top: 1.5em;
    margin-left: -.9em;
    fill: #8e44ad;
}

.card3 {
    border-radius: 5px 5px 5px 90px;
}

.github {
    margin-top: -.6em;
    margin-left: 1.2em;
    fill: #8e44ad;

}

.card4 {
    border-radius: 5px 5px 90px 5px;
}

.discord {
    margin-top: -.9em;
    margin-left: -1.2em;
    fill: #8e44ad;
}

.card5 {
    border-radius: 90px 5px 5px 5px;
}

.boton5 {
    margin-top: 1.5em;
    margin-left: 1.2em;
    fill: #16a085;
    color: white;
}

.card6 {
    border-radius: 5px 90px 5px 5px;
}

.boton6 {
    margin-top: 1.5em;
    margin-left: -.9em;
    fill: #16a085;
    color: white;
}

.card7 {
    border-radius: 5px 5px 5px 90px;
}

.boton7 {
    margin-top: -.6em;
    margin-left: 1.2em;
    fill: #16a085;
    color: white;
}

.card8 {
    border-radius: 5px 5px 90px 5px;
}

.boton8 {
    margin-top: -.9em;
    margin-left: -1.2em;
    fill: #16a085;
}

.card1:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #8e44ad;
}

.card1:hover .instagram {
    fill: white;
}

.card2:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #8e44ad;
}

.card2:hover .twitter {
    fill: white;
}

.card3:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #8e44ad;
}

.card3:hover .github {
    fill: white;
}

.card4:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #8e44ad;
}

.card4:hover .discord {
    fill: white;
}

.card5:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #16a085;
}

.card5:hover .boton5 {
    fill: white;
    color: white;
}

.card6:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #16a085;
}

.card6:hover .boton6 {
    fill: white;
}

.card7:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #16a085;
}

.card7:hover .boton7 {
    fill: white;
    color: white;
}

.card8:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #16a085;
}

.card8:hover .boton8 {
    fill: white;
}

.card1 .label,
.card2 .label,
.card3 .label,
.card4 .label,
.card5 .label,
.card6 .label,
.card7 .label,
.card8 .label {
    display: block;
    margin-top: 0.5em;
    text-align: center;
    font-size: 0.7em;
}

.card1 .label {
    color: #8e44ad;
}

.card1:hover .label {
    color: white;
}

.card2 .label {
    color: #8e44ad;
}

.card2:hover .label {
    color: white;
}

.card3 .label {
    margin-bottom: 0.5em;
    color: #8e44ad;
}

.card3:hover .label {
    color: white;
}

.card4 .label {
    margin-bottom: 0.5em;
    color: #8e44ad;
}

.card4:hover .label {
    color: white;
}

.card5 .label {
    margin-bottom: 0.5em;
    color: #16a085;
}

.card5:hover .label {
    color: white;
}

.card6 .label {
    color: #16a085;
}

.card6:hover .label {
    color: white;
}

.card7 .label {
    margin-bottom: 0.5em;
    color: #16a085;
}

.card7:hover .label {
    color: white;
}

.card8 .label {
    margin-bottom: 0.5em;
    color: #16a085;
}

.card8:hover .label {
    color: white;
}


@media (max-width: 767px) {
    .small-box .icon {
      display: block !important;

    }
  }
/* Reducir solo el logo en 40% */
.card-header img {
    max-width: 60% !important;
}

/* Botones principales - Colores correctos */
.btn-outline-success {
    color: #8e44ad !important;
    border-color: #8e44ad !important;
    background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active {
    color: white !important;
    background-color: #8e44ad !important;
    border-color: #8e44ad !important;
}

.btn-outline-primary {
    color: #16a085 !important;
    border-color: #16a085 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: white !important;
    background-color: #16a085 !important;
    border-color: #16a085 !important;
}