@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 */


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;
}

/* 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 */
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  height: 100px;
  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: 100px;
}

.logo {
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
}

.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;
}

/* Botón de menú para pantallas pequeñas */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mostrar el botón de menú solo en pantallas pequeñas */
@media screen and (max-width: 768px) {
  .menu {
      display: none;
      flex-direction: column;
  }

  .menu-item {
      margin-bottom: 5px;
  }

  .menu-toggle {
      display: block;
  }

  /* Asegurarse de que el menú se muestre cuando esté activado */
  .menu.active {
      display: flex;
  }
}

.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
  
}

/* Elimina la transformación skew */
.search-button {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 16px;
}

.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: 80%;

  padding: 10px;
  text-decoration: none;
}

@media only screen and (width >= 992px) {
  .header-right {
    transform: skew(-12deg);
  }
}

/* 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;


}

.hero-content h1 {
  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 */
}

/* 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;
    padding: 5rem;
    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-between;
    padding: 50px;
    background-color:var(--background-light-10); /* Cambia esto al color de fondo que desees */
}

.image-container img {
    width: 50%; /* Ajusta el tamaño de la imagen según tus necesidades */
}

.content-container {
    width: 50%; /* Ajusta el ancho según necesites */
}

.content-block {
    margin-bottom: 20px; /* Espacio entre los bloques de contenido */
}

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;
}

.column {
  flex: 1;
  padding: 10px;
  min-width: 200px;
}

.column h4 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.column ul {
  list-style: none;
}

.column ul li a {
  text-decoration: none;
  line-height: 2.5;
  text-decoration:none;
}

.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;
  }

  .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 */
}

.social-media-links img {
  width: 24px; /* Tamaño de los íconos */
  height: 24px;
}

.social-media-links {
  /* Estilos para los íconos de redes sociales */
}

.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;
}
}
