* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f0f4f8;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background: #1a1a6e;
  color: white;
  width: 100%;
  padding: 1.5rem 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo {
  width: 64px;
  height: 64px;
  padding: 4px;
}

header h1 { font-size: 1.4rem; margin-bottom: 0.3rem; }
header p { font-size: 0.85rem; opacity: 0.85; }

main {
  width: 100%;
  max-width: 600px;
  padding: 2rem 1rem;
}

.search-box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.search-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input-row input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-row input:focus { border-color: #1a1a6e; }

button {
  padding: 0.7rem 1.5rem;
  background: #1a1a6e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: #2a2a8e; }
button:disabled { background: #999; cursor: not-allowed; }

#turnstile-widget { margin-bottom: 1rem; }

#results {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
}

#results.visible { display: block; }

#results h3 { margin-bottom: 1rem; color: #1a1a6e; }

.result-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.result-card:last-child { margin-bottom: 0; }

.result-card .field {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-card .field:last-child { border-bottom: none; }
.result-card .field-label { font-weight: 600; color: #555; font-size: 0.85rem; }
.result-card .field-value { text-align: right; }

.not-found {
  text-align: center;
  padding: 1rem;
  color: #c0392b;
  font-weight: 600;
}

.error-msg {
  text-align: center;
  padding: 1rem;
  color: #c0392b;
}

.impugnacion {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
  text-align: center;
}

.impugnacion h3 { color: #1a1a6e; margin-bottom: 0.75rem; }
.impugnacion p { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.5; }
.impugnacion a { color: #1a1a6e; font-weight: 600; }

.btn-download {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #1a1a6e;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn-download:hover { background: #2a2a8e; }

footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

footer a { color: #1a1a6e; text-decoration: none; }
footer a:hover { text-decoration: underline; }
