.autoevaluacion .fw-semibold {color: #D97706; margin-bottom: 6px !important;}
.bg-orange {background: #FFF4E8}
.autoevaluacion .border-start {
  border-left-color: #F5C79A !important;
}

/* BANNER HOME 

.hero-banner {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e3edf7;
    border-radius: 22px;
    padding: 42px 38px;
    margin-bottom: 32px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.hero-banner__bg-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-banner__bg-circle--top {
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: rgba(91, 155, 213, 0.08);
}

.hero-banner__bg-circle--bottom {
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(91, 155, 213, 0.05);
}

.hero-banner__content {
    position: relative;
    max-width: 860px;
}

.hero-banner__badge {
    display: inline-block;
    background: #eaf3fb;
    color: #356a9a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-banner__title {
    margin: 0 0 14px 0;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    color: #1f2937;
}

.hero-banner__subtitle {
    margin: 0 0 14px 0;
    font-size: 20px;
    line-height: 1.4;
    color: #374151;
    font-weight: 500;
}

.hero-banner__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    max-width: 760px;
}

.hero-banner__meta {
    margin-top: 22px;
    font-size: 14px;
    color: #5b6472;
    font-weight: 600;
    letter-spacing: 0.02em;
}*/

span.btn-reset-ajust { color: #fff !important }

.tutor .col-md-4{
  display: flex;
  align-items: center;
}

.home-hero__title {

color: #fff;
}

.home-hero {
    background: linear-gradient(135deg, #4a0d18 0%, #7a1224 100%);
    border-radius: 28px;
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* decorativos suaves */
.home-hero::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* etiqueta superior */
.home-hero__eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

/* título principal */
.home-hero__title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

/* línea decorativa (muy importante para conectar con naranja) */
.home-hero__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #f59e0b;
    margin-top: 14px;
    border-radius: 2px;
}

/* subtítulo */
.home-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
}

/* texto */
.home-hero__text {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 18px;
}

/* ciclos */
.home-hero__cicles {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
}

/* responsive */
@media (max-width: 991.98px) {
    .home-hero {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .home-hero__title {
        font-size: 1.9rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero__title {
        font-size: 1.6rem;
    }

    .home-hero__text {
        font-size: 0.95rem;
    }
}

/* FIN BANNER HOME */





/* HEADER */

/* ===== CABECERA PROJECTES ===== */

.site-header {
  background: #fff;
}

.top-header {
  border-bottom: 1px solid #d9d9d9;
}

.header-logo-img {
  max-height: 72px;
  width: auto;
  display: block;
}

.projectes-navbar {
  background-color: #970A2C;
}

.projectes-navbar .navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  position: relative;
  transition: background-color .2s ease;
}

.projectes-navbar .navbar-nav .nav-link:hover,
.projectes-navbar .navbar-nav .nav-link:focus {
  color: #fff;
  background-color: rgba(255,255,255,.06);
}

.projectes-navbar .navbar-nav .nav-link.active {
  color: #fff;
}

.projectes-navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: #f0b323;
  border-radius: 2px 2px 0 0;
}

.projectes-navbar .dropdown-menu {
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: 8px 0;
}

.projectes-navbar .dropdown-item {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.projectes-navbar .dropdown-item:hover {
  background: #f7f7f7;
}

/* Perfil */
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-lg {
  width: 46px;
  height: 46px;
}

.profile-name {
  font-size: 0.95rem;
  color: #2b2b2b;
}

.profile-role {
  font-size: 0.8rem;
}

.profile-box .dropdown-toggle::after {
  margin-left: 10px;
  vertical-align: middle;
  color: #666;
}

.profile-box .dropdown-menu {
  min-width: 260px;
  border: 0;
  border-radius: 12px;
}
.profile-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6b7280; /* gris suave */
  transform: translateY(1px);
}
/* Responsive */
@media (max-width: 991.98px) {
  .header-logo-img {
    max-height: 54px;
  }

  .projectes-navbar .navbar-nav .nav-link.active::after {
    display: none;
  }

  .projectes-navbar .navbar-collapse {
    padding: 10px 0;
  }
}

@media (max-width: 575.98px) {
  .top-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* FIN HEADER */




/* RESUMEN HOME */

.home-cicles-panel {
    background: linear-gradient(135deg, #ef902a 0%, #d97706 100%);
    border-radius: 28px;
    padding: 32px;
    color: #fff;
    box-shadow: 0 18px 45px rgba(140, 70, 0, 0.18);
    overflow: hidden;
    position: relative;
}

.home-cicles-panel::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.home-cicles-panel::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.home-cicles-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.home-cicles-panel__eyebrow {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.home-cicles-panel__title {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.home-cicles-panel__subtitle {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.5;
}

.home-cicles-panel__total {
    flex: 0 0 auto;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 16px 18px;
    backdrop-filter: blur(4px);
    text-align: right;
}

.home-cicles-panel__total-label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 6px;
}

.home-cicles-panel__total-value {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.home-cicles-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.home-cicle-card {
    display: block;
    background: #FFF4E8;
    color: #2b2b2b;
    border-radius: 22px;
    padding: 20px 20px 18px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(80, 40, 0, 0.20);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.home-cicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(80, 40, 0, 0.16);
    background: #fff;
    text-decoration: none;
    color: #2b2b2b;
}

.home-cicle-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.home-cicle-card__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(239, 144, 42, 0.14);
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.home-cicle-card__icon {
    font-size: 1rem;
    color: #b45309;
    opacity: 0.8;
}

.home-cicle-card__count {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.home-cicle-card__label {
    font-size: 0.96rem;
    color: #6b7280;
}

@media (max-width: 1399.98px) {
    .home-cicles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-cicles-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .home-cicles-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cicles-panel__total {
        text-align: left;
        max-width: 220px;
    }

    .home-cicles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-cicles-panel__title {
        font-size: 1.6rem;
    }

    .home-cicles-grid {
        grid-template-columns: 1fr;
    }

    .home-cicle-card__count {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .home-cicles-panel {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .home-cicles-panel__header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 18px;
    }

    .home-cicles-panel__title {
        font-size: 1.9rem;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .home-cicles-panel__subtitle {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .home-cicles-panel__total {
        min-width: 0;
        width: 100%;
        max-width: 220px;
        padding: 14px 16px;
        text-align: left;
        align-self: flex-start;
        border-radius: 20px;
    }

    .home-cicles-panel__total-label {
        font-size: 0.78rem;
        margin-bottom: 4px;
    }

    .home-cicles-panel__total-value {
        font-size: 2.2rem;
    }

    .home-cicles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .home-cicle-card {
        padding: 16px 14px 14px;
        border-radius: 22px;
        min-width: 0;
    }

    .home-cicle-card__top {
        margin-bottom: 14px;
    }

    .home-cicle-card__code {
        min-width: 0;
        height: 32px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .home-cicle-card__icon {
        font-size: 0.9rem;
    }

    .home-cicle-card__count {
        font-size: 2.1rem;
        line-height: 1;
        margin-bottom: 6px;
    }

    .home-cicle-card__label {
        font-size: 0.92rem;
        line-height: 1.35;
    }
}

@media (max-width: 389.98px) {
    .home-cicles-grid {
        grid-template-columns: 1fr !important;
    }

    .home-cicle-card__count {
        font-size: 2rem;
    }
}


/* FIN RESUMEN HOME */

.home-objectius {
    margin-top: 40px;
}

.home-objectius-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-objectius-subtitle {
    color: #6b7280;
    margin: 0;
}

.home-objectiu-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    height: 100%;
    transition: all 0.18s ease;
}

.home-objectiu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

.home-objectiu-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.home-objectiu-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-objectiu-text {
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.pill-granate { background: #f0dce2 ; color: #000 }

.pill-orange { background: #FFF4E8; color: #000 }

span.birrete {
    font-size: 16px;
}

.projectes-title {
    font-size: 2rem;
    font-weight: 700;
    color: #14213d;
}

.projectes-subtitle {
    font-size: 1rem;
    color: #5b6475;
}

.projectes-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid #970A2C;
    background: #fff;
    color: #970A2C;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.projectes-filter-pill:hover {
    background: #f8e9ee;
    color: #970A2C;
    text-decoration: none;
}

.projectes-filter-pill.active {
    background: #970A2C;
    border-color: #970A2C;
    color: #fff;
}

.projectes-grup-section {
    margin-top: 1.5rem;
}

.projectes-grup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projectes-grup-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #14213d;
    margin: 0;
    position: relative;
}

.projectes-grup-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: #970A2C;
}

/* CARD */

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.project-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #ececec;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #eef1f5;
    transition: transform 0.25s ease;
}

.project-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    background: #eef1f5;
}

.project-card:hover .project-card-image {
    transform: scale(1.02);
}

.project-card-body {
     padding: 1.4rem 1.4rem 1.3rem;
}

.project-card-meta {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.project-meta-separator {
    margin: 0 0.35rem;
    color: #9ca3af;
}

.project-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
     margin-bottom: 1rem;
    color: #14213d;
    transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
    color: #970A2C;
}

.project-card-summary {
    font-size: 1rem;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 1.4rem;
}

.project-card-label {
    font-weight: 700;
    color: #14213d;
    font-size: 0.95rem;
}

.project-card-alumnes {
    font-size: 0.95rem;
    color: #374151;
     margin-top: 1rem;
}

.project-card-students {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-student-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
     background: #f6f2f4; /* gris con toque granate */
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.project-card:hover .project-student-badge {
    background: #f0dce2;
    color: #970A2C;
}
.projectes-empty-state .card {
    border-radius: 18px;
}

@media (max-width: 767.98px) {
    .projectes-title {
        font-size: 1.7rem;
    }

    .projectes-grup-title {
        font-size: 1.2rem;
    }

    .project-card-title {
        font-size: 1.25rem;
    }
}


   .puig-panel {
   
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
   
}

.home-objectiu-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a3412;
    margin-bottom: 6px;
}

/* Header */
.puig-panel-header {
    background: #e9e9e9;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dcdcdc;
}

.puig-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    margin: 0;
}

/* Body */
.puig-panel-body {
    padding: 0;
}

/* Lista tipo menú */
.puig-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.puig-panel-item {
    border-bottom: 1px solid #e5e5e5;
}

.puig-panel-item:last-child {
    border-bottom: none;
}

.puig-panel-link {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.puig-panel-link:hover {
    background: #eeeeee;
    color: #333;
    text-decoration: none;
}

/* Variante para contenido libre */
.puig-panel-content {
    padding: 1rem;
    font-size: 0.95rem;
    color: #444;
}

.puig-panel {
    
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;

    /* sombra */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}



.puig-panel-highlight {
   
   border: 1px solid #e6c7cf;
}

.puig-panel-highlight .puig-panel-header {
    background: #f0dce2;
    border-bottom: 1px solid #e2bfc8;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.alumnes {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
        margin-bottom: 22px;
}

.ml-0 {padding-left: 0 !important;}
.mr-0 {padding-right: 0 !important;}


   .h3fichas {
    font-size: 0.95rem;
    font-weight: 700;
    
    margin: 0;
    color: #970A2C !important;
    border-bottom: 1px solid #e6c7cf;
    padding-bottom:8px;
    padding-left:15px;
    margin-bottom:20px;

     }   

     .enlace {
        color: #5d657b;
        
        margin-bottom:5px;

     }

     .enlace:hover {
        color: #970A2C;
        
        

     }

     .inner-ficha { padding-left: 15px;}

.breadcrum {
    margin:10px 0 10px 0;
}
.btn-puig { border: 1px solid #970A2C; color: #970A2C; background: #fff; transition: background 0.2s ease; }
.btn-puig:hover { border: 1px solid #970A2C; color: #970A2C; background: #f0dce2;   }


.btn-orange {
    background: #D97706;
    border: 1px solid #D97706;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-orange:hover {
    background: #c66905;
    border-color: #c66905;
    color: #fff;
}

.btn-orange:active {
    background: #b65d05;
    border-color: #b65d05;
}

.btn-orange:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

.btn-orange:disabled {
    background: #f3d3b0;
    border-color: #f3d3b0;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-orange-o {
    border: 1px solid #D97706;
    color: #D97706;
    background: #fff;
    transition: all 0.2s ease;
}

.btn-orange-o:hover {
    border-color: #D97706;
    color: #D97706;
    background: #FFF4E8;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

a.text-muted span:first-child {
    opacity: 0.7;
}
.btn-outline-danger {
    border-width: 1.5px;
}


.puig-panel {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.puig-panel-header {
    background: #e9e9e9;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dcdcdc;
}

.puig-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    margin: 0;
}

.puig-panel-body {
    padding: 0;
}

.puig-panel-content {
    padding: 1rem;
    font-size: 0.9rem;
    color: #444;
}

.puig-panel-highlight {
    border: 1px solid #e6c7cf;
}

.puig-panel-highlight .puig-panel-header {
    background: #f0dce2;
    border-bottom: 1px solid #e2bfc8;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.alumnes {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 22px;
}

.ml-0 { padding-left: 0 !important; }
.mr-0 { padding-right: 0 !important; }

.h3fichas {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #970A2C !important;
    border-bottom: 1px solid #e6c7cf;
    padding-bottom: 8px;
    padding-left: 15px;
    margin-bottom: 20px;
}

.inner-ficha {
    padding-left: 15px;
}

.breadcrum {
    margin: 10px 0 10px 0;
}

.btn-puig {
    border: 1px solid #970A2C;
    color: #970A2C;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-puig:hover {
    border: 1px solid #970A2C;
    color: #970A2C;
    background: #f0dce2;
}

.btn-puig-solid {
    border: 1px solid #970A2C;
    background: #970A2C;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-puig-solid:hover {
    background: #7e0825;
    border-color: #7e0825;
    color: #fff;
}

a.text-muted span:first-child {
    opacity: 0.7;
}

.form-control,
.form-select,
.form-control[type="file"] {
    border-radius: 8px;
    border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
    border-color: #c08497;
    box-shadow: 0 0 0 0.2rem rgba(151, 10, 44, 0.08);
}

.form-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.preview-box {
    width: 100%;
    min-height: 360px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.section-block {
    margin-bottom: 3rem;
}

.card-style {
    background: #fff;
}

.form-section-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.1rem;
}

.form-section-card + .form-section-card {
    margin-top: 1rem;
}

.edit-label-subtle {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #212529bf;
    margin-bottom: 0.45rem;
}

.input-title-like {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
}

.input-title-like::placeholder {
    color: #9ca3af;
}

.input-summary-like {
    font-size: 1.2rem;
    line-height: 1.45;
    font-weight: 400;
    color: #6b7280;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
    resize: none;
}

.input-summary-like::placeholder {
    color: #9ca3af;
}

.textarea-description-like {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    min-height: 220px;
    resize: none;
    overflow: hidden;
}

.textarea-description-like::placeholder {
    color: #9ca3af;
}

.image-upload-box {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.doc-block-primary {
    border: 1px solid #ddc1ca;;
    background: #f4e3e8;
}

.doc-block-secondary {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.doc-link-current {
    font-size: 14px;
    display: inline-block;
    margin-top: 0.6rem;
    color: #970A2C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.doc-link-current:hover {
    color: #7e0825;
    text-decoration: underline;
}

.link-muted-title {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.meta-input {
    background: #fff;
}

@media (max-width: 991.98px) {
    .input-title-like {
        font-size: 1.7rem;
    }

    .input-summary-like {
        font-size: 1.08rem;
    }
}

.form-prin { border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.1rem;}
textarea {
    overflow: hidden;
    resize: none;
}    



.bloque-final {
  background: #0F172A; /* azul muy oscuro elegante */
  color: #E5E7EB;
}

.bloque-final .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
}

.bloque-final .valor {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F9FAFB;
}

.bloque-final .nota-final {
  font-size: 3rem;
  font-weight: 700;
  color: #F59E0B; /* naranja acento */
  line-height: 1;
}

.bloque-final .nota-max {
  font-size: 1rem;
  color: #9CA3AF;
}

.bloque-final .divider {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.notafinal { color: #fff !important;
  font-size: 24px !important;
  font-weight: 600 !important;
}




.doc-item-primary {
    font-size:15px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #7a0d25;
}

.doc-item-primary:hover {
    text-decoration: underline;
}
.label-doc-prin { font-size:17px; color: #374151;
    font-weight: 600; }

/* TUTOR */
.bg-tutor {
  background-color: #E7F0FB;
}
.tutor .fw-semibold {
  color: #1E3A8A;
  margin-bottom: 6px !important;
}
.tutor .border-start {
  border-left-color: #93C5FD !important;
}

/* TRIBUNAL */
.bg-tribunal {
  background-color: #f5f9ff;
}
.tribunal .fw-semibold {
  color: #515782;
  margin-bottom: 6px !important;
}
.tribunal .border-start {
  border-left-color: #CBD5F5 !important;
}

/* ESTRELLAS */
.star {
  font-size: 25px;
  color: #E5E7EB;
}
.star.filled {
  color: #FACC15;
}

.rating-grid {
  display: grid;
  grid-template-columns: 110px auto;
  column-gap: 12px;
  row-gap: 10px;
  margin-bottom:15px;

}

.rating-label {
 display: flex;
  justify-content: flex-end;
  align-items: center;
  font-weight: 600;
  color: #334155;
}

.rating-stars {
  white-space: nowrap;
}

.rating-label,
.rating-stars {
  display: flex;
  align-items: center;
}


@media (min-width: 1150px) {
    .rating-grid {
        margin-left: 20px !important;
    }
}
@media (max-width: 970px) {
    .rating-grid {
        margin-left: -20px !important;
    }
}
@media (max-width: 890px) {
    .tribunal .rating-grid {
        margin-left: -40px !important;
    }
}


.btn-ajuste-circulo{
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.78);

  font-size: 15px;
  line-height: 1;

  cursor: pointer;
  transition: all .18s ease;
  user-select: none;

  /* 🔧 AJUSTE FINO */
  padding-bottom: 5px;   /* mueve vertical */
  padding-left: 0px;     /* mueve horizontal */
}

/* Separación vertical entre columnas */
.tribunal-col {

  position: relative;
}

.tribunal-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 1px;
  background-color: #E5E7EB;
}

.t-col-1 { padding-right: 24px !important;}
.t-col-2 { padding-left: 24px !important; padding-right: 24px !important;}
.t-col-3 { padding-left: 24px !important;}

.mega-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mega-btn {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    
}

th.fw-semibold.text-center.py-3 {
    min-width: 233px;
}

/* ICONO */
.mega-icon {
    font-size: 21px;
    line-height: 1;
}
.mega-icon svg {
    width: 30px;
    height: 30px;
}

/* TEXTO */
.mega-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mega-text strong {
    font-size: 15px;
    color: inherit;
}

.mega-text small {
    font-size: 12px;
    opacity: 0.7;
}
.icon-memoria {margin-right: -4px;}
.rocket svg { height: 30px;}



/* BOTÓN OUTLINE (MEMORIA) */


.mega-btn-outline {
    background-color: #f8e9ec; /* más sutil */
    border: 1px solid #e3b8c1;
    color: #970A2C;
}

.mega-btn-outline:hover {
    
    color: #970A2C;
    transform: translateY(-2px);
    background-color: #f3d6dc;
    border-color: #970A2C;
}

/* BOTÓN SOLIDO (DEMO) */
.mega-btn-solid {
    background-color: #970A2C;
    color: #fff;
    border: 1px solid #970A2C;
}

.mega-btn-solid:hover {
    background-color: #7a0823;
    border-color: #7a0823;
    transform: translateY(-2px);
    color: #fff;
}

.mega-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.mega-arrow {
    margin-left: auto;
    font-size: 18px;
    opacity: 0.7;
}


/* ayuda */
/* ============================= */
/* INICIO BLOQUE AJUDES_FITXA    */
/* ============================= */

.help-main-box {border: 1px solid #facc15; border-radius: 14px; overflow: hidden; margin-bottom: 22px;}
.help-main-header {background: #facc15; color: #78350f; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;}
.help-main-header:hover {background: #fbbf24;}
.help-main-title-wrap {display: flex; align-items: center; gap: 10px;}
.help-icon {width: 24px; height: 24px; border-radius: 50%; background: #78350f; color: #facc15; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;}
.help-main-title {font-weight: 700; font-size: 0.95rem;}
.help-toggle-btn {border: 1px solid rgba(120, 53, 15, 0.35); border-radius: 999px; background: #fffbeb; color: #78350f; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; white-space: nowrap;}
.help-main-header:hover .help-toggle-btn {background: #fff7d6; border-color: rgba(120, 53, 15, 0.55);}
.help-main-content {background: #fffbeb; padding: 16px; color: #78350f; font-size: 0.92rem; line-height: 1.45;}
.help-main-content.hidden {display: none;}
.help-intro {text-align: center; font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; padding: 8px;}
.help-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;}
.help-section {background: rgba(255, 255, 255, 0.45); border: 1px solid #fde68a; border-radius: 10px; padding: 12px; margin-bottom: 0;}
.help-section strong {display: block; margin-bottom: 6px;}
.help-main-list {margin: 0; padding-left: 1.1rem; list-style-type: disc;}
.help-main-list li {display: list-item; margin-bottom: 4px;}

.help-deadline-box {background: linear-gradient(0deg, #fef3c7, #fde68a); border: 1px solid #facc15; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; color: #78350f; text-align: center;}
.help-deadline-label {font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;}

.help-deadline-date {font-size: 1.12rem; font-weight: 800;}
.help-deadline-note {font-size: 0.82rem; margin-top: 2px;}

.info-ajuda {display: flex; align-items: flex-start; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 0.88rem; color: #78350f;}
.info-ajuda-icon {width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: #facc15; color: #78350f; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;}
.info-ajuda-text {line-height: 1.4;}
.info-ajuda.hidden {display: none;}
.info-ajuda-content {display: flex; flex-direction: column;}
.info-ajuda-title {font-weight: 700; margin-bottom: 4px;}
.info-ajuda-list {margin: 0; padding-left: 1rem; list-style-type: disc;}
.info-ajuda-list li {margin-bottom: 3px;}
.info-ajuda-example {margin-top: 8px;}
.info-ajuda-example summary {cursor: pointer; font-weight: 700; color: #92400e; font-size: 0.84rem;}
.info-ajuda-example-content {margin-top: 8px; padding: 10px 12px; border-left: 3px solid #facc15; background: rgba(255, 255, 255, 0.55); border-radius: 8px; font-size: 0.84rem; line-height: 1.45;}
.info-ajuda-example-content p {margin: 0 0 15px;}
.info-ajuda-example-content p:last-child {margin-bottom: 0;}
.info-ajuda-note {margin-top: 8px; padding: 8px 10px; font-size: 0.82rem; color: #92400e; background: rgba(250, 204, 21, 0.15); border-left: 3px solid #facc15; border-radius: 6px;}
.info-ajuda-note a {color: #d97706; font-weight: 600; text-decoration: none;}
.info-ajuda-note a:hover {text-decoration: underline;}
.info-ajuda-example-content.images {display: flex; gap: 8px; flex-wrap: wrap;}
.info-ajuda-example-content.images img {width: calc(25% - 6px); border-radius: 6px; object-fit: cover;}
.info-ajuda-example a {color: #92400e; font-weight: 700 !important}

.info-ajuda-wide {margin-bottom: 14px; padding: 14px 16px;}
.info-ajuda-wide .info-ajuda-title {font-size: 0.95rem;}
.char-counter {text-align: right; font-size: 0.75rem; color: #9ca3af; margin-top: 4px;}
.char-counter.limit {color: #dc2626; font-weight: 600;}
.char-counter.ok {color: #16a34a; font-weight: 600;}

.alerta-llenguatge {  margin-top: 20px ; padding: 12px 16px; background: #fef3c7; border-left: 4px solid #f59e0b;  border-radius: 10px; display: flex; gap: 10px; font-size: 0.9rem; color: #7a4e00;}
.alerta-llenguatge .icon { font-size: 1.2rem; line-height: 1.2; }
.alerta-llenguatge strong { color: #b45309;}

/* ======== RESPONSIVE ======== */

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

@media (max-width: 768px) {
    .help-main-header {align-items: flex-start; flex-direction: column;}
    .help-toggle-btn {width: 100%; text-align: center;}
}

/* ============================= */
/* FIN BLOQUE AJUDES_FITXA       */
/* ============================= */



/* ============================= */
/* PANEL ENTREGAS                */
/* ============================= */
.panel-entregues { max-width:1700px; margin:0 auto; padding:24px; }
.panel-entregues h2 { font-weight:700; margin-bottom:6px; color:#2f3b52; }
.panel-entregues .subtitol { color:#6c757d; margin-bottom:24px; }
.card-entrega { background:#fff; border:1px solid #d9dee5; border-radius:18px; overflow:hidden; margin-bottom:24px; box-shadow:0 2px 8px rgba(20,30,50,0.04); }
.card-header-projecte { background:linear-gradient(135deg,#2f3b52,#465979); color:#fff; padding:16px 20px; display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.card-header-main { min-width:0; }
.card-titol { font-size:1.15rem; font-weight:800; line-height:1.25; margin-bottom:5px; }
.card-meta { font-size:0.88rem; color:rgba(255,255,255,0.78); }
.card-alumnes { text-align:right; font-size:0.92rem; line-height:1.35; color:rgba(255,255,255,0.92); min-width:190px; }
.card-alumnes-label { display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.04em; color:rgba(255,255,255,0.58); margin-bottom:4px; }
.card-cos { padding:20px; display:grid; grid-template-columns:1fr 1fr 0.9fr 1.15fr 0.95fr 1.1fr; gap:18px; align-items:start; }
.bloc-control { min-width:0; }
.bloc-titol { font-size:0.78rem; font-weight:800; text-transform:uppercase; color:#465979; letter-spacing:0.04em; margin-bottom:10px; padding-bottom:6px; border-bottom:1px solid #edf0f3; }
.bloc-pills { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.pill-check,
.pill-x,
.pill-neutral { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-size:0.82rem; font-weight:650; white-space:nowrap; }
.pill-check { background:#e8f5e9; color:#08751c; border:1px solid #c8e6c9; }
.pill-x { background:#fdecea; color:#c62828; border:1px solid #f5c6cb; }
.pill-neutral { background:#f1f3f5; color:#7a838d; border:1px solid #dee2e6; }
.estat-box { border-radius:14px; padding:14px 15px; font-weight:800; font-size:1rem; line-height:1.2; border:1px solid; }
.estat-box small { display:block; margin-top:6px; font-size:0.78rem; font-weight:500; line-height:1.25; }
.estat-complet { background:#e8f5e9; color:#08751c; border-color:#b7dfbd; }
.estat-valid { background:#fff4e5; color:#a65f00; border-color:#ffd08a; }
.estat-invalid { background:#fdecea; color:#c62828; border-color:#f3b5b5; }
.notas-box { min-width:150px; }
.nota-global { font-size:1.9rem; font-weight:850; line-height:1; color:#3f4a68; margin-bottom:4px; }
.nota-label { font-size:0.78rem; color:#6c757d; margin-bottom:16px; }
.nota-alumne { display:flex; align-items:center; gap:8px; font-size:0.88rem; margin-top:8px; color:#4b5875; line-height:1.35; }
.nota-nom { white-space:nowrap; }
.nota-separador { flex:1; border-bottom:1px dotted #c7ced6; transform:translateY(2px); height:6px; }
.nota-valor { font-weight:850; color:#2f3b52; white-space:nowrap; }
.card-footer-projecte { background:#f3f5f7; border-top:1px solid #e0e4e9; padding:12px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.footer-responsables { display:flex; flex-wrap:wrap; gap:18px; font-size:0.83rem; color:#5f6b7a; }
.footer-responsables strong { color:#2f3b52; }
.boto-fitxa { display:inline-flex; align-items:center; justify-content:center; padding:9px 16px; border-radius:999px; background:#465979; color:#fff; text-decoration:none; font-size:0.85rem; font-weight:700; transition:0.2s; }
.boto-fitxa:hover { background:#2f3b52; color:#fff; }

.resum-global {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    width: fit-content;
}

.resum-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.resum-num {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.resum-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.resum-valids .resum-num   { color: #2d6a4f; }
.resum-incomplets .resum-num { color: #c0392b; }

.resum-sep {
    color: #ced4da;
    font-size: 1.1rem;
    padding: 0 0.1rem;
}

.resum-total {
    font-size: 0.8rem;
    color: #adb5bd;
    padding-left: 0.5rem;
    border-left: 1px solid #dee2e6;
}


@media (max-width:1100px) {
    .panel-entregues { overflow-x:auto; }
    .card-entrega { min-width:1250px; }
}
/* ============================= */
/* FIN PANEL ENTREGAS            */
/* ============================= */



/* fin ayuda */

.col-f1 {
    flex: 0 0 50px;
}

.col-f2 {
    flex: 0 0 40px;
}

.col-f3 {
    flex: 0 0 80px;
}
.cotutortx { font-size: 14px}
.lh12 {line-height: 1.2; }



