body, h1, h2, p, img {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #F9FAFB;
  color: #333;
}

.exampletwo h1 {
  text-align: center;
  font-size: 2.5em;
  color: #F9FAFB;
  background-color: #2D2D5C;
  padding: 20px 0;
}

.formatcontact h2 {
  text-align: center;
  font-size: 1.8em;
  color: #2D2D5C;
  margin: 20px 0;
}

.tabla-section {
  overflow-x: auto;
  padding: 0 10px;
}

.tabla-contacto {
  width: 105%;
  margin: 25px auto;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.tabla-contacto th,
.tabla-contacto td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  vertical-align: middle;
}

.tabla-contacto th {
  background-color: #2D2D5C;
  color: #fff;
  text-align: center;
}

.tabla-contacto tr:nth-child(even) {
  background-color: #f2f6fa;
}

.tabla-contacto tr:hover {
  background-color: #e8f0fe;
}

.tabla-contacto img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.tabla-contacto a {
  color: #2D2D5C;
  text-decoration: none;
  font-weight: bold;
}

.tabla-contacto a:hover {
  text-decoration: underline;
}

.form-container {
  width: 80%;
  margin: 40px auto;
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  color: #2D2D5C;
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2D2D5C;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1em;
}

form input:focus,
form textarea:focus {
  border-color: #2D2D5C;
  outline: none;
}

form input[type="submit"] {
  display: block;
  background-color: #2D2D5C;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 0;
  font-size: 1.05em;
  font-weight: bold;
  width: 60%;
  margin: 0 auto;
  cursor: pointer;
  transition: 0.3s;
}

form input[type="submit"]:hover {
  background-color: #1f5f8c;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #2c3e50;
  color: #fff;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 0.95em;
}

.backtohome {
  text-align: center;
  margin: 30px 0;
}

.backtohome a {
  display: inline-block;
  background-color: #2D2D5C;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.backtohome a:hover {
  background-color: #141A4C;
}

@media (max-width: 1024px) {
  .tabla-contacto {
    width: 95%;
  }

  .form-container {
    width: 90%;
  }

  form input[type="submit"] {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .exampletwo h1 {
    font-size: 2em;
    padding: 15px 0;
  }

  .formatcontact h2 {
    font-size: 1.4em;
  }

  .form-container {
    width: 90%;
    padding: 20px;
  }

  form input,
  form textarea {
    font-size: 0.95em;
  }

  form input[type="submit"] {
    width: 100%;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .exampletwo h1 {
    font-size: 1.6em;
  }

  .formatcontact h2 {
    font-size: 1.2em;
    margin: 10px 0;
  }

  .tabla-contacto {
    width: 100%;
    font-size: 0.85em;
    box-shadow: none;
  }

  .form-container {
    width: 95%;
    padding: 15px;
    box-shadow: none;
  }

  form label {
    font-size: 0.9em;
  }

  form input,
  form textarea {
    font-size: 0.9em;
  }

  .footer {
    font-size: 0.8em;
    padding: 10px;
  }
}


