/* Estilos generales */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
ol,
li,
form,
label,
table,
header,
footer,
main,
section,
nav {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #0b5394;
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: #56122b;
  color: white;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 10px;
  height: 40px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f0f0f0;
  padding: 10px 0;
  font-size: 14px;
}

/* Main Content */
main {
  padding: 30px 0;
}

h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 32px;
}

h2 {
  color: #333;
  margin-bottom: 5px;
  font-size: 24px;
}

.underline {
  width: 50px;
  height: 4px;
  background-color: #56122b;
  margin-bottom: 20px;
}

/* Steps */
.steps-container {
  display: flex;
  margin-bottom: 40px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 50%;
  padding: 15px 10px;
  text-align: center;
  position: relative;
  background-color: #e0e0e0;
}

.step:after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 20px solid #e0e0e0;
  z-index: 1;
}

.step:last-child:after {
  display: none;
}

.step.active {
  background-color: #56122b;
  color: white;
}

.step.active:after {
  border-left-color: #56122b;
}

.step.completed {
  background-color: #a9a9a9;
  color: white;
}

.step.completed:after {
  border-left-color: #a9a9a9;
}

.step-number {
  font-weight: bold;
}

/* Formulario */
.search-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 100%;
  min-width: 200px;
}

.recaptcha-container {
  margin: 20px 0;
}

.submit-button {
  background-color: #56122b;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.submit-button:hover {
  background-color: #3f0f20;
}

.error-message {
  background-color: #ffe5e5;
  color: #b30000;
  border-left: 4px solid #b30000;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.form-links {
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  nav ul li {
    margin: 5px 0;
  }

  .steps-container {
    flex-direction: column;
  }

  .step {
    flex: 1 1 100%;
    border-bottom: 1px solid #ccc;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .submit-button {
    width: 100%;
  }
}

/* Modal completo responsivo */
.modal {
  display: none; /* se activa con JS */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
}

.modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: fadeInModal 0.3s ease-in-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Evitar que se vea el contenido del fondo mientras el modal está abierto */
body.modal-open {
  overflow: hidden;
}
