/*ESTILOS GENERALES*/
:root {
    --bg-layout: white;
    --color-primary: #1F87C4;
    --color-text-logo: white;
    --bg-nav: #333333;
    --color-link: white;
    --color-shadow: #b7b4b4;
    --color-date: #8b8b8b;
    --color-light: #59b0e2;
    --color-collapse-header: #f6f6f6;
}

html {
    font-size: 0.56rem;
}

/*Responsive*/

.responsiveIpuc {
  width: 10%;
  height: auto;
  margin: 0 auto;
}


.boton-arriba {
  width: 50%;
  height: auto;
  margin: 0 auto;
}


/*body*/

body {
    font-size: 1rem;
    font-family: Helvetica, Arial, sans-serif;
    background-image: url("../img/cielo.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.layout {
    display: grid;
    grid-template-areas:
        "header header"
        "slider slider"
        "main aside";
    grid-template-columns: 70% 30%;
    max-width: 128rem;
    background-color: var(--bg-layout);
    padding: 3rem;
    margin: 2rem auto;
}

/*ESTILOS DE HEADER - LA CABECERA*/

.layout__header {
    grid-area: header;
    margin-bottom: 2rem;
}

.header__logo {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-primary);
    width: 100%;
    text-align: center;
}

.header__youtube {
    display: inline-block;
    margin-bottom: 10rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-primary);
    width: 100%;
    text-align: center;
}


.logo__text {
    color: var(--color-text-logo);
    font-size: 4rem;
}


/*BARRA DE NAVEGACION*/
.header__nav {
    width: 100%;
    height: 5rem;
    background-color: var(--bg-nav);
    padding: 0 2rem;
}

.nav__list {
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 5rem;
}

.list__link {
    height: 100%;
    color: var(--color-link);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 300ms linear;
}

.list__link:hover {
    background-color: var(--color-primary);
}

/*ESTILOS DEL SLIDER*/

.layout__slider {
    grid-area: slider;
    position: relative;
    width: 100%;
    height: 40rem;
    overflow: hidden;
    border: 5px solid var(--color-text-logo);
    box-shadow: 0px 0px 5px var(--color-shadow);
    margin-bottom: 4rem;
}

.slider__btn-prev,
.slider__btn-next {
    width: 5rem;
    height: 5rem;
    position: absolute;
    left: 1rem;
    top: calc(50% - 2.5rem);
    z-index: 2;
    border-radius: 100%;
    border: none;
    cursor: pointer;
    background-color: var(--bg-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-link);
    font-size: 4rem;
}

.slider__btn-next {
    left: auto;
    right: 1rem;
}

.slides__item {
    position: absolute;
    transition: opacity 600ms linear;
    opacity: 0;
}

.slides__item--active {
    opacity: 1;
}

/*ESTILOS PARA ARTICLES - LOS ARTICULOS*/

.layout__articles,
.layout__main {
    grid-area: main;
    margin-right: 7rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.articles__article {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article__title {
    font-size: 2rem;
}

.article__date {
    color: var(--color-date);
    
}

.article__body {
    text-align: justify;
}

.article__btn {
    width: 12rem;
    padding: 1.5rem 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    background-color: var(--color-primary);
    border: none;
    color: var(--color-link);
    transition: all 300ms linear;
    text-align: center;
}

.article__btn:hover {
    background-color: var(--color-light);
}

/*ESTILOS ASIDE - BARRA LATERAL*/
.layout__aside {
    grid-area: aside;
}

.aside__header {
    margin-bottom: 4rem;
}

.header__container-title {
    margin-bottom: 2rem;
}

.header__title,
.login__title {
    text-align: center;
    line-height: 1rem;
    background: url("../img/lines.png") repeat-x;
}

.title__span {
    background-color: var(--bg-layout);
    padding: 0.5rem;
}

.header__description {
    font-size: 1.6rem;
    padding: 0.5rem;
}

.aside__login {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login__container-title {
    margin-bottom: 1.5rem;
}

.login__form-group {
    display: flex;
    gap: 0.5rem;
}

.login__input {
    width: 100%;
    border: 2px solid var(--color-shadow);
    outline: none;
    transition: all 300ms linear;
}

.login__input:focus {
    border-color: var(--color-primary);
}

.login__submit {
    padding: 1rem;
    cursor: pointer;
    border: 1px solid var(--color-shadow);
    transition: all 300ms linear;
}

.login__submit:hover {
    border-color: var(--color-primary);
}

/*ESTILOS AL PIE DE PAGINA*/
.footer {
    max-width: 128rem;
    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 0.5rem;
    padding: 1.5rem;
    background-color: var(--bg-nav);
    color: var(--bg-layout);
    opacity: 0.8;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer__top {
    cursor: pointer;
}

.aside__data--hide {
    display: none;
}

.aside__login--hide {
    display: none;
}

/*ESTILOS ACORDEON*/

.main__title {
    font-size: 3rem;
}

.main__acordeon {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collapse__header {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-shadow);
    cursor: pointer;
    background-color: var(--color-collapse-header);
}

.collapse__header>.fa-solid {
    font-size: 1.5rem;
    position: absolute;
}

.collapse__header>.fa-chevron-down {
    opacity: 1;
}

.collapse__header>.fa-chevron-up {
    opacity: 0;
}


.collapse__title {
    font-size: 1.8rem;
    margin-left: 2rem;
}

.collapse__body {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border: 1px solid var(--color-shadow);
    border-top: none;
    border-bottom: none;
    border-radius: 0 0 5px 5px;
    transition: max-height 700ms ease;
}

.collapse__text {
    padding: 2rem;
}

.acordeon__collapse--open .collapse__body {
    max-height: 999px;
    border-bottom: 1px solid var(--color-shadow);
    transition: max-height 1s ease-in-out;
}

.acordeon__collapse--open .collapse__header {
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: none;
    color: white;
    background-color: var(--color-primary);
}

.acordeon__collapse--open .fa-chevron-down {
    opacity: 0;
}

.acordeon__collapse--open .fa-chevron-up {
    opacity: 1;
}

/*ESTILOS PARA EL RELOJ*/

.main__clock {
    width: 90%;
    border: 0.4rem dashed var(--bg-nav);
}

.clock__time {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
}


/*ESTILOS PARA EL FORMULARIO DE CONTACTO*/

.main__contact {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__group {
    width: 100%;
}

.contact__input,
.contact__select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-shadow);
    outline: none;
    transition: all 300ms linear;
}

.contact__input:focus,
.contact__select:focus {
    border-color: var(--color-primary);
}

.contact__btn {
    padding: 1rem;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--color-shadow);
    transition: all 300ms linear;
}

.contact__btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}

.just-validate-error-label {
    color: white !important;
    background-color: red;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

/*ESTILOS PARA LOS TEMAS*/
.themes {
    width: 2.5rem;
    height: 12rem;
    position: fixed;
    left: 0;
    top: 50%;
    padding: 0.5 1rem;
    background-color: #333;
    opacity: 0.8;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.themes>div {
    width: 90%;
    height: 2.5rem;
    border: 1px solid white;
    cursor: pointer;
}

.theme__green {
    background-color: #225D51;
}

.theme__red {
    background-color: #CEAD8C;
}

.theme__blue {
    background-color: #3C93C8;
}



.theme__green--active {
    --color-primary: #9C9C9C;
    --color-light: #609005;
}

.theme__red--active {
    --color-primary: #9C9C9C;
    --color-light: #9C9C9C;
}

.theme__blue--active {
    --color-primary: #9C9C9C;
    --color-light: #3C93C8;
}


.theme__green--active>body {
    background-image: url("../img/hojas.png");
}

.theme__red--active>body {
    background-image: url("../img/cedro.png");
}

.theme__blue--active>body {
    background-image: url("../img/cielo.png");
}

.article__btn:hover {
    background-color: var(--color-light);
}



/*Botón flecha arriba - con efecto over*/
.boton-arriba {
  display: block;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: all 0.3s ease; /* Suaviza la transición */
  cursor:;
}

/* Efecto Hover */
.boton-arriba:hover {
  background-color: #007bff; /* Cambia color de fondo */
  transform: translateY(-5px); /* Eleva el botón */
  box-shadow: 0 5px 10px rgba(0,0,0,0.2); /* Añade sombra */
}

/*Botón WhatsApp */
.btn-whatsapp {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 22px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px #999;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1); /* Efecto de aumento al pasar el mouse */
    box-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.whatsapp-icon {
    margin-top: 0px;
    width: 30px;
    height: 30px;
}

/*Contacto*/
.contacto {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contacto a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.contacto p {
    margin: 0.5rem 0;
    font-style: normal; /* Para que address no ponga cursiva */
}
p {
    font-size: 2rem; /* Aumenta el tamaño del párrafo a 18px */
}




/*Logo GMaps*/

.logo-link {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical, si el contenedor tiene altura */
    display: inline-block; /* Ajusta el enlace al tamaño de la imagen */
    text-decoration: none; /* Quita subrayados si aplica */
}

.logo-img {
    width: 6rem; /* Define el tamaño exacto del logo */
    height: auto; /* Mantiene la proporción */
    /* Opcional: margin: 0; padding: 0; para asegurar que no haya espacio extra */
}


    
/* rem: accesibilidad superior, responsivo. (16px), Usar rem en el 90% del diseño
todas mis fuentes van a tener 10px (equivalentes a 1rem)
precision extrema. Uso para detalles específicos*/
/*layout Es la cajita blanca que lo contiene todo. clase layout
  Para crear filas y columnas*/