/* ========= RESET SUAVE ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #e9f2ff;
  color: #0f172a;
}

/* ========= CONTAINER GENERAL ========= */

.container {
  max-width: 960px;
  margin: 32px auto 64px;
  padding: 0 16px 40px;
}

/* ========= HEADER ========= */

.header {
  margin-bottom: 24px;
}

.header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1455e6;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #18b17a;
}

.header-subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: #4b5563;
}

/* ========= HERO ========= */

.hero {
  margin-bottom: 24px;
}

.hero-text {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.hero-text-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.hero-text-body {
  font-size: 15px;
  line-height: 1.4;
  color: #4b5563;
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1455e6;
  background: rgba(20, 85, 230, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ========= BOTÓN PRINCIPAL ========= */

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #1455e6, #1d5fff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(20, 85, 230, 0.45);
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 40px rgba(20, 85, 230, 0.6);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(20, 85, 230, 0.4);
}

.primary-btn-icon {
  font-size: 15px;
}

/* ========= SECCIONES DEL FORMULARIO ========= */

.form-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 26px 24px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.section-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 85, 230, 0.05);
  color: #1455e6;
}

.section-description {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
}

/* ========= CAMPOS Y LABELS ========= */

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.field-hint {
  margin: 2px 0 8px;
  font-size: 12px;
  color: #9ca3af;
}

/* ========= SELECT ========= */

select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background-color: #f9fafb;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

select:focus {
  border-color: #1455e6;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(20, 85, 230, 0.2);
}

/* ========= GRID DE OPCIONES ========= */

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.options-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ========= TARJETAS DE OPCIÓN (RADIO / CHECKBOX) ========= */

.option-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f4ff;
  border: 1px solid #d7defc;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, transform 0.05s ease;
}

/* esconde el input visualmente pero sigue siendo accesible */
.option-item input {
  position: relative;
  margin-top: 2px;
  accent-color: #1455e6;
}

/* cuando la opción está seleccionada (Chrome ya soporta :has) */
.option-item:has(input:checked) {
  background: #1455e6;
  border-color: #1455e6;
  box-shadow: 0 12px 26px rgba(20, 85, 230, 0.45);
  transform: translateY(-1px);
}

.option-item:has(input:checked) .option-main,
.option-item:has(input:checked) .option-sub {
  color: #ffffff;
}

.option-main {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.option-sub {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* ========= RESULTADO ========= */

.result-section {
  text-align: left;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.result-title span {
  color: #1455e6;
}

.result-description {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

/* ========= SUBMIT ROW ========= */

.submit-row {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

/* ========= UTILIDADES ========= */

.hidden {
  display: none !important;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 768px) {
  .container {
    margin-top: 20px;
  }

  .hero-text {
    padding: 20px 18px;
  }

  .form-section {
    padding: 18px 16px 20px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}
