@charset "utf-8";
@import url('root.css');
/*
Theme Name: The Course Site
Version: 1.0
Description: My firts wordpress theme, focused on online courses. Perfect for creating a site where you can find resources to boost your professional career.
Tags: left-sidebar, responsive
Author: Òscar Benítez Jounou
Date: 03/04/2024
*/

/* Reset básico para espaciado y tipografía */

*{
    margin:0;
    padding:0;
     box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
figcaption {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

/* Definición de fuentes de Google */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;700&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  color: #343a40;
  background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: #003366;
}


/*AQUÍ EL MODAL DE COOKIES*/

.cookie-modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); /* Fondo semi-transparente */
}

.cookie-modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    text-align: center;
}

.cookie-modal-content h2 {
    margin-top: 0;
}

.cookie-modal-buttons {
    margin-top: 20px;
}

.cookie-modal-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    cursor: pointer;
}

.cookie-modal-buttons button#acceptCookies {
    background-color: #4CAF50; /* Verde */
    color: white;
}

.cookie-modal-buttons button#rejectCookies {
    background-color: #f44336; /* Rojo */
    color: white;
}




/* Botones y enlaces CTA */
.btn-cta {
  color: #ffffff; /* Texto blanco para contrastar con el botón oscuro */
  background-color: #003366; /* Tu color preferido para el botón */
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-decoration: none; /* Remueve el subrayado de los enlaces */
  padding: 10px 20px; /* Espaciado interno del botón */
  border-radius: 5px; /* Bordes redondeados para el botón */
  display: inline-block; /* Para aplicar padding y border-radius */
  transition: background-color 0.3s ease; /* Transición suave para el hover */
}

/* Hover state para botones */
.btn-cta:hover {
  background-color: #003366; /* Un tono ligeramente más claro para el hover */
}

/* Otros estilos */

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: #fff;
  overflow-x: hidden; /* Asegúrate de que el body no se desborde horizontalmente */
}

/*AQUÍ EL HEADERRR!!!*/

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  height: 120px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra más marcada en el header */
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 99;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* Asegura que el inner no exceda el ancho de la pantalla */
  height: 120px;
}

.logo {
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
  max-width: 290px;
}

.navigation {
  display: flex;
}

.menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.menu-item {
  padding: 10px;
}

.menu-item a {
  text-decoration: none;
  font-size: larger;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  color: #003366;
}


.search-container {
  position: relative;
  background-color: #003366;
  padding: 10px;
  /* Elimina la transformación skew */
  margin-right: 1rem;
  width: auto; /* Ajusta esto según sea necesario */
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container input[type="search"] {
  padding: 0.5rem;
  border-radius: 5px;
  border: 2px solid #ccc;
  font-size: 1rem;
  padding: 10px 20px;
  background: white;
  position: relative;
  width: 300px;
  transform: none
  
}

.header-right {
width: 500px;
display: flex;
justify-content: center;
  align-items: center;
  background-color: #003366;
  box-shadow: 20px 0 0 0 #003366;
  height: 100%;
  font-size: 1em;
  font-weight: 600;
  height: 100%;
   transform: skew(-12deg);
  text-decoration: none;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    box-sizing: border-box;
  }

  .logo {
    margin-bottom: 10px;
  }

  .navigation {
    margin-bottom: 10px;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu-item {
    padding: 5px;
  }

  .header-right {
    width: 100%;
    margin: auto;
    background-color: #003366;
    box-shadow: none;
       transform:none;
       box-sizing: border-box;
  }

  .search-container {
    width: 80%;
    margin: 0;
    padding: 10px 0;
  }

  .search-container input[type="search"] {
    width: calc(100% - 20px); /* Ajusta el ancho del input en dispositivos móviles */
    margin: 0 auto;
  }
}




/* AQUÍ EL HERO */

.hero-section {
  display: flex;
  background-color: #e5e5e5; /* Cambia este color según tus preferencias */
  align-items: center;
}

.hero-content {
  flex-basis: 60%;
  padding: 2rem;
  place-content: center;
 text-align: center;


}

.h1-hero {
  color: #003366;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem; /* Aumentar el margen inferior */
}

.hero-content p {
  color: #333;
  margin-bottom: 2rem;
}

.hero-content input {
  padding: 0.5rem;
  border-radius: 5px;
  border: 2px solid #ccc;
  font-size: 1rem;
  width: 20rem;
}

.btn-search {
  background-color: #003366;
  border: none;
  padding: 0.5rem 1rem;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  width: 10rem;
}

.link-all-courses {
  display: block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
}

.hero-image {
  flex-basis: 60%;
}

.hero-image img {
  width: 100%; /* Ajusta esto para cambiar el tamaño de la imagen */
  height: auto;
  display: block; /* Evita cualquier espacio extra alrededor de la imagen */
  object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
}


@media (max-width: 1200px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-image {
    order: 2; /* Coloca la imagen debajo del contenido del hero */

  }

  .hero-content {
    order: 1; /* Coloca el contenido del hero arriba de la imagen */
  }
}

@media (max-width: 768px) {
  .h1-hero {
    font-size: 2.5rem; /* Ajusta el tamaño de la fuente en dispositivos móviles */
    word-wrap: break-word; /* Permitir que el texto se envuelva en lugar de causar desbordamiento */
  }

  .hero-image img {
    display: none; /* Ocultar la imagen en pantallas más pequeñas */
  }
}



/* LOGOS DE INSTITUCIONES */

.institution-logos {
    display: flex;
    justify-content: center; /* Centra los logos */
    align-items: center; /* Alinea verticalmente */
    flex-wrap: wrap; /* Permite la envoltura de elementos si no caben en una sola línea */
    width: 80%;
    margin: auto;
    background: #fff; /* Asumiendo un fondo blanco o puedes ajustarlo a tu preferencia */
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Asegúrate de que el contenedor tome todo el ancho */
    flex-wrap: wrap;
}

.institution-logo {
    margin: 0.5rem;
    display: flex; /* Para centrar la imagen dentro del enlace */
    justify-content: center; /* Centra horizontalmente la imagen del logo */
    align-items: center; /* Centra verticalmente la imagen del logo */
}

.institution-logo img {
    width: 200px; /* Mantiene la proporción de la imagen */
    height: 101px; /* Altura fija para mantener la consistencia entre logos */
    max-width: 100%;
    width: auto; /* Asegura que el logo no se estire más allá de su contenedor */
}

.institution-logos p {
    text-align: center; /* Centra el texto debajo de los logos */
    margin-top: 1rem; /* Espacio arriba del texto */
}

@media (max-width: 768px) {
        .logo-container {
        justify-content: center; /* Centrar logos en pantallas más pequeñas */
    }
}


/* SECCION ULTIMOS CURSOS */

.new-courses-section {
    background-color: #FBFAF9;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.section-title {
  color: #003366;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 5px;
}


/* Agrega tus estilos para .course-image, .course-content, .course-footer aquí */

/* Responsive Design */
@media (max-width: 992px) {
    .course-card-link {
        width: calc(50% - 20px); /* Muestra 2 tarjetas por fila en tabletas */
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .course-card-link {
        width: 100%; /* Una tarjeta por fila en móviles */
    }
}


/* AQUÍ MOTIVACIONAL HOME */

.section-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color:var(--background-light-10);
    width:80%;
    margin:0 auto;
}

.image-container{
    
    max-height:600px;
    
}

.image-container img {
    max-width: 700px; /* Ajusta el tamaño de la imagen según tus necesidades */
}

.content-container {
    width: 50%; /* Ajusta el ancho según necesites */
}


h2 {
  color: #003366;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

p {
    margin-bottom: 20px; /* Espacio entre el párrafo y el botón */
}

.btn {
    text-decoration: none;
    color: #fff; /* Texto blanco para botones */
    background-color: #003366; /* Fondo del botón, reemplaza por tu color */
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block; /* Para aplicar padding y border-radius */
}

.btn-red:hover {
    background-color: #003366; /* Color al pasar el ratón por encima */
}

/* Responsive design */
@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
    }

    .image-container img,
    .content-container {
        width: 100%;
    }
}

/* AQUÍ PREFOOTER */

/* Pre-Footer CSS */
.pre-footer {
  background-color: #f5f5f5; /* Example background color */
  padding: 20px 0;
}

.container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  width: 100%; /* Asegúrate de que el contenedor no se desborde */
  box-sizing: border-box; /* Incluye padding y border en el ancho y alto total del contenedor */
}

.column {
  flex: 1;
  padding: 10px;
  min-width: 200px;
  box-sizing: border-box;
}

.column h4 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.column ul {
  list-style: none;
  padding: 0; /* Elimina el padding por defecto */
  margin: 0; /* Elimina el margin por defecto */
}

.column ul li a {
  text-decoration: none;
  line-height: 2.5;
}

.column ul li a:hover {
  text-decoration: underline;
}

.more-courses-pre-footer{
color: #007bff;}

@media (max-width: 768px) {
  .container {
      flex-direction: column;
      align-items: center;
       width: 100%;
  }

  .column {
      min-width: 100%;
      max-width: 100%;
      margin-bottom: 20px;
  }
};

/* AQUÍ EL FOOTER */

.site-footer {
  background-color: #f8f9fa; /* Cambiar por el color de fondo deseado */
  color: #343a40; /* Cambiar por el color de texto deseado */
  padding: 20px;
  font-size: 0.9em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  max-width: 1200px;
  margin: auto;
  margin-top: 100px;
  margin-bottom: 100px;
}

.footer-column {
  flex: 1;
  padding: 10px;
  min-width: 150px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li a {
  text-decoration: none;
  color: #007bff; /* Cambiar por el color de enlace deseado */
  line-height: 1.5;
}

.footer-social-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-media-links a {
  display: inline-block;
  margin-right: 10px; /* Espacio entre iconos */
   text-decoration: none;
    
}

.dashicons{
   font-weight: 5em;
}

.language-selector {
  display: flex;
  align-items: center;
}

.language-selector select {
  padding: 5px;
  margin-right: 5px;
}



.language-selector button {
  background-color:#003366;
  border:none;
  padding:0.5rem 1rem;
  color:#fff;
  border-radius:5px;
  cursor:pointer;
  font-size:1rem;
  width:10rem;
}

@media screen and (max-width: 768px) {
  .footer-content {
      flex-direction: column;
  }

  .footer-column {
      flex-basis: 100%;
      max-width: 100%;
  }

  .footer-social-media {
      flex-direction: column;
      align-items: flex-start;
  }

  .social-media-links {
    margin-bottom: 10px; /* Espacio entre redes sociales y selector de idioma */
}

.language-selector {
  flex-wrap: wrap;
}
}
