body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    margin: 0;
}

.navbar {
    background: #f5f7fb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    max-height: 4rem;
    width: auto;
}
.navbar-title {
    font-family: fangsong;
    /* font-size: 1rem; */
}

/* ACCORDION */
.accordion {
    width: 100%;
    font-size: 1.2rem;
    background: #8C1919;
    color: #fff;
    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;
}

.accordion:hover {
    background: #a32020;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.accordion.active {
    background: #6e1313;
}

.accordion::after {
    content: "▼";
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.accordion.active::after {
    transform: rotate(180deg);
}

.panel {
    display: none;
    padding: 10px 0;
}

.hero {
    position: relative;
    min-height: 72vh;
    background: #8C1919;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 35%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
    color: #f9fafb;
}

.hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.84rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    color: #e5e7eb;
    line-height: 1.8;
}

.btn-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 999px;
}

.section-modern {
    padding: 5rem 0 2rem;
}

.section-header .subtitle {
    display: inline-block;
    text-transform: uppercase;
    color: #BE1622;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: #4b5563;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.feature-card h5 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.85;
}

.section-info {
    background: #ffffff;
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
}

.info-grid h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.info-grid p,
.info-grid li {
    color: #4b5563;
    line-height: 1.8;
}

.info-grid ul {
    margin-top: 1.25rem;
    padding-left: 1.2rem;
}

.info-grid li {
    margin-bottom: 0.75rem;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
}

.logo-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.logo-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.logo-card p {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

/* BOTONES PERSONALIZADOS */
.btn-outline-dark.mx-2 {
    border: 2px solid #8C1919;
    color: #8C1919;
    background: transparent;
    border-radius: 12px;
    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;
}

.btn-outline-dark.mx-2:hover {
    background-color: #8C1919;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(140, 25, 25, 0.2);
    border-color: #8C1919;
}

.btn-outline-dark.mx-2:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(140, 25, 25, 0.2);
}

@media (max-width: 1100px) {
    .cards-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logos-grid {
        grid-template-columns: 1fr;
    }

    .navbar-title {
        font-size: 0.95rem;
    }
}

.tramite-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

.tramite-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #8C1919;
}

.tramite-card p,
.tramite-card ul,
.tramite-card li {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.tramite-card p {
    margin-bottom: 1rem;
}

.tramite-card ul {
    padding-left: 1.25rem;
}

.indice-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.indice-card h3 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
    color: #8C1919;
}

.indice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.indice-button {
    flex: 1 1 auto;
    min-width: 8rem;
    white-space: nowrap;
}

.tramite-card li {
    margin-bottom: 0.75rem;
}

.tramite-card a {
    color: #198754;
    text-decoration: underline;
    font-weight: bold;
}

.tramite-card a:hover {
    text-decoration: underline;
}

/* EFECTO HOVER */
.tabla-honor tbody tr:hover {
    background: #dcdcdc;
}

/* ICONO CHECK */
.check {
    width: 12px;
    height: 12px;
    background: #0f766e;
    border-radius: 50%;
    display: inline-block;
}

/* Estilos adicionales para index principal */
.custom-carousel img {
    filter: brightness(0.4) sepia(0.3) hue-rotate(-10deg);
}

.Matriculas {
    background: #8C1919;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.container_Matriculas {
    display: flex;
    gap: 1rem;
    color: white;
    align-items: center;
}

.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;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .indice-buttons {
        justify-content: center;
    }

    .tabla-honor {
        overflow-x: auto;
    }

    .tabla-honor th,
    .tabla-honor td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .container_Matriculas {
        flex-direction: column;
        gap: 1.5rem;
    }

    .img-container {
        min-width: 100%;
        height: 15rem;
    }

    .accordion_matriculas {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

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

.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 {
    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;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* INDICE ESTILO */
/* ACTUALIZACIÓN ÍNDICE DE TRÁMITES */
.indice-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border: 1px solid #edf2f7;
}

.indice-card h3 {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #8C1919;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indice-buttons {
    display: grid;
    /* Crear una cuadrícula de 2 columnas en PC */
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.25rem;
}

.indice-button.btn-outline-dark {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    text-transform: none; /* Quita el mayúsculas si estaba heredado */
    letter-spacing: normal;
    white-space: normal; /* Permite que el texto largo salte de línea */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: Fondo rojo sutil y elevación */
.indice-button.btn-outline-dark:hover {
    background-color: #ffffff;
    color: #8C1919;
    border-color: #8C1919;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(140, 25, 25, 0.1);
}

/* Icono/Número resaltado dentro del botón */
.indice-button::before {
    margin-right: 10px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .indice-buttons {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    
    .indice-card {
        padding: 1.5rem;
    }
    
    .indice-button.btn-outline-dark {
        font-size: 0.9rem;
        padding: 0.85rem 1.2rem;
    }
}