/* Estilos Generales */
html,
body {
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.wrapper-page {
  flex: 1; /* Permite que el contenido principal ocupe el espacio disponible */
  display: flex;
  flex-direction: column;
}

main.cursos-container {
  flex: 1; /* Permite que el contenido principal ocupe el espacio disponible */
}

footer.footer {
  background-color: #122437;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto; /* Empuja el footer hacia abajo */
}

/* Encabezado */
.header {
  background: linear-gradient(
    90deg,
    #fead49,
    #d35400
  ); /* Degradado de naranja a un tono más oscuro */
  color: white;
  padding: 15px;
  text-align: center; /* Asegura que el texto esté centrado */
  font-family: Arial, sans-serif; /* Asegura la misma fuente */
  margin: 0; /* Elimina cualquier margen no deseado */
  box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
  width: 100%; /* Asegura que ocupe todo el ancho */
}
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.logo-container img {
  height: 50px;
}

.tab-button {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  transition: background 0.3s;
}

.tab-button:hover {
  background-color: #ffd700; /* Amarillo */
  color: #000;
  border-radius: 5px;
}

.tab-button.active {
  background-color: #ffd700;
  border-radius: 5px;
  color: #000;
}

/* Contenedor principal para dividir en dos columnas */
.contenedor {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Asegura que ambos contenedores tengan la misma altura */
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Columna derecha (formulario) */
#wrapper {
  flex: 1; /* Ambos contenedores tendrán el mismo tamaño */
  padding: 30px; /* Espaciado interno */
  background-color: #f3f3f3; /* Fondo gris claro */
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
  font-family: Arial, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: left; /* Centra el contenido verticalmente */
}

/* Estilo para las etiquetas */
#wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555; /* Texto gris oscuro */
  font-size: 16px; /* Tamaño de fuente */
  text-align: left; /* Alineación del texto a la izquierda */
}

/* Estilo para los campos de entrada */
#wrapper input[type="text"],
#wrapper input[type="email"],
#wrapper textarea {
  width: 100%;
  padding: 12px; /* Espaciado interno */
  margin-bottom: 15px; /* Espaciado entre campos */
  border: 1px solid #ccc; /* Borde gris claro */
  border-radius: 5px; /* Bordes redondeados */
  font-size: 14px; /* Tamaño de fuente */
  color: #333; /* Texto gris oscuro */
  background-color: #fff; /* Fondo blanco */
}

/* Estilo para el área de texto */
#wrapper textarea {
  resize: none; /* Deshabilita el redimensionamiento */
  height: 100px; /* Altura fija */
}

.main-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin: 20px 0;
}

/* Estilo para el botón de envío */
#wrapper input[type="submit"] {
  background-color: #555; /* Fondo gris oscuro */
  color: #fff; /* Texto blanco */
  padding: 12px 20px; /* Espaciado interno */
  border: none;
  border-radius: 5px; /* Bordes redondeados */
  font-size: 16px; /* Tamaño de fuente */
  cursor: pointer;
  transition: background-color 0.3s ease; /* Transición suave */
}

#wrapper input[type="submit"]:hover {
  background-color: #333; /* Fondo más oscuro al pasar el mouse */
}

.contacto-info {
  flex: 1; /* Ambos contenedores tendrán el mismo tamaño */
  padding: 30px; /* Aumenta el padding */
  background-color: #333; /* Fondo oscuro */
  color: #fff; /* Texto blanco */
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido verticalmente */
}

.contacto-info .contact-icon {
  width: 150px; /* Aumenta el ancho del ícono */
  height: 150px; /* Aumenta la altura del ícono */
  margin-bottom: 20px; /* Espacio debajo del ícono */
}
.contacto-info h1 {
  font-size: 28px; /* Aumenta el tamaño del texto */
  margin-bottom: 15px;
}

.contacto-info p {
  font-size: 18px; /* Aumenta el tamaño del texto */
  margin-bottom: 15px;
}
.contacto-info .whatsapp-icon {
  width: 50px; /* Tamaño del ícono */
  height: 50px;
  transition: transform 0.3s ease; /* Efecto de escala al pasar el mouse */
}

.contacto-info .whatsapp-button img {
  width: 50px; /* Tamaño del ícono */
  height: 50px;
}

.contacto-info .whatsapp-button:hover {
  transform: scale(1.2); /* Verde más oscuro al pasar el mouse */
}

.footer {
  background-color: #122437;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.footer h2 {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
}

.social-icons a {
  margin: 0 10px;
}

.social-icons img {
  height: 30px; /* Adjust social icon size */
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* RESPONSIVE*/

/* Estilos responsivos */
@media (max-width: 1024px) {
  .contenedor {
    flex-direction: column;
    padding: 20px;
  }

  .contacto-info,
  #wrapper {
    width: 100%;
    margin-bottom: 20px;
  }

  .main-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .tabs {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background-color: #ff4500;
    padding: 10px 0;
  }

  .tabs.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background-color: #ff4500;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  .tab-button {
    padding: 12px;
    width: 100%;
    text-align: center;
  }

  .main-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .contacto-info h1 {
    font-size: 22px;
  }

  .contacto-info p,
  #wrapper label,
  #wrapper input,
  #wrapper textarea {
    font-size: 14px;
  }

  .footer h2 {
    font-size: 18px;
  }

  .social-icons img {
    height: 25px;
  }
}

/* Menú hamburguesa base, siempre incluido */
.menu-toggle {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background-color: #ff4500; /* Fondo naranja */
    color: white; /* Texto blanco */
    border: none;
    font-size: 20px; /* Tamaño del texto */
    padding: 5px 15px; /* Espaciado interno */
    cursor: pointer;
    width: fit-content; /* Ajusta el ancho al contenido */
    text-align: center;
    border-radius: 50px; /* Bordes circulares */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: all 0.3s ease; /* Transición suave */
    margin: 5px auto; /* Centrado */
  }

  /* Efecto al pasar el mouse */
  .menu-toggle:hover {
    background-color: #ffd700; /* Fondo amarillo */
    color: #000; /* Texto negro */
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
  }
  .tabs {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #ffa500;
    margin-top: 0;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    width: 100%;
  }

  .tabs.active {
    display: flex;
  }

  .tab-button {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
  }

  .tab-button:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
  }
}
