:root {
    --primary: #0b3a6f;
    --secondary: #1f4e8c;
    --accent: #d62828;
    --light: #f5f5f5;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
}

/* NAVBAR */
.navbar {
    background: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.navbar-brand, .nav-link {
    color: white !important;
}

/* HERO */
.hero {
    background: linear-gradient(120deg, rgba(11,58,111,0.75), rgba(31,78,140,0.60)),
                url('../images/frontis.jpg') center/cover;
    color: white;
    padding: 100px 20px;
    text-align: center;   
}

/* SECCIONES */
.section {
    padding: 60px 20px;
}

/* TARJETAS */
.card {
    border-radius: 15px;
    border: none;
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}

/* BOTÓN */
.btn-accent {
    background: var(--accent);
    color: white;
    border-radius: 30px;
}
.btn-accent:hover {
    background: #b71c1c;
}

/* FOOTER */
.footer {
    background: #092c54;
    color: white;
    padding: 30px;
    text-align: center;
}

.footer {
    background: #092c54;
    color: white;
    padding: 40px 0;
}

.footer h6 {
    font-weight: 600;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer i {
    margin-right: 8px;
    color: #d62828;
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.badge {
    font-size: 0.75rem;
}

.badge-cat {
    font-size: 0.9rem;  
    font-weight: 600;
    margin-bottom: 1.1rem !important;
}

nav {
  background-color: var(--blanco);
  box-shadow: 0 2px 4px var(--sombra);
  position: sticky;
  top: 0%;
  z-index: 999;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}


.navbar-nav .nav-link {
    position: relative;
    color: white !important;
    transition: color 0.3s ease;
}

/* CAMBIO DE COLOR */
.navbar-nav .nav-link:hover {
    color: hsl(0, 0%, 82%) !important; /* rojo institucional */
}

/* SUBRAYADO ANIMADO */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0%;
    height: 2px;
    background-color: #d62828;
    transition: width 0.3s ease;
}

/* EFECTO AL PASAR EL MOUSE */
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: hsl(0, 0%, 82%) !important;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

.asignatura-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 4px 0;
    transition: 0.2s;
}

.asignatura-link:hover {
    color: #d62828;
    padding-left: 5px;
}

.docente-foto {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid #0b3a6f;
}

.docente-foto-min {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #0b3a6f;
}

.docente-foto-min1 {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #0b3a6f;
}

.fb-page {
    width: 100% !important;
}

.datos-inicio {
  font-size: xx-large;
  font-weight: 800;
  margin-bottom: 5px;
}

.elemento {
    margin-bottom: 10px;
    margin-top: 10px;
}


.tabla-profesional {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.tabla-profesional thead {
    background: #0b3a6f;
    color: white;
}

.tabla-profesional th {
    text-align: center;
    font-weight: 600;
}

.tabla-profesional td {
    vertical-align: top;
}

.tabla-profesional ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.tabla-profesional tr:hover {
    background: #f5f5f5;
}

/* Card general */
.plan-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Header del semestre */
.plan-header {
    background: linear-gradient(135deg, #0b3a6f, #0f4c8a);
    color: white;
    padding: 15px;
}

.plan-header i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Lista */
.plan-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.plan-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.plan-list li:last-child {
    border-bottom: none;
}

/* Links */
.asignatura-link {
    color: #0b3a6f;
    text-decoration: none;
    font-weight: 500;
}

.asignatura-link:hover {
    color: #f39c12;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .plan-header h5 {
        font-size: 16px;
    }

    .plan-list li {
        font-size: 13px;
        line-height: 1.2;
    }
}

/* Header */
.asignatura-header {
    border-left: 5px solid #0b3a6f;
}

/* Listas */
.lista-estilizada {
    list-style: none;
    padding-left: 0;
}

.lista-estilizada li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.lista-estilizada li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #0b3a6f;
    font-weight: bold;
}

/* Cards */
.card {
    border-radius: 12px;
}

.error {
  font-size: small;
  color: red;
}

.form-label {
    font-weight: 600;
}

/* Tags superiores (sobre imagen) */
.tags-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.tags-top .badge {
    margin-right: 5px;
    font-size: 11px;
}

/* Tags inferiores */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f1f3f5;
    color: #333;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #0b3a6f;
    color: white;
}

.ui-autocomplete {
    z-index: 9999 !important;
}

.info-asignatura {
    display: flex;
    justify-content: space-between; /* distribuye */
    flex-wrap: wrap; /* evita romper diseño en móvil */
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
}

.info-asignatura span {
    border-right: 1px solid #eee;
    padding: 0 10px;
}

.info-asignatura span:last-child {
    border-right: none;
}

@media (max-width: 576px) {
    .info-asignatura {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-asignatura span {
        text-align: left;
    }
}