/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
/* Paleta de colores */ :root {
    --fonts: #fafbfc;
    --bkg: #ffffff;
    --bkgCards: #333333;
    --color1: #09554c;
    --color2: #62c14b;
    --color3: #adadad;
    --color4: #fff;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bkg);
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}
.img-style {
    border: 9px solid white;
    outline: 1px solid #eaeaea;
    box-shadow: 7px 7px 0px 0 rgb(223, 223, 223);
    margin-bottom: 20px;
}
.referencia {
    font-size: 12px;
    color: gray;
}
.btn-default {
    background-color: var(--color3);
    border-color: var(--color3);
    color: var(--fonts);
}
a {
    color: var(--color1);
    font-family: 'Red Hat Display', sans-serif;
}
a:hover {
    color: var(--color2);
}
p, ul li, ol li, h1, h2, h3, h4 {
    font-family: 'Red Hat Display', sans-serif;
    color: var(--fonts);
}

.none-pointer-event {
    pointer-events: none;
}

/*----* Header *----*/
.header-curso {
    background: rgb(100, 228, 233);
    background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%);
}
.contenedor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}
#logo-tecmilenio {
    max-width: 190px;
    padding: 5px;
}
.contenedor-logo img {
    height: 100%;
}
/* Banner */
#banner {
    padding-top: 4rem;
}
.contenedor-banner .col-detalle {
    align-self: center;
    justify-content: left;
    padding-left: 0px;
}
#banner h1 {
    font-size: 44px;
    font-weight: bold;
}
#bkg_banner_title {
    background-image: url("../img/banner_titulo.png");
    width: 100%;
    height: 35vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
}
#bkg_banner {
    background-image: url("../img/banner.png");
    width: 100%;
    height: 55vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
}
/* Botones Categorías (móvil) */
#info #i_b, #info #i_b1, #info #i_b2, #info #i_b3, #info #i_b4, .botonModulosMovil {
    border: none;
    width: 100%;
    color: var(--bkg);
    background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 20px 0px;
    font-weight: bold;
    cursor: pointer;
}
#info .card.card-body {
    background-color: var(--bkg2);
}
.botonModulosMovil span, .btnInfo.active span {
    font-size: 18px;
    position: absolute;
    right: 10%;
}
.botonModulosMovil.active, .btnInfo.active, .btnInfo.active span {
    font-weight: bold;
    color: var(--bkg) !important;
    background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%) !important;
}
.botonModulosMovil.active span, .btnInfo.active span {
    transform: rotate(180deg);
    transition: transform .5s;
}
#bkg_module a {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
	position: relative;
    z-index: 1;
	border-radius: 1rem;
}
#collapseModulos .card.card-body a span::after {
    content: ' ';
}
#collapseModulos .card.card-body a span:last-of-type {
    display: block;
}
#collapseModulos a {
    color: var(--color3);
    line-height: 2.3;
    text-decoration: none;
    text-align: center;
}
#collapseModulos .card.card-body {
    background: none;
    color: var(--color3);
    font-size: 22px !important;
}
/*Termina Botones Categorias (móvil)*/
/*Botones Categorias (desktop)*/
.titleSelect {
    margin: auto;
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    padding: 2rem 0px 2rem 0px;
}
.btnModule {
    text-align: center;
    padding: 0.8rem;
    border-radius: 2rem;
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.btnModule a {
    color: var(--bkg);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}
.btnModule:hover::before, .btnModule.active::before, .btn-request:hover::before {
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.btnModule:hover, .btnModule.active, .btn-request:hover {
    background: transparent;
}
/*Termina Botones Categorias (desktop)*/
.contentGlobal {
    display: flex;
    /*    grid-template-columns: repeat(5, 1fr);  */
    justify-content: start;
    padding: 0;
    column-gap: 20px;
}
#buscador-container .form-control {
	max-width: 500px;
    margin: auto;
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    padding-bottom: .8rem;
    padding-top: .8rem;
    font-weight: 700;
}
#buscador-container .form-control:focus{
    border-color: #adadad;
    outline: 0;
    box-shadow: 1px 1px 6px #adadad;
}
#buscador::placeholder{
    color: #cdcdcd;
    text-align: center;
    font-weight: 600;
}
.buscador_content{
    position: relative;
    margin: auto;
    max-width: 500px;
}
.buscador_content::after {
  content: url("../img/search.svg"); /* o usa un ícono con FontAwesome o similar */
  position: absolute;
  right: 1.25rem;
  top: 54%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.2s;
}
.buscador_content input {
  padding-left: 30px;
}

/* Oculta el ícono si el input tiene texto (no se muestra placeholder) */
.buscador_content input:not(:placeholder-shown) + ::after {
  opacity: 0;
}
.buscador_content:has(input:not(:placeholder-shown))::after {
  opacity: 0;
}
.buscador-menu_found{
    background: RGB(98 193 75);
    background: linear-gradient(180deg,var(--color2) 0%, var(--color1) 100%);
    margin-bottom: 50px;
}

/* Edición textos */
.contenedor-text{
    text-align: center;
    color: #fff;
}
.contenedor-text h1 span{
    font-weight: 900;
}
#buscador-container p {
	color: var(--bkgCard);
}
.banner-elements{
    background: url("../img/background.jpg") no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    height: 100vh;
}
.banner-elements::before{
    content: "";
    position: absolute;
    background: #000;
    opacity: 60%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.contenedor-text{
    text-align: center;
    color: #fff;
    margin: 70px 0;
}
.contenedor-text h1 span{
    font-weight: 900;
}

/*chida*/
.card-template {
/*    flex: 0 1 calc(20% - 15px);  Three cards per row */
    margin-bottom: 20px;
    border-radius: 20px;
/*    background: var(--bkgCards);*/
    position: relative;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease;
    max-width: none;
    background: var(--color4);
    color: var(--color3);
    overflow: hidden;
    padding: 0 !important;

/*    height: 500px;  Altura fija */
/*    overflow: hidden;  Evita que el contenido desborde */
	
}
/* Pseudo-element for border-image */
/*.card-template::before, .btnModule::before, .btn-request::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    
    //-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    //-webkit-mask-composite: xor; 

}*/
.card-template:hover {
    /*background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);*/
    transform: translateY(-10px);
    box-shadow: 1px 2px 6px 1px #cdcdcd !important;}
.card-body{
    padding: .25rem 1.25rem;
}
.card-link {
    color: rgba(115, 129, 244, 1);
    text-decoration: none;
    font-size: 14px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}
.card-link i {
    line-height: inherit;
    margin-left: 5px;
}
.card-content {
   position: relative;
    padding: 2.5rem 1rem 2.5rem;
    height: 100%; /* Asegura que ocupe todo el espacio disponible */
    transition: opacity 0.4s ease;

}
.card-number {
    font-family: "Red Hat Display", sans-serif;
    font-size: 5rem;
    font-weight: bold;
    line-height: 1.3;
    color: var(--color3);
}
.card-title {
    font-family: "Red Hat Display", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color3);
	position: relative;
    background: var(--color1);
    padding: 1rem 1.25rem;
    height: 120px;
    justify-content: center;
    align-items: center;
    display: grid
;
/*    margin-top: 10px;*/
}
.card-text {
    font-family: "Red Hat Display", sans-serif;
	text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: var(--color3);
    margin-bottom: 5px;
}
.card-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%);
    margin: 10px auto;
}
.card-list {
    padding: 0px 0px 0px 20px;
/*    list-style-type: none;*/
    text-align: left;
/*    font-size: 13px;*/
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.card-list li {
    color: var(--color3);
    line-height: 1.2;
	margin-bottom: 0.3rem;
}
.card-template .card-number, .card-template .card-title {
    color: var(--color4);
}
.card-template .card-link, .btnModule:hover a, .btnModule.active a, #collapseModulos a.active, .contentRequest a:hover, .subtitle {
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    color: transparent;
}
.card-template:hover a, .card-template:hover .card-number, .card-template:hover .card-title {
    color: var(--color4) !important;
}
/*prueba underline*/
.card-template a:after {
    content: "";
    position: absolute;
    width: 50%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    /*  left: 0;*/
    background-color: var(--bkgCards);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.card-template:hover .card-link:after {
    transform: scaleX(1) !important;
    transform-origin: bottom left !important;
}
/*prueba underline*/
.card-template:hover .card-content {
    opacity: 1;
	margin-top: 2.5rem;
    padding: 3rem 1.4rem;
}
.cta-button {
    display: inline-block;
    font-size: 14px;
    font-family: "Red Hat Display", sans-serif;
    padding: 5px;
    width: 100%;
    margin: auto;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    position: relative;
    font-weight: bold;
    background: var(--bkgCards);
}
.cta-button::before {
    content: attr(data-text);
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    z-index: 1;
}

.card-button {
 transform: translate(-50%, 125%);
 border-radius: 1rem;
 border: none;
 background-color: var(--color3);
 color: var(--color4);
 font-size: 1rem;
 padding: .25rem 1.25rem;
 text-decoration: none;
 /*width: 50%;
 position: absolute;
 left: 50%;
 bottom: 0;
 opacity: 0;
 transition: 0.3s ease-out;*/
}


.card-template:hover .card-button {
 transform: translate(-50%, 50%);
 opacity: 1;
 background-color: var(--color2);
 color: var(--color4);
 text-decoration: none;
}
.card-content-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
/*    background: rgba(0, 0, 0, 0.6);*/
    opacity: 0; /* Oculto inicialmente */
    transition: opacity 0s ease;
}
/*
.card-template:hover .card-content-hover {
    display: block;
    opacity: 1;
    margin-top: auto;
    padding: 0rem 1rem 2.5rem;
}
*/
.card-content-default h1 {
    font-size: 5rem;
    margin: 20px 0;
}
/*.card-template:hover ul, .card-template:hover .card-line {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}*/
/*.card-template ul {
    max-height: 200px;
}*/
.btnModule a span:nth-child(2) {
    font-size: 4rem;
}
.btnModule a span:nth-child(3) {
    font-size: 1.2rem;
}
/*Sección Boton Solicitud*/
.contentRequest {
    text-align: center;
    padding: 5rem 0rem 0rem;
}
.question-request {
    font-family: "Red Hat Display", sans-serif;
    color: var(--color3);
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}
.btn-request {
    border-radius: 2rem;
    background: linear-gradient(to bottom, var(--color1) 0%, var(--color2) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    color: var(--bkg);
    padding: 12px 45px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.title {
    margin-top: 15px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 22px;
}
.title hr {
    width: 200px;
    height: 1px;
    border: none;
    background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%);
    margin: 15px 0;
}
/*Termina Sección Boton Solicitud*/

/*--------------------* Animación "Loading" *--------------------*/

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1056;
}

.loading-container {
    /* display: flex;
    justify-content: center; */
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    align-content: center;
}

.lds-ellipsis {
    width: 80px;
    height: 15px;
    position: relative;
    /* bottom: 30px; */
    margin: 0 auto;
}

.lds-ellipsis .ellipsis {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: white;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis .ellipsis:nth-child(1) {
    left: 11px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis .ellipsis:nth-child(2) {
    left: 11px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis .ellipsis:nth-child(3) {
    left: 35px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis .ellipsis:nth-child(4) {
    left: 59px;
    animation: lds-ellipsis3 0.6s infinite;
}

.loading-content {
    position: relative;
    text-align: center;
}

.loading-content p {
    font-size: 18px;
    color: white;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}


/****** Responsive Media Queries ******/
@media (max-width: 991px) {
    .container {
        width: 100%;
    }
    #banner {
        padding: 4rem 0 0;
    }
    .titleSelect {
        padding: 0rem 0px 2rem 0px;
    }
    .btnModule a span {
        font-size: 1rem;
    }
    #info #i_b, #info #i_b1, #info #i_b2, #info #i_b3, #info #i_b4, .botonModulosMovil {
        font-size: 18px;
    }
    #collapseModulos a {
        font-size: 18px;
    }
    /*#logo-tecmilenio {
        max-width: 130px;
    }*/
    #bkg_module .moduleContent {
        display: flex;
        justify-content: start;
        column-gap: 15px;
    }
}
@media screen and (min-width: 320px) and (max-width: 767px) {
    #bkg_module .moduleContent {
        display: block;
        padding: 0.5rem;
    }
    .contentGlobal {
        display: block;
    }
    .card-content {
        margin-top: 0;
        padding: 9rem 1.4rem 2.5rem;
    }
    .card-template:hover .card-content {
        padding: 9rem 1.4rem 0rem;
    }
    .card-template:hover .card-content-hover {
        padding: 0rem 1.4rem 0.5rem;
    }
}