/* Header del clan */

.clan__header {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 15px;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    width: 100%;
    height: 275.48px;
}

.clan__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: repeat;
    background-position: center;
    z-index: 0;
}

.clan__blur{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.clan__header * {
    position: relative;
    z-index: 1;
}

.clan__name {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.clan__description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
    color: white;
}

/* Personalización del botón */

.student__portfolio {
    color: white;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.student__portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Estilos generales de la página */
.main__content {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

.content__clan {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* sección de estudiantes */

.students__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #302e49;
    font-weight: 600;
}


.students__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards de los estudiantes */

.student__card {
    width: 235px; 
    min-height: 280px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    max-width: 250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.student__image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.student__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.student__name {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: #302e49;
    word-break: break-word;
}

.student__role {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.student__card--tutor .student__name {
    color: #fff;
}

.student__card--tutor .student__role {
    color: #fff;
}

.student__portfolio {
    display: inline-block;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.flags {
  width: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flags img {
  width: 30px;
  height: 20px;
  border-radius: 5px;
}

.flags__img {
  display: block;
  cursor: pointer;
}

/* Responsive del header */

@media (max-width: 768px) {
    .clan__name {
        font-size: 2.2rem;
    }

    .clan__description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .clan__header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .clan__name {
        font-size: 1.8rem;
    }

    .clan__description {
        font-size: 1rem;
    }
}

/* Responsive de la sección de estudiantes */
@media (max-width: 768px) {
    .students__title {
        font-size: 2rem;
    }

    .students__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .student__card {
        padding: 20px;
    }

    .student__image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .main__content {
        padding: 20px 0;
    }
}
