/* Elimina el scroll horizontal y garantiza buen comportamiento de los tamaños */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f1f2f3;
  padding: 0px;
  margin: 0;
  overflow-x: hidden;
}

.contenedor-formulario {
  background: #ffffff;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 950px;
  margin: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 28px;
  color: #003c2f;
  margin-bottom: 10px;
  text-align: center;
}

p {
  font-size: 15px;
  color: #444;
  text-align: center;
  margin-bottom: 30px;
}

.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.columna {
  flex: 1 1 calc(50% - 20px);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

select {
  width: 100%;
  height: 50px;
  padding: 12px 15px;
  font-size: 15px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%225%22%20viewBox%3D%220%200%2010%205%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200L5%205L10%200H0Z%22%20fill%3D%22%23333%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 5px;
}

.boton {
  text-align: center;
  margin-top: 30px;
}

button {
  background: #003c2f;
  color: white;
  padding: 14px 35px;
  font-size: 16px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #00291f;
}

.resultado {
  background: #ffffff;
  border-radius: 10px;
  margin: 40px auto;
  padding: 30px;
  max-width: 950px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  text-align: left;
  padding: 12px;
  border: 1px solid #ccc;
}

th {
  background: #f5f5f5;
}

.destacado {
  background: #a4d5bf;
  font-weight: bold;
  text-align: center;
}

.pagar-btn {
  text-align: center;
  margin-top: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto 20px;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .contenedor-formulario,
  .resultado {
    padding: 20px 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .fila {
    flex-direction: column;
    gap: 15px;
  }

  .columna {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }

  label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  select {
    height: 45px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    background-color: #f8f8f8;
    background-position: right 12px center;
  }

  h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  p {
    font-size: 13px;
    text-align: justify;
  }

  button {
    width: 100%;
    font-size: 15px;
    padding: 12px;
    margin-top: 10px;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .modal-content img {
    max-width: 100%;

    height: auto;
  }
}

nav {
  background-color: #082b07;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #7ff241;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #7ff241;
}

nav ul li a:hover::after {
  width: 100%;
}

.logo {
  color: #7ff241;
  font-weight: bold;
  font-size: 22px;
}

.logo span {
  color: white;
  display: block;
  font-size: 12px;
}

.registro-btn {
  background-color: white;
  color: #082b07;
  border-radius: 20px;
  padding: 8px 15px;
  font-weight: bold;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }
}