/* =============================================
   Inscripciones – Mobile-first, light theme
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
  color: #121212;
  background-color: #f0f0f0;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: url("/images/backgrounds/Fundo 1.png") no-repeat center center
    fixed;
  background-size: cover;
  font-family: "Montserrat", sans-serif;
}

a {
  color: #1a1a2e;
}

/* --- Header --- */
.site-header {
  padding: 1rem;
  text-align: center;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header img {
  max-width: 120px;
  height: auto;
}

/* --- Main content --- */
.site-main {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.site-main--transparent {
  background-color: transparent;
  box-shadow: none;
  max-width: 448px;
}

/* --- Footer --- */
.site-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* --- Typography --- */
h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
}

.site-main--narrow {
  max-width: 448px;
}

/* --- Forms --- */
label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #121212;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.7;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.form-grid > .form-control {
  flex: 1 1 100%;
}

.form-grid__full {
  flex: 1 1 100% !important;
}

/* --- Utility classes (Tailwind-like) --- */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-x-4 {
  column-gap: 1rem;
}
.w-full {
  width: 100%;
}
.w-1\/2 {
  width: 50%;
}
.w-1\/3 {
  width: 33.333%;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-muted {
  color: #666;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-wide {
  letter-spacing: 0.05em;
}
.bg-subtle {
  background-color: #f8f8f8;
}
.border-subtle {
  border: 1px solid #eee;
}
.rounded-md {
  border-radius: 6px;
}
.shrink-0 {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .sm\:w-1\/2 {
    width: 50%;
  }
  .sm\:w-1\/3 {
    width: 33.333%;
  }
  .sm\:flex-row {
    flex-direction: row;
  }

  .form-grid > .form-control {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .form-grid__half {
    flex: 1 1 calc(50% - 0.5rem) !important;
  }
}

.form-control {
  margin-bottom: 1rem;
}

.form-control input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: #1a1a2e;
}

.form-control input[type="checkbox"] + label {
  display: inline;
  font-size: 1rem;
  color: #121212;
}

/* --- Radio group --- */
.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  color: #121212;
  cursor: pointer;
  margin-bottom: 0;
}

.radio-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #1a1a2e;
  cursor: pointer;
}

/* --- Checkbox group --- */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  color: #121212;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #1a1a2e;
  cursor: pointer;
}

.form-control .helpertext {
  color: #666;
  font-size: 0.875rem;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* --- Required asterisk --- */
.required {
  color: #dc2626;
  font-weight: bold;
}

/* --- Form error message --- */
.form-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Buttons --- */
button,
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1a1a2e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease;
}

button:hover,
.btn:hover {
  background-color: #2d2d44;
}

button:active,
.btn:active {
  background-color: #111122;
}

.btn-secondary {
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e2e2e2;
}

.btn-secondary:active {
  background-color: #c0c0c0;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* --- Detail cards (Detalles) --- */
.detail-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background-color: #f8f8f8;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #eee;
  margin-bottom: 1.25rem;
}

.detail-item {
  width: 100%;
  padding: 0.5rem 0;
}

.detail-item__label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.detail-item__value {
  font-size: 1rem;
}

.detail-item--full {
  width: 100%;
}

@media (min-width: 640px) {
  .detail-item {
    width: 50%;
  }

  .detail-item--full {
    width: 100%;
  }
}

.persona-encontrada {
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.25rem 0;
}

/* --- Success banner --- */
.success-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.success-banner__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.success-banner__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #065f46;
  margin-bottom: 0.25rem;
}

.success-banner__text {
  font-size: 0.9rem;
  color: #064e3b;
  line-height: 1.5;
}

/* --- Notice / Alert box --- */
.notice {
  margin-top: 2rem;
  border-left: 4px solid #fe9a00;
  background-color: #fffbeb;
  padding: 1.25rem;
  border-radius: 6px;
}

.notice__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notice__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #fff8e6;
}

.notice__title {
  font-size: 1rem;
  font-weight: 700;
  color: #973c00;
  margin: 0 0 0.25rem;
}

.notice__text {
  font-size: 0.875rem;
  color: #bb4d00;
  margin-bottom: 0.75rem;
}

.notice__dates {
  margin-top: 1rem;
}

.notice__dates-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #973c00;
  margin-bottom: 0.5rem;
}

.notice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.notice__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ffd230;
  background-color: #fef3c6;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.notice__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: #f59e0b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.notice__date-label {
  font-size: 0.75rem;
  color: #e17100;
  margin-bottom: 0;
}

.notice__date-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #973c00;
  margin-bottom: 0;
}

/* --- Responsive (tablet+) --- */
@media (min-width: 640px) {
  .site-main {
    padding: 2.5rem 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .notice__date {
    flex: 1 1 calc(33.333% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .site-main {
    padding: 3rem 4rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

.small-text {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1.25rem;
}

/* --- Inline search form --- */
.search-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .search-inline {
    flex-direction: row;
    align-items: flex-end;
  }
}

.search-inline .form-control {
  margin-bottom: 0;
}

.search-inline .form-control input,
.search-inline .form-control select {
  margin-bottom: 0;
}

.search-inline__input {
  flex: 1;
}

.search-inline button {
  white-space: nowrap;
  width: auto;
}


