/* AJTEL WHOIS Lookup — Glassmorphism (mismo estilo que Contacto AJTEL) */
* { box-sizing: border-box; }
.ajtel-whois-wrap { max-width: 900px; margin: 0 auto; padding: 40px 20px; font-family: Arial, sans-serif; }

.ajtel-whois-title { text-align: center; font-size: 2.8em; color: #1a73e8; margin-bottom: 10px; font-weight: 700; }
.ajtel-whois-subtitle { text-align: center; color: #666; margin-bottom: 36px; font-size: 1.1em; }

.ajtel-whois-search {
  display: flex; gap: 10px; margin-bottom: 20px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-radius: 50px; padding: 8px 8px 8px 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.3);
}
.ajtel-whois-search input { flex: 1; border: none; outline: none; font-size: 1em; background: transparent; color: #333; min-width: 0; }
.ajtel-whois-search input::placeholder { color: #aaa; }
.ajtel-whois-search button {
  padding: 12px 28px; background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
  color: #fff; border: none; border-radius: 40px; font-weight: 700; font-size: 1em;
  cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
}
.ajtel-whois-search button:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(52,168,83,0.4); }
.ajtel-whois-search button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.ajtel-whois-examples { text-align: center; margin-bottom: 36px; font-size: 0.9em; color: #666; }
.ajtel-whois-examples span {
  cursor: pointer; color: #1a73e8; margin: 3px 5px; font-weight: 600;
  padding: 6px 16px; border: 2px solid #1a73e8; border-radius: 25px;
  display: inline-block; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.ajtel-whois-examples span:hover { background: rgba(52,168,83,0.8); border-color: white; color: white; box-shadow: 0 8px 20px rgba(52,168,83,0.4); transform: translateY(-2px); }

.ajtel-whois-msg { text-align: center; padding: 20px; font-size: 1em; color: #666; }
.ajtel-whois-msg.error { color: #c0392b; }

.ajtel-whois-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(26,115,232,0.2); border-top-color: #1a73e8; border-radius: 50%; animation: awSpin 0.7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes awSpin { to { transform: rotate(360deg); } }

.ajtel-whois-card {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease; animation: awFade 0.4s ease;
}
.ajtel-whois-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
@keyframes awFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ajtel-whois-card-header { padding: 22px 28px; background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%); }
.ajtel-whois-card-domain { font-size: 1.7em; color: #fff; font-weight: 700; word-break: break-all; }
.ajtel-whois-card-badges { margin-top: 8px; }

.ajtel-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.78em; font-weight: 700; margin: 3px 4px 0 0; }
.ajtel-badge-ok   { background: rgba(255,255,255,0.25); color: #fff; }
.ajtel-badge-warn { background: rgba(255,200,0,0.35); color: #fff8c0; }
.ajtel-badge-err  { background: rgba(255,80,80,0.35); color: #ffe0e0; }

.ajtel-info-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ajtel-info-sec { padding: 22px 28px; border-bottom: 1px solid rgba(26,115,232,0.1); }
.ajtel-info-sec:nth-child(odd) { border-right: 1px solid rgba(26,115,232,0.1); }
.ajtel-info-sec h3 { font-size: 0.78em; text-transform: uppercase; letter-spacing: 1.2px; color: #1a73e8; font-weight: 700; margin: 0 0 14px; }

.ajtel-info-row { display: flex; flex-direction: column; margin-bottom: 10px; }
.ajtel-info-label { font-size: 0.76em; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.ajtel-info-value { font-size: 0.93em; color: #333; font-weight: 600; word-break: break-all; margin-top: 2px; }
.ajtel-info-value.green  { color: #34a853; }
.ajtel-info-value.red    { color: #c0392b; }
.ajtel-info-value.orange { color: #e67e22; }

.ajtel-date-row { display: flex; align-items: center; gap: 8px; }
.ajtel-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ajtel-dot-g { background: #34a853; }
.ajtel-dot-o { background: #f39c12; }
.ajtel-dot-r { background: #e74c3c; }

.ajtel-ns-list { list-style: none; padding: 0; margin: 0; }
.ajtel-ns-list li { font-size: 0.88em; color: #555; padding: 5px 0; border-bottom: 1px solid rgba(26,115,232,0.1); display: flex; align-items: center; gap: 8px; }
.ajtel-ns-list li:last-child { border-bottom: none; }
.ajtel-ns-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1a73e8; flex-shrink: 0; }

.ajtel-bar-wrap { padding: 16px 28px 22px; border-bottom: 1px solid rgba(26,115,232,0.08); }
.ajtel-bar-label { font-size: 0.76em; color: #999; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 8px; }
.ajtel-bar-bg { background: rgba(26,115,232,0.1); border-radius: 10px; height: 10px; overflow: hidden; }
.ajtel-bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #1a73e8, #34a853); width: 0; transition: width 0.8s ease; }
.ajtel-bar-note { font-size: 0.83em; color: #666; margin-top: 8px; }

.ajtel-info-sec-full { padding: 20px 28px; border-bottom: 1px solid rgba(26,115,232,0.08); }
.ajtel-info-sec-full h3 { font-size: 0.78em; text-transform: uppercase; letter-spacing: 1.2px; color: #1a73e8; font-weight: 700; margin: 0 0 14px; }
.ajtel-abuse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }

.ajtel-raw-toggle { display: block; width: 100%; padding: 14px 28px; background: none; border: none; border-top: 1px solid rgba(26,115,232,0.1); color: #1a73e8; font-weight: 600; font-size: 0.9em; cursor: pointer; text-align: left; transition: background 0.2s; }
.ajtel-raw-toggle:hover { background: rgba(26,115,232,0.04); }
.ajtel-raw-json { background: #f8f9ff; padding: 16px 22px; font-family: monospace; font-size: 0.76em; color: #555; overflow-x: auto; max-height: 280px; overflow-y: auto; display: none; border-top: 1px solid rgba(26,115,232,0.08); }

.ajtel-whois-disclaimer {
  text-align: center; margin-top: 40px; padding: 30px 40px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  font-size: 0.9em; color: #666; line-height: 1.6;
}

@media (max-width: 640px) {
  .ajtel-info-grid { grid-template-columns: 1fr; }
  .ajtel-info-sec:nth-child(odd) { border-right: none; }
  .ajtel-whois-title { font-size: 1.9em; }
  .ajtel-whois-search { flex-direction: column; border-radius: 16px; padding: 12px; }
  .ajtel-whois-search button { border-radius: 10px; }
  .ajtel-whois-card-domain { font-size: 1.3em; }
}

.ajtel-rdap-source{padding:10px 28px;font-size:0.76em;color:#bbb;border-top:1px solid rgba(26,115,232,0.08);}
.ajtel-rdap-source span{color:#1a73e8;font-weight:600;}

/* Config notice */
.ajtel-whois-config-msg {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 40px; text-align: center;
}
.ajtel-config-icon { font-size: 3em; margin-bottom: 16px; }
.ajtel-whois-config-msg p { color: #555; font-size: 1em; line-height: 1.7; }
.ajtel-whois-config-msg strong { color: #1a73e8; }

/* Source badge */
.ajtel-rdap-source { padding: 10px 28px; font-size: 0.76em; color: #bbb; border-top: 1px solid rgba(26,115,232,0.08); }
.ajtel-rdap-source span { color: #1a73e8; font-weight: 600; }

/* Dominio disponible */
.ajtel-whois-available {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(52,168,83,0.3);
  padding: 50px 40px; text-align: center;
  animation: awFade 0.4s ease;
}
.ajtel-available-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg,#1a73e8,#34a853);
  color: white; font-size: 2.2em; line-height: 70px;
  margin: 0 auto 20px; font-weight: 700;
}
.ajtel-whois-available h2 { color: #1a73e8; font-size: 1.8em; margin-bottom: 10px; }
.ajtel-whois-available p  { color: #666; font-size: 1.05em; }
.ajtel-whois-available strong { color: #34a853; }
/* Placeholder para boton de compra — se activa en el futuro */
.ajtel-buy-placeholder { margin-top: 24px; min-height: 10px; }

/* Nota datos parciales */
.ajtel-partial-note {
  margin: 0 28px 20px;
  padding: 12px 16px;
  background: rgba(26,115,232,0.06);
  border-left: 3px solid #1a73e8;
  border-radius: 0 8px 8px 0;
  font-size: 0.85em;
  color: #555;
  line-height: 1.5;
}
