@import "researchers.css";

/* =========================================================
   Researcher Cards
   ========================================================= */

.researchers-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .researchers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tarjeta */
.researcher-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
    position: relative;
}

.researcher-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Layout interno */
.researcher-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Avatar */
.researcher-card__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Public Sans', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* Colores de avatar */
.bg-primary-fixed        { background-color: #d3e4ff; }
.bg-secondary-fixed      { background-color: #bde9ff; }
.bg-surface-variant      { background-color: #e2e2e2; }
.bg-primary-fixed-dim    { background-color: #a2c9ff; }
.bg-secondary-fixed-dim  { background-color: #64d3ff; }
.bg-tertiary-fixed-dim   { background-color: #e2c552; }

.text-primary                { color: #00457c; }
.text-secondary              { color: #006783; }
.text-on-surface-variant     { color: #414751; }
.text-on-secondary-container { color: #001f2a; }
.text-on-tertiary-fixed      { color: #221b00; }

/* Info */
.researcher-card__info {
    flex: 1;
    min-width: 0;
}

/* Nombre */
.researcher-card__name {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1c1c;
    margin: 0 0 0.2rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.researcher-card:hover .researcher-card__name {
    color: #00457c;
}

/* Especialidad */
.researcher-card__specialty {
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #006783;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Proyectos / meta */
.researcher-card__projects {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.researcher-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #414751;
    line-height: 1.4;
}

.researcher-card__meta-item .material-symbols-outlined {
    font-size: 0.9rem;
    margin-top: 1px;
    flex-shrink: 0;
    color: #006783;
}

/* Botón Contactar */
.researcher-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background-color: #ffe170;
    color: #221b00;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.researcher-card__btn:hover {
    background-color: #c5a939;
    color: #ffffff;
    text-decoration: none;
}

.researcher-card__btn:active {
    transform: scale(0.97);
}

.researcher-card__btn .material-symbols-outlined {
    font-size: 0.9rem;
}

.researcher-card__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
