html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('resources/mihail-ribkin-VjmlDjePHjE-unsplash.jpg');
  /*background-color: #f5f5f5;*/
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.boton-llamar {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background-color: #e3a426;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  /*    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);*/
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-left: 4.5em;
  margin-top: 1em;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.boton-llamar:hover {
  background-color: #218838;
}

header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 100%;
  padding-right: 0;
}

.col-logo {
  flex: 1;
  margin-left: 10px;
  margin-top: 20px;
  background: rgba(181, 179, 179, 0.851);
  
}

.col-logo img {
  max-width: 100%;
  height: auto;
}

.col {
  flex: 1;
  padding: 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.menu {
  margin: 20px auto 0 auto;
  /* Ajusta los márgenes para centrar horizontalmente */
  position: relative;
  /* Cambia de absolute a relative para evitar que se superponga */
  top: unset;
  /* Elimina la posición fija */
  left: unset;
  /* Elimina la posición fija */
  transform: none;
  /* Elimina el ajuste de transformación */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  /* Fondo semi-transparente */
  border-radius: 8px;
  /* Bordes redondeados */
  padding: 4px;
  /* Espaciado interno */
  max-width: 100%;
  /* Limita el ancho del menú */
  text-align: left;
}

.menu ul {
  display: flex;
  flex-direction: column;
  /*gap: 1em;*/
  list-style: none;
  margin: 0;
  padding: 0;
}



.menu a {
  text-decoration: none;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: bold;
  padding: 5px 10px;
  transition: background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
  text-decoration: underline;
  font-size: 1.2rem;
  /* <---- cambia aquí el tamaño del texto del menú */
  margin-bottom: 1em;
}

.menu a:hover {
  background: #ddd;
  border-radius: 4px;
}

footer {
  background: #222;
  color: #fff;
  padding: 15px 10px;
  text-align: left;
  margin-top: auto;
  font-size: 0.85rem;
  line-height: 1
}

footer h3 {
  font-weight: bold;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer .contacto p:nth-child(3),
footer .contacto p:nth-child(4),
footer .contacto p:nth-child(5) {
  text-decoration: underline;
}

.texto-encabezado {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #223366;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  letter-spacing: 0.2px;
  line-height: 1.3;
  background: rgba(181, 179, 179, 0.851);
  /* Blanco transparente */
  /*padding: 1em 2em;*/
  border-radius: 6px;
  border: 1px solid #0c0c0d;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(34, 51, 102, 0.05);
}



footer .contacto p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 5px 0;
  color: #ccc;
}

footer .contacto h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
}

.fila {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.col-2 {
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.col-2 h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.col-2 h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #444;
}

.col-2 p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

.col-2 ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.col-2 ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
}

@media (max-width: 480px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra verticalmente */
    align-items: center;
    /* Centra horizontalmente */
  }

  .menu {
    margin: 0 auto;
    /* Elimina los márgenes automáticos */
    display: inline-block;
    width: 90%;
    /* Ajusta el ancho si lo prefieres */
    max-width: 450px;
    /* Opcional: limita el ancho */
    /* asegurar centrado horizontal */
    justify-content: center;
    text-align: center;
  }

  .menu ul {
    /* centrar los items en la columna */
    align-items: center;
  }

  .menu a {
    /* asegurar que el texto del enlace quede centrado */
    text-align: center;
    display: inline-block;
  }

  .col-title h1,
  .col-title p {
    display: none;
    /* Oculta el texto en pantallas de teléfonos */
  }
}

@media (min-width: 481px) {

  .col-title h1,
  .col-title p {
    display: block;
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra el contenido horizontalmente */
    justify-content: center;
    /* Centra el contenido verticalmente */
    text-align: center;
    /* Asegura que el texto esté centrado */
  }

  .col-title {
    text-align: center;
    /* Centra el texto del título */
  }

  footer {
    margin-top: auto;
    position: relative;
    /* Elimina position: absolute */
    bottom: unset;
    /* Elimina la posición fija */
    width: 100%;
  }
}

.col-title h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.col-title p {
  color: white;
}

.wa-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 0;
  /* eliminar espacio alrededor del icono */
  border: 0;
  background: transparent;
  /* quitar color de fondo */
  box-shadow: none;
  /* eliminar sombra */
  border-radius: 0;
  /* quitar redondeado para que solo se vea la imagen */
  width: 100px;
  /* establece un área clickeable consistente */
  height: 100px;
  /* establece un área clickeable consistente */
  line-height: 0;
  /* evitar espacio extra alrededor de la imagen */
  cursor: pointer;
  outline: none;
}

.wa-button:focus {
  outline: none;
}

.wa-button img {
  width: 100px;
  height: 100px;
}

@media (max-width: 480px) {
  .wa-button {
    bottom: 5px;
    right: 5px;
    width: 60px;
    /* ajusta el área clickeable en móviles */
    height: 60px;
    /* ajusta el área clickeable en móviles */
  }

  .wa-button img {
    width: 60px;
    height: 60px;
  }
}

.wa-link {
  color: white;
  text-decoration: none;
  /* Elimina el subrayado del texto */
  display: inline-block;
  /* Ajusta el tamaño al contenido */
}

.disclaimer {
  background-color: #000;
  /* negro */
  color: #fff;
  /* letras blancas */
  text-align: center;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

/* enlaces dentro del disclaimer */
.disclaimer a {
  color: #fff;
  text-decoration: underline;
}

/* ajustar legibilidad en móviles */
@media (max-width: 480px) {
  .disclaimer {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
}

.formulario label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}

.formulario input,
.formulario textarea {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.formulario input:focus,
.formulario textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.2);
  outline: none;
}

.formulario button {
  background: #0078d7;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario button:hover {
  background: #005fa3;
}

@media (max-width: 600px) {
  .formulario {
    padding: 1.5rem;
    max-width: 100%;
  }
}

.formulario .aviso {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-top: 0.5rem;
}

.formulario .aviso a {
  color: #0078d7;
  text-decoration: none;
  font-weight: 500;
}

.formulario .aviso a:hover {
  text-decoration: underline;
  color: #005fa3;
}
