/* --- Variables Corporativas --- */
:root {
  --color-primary: #003087;
  --color-footer: #2C2C2C;
  --color-bg: #FFFFFF;
  --color-text: #333333;
  --color-light-gray: #f9f9f9;
  --color-border: #cccccc;
}

/* --- Reset General --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header / Banner --- */
.main-header {
  background-color: var(--color-primary);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.main-header h1 {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
}

/* --- Contenedor Principal --- */
.container {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro-text {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
  font-size: 1.1rem;
}

/* --- Formulario --- */
.form-fiesa fieldset {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-light-gray);
}

.form-fiesa legend {
  font-weight: bold;
  color: var(--color-primary);
  padding: 0 0.5rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
}

/* Checkbox Grupos */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  background: #fff;
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Grillas de posicionamiento */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.align-start {
  align-items: start;
}

/* Botón de Envío */
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

#btn-submit {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#btn-submit:hover {
  background-color: #002261;
}

#btn-submit:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--color-footer);
  color: #aaaaaa;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- Modal de Éxito --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
}

.modal-content h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.modal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-content .highlight {
  font-weight: bold;
  color: #333;
  margin-top: 1.5rem;
}

.modal-content .signature {
  margin-top: 1rem;
  font-style: italic;
  color: #666;
}

.btn-close {
  margin-top: 1.5rem;
  background-color: var(--color-footer);
  color: white;
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 4px;
  cursor: pointer;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}