/* Contenedor principal centrado y con ancho óptimo */
.main-content {
    max-width: 1150px !important;
    margin: 0 auto;
    padding-top: 24px !important;
    padding-bottom: 60px;
}

/* Títulos de sección internos */
.team-section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #4ade80;
    margin-top: 45px;
    margin-bottom: 20px;
    border-bottom: 1px solid #262626;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cuadrícula compacta de tarjetas de equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Tarjeta compacta y moderna */
.team-card {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.team-card:hover {
    border-color: #2e7d32;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.25);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px auto;
    border: 2px solid #2e7d32;
}

/* Sin fotografía (colaboradores): ícono de persona en vez de un cuadro con texto */
.team-avatar--vacia {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f1f;
    color: #6b7280;
    font-size: 30px;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-role {
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-project {
    font-size: 11.5px;
    color: #9ca3af;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-ver-mas {
    background-color: #1b5e20;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}

.btn-ver-mas:hover {
    background-color: #2e7d32;
}

/* Barra de búsqueda estilizada */
.search-container {
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #2e7d32;
}

/* Encabezado de la vista de una sección */
.team-volver {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px; font-size: 13px; font-weight: 600; color: #4ade80; text-decoration: none;
}
.team-volver:hover { text-decoration: underline; }
.team-volver:focus-visible { outline: 2px solid #4ade80; outline-offset: 4px; border-radius: 4px; }
.team-sin-resultados { display: none; text-align: center; padding: 26px; color: #718096; border: 1px dashed #262626; border-radius: 12px; font-size: 14px; }
.team-sin-resultados.is-visible { display: block; }
