/* =========================================================
PRECOCIDAD PAGE — diseño premium/glass (namespaced preco-*)
Inspirado en trayectoria, sin colisiones de clases
========================================================= */

/* Wrapper general */
.preco-page {
  padding: 14px 16px;
  background: transparent;
  min-height: auto;
}

/* =========================================================
Header superior
========================================================= */
.preco-head-wrap {
  margin-top: 6px;
  margin-bottom: 10px;
}

.preco-head-title {
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 1.45rem;
}

.preco-head-subtitle {
  margin-top: 2px;
  color: rgba(255,255,255,0.74);
  font-size: .95rem;
  font-weight: 600;
}

/* =========================================================
Contenedor grande (premium)
========================================================= */
.preco-main-card{
  margin-top: 2px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 140px at 20% 0%, rgba(255,255,255,0.06), transparent 60%),
    rgba(10, 12, 16, 0.92);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 12px;
}

/* =========================================================
Layout principal
========================================================= */
.preco-shell {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

/* Panel base */
.preco-panel {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 140px at 20% 0%, rgba(255,255,255,0.05), transparent 60%),
    rgba(10,12,16,0.92);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.50),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  backdrop-filter: blur(10px);
  overflow: hidden;
  min-width: 0;
}

.preco-panel-left {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

.preco-panel-right {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* =========================================================
Headers internos de panel
========================================================= */
.preco-panel-header {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preco-panel-header-title {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
}

.preco-panel-header-sub {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
Federaciones (columna izquierda)
========================================================= */
.preco-fed-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  min-height: 0;
}

.preco-fed-button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.92);
  padding: 9px 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;

  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.preco-fed-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.17);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.preco-fed-button.is-active {
  background:
    linear-gradient(180deg, rgba(0,231,255,0.10) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(0,231,255,0.38);
  box-shadow:
    0 12px 28px rgba(0,0,0,.28),
    0 0 0 1px rgba(0,231,255,.08) inset;
}

.preco-fed-flag {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  flex: 0 0 auto;
}

.preco-fed-label {
  min-width: 0;
  flex: 1 1 auto;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preco-fed-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: .9;
}

/* =========================================================
Header panel derecho + chips de edad
========================================================= */
.preco-right-header {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preco-right-title {
  color: rgba(255,255,255,0.93);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
}

.preco-right-sub {
  color: rgba(255,255,255,0.68);
  font-weight: 700;
  font-size: 12px;
}

.preco-age-strip {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 0 0;
}

.preco-age-chip {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 10px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  color: rgba(255,255,255,0.93);
  white-space: nowrap;
  font-weight: 800;
  font-size: 12px;

  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.preco-age-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.preco-age-chip.is-active {
  background:
    linear-gradient(90deg, rgba(34,211,238,0.14) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(34,211,238,0.42);
  box-shadow: 0 0 0 1px rgba(34,211,238,.08) inset;
}

.preco-age-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
}

/* =========================================================
Bloque resumen / cabecera de edad
========================================================= */
.preco-achievements-wrap {
  padding: 10px 14px 0 14px;
}

.preco-achievements-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(220px 80px at 25% 0%, rgba(255,255,255,0.05), transparent 60%),
    rgba(255,255,255,0.03);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  color: white;
  padding: 10px 12px;
}

/* variante con acento por edad */
.preco-achievements-card--age{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(340px 120px at 8% 0%, var(--preco-age-accent, rgba(34,211,238,.35)), transparent 70%),
    radial-gradient(220px 90px at 90% 100%, rgba(255,255,255,0.04), transparent 70%),
    rgba(255,255,255,0.03);
}

.preco-achievements-card--age::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02), transparent 35%, transparent 65%, rgba(255,255,255,0.015));
}

.preco-achievements-agehead{
  position: relative;
  z-index: 1;
}

.preco-achievements-ageleft{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.preco-achievements-ageicon{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  padding: 2px;
}

.preco-achievements-agetexts{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preco-achievements-age-title{
  color: rgba(255,255,255,0.96);
  font-weight: 950;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preco-achievements-text {
  opacity: .86;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
Contenido vacío (placeholder)
========================================================= */
.preco-explorer-wrap {
  padding: 10px 14px 14px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 260px);
  min-height: 0;
}

.preco-empty-box {
  padding: 16px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.85);
}

.preco-empty-title{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.94);
  margin-bottom: 4px;
}

.preco-empty-sub{
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  line-height: 1.35;
}

/* =========================================================
Header derecho con logo + nombre de federación
========================================================= */
.preco-right-fed-head{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.preco-right-fed-flag{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  display: block;
}

.preco-right-fed-name{
  color: rgba(255,255,255,.96);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
Responsive
========================================================= */
@media (max-width: 1100px) {
  .preco-shell {
    flex-wrap: wrap;
  }

  .preco-panel-left {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }

  .preco-panel-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .preco-fed-list {
    max-height: 280px;
  }

  .preco-explorer-wrap {
    max-height: none;
  }
}