@font-face {
    font-family: 'Manrope';
    src: url('fuentes/Manrope-ExtraBold 2.ttf') format('truetype');
    font-weight: 1000;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('fuentes/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('fuentes/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('fuentes/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('fuentes/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background: linear-gradient(to right, #002f6c, #0057b8);
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    font-weight: 800;
    font-size: 48px;
    color: #FFFFFF;
}

h3 {
    font-weight: bold;
    font-size: 32px;
    color: #000000;
}

label {
    font-weight: 400;
    font-size: 20px;
    color: #000000;
}

p {
    font-weight: 400;
    font-size: 20px;
}

.bienvenida p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

main>section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.form-section {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #007bff;
    margin-bottom: 2rem;
    max-width: 900px;
}

.form-group {
    display: flex;
    flex: 1;
    min-width: 180px;
    flex-direction: column;
}


.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.form-group select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-buscar {
    background-color: #c82333;
    color: white;
    padding: 0.6rem 2rem;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 120px;
    transition: background-color 0.3s ease;
}

.table-section {
    max-width: 900px;
    margin: 2rem auto;
    display: none;
}

.table-section h3 {
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    background-color: #e3f2fd;
    border-radius: 20px;
    text-align: left;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #e3f2fd;
    font-weight: bold;
}

.form-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.form-row {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-button {
        align-items: stretch;
    }
}

.icono-btn {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.ciclo-wrapper {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tabla-ciclo {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.ciclo-titulo {
    font-weight: bold;
    padding: 0.5rem 0;
    background-color: #e3f2fd;
    text-align: center;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.titulo-principal {
    text-align: left;
    margin-bottom: 1rem;
    margin-left: 10px;
}

.tabla-asignaturas table,
.tabla-prerequisitos table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.titulo-tabla {
    background-color: #e3f2fd;
    font-weight: bold;
    font-size: 15px;
}

.titulo-tabla.prerequisito {
    background-color: #d9f7e9;
}

.tabla-asignaturas th,
.tabla-prerequisitos th,
.tabla-asignaturas td,
.tabla-prerequisitos td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
}

.ciclo-label {
    display: inline-block;
    background-color: #00bcd4;
    color: white;
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 1rem 0 0.5rem 0;
}

.verde {
    background-color: #d9f7e9;
}

.tabla-wrapper {
    margin-bottom: 2rem;
    flex: 1 1 45%;
}

.tabla-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.tabla-wrapper th,
.tabla-wrapper td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
    font-size: 13px;
}

.ciclo-contenedor {
    text-align: left;
    margin-bottom: 3rem;
}

.tablas-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 1rem;
}

select,
input[type="text"] {
    padding: 0.8rem 1rem;
    font-size: 14px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 999px;
}

.tabla-wrapper table thead tr:nth-child(2) th {
    background: white;
    font-weight: 600;
}

.form-section select {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 16px;
    color: #B5B5B5;
}

.btn-buscar:hover {
    background-color: #a71d2a;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 1rem 2rem 1rem 1rem;
    font-size: 14px;
    width: 100%;
    color: #333;

    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    background-size: 16px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #007bff;
}

select:hover,
input[type="text"]:hover {
    border-color: #007bff;
}

.form-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    color: white;
    border-radius: 10px;
    background: linear-gradient(90deg, #004080, #007bff);
}

h2,
h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.resumen-creditos {
    background-color: #fff;
    margin: 30px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
}

.resumen-header {
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 2px 10px;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.resumen-subheader {
    font-size: 14px;
    padding: 0.5rem 1rem;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #666;
}

.resumen-creditos table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.resumen-creditos td {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.resumen-creditos td:first-child {
    font-weight: bold;
    text-align: left;
}

.resumen-creditos td:last-child {
    text-align: right;
}

.info-tipos {
    background-color: #fff;
    padding: 20px;
    margin: 40px auto 20px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #555;
}

.info-tipos ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.info-tipos li {
    margin-bottom: 5px;
}