/* obtener.css — panel de vinculación de subbot (combina con base.css) */

.panel-card { max-width: 460px; }

form { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 10px;
}
label:first-of-type { margin-top: 0; }

/* ── Selector de país ── */
.country-select { position: relative; }

.country-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.country-trigger::before { display: none; }
.country-trigger:hover { border-color: var(--violet); background: rgba(255,255,255,0.06); box-shadow: none; transform: none; }
#country-name { flex: 1; }
#country-dial { color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; }
.chevron { color: var(--ink-soft); font-size: 11px; }

.country-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
  padding: 10px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}
/* El atributo [hidden] tiene menor prioridad que .country-panel{display:flex}
   de arriba, así que sin esto el panel queda SIEMPRE visible y empuja
   el resto del formulario hacia abajo. Esta regla lo fuerza a ocultarse. */
.country-panel[hidden] {
  display: none !important;
}

.country-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 8px;
}
.country-search:focus { outline: none; border-color: var(--rose); }

.country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
}
.country-option:hover { background: rgba(255, 143, 196, 0.08); }
.country-option-name { flex: 1; color: var(--ink); }
.country-option-dial { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12.5px; }
.country-empty { padding: 14px; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* ── Fila de número ── */
.number-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.number-row:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 143, 196, 0.18); }
.number-dial {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border);
}
.number-row input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 13px 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.number-row input:focus { outline: none; }

button#btn-solicitar { margin-top: 18px; }

.msg {
  margin-top: 14px;
  font-size: 13.5px;
  text-align: center;
  line-height: 1.5;
  display: none;
}
.msg.error { display: block; color: var(--warn); }
.msg.info { display: block; color: var(--ink-soft); }

.result { margin-top: 24px; display: none; }
.result.visible { display: block; animation: rise-in 0.4s ease both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .result.visible { animation: none; } }

.code-box {
  background: rgba(52, 211, 153, 0.06);
  border: 1.5px dashed var(--moss);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  animation: box-breathe 1.4s ease-in-out infinite;
}
.result:has(.pulse.ok) .code-box { animation: none; border-style: solid; }
@media (prefers-reduced-motion: reduce) { .code-box { animation: none; } }
@keyframes box-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.12); }
}

.code-box .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
  margin: 0 0 8px;
}
.code-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 7vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  word-break: break-all;
}
.copy-btn {
  margin-top: 14px;
  padding: 8px 16px;
  font-size: 12.5px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  box-shadow: none;
}
.copy-btn::before { display: none; }
.copy-btn:hover { border-color: var(--moss); color: var(--moss); transform: none; box-shadow: none; }
.code-hint { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

.status-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px 1px var(--rose);
  animation: heartbeat 1.4s ease-in-out infinite;
}
.pulse.ok { background: var(--ok); box-shadow: 0 0 10px 1px var(--ok); animation: none; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.35); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.teaser {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.teaser a {
  flex: 1;
  min-width: 150px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.teaser a:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  box-shadow: 0 14px 30px -16px rgba(139, 107, 255, 0.35);
}
.teaser strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

@media (max-width: 380px) {
  .teaser a { min-width: 130px; }
}

