/* =========================================================
   Rotulo individual | Julieta Furer
   DGPC - Catedra Ocampo | FADU UBA
   Estructura: plantilla de catedra | Estilo: identidad propia
   ========================================================= */

:root {
    --electric: #0000ff;
    --blue: #0d47a1;
    --ink: #0b132b;
    --paper: #f4f5f7;
    --white: #ffffff;
    --pale: #dbe4ff;
    --soft: #8eabff;
    --text: #1f2937;
    --text-muted: #64748b;
    --line: #d5dcea;
    --ok: #0b6b3a;
    --ok-bg: #d9f5e5;
    --progress: #9a4a00;
    --progress-bg: #ffe9c2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--paper);
    background-image:
        radial-gradient(var(--blue) 0.75px, transparent 0.75px),
        radial-gradient(var(--blue) 0.75px, var(--paper) 0.75px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    color: var(--text);
    padding: 32px 0 60px;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ---------- Menus de navegacion ---------- */
nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.nav-links a:focus-visible {
    outline: 3px solid var(--soft);
    outline-offset: 2px;
}

/* Navegacion general: barra oscura */
nav.nav-general {
    background-color: var(--ink);
    border-radius: 999px;
    padding: 8px 10px 8px 24px;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(11, 19, 43, 0.25);
}

nav.nav-general .nav-label { color: var(--soft); }

nav.nav-general .nav-links a {
    color: var(--white);
}

nav.nav-general .nav-links a:hover {
    background-color: var(--electric);
}

/* Navegacion entre integrantes: chips outline */
nav.nav-team .nav-label { color: var(--blue); }

nav.nav-team .nav-links a {
    color: var(--blue);
    background-color: var(--white);
    border: 1.5px solid var(--blue);
}

nav.nav-team .nav-links a:hover {
    background-color: var(--pale);
}

nav.nav-team .nav-links a.is-current {
    background-color: var(--electric);
    border-color: var(--electric);
    color: var(--white);
}

.nav-links a.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

/* ---------- Perfil: panel azul electrico ---------- */
.profile-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 64px 56px;
    border-radius: 28px;
    background-color: var(--electric);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(0, 0, 255, 0.25);
}

/* circulos concentricos decorativos */
.profile-card::before,
.profile-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.profile-card::before {
    width: 520px;
    height: 520px;
    right: -140px;
    top: -200px;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
}

.profile-card::after {
    width: 300px;
    height: 300px;
    right: 20px;
    bottom: -150px;
    background-color: var(--soft);
    opacity: .35;
}

.profile-photo-container {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.profile-photo-container::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 252px;
    height: 252px;
    border: 1.5px dashed var(--white);
    border-radius: 50%;
}

.profile-photo {
    position: relative;
    width: 224px;
    height: 224px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    background-color: var(--pale);
    display: block;
}

.profile-photo-container small {
    margin-top: 22px;
    color: var(--pale);
    font-size: 0.75rem;
    letter-spacing: .5px;
}

.profile-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-info h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: .98;
}

.academic-role {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--white);
    color: var(--electric);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
}

.student-meta {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pale);
}

.student-meta strong { color: var(--white); }

/* ---------- Secciones ---------- */
.section-box {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1.5px solid var(--blue);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 8px 8px 0 var(--blue);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--blue);
    margin-bottom: 22px;
}

.section-title::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--electric);
    flex-shrink: 0;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background-color: var(--blue);
}

.career-meta {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 22px;
}

.career-meta strong { color: var(--blue); }

/* ---------- Foja academica ---------- */
.academic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid var(--blue);
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--white);
    font-size: 0.93rem;
}

.academic-table th {
    background-color: var(--blue);
    color: var(--white);
    text-align: left;
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.academic-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
}

.academic-table tbody tr:last-child td { border-bottom: none; }
.academic-table tbody tr:nth-child(even) { background-color: #f6f8fd; }
.academic-table tbody tr:hover { background-color: var(--pale); }

.cat-detail {
    display: block;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
}

.status-approved { background-color: var(--ok-bg); color: var(--ok); }
.status-in-progress { background-color: var(--progress-bg); color: var(--progress); }

/* ---------- Datos institucionales ---------- */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.meta-item {
    background-color: var(--white);
    border: 1.5px solid var(--blue);
    border-radius: 16px;
    padding: 20px 22px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text);
}

.meta-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px dashed var(--blue);
}

/* tarjetas destacadas (equipo y proyecto) en azul solido */
.meta-item.is-highlight {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.meta-item.is-highlight strong {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.meta-item .placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Pie legal ---------- */
footer {
    border-top: 1.5px solid var(--blue);
    padding-top: 18px;
}

footer h4 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

footer p {
    font-size: 0.8rem;
    line-height: 1.65;
    max-width: 820px;
}

/* ---------- Celulares ---------- */
@media (max-width: 768px) {
    body { padding-top: 16px; }

    .container { gap: 28px; }

    nav.nav-general {
        border-radius: 24px;
        padding: 16px;
        justify-content: center;
        text-align: center;
    }

    .nav-links { justify-content: center; }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 48px 24px;
        gap: 44px;
    }

    .profile-info { align-items: center; }
    .academic-role { align-self: center; }

    .profile-card::before { right: -260px; }

    .section-box {
        padding: 22px 16px;
        box-shadow: 5px 5px 0 var(--blue);
    }

    .section-title { font-size: 1.4rem; }

    .table-scroll { overflow-x: auto; }

    .academic-table th,
    .academic-table td { padding: 10px 12px; }
}