/* Estilo para la sección de bienvenida */
.welcome-section {
  position: relative;
  background-color: #0d4f76; /* Fondo azul */
  padding: 60px 20px;
  background-image: url("assets/img/Fondo_Blog.png"); /* Imagen de fondo */
  background-size: cover;
  background-position: center;
}

/* Overlay para superponer el color */
.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 64, 107, 0.6); /* Color semi-transparente */
  z-index: 1;
}

.welcome-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Elevar el contenido por encima del overlay */
}

/* Estilo de la imagen de bienvenida */
.welcome-image img {
  width: 631px;
  height: 589px;
  border-radius: 0px; /* Remover el borde redondeado */
  box-shadow: none; /* Remover la sombra si está presente */
  margin-right: 40px; /* Ajustar el margen según sea necesario */
}

/* Estilo para el texto */
.welcome-text {
  max-width: 600px;
  color: #ffffff;
  text-align: left;
}

.welcome-text h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.welcome-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Botones de la bienvenida */
.welcome-buttons {
  display: flex;
  gap: 20px;
}

.welcome-buttons .btn-therapy {
  background-color: #64b9ff;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.welcome-buttons .btn-therapy:hover {
  background-color: #00406b;
}

/* Botón de Material de apoyo con fondo transparente */
.welcome-buttons .btn-support {
  background-color: transparent; /* Cambiar a transparente */
  border: 2px solid #64b9ff; /* Agregar un borde azul */
  color: #64b9ff; /* Color del texto */
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.welcome-buttons .btn-support:hover {
  background-color: #64b9ff; /* Cambiar a color sólido en hover */
  color: #ffffff; /* Cambiar el color del texto */
}

/* Formulario style */
/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

/* Contenedor del formulario */
.form-container {
  width: 100%;
  max-width: 1178px;
  background-color: #e8f4ff;
  border-radius: 15px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Estilo para los grupos dentro del formulario */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 220px;
  margin: 10px 0;
}

/* Estilo para los títulos de los campos */
.input-title,
.input-title-none {
  font-size: 14px;
  color: #00406b;
  margin-bottom: 5px;
}

.input-title-none {
  opacity: 0;
}

/* Estilo de los campos de entrada */
.input-field {
  height: 40px;
  border: 1px solid #ccd6e0;
  border-radius: 5px;
  padding: 0 10px;
  width: 100%;
  font-size: 16px;
  color: #00406b;
}

.input-field::placeholder {
  color: #486284;
}

/* Estilo del botón */
.btn-agendar {
  height: 45px;
  width: 100%;
  max-width: 150px;
  background-color: #64b9ff;
  border: none;
  border-radius: 30px;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px; /* Aumenta el margen superior para separación */
}

.btn-agendar:hover {
  background-color: #428dcc;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

/* Separador entre los elementos */
.separator {
  height: 50px;
  width: 2px;
  background-color: #ccd6e0;
  display: none; /* Se mostrará solo en pantallas grandes */
}

/* Responsivo para pantallas medianas */
@media (max-width: 768px) {
  .form-container {
    padding: 15px;
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    width: 100%;
    max-width: 300px; /* Ajuste para centrar los campos en móvil */
  }

  .input-field {
    font-size: 14px;
    height: 35px; /* Tamaño más pequeño para pantallas pequeñas */
  }

  .btn-agendar {
    font-size: 14px;
    height: 40px;
    width: 80%; /* Botón más ancho en móviles */
    max-width: 200px; /* Limitar ancho en pantallas pequeñas */
    margin: 20px 0 10px; /* Añade margen superior e inferior para mejor separación */
  }

  .separator {
    display: none;
  }
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 480px) {
  .form-container {
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    max-width: 100%; /* Ancho completo en dispositivos móviles */
  }

  .input-title {
    font-size: 12px;
  }

  .input-field {
    font-size: 14px;
    height: 35px;
  }

  .btn-agendar {
    font-size: 14px;
    height: 40px;
    width: 80%; /* Botón más ancho en móviles */
    max-width: 200px; /* Limitar ancho en pantallas pequeñas */
    margin: 20px 0 10px; /* Añade margen superior e inferior para mejor separación */
  }
}

/*--------Blogs para ti con ajuste de tamaños y colores -------------*/
.blogs-section {
  padding: 40px 20px;
  text-align: center;
  background-color: white;
}

.blogs-section h2 {
  font-size: 32px;
  color: #00406b;
  margin-bottom: 20px;
}

.blogs-section p {
  font-size: 16px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
}

.blog-item {
  display: flex;
  align-items: center;
  background-color: #f4f8fc; /* Color del área del blog */
  padding: 0; /* Sin padding para unir imagen y contenedor */
  margin-bottom: 20px;
  border-radius: 0px 63px 0px 0px; /* Bordes del cuadro del blog */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 852px; /* Ajuste del ancho del cuadro del blog */
  height: 303px; /* Ajuste de la altura del cuadro del blog */
  margin: 0 auto; /* Centrado */
}

.blog-img {
  width: 420px; /* Ajuste del ancho de la imagen */
  height: 303px; /* Ajuste de la altura de la imagen */
  border-radius: 0px; /* Sin bordes redondeados */
  object-fit: cover;
}

.blog-info {
  text-align: left;
  max-width: 400px;
  padding-left: 20px; /* Añadimos padding a la izquierda */
}

.blog-info h3 {
  font-size: 24px;
  color: #00406b;
  margin-bottom: 10px;
}

.blog-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.btn-leer-mas {
  padding: 10px 20px;
  border-radius: 25px;
  background-color: transparent;
  border: 2px solid #00406b;
  color: #00406b;
  text-decoration: none;
  font-size: 14px;
}

.btn-leer-mas:hover {
  background-color: #00406b;
  color: white;
}

@media (max-width: 768px) {
  .blog-item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%; /* Ajuste de ancho para pantallas pequeñas */
    height: auto;
  }

  .blog-img {
    width: 100%; /* La imagen ocupa todo el ancho */
    height: auto;
    margin-bottom: 20px;
  }

  .blog-info {
    text-align: center;
    margin-left: 0;
  }

  .btn-leer-mas {
    width: 100%; /* Botón ocupa todo el ancho en pantallas pequeñas */
  }
}

/*--------------------------------------*/
/*--------¡Estoy listo! (alineado en una línea) -------------*/
.ready-section {
  background-color: #e6f3fc; /* Color de fondo suave */
  padding: 40px 20px;
  text-align: center;
}

.ready-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 150px; /* Espacio entre los elementos */
  flex-wrap: wrap; /* Permite que los elementos se muevan a la siguiente línea en pantallas pequeñas */
}

.ready-content h2 {
  font-size: 28px;
  color: #00406b;
}

.ready-content p {
  font-size: 16px;
  color: #00406b;
  margin: 0 15px; /* Espacio alrededor del párrafo */
}

.btn-aprender {
  display: inline-block;
  padding: 10px 20px;
  background-color: #64b9ff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .ready-content {
    flex-direction: column;
    text-align: center;
  }

  .ready-content h2 {
    font-size: 24px;
  }

  .ready-content p {
    font-size: 14px;
    margin: 10px 0;
  }
}

/* Estilo de footer  */
/*--------------------------------------------------- */
.footer {
  background-color: #00406b;
  color: #ffffff;
  padding: 50px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Adaptación para pantallas pequeñas */
}

.footer-logo {
  flex: 1;
  text-align: left;
}

.footer-logo-img {
  width: 224px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-services,
.footer-information,
.footer-contact {
  flex: 1;
  margin: 0 45px;
}

.footer-contact {
  position: relative;
  top: -90px; /* Eleva el cuadro blanco sobre el footer */
  z-index: 2; /* Asegura que se superponga correctamente */
}

/* Estilo para la caja de contacto */
.footer-contact .contact-box {
  background-color: #ffffff; /* Fondo blanco */
  color: #00406b; /* Color de texto */
  width: 441px;
  height: 391px;
  padding: 20px;
  border-radius: 10px; /* Bordes redondeados */
  border: 1px solid #cccccc; /* Borde ligero para la caja */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Sombra suave */
  margin-left: auto; /* Alinear a la derecha */
  margin-right: auto;
  text-align: center; /* Centrar el texto dentro del cuadro */
}

.footer-contact h4 {
  font-size: 24px; /* Ajuste del tamaño del título */
  margin-bottom: 20px;
  color: #00406b; /* Color para el título dentro de la caja */
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Contenedor para número de contacto con bandera */
.contact-number {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.flag-icon {
  width: 24px;
  height: 16px;
  margin-right: 10px;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  margin-top: 15px; /* Espacio superior */
}

.footer-social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.footer-social-icons img {
  width: 25px;
  height: 25px;
}

.footer-services h4,
.footer-information h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-services ul,
.footer-information ul {
  list-style: none;
  padding: 0;
}

.footer-services li,
.footer-information li {
  margin-bottom: 10px;
}

.footer-services a,
.footer-information a {
  color: #ffffff;
  text-decoration: none;
}

.footer-services a:hover,
.footer-information a:hover {
  text-decoration: underline;
}

/* Contenedor del texto de derechos reservados y legales */
.footer-bottom {
  display: flex;
  justify-content: space-between; /* Alinear a los extremos */
  padding: 20px 0;
  border-top: 1px solid #ffffff; /* Línea superior */
  margin-top: 20px;
  max-width: 1200px;
  margin: 20px auto;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  text-align: left; /* Alinear el texto de los derechos reservados a la izquierda */
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 20px;
  text-align: right; /* Alinear el enlace de privacidad a la derecha */
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo,
  .footer-services,
  .footer-information,
  .footer-contact {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-contact .contact-box {
    width: 90%; /* Ajustar el ancho para dispositivos móviles */
    height: auto; /* Altura automática */
  }

  .footer-bottom {
    flex-direction: column; /* Cambiar a columna */
    align-items: center;
    text-align: center;
  }

  .footer-bottom p,
  .footer-bottom a {
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .footer-contact .contact-box {
    width: 100%; /* Ancho completo en pantallas pequeñas */
    padding: 15px;
  }

  .footer-social-icons img {
    width: 20px; /* Tamaño de los íconos reducido */
    height: 20px;
  }
}

/* Responsividad para pantallas de 768px o menos */
@media (max-width: 768px) {
  /* Ajustes generales */
  body {
    padding: 10px;
    font-size: 16px;
  }

  /* Ajuste de contenedores principales */
  .welcome-container,
  .certifications-container {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  /* Imagen de bienvenida */
  .welcome-image img {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 20px;
  }

  /* Texto de bienvenida */
  .welcome-text {
    text-align: center;
    max-width: 100%;
  }

  /* Botones en la sección de bienvenida */
  .welcome-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Sección de certificaciones */
  .certifications-column {
    width: 100%;
  }

  .certification-card {
    width: 100%;
    padding: 15px;
  }

  .certifications-title {
    font-size: 24px;
  }

  /* Botones de certificaciones */
  .btn-certification {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 16px;
  }
}

/* Para pantallas aún más pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .welcome-text h1 {
    font-size: 20px;
  }

  .welcome-text h2 {
    font-size: 28px;
  }

  .certifications-title {
    font-size: 20px;
  }

  .btn-certification {
    font-size: 14px;
  }
}
