* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: #dbe2ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.desarolladores {
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
    color: #314652;
}

.card-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    flex: 1;
    max-width: 400px;
    min-width: 280px; /* Ajusta el min-width según tus necesidades */
    background: white;
    border-radius: 15px;
    box-shadow: 7px 13px 37px rgba(0, 0, 0, .6);
    margin: 20px;
}

.header {
    width: 100%;
    height: 200px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    border-top: 30px solid transparent;
    border-left: 40% solid white;
    bottom: 0;
}

.header img {
    width: 100%;
    height: 199px;
}

.info {
    padding: 20px;
    overflow: hidden;
    text-align: center;
}

.nombre {
    margin: .5em 0;
}

.experiencia {
    margin: 1em 0;
}

ul {
    position: relative;
    margin: 0;
    padding: 0px;
    display: flex;
}

ul li {
    position: relative;
    list-style: none;
    width: 30px;
    height: 30px;
    margin: 0 30px;
    transform: rotate(-30deg) skew(25deg);
    background: #ccc;
}

ul li span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transition: 0.5s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px !important;
}

ul li:hover span:nth-child(5) {
    transform: translate(40px, -40px);
    opacity: 1;
}

ul li:hover span:nth-child(4) {
    transform: translate(30px, -30px);
    opacity: .8;
}

ul li:hover span:nth-child(3) {
    transform: translate(20px, -20px);
    opacity: .6;
}

ul li:hover span:nth-child(2) {
    transform: translate(10px, -10px);
    opacity: .4;
}

ul li:hover span:nth-child(1) {
    transform: translate(0px, -0px);
    opacity: .2;
}

ul li:nth-child(1) span {
    background: #3b5998;
}

ul li:nth-child(2) span {
    background: #25d366;
}

ul li:nth-child(3) span {
    background: #c55aa0;
}

ul li:nth-child(4) span {
    background: #0c385f;
}

img {
    width: 30px;
    height: 30px;   
}

.footer {
    width: 100%;
    height: 80px;
    background: #314652;
    color: white;
    position: relative;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    border-bottom: 30px solid transparent;
    border-right: 400px solid white;
    top: 0;
}

.footer p {
    padding: 30px;
}

/* Media queries para hacer el diseño responsivo */
@media (max-width: 435px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
        margin: 10px 0;
    }

    /* Ajustar el tamaño y estilo de los íconos sociales en pantallas pequeñas */
    ul {
        justify-content: center;
    }

    ul li {
        margin: 0 15px;
        transform: rotate(-30deg) skew(25deg);
    }

    ul li span {
        font-size: 24px !important;
    }

    ul li:nth-child(1) span {
        background: #3b5998;
    }

    ul li:nth-child(2) span {
        background: #25d366;
    }

    ul li:nth-child(3) span {
        background: #c55aa0;
    }

    ul li:nth-child(4) span {
        background: #0c385f;
    }
}

/* Nuevos estilos para el botón */
.top-button {
    background-color: #621132;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 20px;
}

.top-button a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.top-button:hover {
    background-color: #81254a;
    color: #cba234;
}

/* Estilos para levantar las imágenes al pasar el cursor */
.image-container {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.changeable-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.3s; /* Añadir transición para la animación */
}

.changeable-image.elevate {
    transform: translateY(-30px); /* Mover la imagen hacia arriba */
    opacity: 0.9; /* Cambiar la opacidad para un efecto más suave */
}