body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F8F9FA;
}

.hero {
    background: #ffffff;
}

.hero .card {
    border-radius: 1rem;
}

.container {
    width: 90%;
    margin: auto;
    padding: 1rem;

}

.navbar-logo {
    max-height: 56px;
    width: auto;
}
.navbar-title {
    font-family: fangsong;
    /* font-size: 1rem; */
}

/* ACCORDION */
.accordion {
    width: 100%;
    font-size: 1.2rem;
    background: #8C1919;
    color: #fff;
    /* mejor contraste */
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all 0.3s ease;
}

/* Hover elegante */
.accordion:hover {
    background: #a32020;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Estado activo */
.accordion.active {
    background: #6e1313;
}

/* Icono (flecha) */
.accordion::after {
    content: "▼";
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Rotación al abrir */
.accordion.active::after {
    transform: rotate(180deg);
}

.panel {
    display: none;
    padding: 10px 0;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* COLUMNAS */
.col {
    background: #e5e5e5;
    padding: 10px;
    border-radius: 5px;
}

.col-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.col-header a {
    color: #8C1919;
    text-decoration: none;
    font-size: 12px;
}

/* TABLA */
.tabla {
    max-height: 250px;
    overflow-y: auto;
}

table {
    width: 100%;
    font-size: 12px;
}

th {
    text-align: left;
    color: #8C1919;
}

td {
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.custom-carousel img {
    filter: brightness(0.4) sepia(0.3) hue-rotate(-10deg);
}

img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    object-position: center;
}

/* --- SECCIÓN MATRÍCULAS DE HONOR --- */
.Matriculas {
    background: #ffffff; /* Fondo claro para resaltar del resto */
    padding: 4rem 0;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.container_Matriculas {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

/* Títulos y Texto */
.Matriculas h4 {
    color: #8C1919;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #8C1919;
    display: inline-block;
}

.Matriculas p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
}

.Matriculas ul {
    list-style: none;
    padding-left: 0;
}

.Matriculas ul li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #555;
}

/* Viñetas personalizadas (Check) */
.Matriculas ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8C1919;
    font-weight: bold;
}

/* Contenedor de Imagen con Efecto */
.img-container {
    flex: 0 0 45%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 15px 15px 0px rgba(140, 25, 25, 0.1);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Acordeón de Matrículas Especial */
.accordion_matriculas {
    background: #8C1919 !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600;
    margin: 0 2rem !important;
    width: calc(100% - 4rem) !important;
    transition: 0.3s;
}

.accordion_matriculas:hover {
    background: #6e1313 !important;
    box-shadow: 0 5px 15px rgba(140, 25, 25, 0.3);
}

/* Tabla de Honor Premium */
.tabla-honor {
    background: white;
    margin: 1rem 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.tabla-honor table {
    margin-bottom: 0;
}

.tabla-honor thead {
    background: #f8f9fa;
}

.tabla-honor th {
    color: #8C1919;
    padding: 15px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
}

.tabla-honor td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f1f1f1;
}

/* Resaltar fila al pasar el mouse */
.tabla-honor tbody tr:hover {
    background-color: #fff9f9;
}

/* Dot de estado en la tabla */
.check {
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

/* BOTONES DE NAVEGACIÓN  */
/* Contenedor principal para dar aire a los botones */
.container.text-center.mt-4 {
    padding: 30px 10px;
}

/* Redefinición del botón personalizado */
.btn-outline-dark.mx-2 {
    border: 2px solid #8C1919; /* Color UD */
    color: #8C1919;
    background: transparent;
    border-radius: 12px; /* Esquinas modernas, no circulares */
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px; /* Para cuando colapsen en móvil */
}

/* Efecto Hover: El botón se llena de color y se eleva */
.btn-outline-dark.mx-2:hover {
    background-color: #8C1919;
    color: #ffffff;
    transform: translateY(-5px); /* Elevación sutil */
    box-shadow: 0 10px 20px rgba(140, 25, 25, 0.2);
    border-color: #8C1919;
}

/* Efecto Click (Active) */
.btn-outline-dark.mx-2:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(140, 25, 25, 0.2);
}

/* Estilo diferenciado para botones de enlaces externos o secundarios */
.btn-outline-dark[href*="practicas"], 
.btn-outline-dark[href*="Tramites"] {
    border-color: #333;
    color: #333;
}

.btn-outline-dark[href*="practicas"]:hover, 
.btn-outline-dark[href*="Tramites"]:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}


/* Responsive */
@media (max-width: 992px) {
    .container_Matriculas {
        flex-direction: column;
        text-align: center;
    }
    .img-container {
        width: 100%;
        box-shadow: none;
    }
    .Matriculas h4 {
        display: block;
        margin: 0 auto 20px;
    }
}

.img-container {
    flex-shrink: 0;
    min-width: 40%;
    height: 20rem;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

.accordion_matriculas {
    color: #8C1919;
    font-weight: 500;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* TABLAS */
.tabla-container {
    width: 100%;
}

/* TABLA */
.tabla-honor {
    background: #eaeaea;
    border-radius: 8px;
    overflow-x: auto;
}

.tabla-honor table {
    width: 100%;
    min-width: 500px;
}

/* ENCABEZADO */
.tabla-honor thead {
    background: #f5f5f5;
}

.tabla-honor th {
    padding: 12px;
    font-size: 13px;
    text-align: left;
    color: #333;
}

/* FILAS */
.tabla-honor td {
    padding: 12px;
    font-size: 13px;
    border-top: 1px solid #ddd;
}

/* EFECTO HOVER */
.tabla-honor tbody tr:hover {
    background: #dcdcdc;
}

/* Responsive tabla */
@media (max-width: 768px) {
    .tabla-honor {
        overflow-x: auto;
    }
    
    .tabla-honor th,
    .tabla-honor td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* ICONO CHECK */
.check {
    width: 12px;
    height: 12px;
    background: #0f766e;
    border-radius: 50%;
    display: inline-block;
}