
/* GENERAL */
body {
    overflow-x: hidden;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

/* NAVBAR-- Encabezado  */
.bg-maroon {
     background-color: #9F2241 !important;
     padding-top: 20px;
     padding-bottom: 20px;
     }


    header.navbar {
            position: sticky;
            top: 0;
            z-index: 999;
            background-color: #861F41;
            box-shadow: 0 8px 6px rgba(9, 9, 9, 0.23);
        }

        .navbar {
            padding: 20px 40px;
            position: relative;
        }


.navbar-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 36px;
    font-stretch: expanded;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif, Poppins;
    letter-spacing: 0.5px;
}


.navbar-logo {
    max-height: 50px;          /* antes 75px */
    max-width: 100%;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

 /* Menú colapsable */
.navbar-collapse {
    justify-content: flex-end;
}


/* BOTONES dorados globales */
.btn {
    background-color: #BC965C !important;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.btn:hover,
.btn:focus {
    background-color: #a67c45 !important;
    color: #ffffff !important;
}

.btn-outline-light,
.btn-light,
.btn-secondary,
.btn-danger {
    background-color: #BC965C !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-outline-light:hover,
.btn-light:hover,
.btn-secondary:hover,
.btn-danger:hover {
    background-color: #a67c45 !important;
    color: #ffffff !important;
    border: none !important;
}

/* SIDEBAR */
.sidebar-bg {
    background: #ffffff;
    border-right: 1px solid #eee;
    padding-top: 1rem;
    padding-left: .75rem;
    padding-right: .75rem;
}

/* ==== BOTONES DEL MENÚ LATERAL ==== */
.sidebar-bg .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border-left: 3px solid #e5e0d8;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .92rem;
    color: #333 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.sidebar-bg .nav-link i{
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-bg .nav-link:hover {
    background-color: #faf5f0;
    border-left-color: #BC965C;
    color: #9A1F40 !important;
}

.sidebar-bg .nav-link:focus,
.sidebar-bg .nav-link.active {
    background-color: #fbeaef;
    border-left-color: #9A1F40;
    color: #9A1F40 !important;
    font-weight: 700;
}

.sidebar-bg .nav-link.active i{
    color: #9A1F40;
}

.sidebar-bg hr{
    border: 0;
    height: 1px;
    background: #eee;
    opacity: 1;
    margin: .75rem 0;
}

/* Íconos */
.bi-pencil-square {
    font-size: 1.5rem;
}

/* FOOTER */
footer {
    background: #E9E8E8;
    color: #861F41;
    padding: 30px 15px;
    text-align: center;
    width: 100%;
    border-top: 2px solid #ccc;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.07);
    position: relative;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

footer .container {
    max-width: 100%;
    padding: 0;
}

footer i {
    color: #BC965C;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    color: #8a6d3b;
}

footer p {
    margin-bottom: 8px;
}

footer small {
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    .navbar-title {
        font-size: 22px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-logo {
        max-height: 50px;
        margin: 0 auto;
    }

    .navbar-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 15px;
    }

    .dropdown {
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .navbar-title {
        font-size: 18px;
        text-align: center;
    }

    .navbar-logo {
        max-height: 40px;
    }

    footer {
        padding: 20px 10px;
        font-size: 0.85rem;
        font-size: 0.85rem;
    }
}

body,
main {
    margin: 0;
    padding: 0;
}

main.flex-grow-1 {
    padding-top: 0 !important;
    margin-top: 0;
    min-height: calc(100vh - 160px);
}

/* Estilos acordeon item */

.accordion-item {
  border: 1px solid #7d1625;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: #f8eaea;
  color: #7d1625;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #7d1625, #a01f2f);

  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #7d1625;
}

.accordion-body {
  background-color: #fff; /* Contenido blanco para contraste */
  color: #333;
}

.accordion .badge {
  font-size: 0.8rem;
}

.accordion-button:hover {
  filter: brightness(1.08);
  transition: all 0.3s ease-in-out;
}

/* ESTILOS TABLAS MIS ACCIONES */
  table.table {
    border: 1px solid #7d1625;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
  }

  table.table th {
    background-color: #f8f9fa;
    color: #7d1625;
    font-weight: 600;
    border: 1px solid #ddd;
    text-align: center;
  }

  table.table td {
    vertical-align: middle;
    border: 1px solid #eee;
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
    border-radius: 1rem;
  }

  .btn-outline-info {
    border-color: #BC965C;
    color: #7d1625;
    font-weight: 500;
  }

  .btn-outline-info:hover {
    background-color: #BC965C;
    color: white;
  }

  .btn-warning {
    background-color: #BC965C;
    color: white;
    font-weight: 500;
    border: none;
  }

  .btn-warning:hover {
    background-color: #a37f4c;
  }

  /* ESTILOS HOISTORIAL DE AVANCES */

   .card-toggle {
  border: 1px solid #7d1625;
  border-radius: 0.75rem;
  background-color: #f8f9fa;
  box-shadow: none;
  overflow: hidden;
}

  .card-header {
    background-color: #f8f9fa;
    color: #7d1625; /
    font-weight: 600;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.8rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .info-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .btn-toggle {
    background-color: #BC965C;
    color: white;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out;
    font-size: 0.9rem;
  }

  .btn-toggle:hover {
    background-color: #a37f4c;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
    border-radius: 1rem;
  }

  .badge-avance {
    background-color: #fce9ea;
    color: #7d1625;
  }

  .card-body {
    background-color: #fdf9f3;
    padding: 1rem 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem; /* Parte de abajo */
  }

  .col-evidencias {
    min-width: 180px;
    white-space: normal;
}
