/* Estilos Globales y Variables */
:root {
    --primary-color: #00529B;
    --secondary-color: #333333;
    --text-color: #222222;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #2e7d32;
    --accent-color: #ef6c00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand h2 {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.brand h3 {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
}

.badge {
    background-color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
}

.nav-group ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-group a:hover {
    text-decoration: underline;
}

/* Layout Principal */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Componentes Comunes: Tarjetas */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.bg-light {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
}

.card h3, .card h2 {
    margin-bottom: 15px;
    color: #111;
}

/* Sidebar */
.sidebar p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.highlight {
    color: var(--primary-color);
}

.description {
    display: block;
    background: #fff;
    padding: 10px;
    border-left: 3px solid var(--primary-color);
    margin: 10px 0 15px 0;
    font-size: 0.9rem;
}

.team-list {
    list-style: none;
    margin-top: 10px;
}

.team-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Clave: centra y escala la foto sin deformarla */
    display: block;
}

.profile-photo-container {
    flex-shrink: 0;
}

.profile-photo-placeholder {
    position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;      /* Corta todo lo que se salga del círculo */
  border: 4px solid #3498db;
  box-sizing: border-box; 
}

.profile-photo-placeholder .cartelito {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo negro semitransparente */
  color: white;
  font-size: 14px;
  font-family: sans-serif;
  
  /* Estas 3 líneas centran el texto vertical y horizontalmente */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Estado inicial: Invisible */
  opacity: 0;
  transition: opacity 0.3s ease; /* Hace que aparezca suavemente */
}

.profile-photo-placeholder:hover .cartelito {
  opacity: 1;
}

.profile-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.student-badge {
    background-color: #e3f2fd;
    color: var(--primary-color);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.meta-info {
    font-size: 0.9rem;
    color: #666;
}

/* 3. Foja Académica */
.academic-records h2 {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
    font-size: 0.95rem;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-bg);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.progress {
    background-color: #fff3e0;
    color: var(--accent-color);
}

.status-badge.approved {
    background-color: #e8f5e9;
    color: var(--success-color);
}

/* 7. Info Legal: Pie de página */
.main-footer, main-footer * {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 30px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    border-top: 1px solid #444;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.authorities {
    opacity: 0.9;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.legal-notice {
    opacity: 0.7;
    line-height: 1.5;
    text-align: justify;
}
