
:root {
    /* Variables detectadas en tu código (asegúrate de definir sus colores aquí si no lo has hecho) */
    --bg-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --primary-color: #1e3c72;
    --primary-light: #e0e7ff;
    --border-radius: 1rem;
    --shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}

html {
    /* Esto define que 1rem = 10px */
    font-size: 62.5%;
}

body {
    font-size: 1.2rem;
    /* 12px */
    margin: 0;
    background-color: #e3e3e3;
    font-family: system-ui, -apple-system, sans-serif;
    /* Fuente por defecto recomendada */
}

.banner {
    width: 100%;
    background-color: white;
    height: 8rem;
    box-shadow: 0 0.2rem 0.4rem color-mix(in oklch, oklch(27.54% .1638 265.98deg) 8%, transparent),
        0 0.4rem 1.2rem color-mix(in oklch, oklch(27.54% .1638 265.98deg) 8%, transparent);
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 999;
}

.banner img {
    padding-left: 5rem;
}

.banner span {
    height: 7rem;
    width: 0.1rem;
    background-color: black;
}

.banner li {
    padding-top: 2.5rem;
}

.span {
    width: 100%;
    height: 8rem;
}


.hero {
    background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
    color: #fff;
    display: grid;
    grid-template-rows: max-content 1fr;
    grid-template-areas:
        "nav"
        "content";
    min-height: 100vh;
}

.nav {
    grid-area: nav;
    display: grid;
    justify-content: space-between;
    grid-auto-flow: column;
    gap: 1em;
    /* Se mantiene em para espaciado relativo al texto */
    align-items: center;
    height: 9rem;
    /* 90px */
}

.nav__list {
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    gap: 1em;
}

.nav__link {
    color: #fff;
    text-decoration: none;
}

.nav__logo {
    font-size: 1.8rem;
    font-weight: 300;
}

.nav__menu {
    display: none;
}

.nav__icon {
    width: 3rem;
    /* 30px */
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;

    gap: 3rem;
    /* 30px */
}

.nav ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 1.8rem;
    /* 18px */
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #15155c;
}

.hero__title {
    font-size: 2.6rem;
    letter-spacing: 0.2rem;
    /* 2px */
}

.hero__cta {
    text-decoration: none;
    padding: 1.5rem 6rem;
    /* 15px 60px */
    border: 0.1rem solid;
    border-radius: 0.6rem;
    /* 6px */
    display: inline-block;
    font-weight: 500;
    transition: background-color .3s;
}

.hero__img {
    width: 100%;
}

#inicio_de_secion {
    border: 0 solid;
    padding: 0 3rem 0 0;
}

.fondoInicio {
    width: 100%;
    height: 40rem;
    background-image: linear-gradient(rgba(64, 64, 246, 0.084), rgba(64, 64, 246, 0.418)), url(/imagenes/baner_historia.jpg);
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-end;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s .9s;
    --transform: translateY(-100vh);
    --transition: transform .8s;
}

.modal--show {
    opacity: 1;
    pointer-events: unset;
    transition: opacity .6s;
    --transform: translateY(0);
    --transition: transform .8s .8s;
}

.modal__container {
    margin: auto;
    width: 90%;
    max-width: 60rem;
    /* 600px */
    max-height: 90%;
    background-color: #fff;
    border-radius: 0.6rem;
    /* 6px */
    padding: 3em 2.5em;
    display: grid;
    gap: 1em;
    place-items: center;
    grid-auto-columns: 100%;
    transform: var(--transform);
    transition: var(--transition);
}

.modal__title {
    font-size: 2.5rem;
}

.modal__paragraph {
    margin-bottom: 1rem;
    /* 10px */
}

.modal__img {
    width: 90%;
    max-width: 30rem;
    /* 300px */
}

.modal__close {
    text-decoration: none;
    color: #fff;
    background-color: #F26250;
    padding: 1em 3em;
    border: 0.1rem solid;
    border-radius: 0.6rem;
    /* 6px */
    display: inline-block;
    font-weight: 300;
    transition: background-color .3s;
}

.modal__close:hover {
    color: #F26250;
    background-color: #fff;
}


.titulo-seccion {
    text-align: center;
    font-size: 4rem;
    font-family: "Knewave", system-ui;
    font-weight: 400;
    font-style: normal;
}

.elecion {
    margin-top: 5rem;
    width: 100%;
    height: 10rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.elecion img {
    filter: brightness(0) saturate(100%) invert(33%) sepia(100%) saturate(1000%) hue-rotate(150deg) brightness(110%) contrast(90%);
}

.linea {
    display: flex;
    justify-content: space-around;
}

.linea span {
    padding-top: 4rem;
    border-bottom: 0.1rem solid black;
    width: 92.5%;
}

.ofertaAcademica {
    padding-top: 5rem;
    margin-left: 35rem;
    margin-right: 35rem;
}



.inf {
    /* Configuración del Grid */
    display: grid;
    grid: repeat(3, 1fr)/ repeat(2, 1fr);
    grid-template-areas:
        "n1 n2"
        "n3 n4"
        "n5 n6";


    transition: opacity .6s, background-color .3s;

    text-decoration: none;
    border-radius: 0.6rem;

    font-weight: 500;


}

.infVisible {
    opacity: 0;
    display: none;
}


.inf--show {
    display: grid;
    opacity: 1;
    pointer-events: unset;
}

.inf img {
    margin-top: 3rem;
    border-radius: 3rem;
    height: 40rem;
    display: inline-block;
    transition: background-color .3s;
}

.inf p {
    text-align: justify;
    font-size: 2.9rem;
    font-family: "Indie Flower", cursive;
    font-weight: 400;
    padding-top: 1rem;
    font-style: normal;
}

/* Áreas del Grid .inf */
.img1 {
    grid-area: n1;
}

.p1 {
    grid-area: n2;
    padding-left: 3rem;
}

.p2 {
    grid-area: n3;
    padding-right: 3rem;
}

.img2 {
    grid-area: n4;
}

.img3 {
    grid-area: n5;
}

.p3 {
    grid-area: n6;
    padding-left: 3rem;
}


.apartados {
    display: flex;
    padding: 0 5rem 0 20rem;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.img img {
    border-radius: 1rem;
    height: 50rem;
    width: 50rem;
}

.apartados p {
    padding-left: 5rem;
    text-align: justify;
    font-size: 2.9rem;
    font-family: "Indie Flower", cursive;
    font-weight: 400;
    padding-top: 1rem;
    font-style: normal;
}

.opciones {
    padding-left: 5rem;
}

.pie {
    margin-top: 5rem;
    background-color: #7f899b;
    width: 100%;
    height: 25rem;
}

.modern-sidebar {
    width: 28rem;
    /* 280px */
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 2rem;
    /* 20px */
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05rem;
    /* 0.5px */
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-link {
    display: block;
    padding: 1.4rem 2rem;
    /* 14px 20px */
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 0.4rem solid transparent;
    /* 4px */
    transition: all 0.2s ease;
}

.menu-link:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 2.4rem;

}

.menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.menu-section {
    padding: 1rem 0 0.5rem 0;

}

.section-title {
    display: block;
    padding: 0.8rem 2rem;
  
    font-size: 0.85rem;
    text-transform: uppercase;

    color: #94a3b8;
    font-weight: 700;
    margin-top: 0.5rem;

}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 1rem 2rem 1rem 4rem;

    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.2s;
}

.submenu li a::before {
    content: "•";
    position: absolute;
    left: 2.5rem;

    color: #cbd5e1;
}

.submenu li a:hover {
    color: var(--primary-color);
    background-color: #f8fafc;
}

.submenu li a:hover::before {
    color: var(--primary-color);
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 16rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0.5rem;
}

.dropdown-content li {
    padding: 0;
    display: block;
    text-align: left;
}

.dropdown-content li a {
    color: black;
    padding: 1.2rem 1.6rem;
    text-decoration: none;
    display: block;
    font-size: 1.4rem;
    
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.form-container {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 50rem;
    margin: 5rem auto;
   
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1.4rem;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.6rem;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #15155c;
}

.error-msg {
    color: red;
    font-size: 1.2rem;
    display: none;
  
    margin-top: 0.5rem;
}


.main-content {
    padding-top: 10rem;
 
    min-height: 80vh;
    padding-bottom: 5rem;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;


}

nav li {
    float: left;
}

nav li a,
.dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover,
.dropdown:hover .dropbtn {
    background-color: #111;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.price {
    color: #000080;
    font-weight: bold;
    font-size: 1.8rem;
    margin: 1rem 0;
}

.btn-buy {
    background-color: #d4af37;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.4rem;
    display: inline-block;
}

.btn-buy:hover {
    background-color: #b5952f;
}


.fake-img {
    width: 100%;
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}


.section-title {
    text-align: center;
    color: #002f6c;

    font-size: 2.5rem;
    margin: 3rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}


.academic-grid {
    display: grid;
 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}


.career-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #002f6c;

}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: #002f6c;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0a500;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.card-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.tag-ing {
    background-color: #e74c3c;
}


.tag-eco {
    background-color: #27ae60;
}


.tag-salud {
    background-color: #2980b9;
}

.tag-soc {
    background-color: #f39c12;
}



.cta-box {
    background-color: #002f6c;
    color: white;
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
    border-radius: 8px;
}

.btn-registro {
    display: inline-block;
    background-color: #f0a500;
    color: black;
    padding: 1rem 2rem;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-registro:hover {
    background-color: #d49200;
}




.page-title {
    text-align: center;
    color: #002f6c;
    
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-left: 5px solid #f0a500;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateX(10px);
}

.step-number {
    background-color: #002f6c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.4rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    color: #002f6c;
    font-weight: bold;
    text-decoration: underline;
}

.docs-section {
    margin-top: 4rem;
    background-color: #eef2f5;
    padding: 3rem;
    border-radius: 10px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doc-item {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.doc-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-box {
    background: linear-gradient(135deg, #002f6c 0%, #001f4d 100%);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    margin-top: 4rem;
}

.contact-box a {
    color: #f0a500;
    font-weight: bold;
    text-decoration: none;
}


.library-header {
    text-align: center;
    margin-bottom: 3rem;
}

.library-header h2 {
    color: #002f6c;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.library-intro {
    background: #eef4f8;
    border-left: 6px solid #f0a500;
    padding: 2rem;
    margin: 0 auto 3rem auto;
    max-width: 900px;
    border-radius: 0 10px 10px 0;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, border-color 0.3s;
    border-bottom: 4px solid transparent;
}

.service-item:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid #002f6c;
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #002f6c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-item p {
    color: #666;
    font-size: 1rem;
}

.schedule-container {
    margin-top: 4rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th {
    background-color: #002f6c;
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.2rem;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1.1rem;
    color: #333;
}

.schedule-table tr:hover {
    background-color: #f9f9f9;
}

.rules-box {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
}

.btn-rules {
    display: inline-block;
    padding: 12px 25px;
    background-color: #555;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-rules:hover {
    background-color: #333;
}


.research-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.research-card h3 {
    color: #002f6c;
    margin-bottom: 1rem;
    border-bottom: 3px solid #f0a500;
    display: inline-block;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    margin-bottom: 2rem;
}


.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.section-header h2 {
    color: #002f6c;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid #f0a500;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.price {
    display: block;
    color: #002f6c;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.btn-buy {
    display: inline-block;
    background-color: #002f6c;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition:  0.3s;
}

.btn-buy:hover {
    background-color: #001a3d;
}

hr.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 4rem 0;
}