.equipo {
    margin: 0;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    place-content: center;
    place-items: center;
    margin-top: 50px;
}

.equipo .category-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equipo .cat-title {
    font-size: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.equipo .slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    perspective: 1500px;
}

.equipo .card {
    position: absolute;
    width: 250px;
    height: 350px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 30px 20px;
    box-sizing: border-box;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 100% 15%, 100% 85%, 50% 100%, 0% 85%, 0% 15%);
    border: none;
}

.equipo .card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    filter: blur(20px);
}

.equipo .card.active::before {
    animation: luzApertura 0.8s ease-out forwards;
}

@keyframes luzApertura {
    0% { width: 0%; height: 0%; opacity: 1; }
    50% { opacity: 0.5; }
    100% { width: 150%; height: 150%; opacity: 0; }
}

.equipo .card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 10%, transparent);
    z-index: 1;
}

.equipo .card h3 {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.equipo .card.active {
    transform: translate3d(0, 0, 250px);
    z-index: 100;
    filter: brightness(1.2);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.equipo .card.to-left {
    transform: translateX(calc(-240px - (var(--abs-dist) * 40px))) rotateY(50deg) scale(calc(1 - (var(--abs-dist) * 0.2)));
    z-index: calc(50 - var(--abs-dist));
    filter: brightness(0.2) grayscale(0.5);
    opacity: 0.6;
}

.equipo .card.to-right {
    transform: translateX(calc(240px + (var(--abs-dist) * 40px))) rotateY(-50deg) scale(calc(1 - (var(--abs-dist) * 0.2)));
    z-index: calc(50 - var(--abs-dist));
    filter: brightness(0.2) grayscale(0.5);
    opacity: 0.6;
}

.equipo .display-info {
    place-content: center;
    place-items: center;
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, #0a0a0a, #151515);
    margin-top: 40px;
    padding: 25px;
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border-top: 2px solid #333;
}

.equipo .display-info.visible {
    opacity: 1;
    transform: scale(1);
}

.equipo .skill-tag {
    color: black;
    padding: 5px 15px;
    display: inline-block;
    margin: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.equipo .controls {
    margin-top: 25px;
    display: flex;
    gap: 30px;
}

.equipo .btn {
    width: 50px;
    height: 50px;
    background: transparent;
    color: #00ff44;
    border: 1px solid #00ff44;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    cursor: pointer;
    transition: 0.3s;
}

.equipo .btn:hover {
    background: #00ff44;
    color: black;
    transform: scale(1.1);
}