.title {
    font-size: 7rem;
    margin-bottom: 5rem;
    justify-content: center;
    text-align: center;
}

.cottonInfo {
    max-width: 1320px;
    display: flex;
    margin: 0 auto;
}

.card {
    background-color: var(--cultured);
    color: var(--charcoal);
    border: none;
    display: flex;
}

.card:hover {
    position: relative;
    height: auto;
    color: white;
}

.cotton {
    max-width: max-content;
    font-size: xxx-large !important;
    margin-bottom: 5rem;
    color: white;
}

h3 {
    margin-top: 3rem;
    font-size: xxx-large !important;
    max-width: max-content;
    color: var(--cinnamon-satin);
}

.card-img {
    max-height: 25rem;
    object-fit: contain;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.cottonSP,
.cottonAC {
    & p {
        color: white;
    }

    & .span_gradient {
        color: white;
        transition: color 1s linear;
        -webkit-text-fill-color: unset;
    }

    & .card {
        & img {
            transition: filter 1s linear;
            filter: grayscale(100%) drop-shadow(0 0 0rem #778384) blur(10px);
        }
    }
}

.linkcottonAC,
.cottonAC_color,
.cotton {
    transition: color 1s linear;
}

.cottonSP:hover {
    .card {
        & img {
            filter: grayscale(0%) drop-shadow(0 0 1rem #778384) blur(0px);
        }
    }

    & .cotton {
        color: var(--cinnamon-satin)
    }

    & .span_gradient {
        color: var(--cinnamon-satin);
    }
}

.cottonAC:hover {
    .card {
        & img {
            filter: grayscale(0%) drop-shadow(0 0 1rem #778384) blur(0px);
        }
    }

    & .linkcottonAC {
        color: #2FCBEB;
    }

    & .cottonAC_color {
        color: #2FCBEB;
    }
}



.section {

    max-width: 100%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.founders-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; 
    justify-items: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.team-card {
    background-color: var(--bg-dark);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid white; 
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(160, 204, 0, 0.2);
    border: none; 
}

.team-card.founder {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid white; 
}

.team-card.founder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(160, 204, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.team-card.founder:hover::before {
    transform: translateX(100%);
}

.team-card.founder:hover {
    transform: translateY(-10px);
    border-color: var(--color-lime);
    box-shadow: 0 10px 30px rgba(160, 204, 0, 0.2);
    border: none; 
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.member-details {
    flex: 1;
}

.member-name {
    font-size: 2.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
}

.member-role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.linkedin-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.linkedin-link:hover {
    transform: scale(1.1);
}

.linkedin-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    transition: fill 0.2s ease;
}

.linkedin-icon:hover {
    fill: #8db305; 
}

.badge-founder {
    display: inline-block;
    background-color: #8db305;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }

    .team-card.founder {
        transform: none;
    }

    .team-card.founder:hover {
        transform: translateY(-5px);
    }

    .member-info {
        flex-direction: column;
        text-align: center;
    }

    .member-avatar {
        width: 120px;
        height: 120px;
    }

    .team-members {
        grid-template-columns: repeat(2, 1fr); /* Dos cards por fila en móviles */
    }
}

@media (max-width: 480px) {
    .team-members {
        grid-template-columns: 1fr; /* Una card por fila en móviles pequeños */
    }
}