/* Imports */

@import url(../css/themes.css);
@import url(../css/layouts/navbar.css);
@import url(../css/layouts/menu.css);
@import url(../css/layouts/footer.css);
@import url(../css/campesena.css);
@import url(../css/layouts/accesibilidad-v1.css);
@import url(../css/layouts/slider.css);

.landing {
    max-width: var(--web-margin);
    margin: auto;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

.landing__item--0 {
    grid-area: 1 / 1 / 3 / 2;
}

.landing__item--1 {
    display: flex;
    align-items: start;
    justify-content: center;
    grid-area: 1 / 2 / 2 / 3;


}

.landing__item-1--img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--primary-shadow);
}


.landing__item--2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    min-height: fit-content;
    gap: 1.5rem;
    grid-area: 2 / 2 / 3 / 3;
}

.landing__item-2--img {
    height: 7.1rem;
}

.landing__item--4 {
    order: 1;
    display: flex;
    gap: 6px;
    justify-content: center;
    grid-area: 1 / 3 / 3 / 4;
}

.redes {
    background-color: var(--alternate-background);
    color: var(--color-info);
}

.redes__container {
    gap: 0.625rem;
    align-items: center;
    display: flex;
    margin: auto;
    max-width: var(--web-margin);
    justify-items: center;
    padding: 0.7rem 1.5rem;
}

.redes__posts {
    padding: 1rem 1.5rem;
    gap: 12px;
    margin: auto;
    max-width: var(--web-margin);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#twitter-widget-0 {
    width: 100% !important;
}

.landing__2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing__redes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

}

.login {
    display: flex;
    flex-direction: column;
    width: 22.5rem;
    background-color: var(--secondary-background);
    border-radius: 2.563rem;
    padding: 1.875rem 2.5rem;
    padding-bottom: 2.5rem;
    box-shadow: 0.063rem 0.438rem 0.813rem -0188rem rgba(0, 0, 0, 0.36);
    height: fit-content;
}

.login__ingresos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.login__ingreso-administrativo {
    position: relative;
    left: -0.625rem;
    padding-left: 0.938rem;
}

.login__linea {
    margin-top: 0.625rem;
    border-left: 0.25rem solid var(--primary);
    position: absolute;
    left: 0;
    height: 60%;
}

.login__ingreso-p {
    color: var(--alternate-background);
    font-weight: bold;
    font-size: 0.813rem;
    cursor: pointer;
}

.login__ingreso-p--activo {
    text-decoration: underline;
}

.login__form__container form {
    display: flex;
    flex-direction: column;
    margin-top: 0.938rem;
}

#login__form-cursos input[type="number"]::-webkit-inner-spin-button,
#login__form-cursos input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#login__form-cursos input[type="number"]{
    -moz-appearance: textfield;
}

.login__form--inactivo {
    display: none !important;
}

.login__form__administrativo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 16.875rem;
    position: relative;
}

.login__label {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.313rem;
}

.login__input,
.login__select {
    padding: 0.5rem;
    border-radius: 0.5rem;
    outline: none;
    background-color: var(--primary-background);
    border: none;
    margin-bottom: 0.938rem;
    /* -webkit-box-shadow: 0.063rem 0.438rem 0.813rem -0.188rem rgba(0, 0, 0, 0.36);
    -moz-box-shadow: 0.063rem 0.438rem 0.813rem -0.188rem rgba(0, 0, 0, 0.36); */
}

.login__select ,
.login__input::placeholder{
    color: var(--primary-text);
}
.login__select {
    padding: 0.813rem;
}

.login__link {
    color: var(--alternate-background);
    font-weight: bold;
    font-size: 0.938rem;
    margin-bottom: 0.25rem;
}

.login__boton {
    margin: auto;
    width: 11.875rem;
    background-color: var(--primary);
    border: none;
    padding: 0.438rem;
    border-radius: 0.938rem;
    color: var(--color-info);
    font-weight: bold;
    margin-top: 0.625rem;
    cursor: pointer;
}



.text-informativo {
    padding: 0.7rem 1.7rem;
    background-color: var(--alternate-background);
    color: var(--color-info);

}

.text-container {
    gap: 0.625rem;
    align-items: center;
    display: flex;
    margin: auto;
    max-width: var(--web-margin);
    justify-items: center;
}

.post-information {
    margin: auto;
    max-width: var(--web-margin);
    padding: 0.7rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
}

.post-information__url{
    margin: 0.75rem;
    transition: margin 150ms ease-in-out;
}


.post-information__img {
    box-shadow: var(--primary-shadow);
    width: 100%;
    border-radius: 0.75rem;
    
}

.redes__container-img{
    width: 2rem;
    height: auto;
}

.cursos-cont{
    margin: auto;
    max-width: var(--web-margin);
    padding: 0.7rem;
}

.cursos-container{
    display: flex;
    align-items: center;
    gap: 20px;
}

.cursos-item-img{
    flex: 0 0 30%;
    max-width: 30%;
}


.cursos-items{
    flex: 1;
    display: flex;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cursos-cards-container {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease;
    width: 100%;
    flex-wrap: nowrap;
}

.cursos-item-card {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 20px;
    flex: 0 0 calc(33.333% - 6.67px);
    min-width: calc(33.333% - 6.67px);
    max-width: calc(33.333% - 6.67px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    position: relative;
    min-height: 400px;
    justify-content: flex-end;
    overflow: hidden;
}


.cursos-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    border-radius: 15px;
    z-index: 1;
}

.cursos-item-title {
    position: relative;
    z-index: 2;
}

.cursos-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4CAF50;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
}

.cursos-slider-btn:hover {
    background-color: #45a049;
}

.cursos-slider-btn.prev {
    left: 10px;
}

.cursos-slider-btn.next {
    right: 10px;
}

.cursos-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
    background-color: #cccccc;
}

.cursos-slider-btn:disabled:hover {
    transform: translateY(-50%);
    background-color: #cccccc;
}

.cursos-item-title-p{
    background-color: #FFCD00;
    color: #000;
    border-radius: 10px;
    padding: 8px 12px;
    max-width: fit-content;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cursos-tipo-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.cursos-item-text{
    color: white;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 8px 0;
}

.cursos-item-link-container{
    display: flex;
    justify-content: end;
}

.cursos-item-link{
    text-decoration: none;
    background-color: var(--primary);
    color: white;
    padding: 5px;
    border-radius: 10px;
    max-width: fit-content;
}

.cursos-item-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}

.cursos-item-card .cursos-item-title,
.cursos-item-card .cursos-item-link-container,
.cursos-item-card .cursos-item-title-p,
.cursos-item-card .cursos-item-text {
    position: relative;
    z-index: 4;
}

.cursos-item-card,
.cursos-item-card * {
    cursor: pointer;
}

/* Responsive */

@media (max-width: 1200px) {
    .landing {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        align-content: center;
    }

    .landing__item--0 {
        grid-area: 1/1/2/2;
        margin: auto;
    }

    .landing__item--1 {
        grid-area: 2/1/3/2;

    }

    .landing__item--2 {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        overflow: auto;
        justify-content: space-around;
        grid-area: 4/1/5/2;
    }

    .landing__item-2--img {
        width: 7rem;
        height: auto;
    }

    .landing__item--4 {
        grid-area: 3/1/4/2;
        flex-direction: column;
        margin: auto;
    }

    .landing__redes {
        justify-content: center;
        flex-direction: row;
    }

    .redes__posts {
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;

    }

    .landing__2 {
        display: flex;
        justify-content: center;
    }


}

@media (max-width: 767px) {
    .login {
        width: 18.625rem;
        padding: 1.25rem;
    }

    .login__ingreso-p {
        font-size: 0.625rem;
    }

    .login__form__administrativo {
        height: 15.875rem;
    }

    .login__label {
        color: var(--primary);
        font-size: 0.938rem;
        font-weight: bold;
        margin-bottom: 0.625rem;
    }

    .login__input {
        padding: 0.438rem;
    }

    .login__select {
        padding: 0.5rem;
    }

    .login__link {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .login__boton {
        margin: auto;
        width: 8.75rem;
        margin-top: 0.625rem;
    }

    .landing__2 {
        display: flex;
        justify-content: center;
    }

    .post-information{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Responsive para el slider de cursos en móviles */
    .cursos-container{
        flex-direction: column;
        gap: 15px;
    }

    .cursos-item-img{
        display: none; /* Ocultar la imagen en móviles */
    }

    .cursos-items{
        width: 100%;
    }

    .cursos-item-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-height: 300px;
    }

    .cursos-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
