* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f2f4f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primario, #7c3aed), var(--color-secundario, #ec4899));
  color: #fff;
  text-align: center;
  padding: 40px 20px 56px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo {
  max-height: 70px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
}

.logo-placeholder {
  font-size: 3rem;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 1.6rem;
  margin: 6px 0 8px;
  font-weight: 800;
}

.hero .descripcion {
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 420px;
  margin: 0 auto 18px;
}

.badge-zona {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

main.tarjeta {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 26px;
  width: 100%;
  max-width: 420px;
  margin: -34px 16px 24px;
  position: relative;
  z-index: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #333;
}

label:first-of-type {
  margin-top: 0;
}

select {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fafafa;
}

button {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primario, #7c3aed), var(--color-secundario, #ec4899));
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
}

button:disabled {
  background: #c7cdd8;
  cursor: not-allowed;
  box-shadow: none;
}

.resultado {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  animation: aparecer 0.3s ease;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.resultado.exito {
  background: #e6f7ec;
  color: #14663c;
  border: 1px solid #a4dfc0;
}

.resultado.error {
  background: #fdecec;
  color: #8a2c2c;
  border: 1px solid #f2b8b8;
}

.pie {
  color: #888;
  font-size: 0.78rem;
  margin: 0 16px 24px;
  text-align: center;
}

@media (min-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }
}
