/* =====================================================
   ARKANHUB · diagnostico.css
   Estilos dedicados a la herramienta interactiva de
   Diagnóstico Gratuito de Google Maps & Auditoría Local
   ===================================================== */

.section--diagnostico {
  position: relative;
  background: linear-gradient(180deg, var(--bg, #070b14) 0%, #0c1220 50%, var(--bg, #070b14) 100%);
  padding: 5rem 0;
  overflow: hidden;
}

.section--diagnostico::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(79, 70, 229, 0.08) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.diag-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 992px) {
  .diag-wrapper {
    grid-template-columns: 5fr 7fr;
  }
}

.diag-card {
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(138, 180, 255, 0.15);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.diag-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.15);
}

.diag-card--report {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  background: rgba(8, 12, 22, 0.95);
  border-color: rgba(99, 102, 241, 0.25);
}

.diag-search-box {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 0.875rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.diag-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.diag-label--accent {
  color: #c084fc;
}

.diag-help-text {
  font-size: 0.725rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.diag-btn-simular {
  width: 100%;
  margin-bottom: 1.25rem;
  border: 1.5px dashed rgba(168, 85, 247, 0.4);
  background: rgba(88, 28, 135, 0.15);
  color: #d8b4fe;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diag-btn-simular:hover {
  background: rgba(126, 34, 206, 0.3);
  color: #ffffff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.diag-subhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diag-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.diag-field {
  display: flex;
  flex-direction: column;
}

.diag-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.diag-input,
.diag-select {
  width: 100%;
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.diag-input:focus,
.diag-select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.diag-checkboxes-box {
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem;
}

.diag-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diag-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.diag-check-item input[type="checkbox"] {
  accent-color: #a855f7;
  width: 1.05rem;
  height: 1.05rem;
}

.diag-submit-btn {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.diag-report-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.diag-report-logo {
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
}

.diag-report-brand-name {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.diag-report-sub {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c084fc;
  margin-top: 0.2rem;
}

.diag-empty-state {
  padding: 4rem 1rem;
  text-align: center;
  color: #64748b;
}

.diag-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #4338ca;
  animation: floatY 3s ease-in-out infinite;
}

.diag-print-btn {
  background: none;
  border: none;
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.diag-print-btn:hover {
  color: #e9d5ff;
}

.diag-report-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.ico-sm {
  width: 1.1rem;
  height: 1.1rem;
}

.ico-blue {
  width: 1.1rem;
  height: 1.1rem;
  color: #60a5fa;
}

/* Custom Google Places Autocomplete styling */
.pac-container {
  background-color: #0f172a !important;
  border: 1px solid #374151 !important;
  border-radius: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
  z-index: 9999;
}

.pac-item {
  color: #cbd5e1 !important;
  border-top: 1px solid #1e293b !important;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
}

.pac-item:hover {
  background-color: #1e1b4b !important;
}

.pac-item-query {
  color: #ffffff !important;
  font-weight: 600;
}

.pac-matched {
  color: #c084fc !important;
}

gmpx-place-picker {
  --gmpx-color-surface: #0f172a;
  --gmpx-color-on-surface: #f8fafc;
  --gmpx-color-on-surface-variant: #64748b;
  --gmpx-color-primary: #a855f7;
  --gmpx-font-family: 'Plus Jakarta Sans', sans-serif;
  --gmpx-border-radius: 0.5rem;
  width: 100%;
  display: block;
}

/* Responsivo para móviles en sección Diagnóstico */
@media (max-width: 640px) {
  .diag-grid-2 {
    grid-template-columns: 1fr;
  }
  .diag-card {
    padding: 1.25rem;
  }
}
