/* Pestañas del panel de cata — paridad referencias */

.st-box {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121217;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.st-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  scrollbar-width: thin;
}

.st-tab {
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-tab.active {
  color: #e9d5ff;
  border-bottom-color: #8a63ff;
  box-shadow: 0 4px 16px rgba(138, 99, 255, 0.35);
}

.st-body {
  padding: 16px;
  min-height: 320px;
  overflow-x: auto;
  transition: opacity 0.2s ease;
}

.st-body--swap { opacity: 0; }
.st-body--swap-in { opacity: 1; }

/* Iconos dentro de pestañas */
.st-box svg { flex-shrink: 0; }
.st-foot-icon svg, .st-btn-save svg, .st-btn-nav svg { display: block; }
.st-meta-ico svg, .st-nc-ico svg, .st-block-ico svg { display: block; }

.st-panel { display: grid; gap: 16px; }
.st-purple { color: #a78bfa; font-style: normal; }
.st-muted { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
.st-link { border: none; background: none; color: #a78bfa; font-size: 12px; cursor: pointer; padding: 8px 0 0; }
.st-block-title { font-size: 13px; margin: 0 0 10px; color: var(--text-secondary); }

/* —— Dots —— */
.st-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); display: inline-block;
}
.st-dot.on { background: #8a63ff; box-shadow: 0 0 6px rgba(138, 99, 255, 0.55); }
.st-dot-sm { width: 5px; height: 5px; }
.st-nc-dots, .st-dots-10 { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }

/* —— NOTA DE CATA —— */
.st-nc { grid-template-columns: minmax(0, 1fr) 260px; }
.st-nc-main { border-right: 1px solid rgba(255, 255, 255, 0.06); padding-right: 16px; }
.st-nc-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: start;
}
.st-nc-label { display: flex; flex-direction: column; gap: 6px; }
.st-nc-label strong { font-size: 10px; letter-spacing: 0.08em; color: var(--text-muted); }
.st-nc-ico { width: 28px; height: 28px; color: rgba(255, 255, 255, 0.7); }
.st-nc-ico svg { width: 18px; height: 18px; }
.st-nc-body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.st-tasting-field {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}
.st-tasting-field:focus {
  outline: none;
  border-color: rgba(138, 99, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(138, 99, 255, 0.12);
}
.st-tasting-conclusion { min-height: 96px; padding-bottom: 28px; }
.st-nc-subs { margin-top: 10px; display: grid; gap: 6px; }
.st-nc-sub { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.st-nc-conclusion-row { grid-template-columns: 100px minmax(0, 1fr); }
.st-nc-conclusion-box {
  padding: 14px; border-radius: 10px;
  border: 1px solid rgba(138, 99, 255, 0.35);
  background: rgba(138, 99, 255, 0.08);
  position: relative;
}
.st-nc-conclusion-box p { margin: 0; font-size: 13px; line-height: 1.5; }
.st-nc-chars { position: absolute; bottom: 8px; right: 12px; font-size: 11px; color: #a78bfa; }

.st-nc-aside { display: flex; flex-direction: column; gap: 14px; padding-left: 4px; }
.st-nc-wine-head { display: flex; gap: 12px; align-items: flex-start; }
.st-nc-bottle { width: 48px; height: 72px; object-fit: contain; }
.st-nc-wine-head strong { display: block; font-size: 14px; }
.st-nc-wine-head small { display: block; font-size: 11px; color: var(--text-muted); }
.st-nc-meta { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-nc-meta li { display: flex; gap: 10px; align-items: flex-start; }
.st-nc-meta em { display: block; font-size: 9px; letter-spacing: 0.06em; color: var(--text-muted); font-style: normal; }
.st-nc-meta strong { font-size: 12px; font-weight: 500; }
.st-meta-ico { width: 28px; height: 28px; flex-shrink: 0; color: #8a63ff; display: flex; align-items: center; justify-content: center; }
.st-meta-ico svg { width: 16px; height: 16px; }

.st-nc-score-box {
  padding: 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.st-nc-score-box h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); }
.st-nc-score-inner { display: flex; gap: 12px; align-items: center; }
.st-score-list { list-style: none; flex: 1; display: grid; gap: 6px; }
.st-score-list li { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

.st-gauge-sm-ring {
  width: 72px; height: 72px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, #f59e0b, #8b5cf6, #3b82f6, #f59e0b);
  box-shadow: 0 0 16px rgba(138, 99, 255, 0.3);
}
.st-gauge-sm-inner {
  width: 100%; height: 100%; border-radius: 50%; background: #121217;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.st-gauge-sm-inner span { font-size: 22px; font-weight: 700; color: #c9a86a; line-height: 1; }
.st-gauge-sm-inner small { font-size: 10px; color: var(--text-muted); }

/* —— Footer común —— */
.st-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}
.st-footer-left { display: flex; gap: 8px; }
.st-foot-icon {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03); color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-foot-icon svg { width: 16px; height: 16px; }
.st-btn-save {
  justify-self: center;
  padding: 10px 32px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff;
  font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 15px rgba(138, 99, 255, 0.4);
  min-width: 200px; justify-content: center;
}
.st-btn-save svg { width: 16px; height: 16px; }
.st-footer-nav { display: flex; gap: 8px; }
.st-btn-nav {
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03); color: var(--text-secondary);
  font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.st-btn-nav svg { width: 14px; height: 14px; }
.st-btn-nav-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border-color: transparent;
  box-shadow: 0 0 12px rgba(138, 99, 255, 0.35);
}

/* —— MARIDAJES —— */
.st-mar { grid-template-columns: minmax(0, 1fr) 240px; }
.st-block { margin-bottom: 16px; }
.st-block-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.st-block-head h3 { margin: 0; font-size: 14px; }
.st-block-head p { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
.st-block-ico { color: #8a63ff; width: 24px; }
.st-block-ico svg { width: 20px; height: 20px; }
.st-mar-carousel-wrap { display: flex; align-items: center; gap: 8px; }
.st-mar-carousel { display: flex; gap: 12px; overflow-x: auto; flex: 1; padding-bottom: 4px; }
.st-mar-card {
  flex: 0 0 180px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02);
}
.st-mar-card-img { position: relative; height: 110px; }
.st-mar-card-img img { width: 100%; height: 100%; object-fit: cover; }
.st-mar-pct {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(138, 99, 255, 0.85); color: #fff;
}
.st-mar-card strong { display: block; padding: 8px 10px 0; font-size: 12px; }
.st-mar-card p { padding: 4px 10px; margin: 0; font-size: 11px; color: var(--text-muted); }
.st-mar-tags { padding: 0 10px 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.st-tag { font-size: 9px; padding: 3px 8px; border-radius: 999px; }
.st-tag--red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.st-tag--purple { background: rgba(138, 99, 255, 0.2); color: #c4b5fd; }
.st-tag--gold { background: rgba(201, 168, 106, 0.2); color: #c9a86a; }
.st-mar-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.35);
  color: #fff; cursor: pointer; font-size: 18px;
}

.st-block-head--actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.st-btn-edit-mar {
  border: 1px solid rgba(138, 99, 255, 0.45);
  background: rgba(138, 99, 255, 0.12);
  color: #c4b5fd;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-btn-edit-mar:hover {
  background: rgba(138, 99, 255, 0.22);
  border-color: rgba(138, 99, 255, 0.65);
}

.st-mar--editing .st-mar-carousel { align-items: stretch; }

.st-mar-card--edit {
  position: relative;
  min-width: 180px;
  padding-bottom: 10px;
}

.st-mar-tip--edit {
  position: relative;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(138, 99, 255, 0.25);
  background: rgba(138, 99, 255, 0.06);
}

.st-mar-field {
  width: 100%;
  box-sizing: border-box;
  margin: 0 10px 8px;
  width: calc(100% - 20px);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.st-mar-field:focus {
  outline: none;
  border-color: rgba(138, 99, 255, 0.45);
}

.st-mar-field--title { font-weight: 600; margin-top: 8px; }
.st-mar-field--desc { min-height: 52px; }
.st-mar-field--pct {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 52px;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(138, 99, 255, 0.35);
}

.st-mar-field--note { margin: 10px 0 0; width: 100%; min-height: 56px; }

.st-mar-edit-label {
  display: block;
  margin: 0 10px 4px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.st-mar-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.st-mar-add {
  flex-shrink: 0;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(138, 99, 255, 0.45);
  background: rgba(138, 99, 255, 0.08);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.st-mar-add--tips { margin-top: 10px; width: 100%; }

.st-mar-empty {
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.st-mar-tips--edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.st-intensity-bar--edit .st-intensity-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-intensity-bar--edit .st-intensity-item.on {
  border-color: rgba(138, 99, 255, 0.55);
  background: rgba(138, 99, 255, 0.2);
  color: #e9d5ff;
}

.st-mar-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-mar-tip {
  padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}
.st-mar-tip em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-mar-tip strong { display: block; font-size: 14px; margin: 4px 0; }
.st-mar-tip p { margin: 0; font-size: 10px; color: var(--text-muted); }
.st-intensity-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; position: relative; margin-bottom: 4px;
}
.st-intensity-bar::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 50%;
  height: 2px; background: rgba(138, 99, 255, 0.35); z-index: 0;
}
.st-intensity-item { font-size: 11px; color: var(--text-muted); z-index: 1; background: #121217; padding: 0 4px; }
.st-intensity-item.on { color: #a78bfa; font-weight: 600; }
.st-mar-aside { display: flex; flex-direction: column; gap: 12px; }
.st-widget {
  padding: 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.2);
}
.st-widget h4 { margin: 0 0 10px; font-size: 12px; color: var(--text-secondary); }
.st-profile-row { display: flex; gap: 10px; align-items: center; }
.st-profile-dots { list-style: none; flex: 1; display: grid; gap: 5px; font-size: 11px; }
.st-profile-dots li { display: flex; justify-content: space-between; align-items: center; }
.st-kv { list-style: none; display: grid; gap: 8px; font-size: 12px; }
.st-kv li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; }
.st-check-list, .st-x-list { list-style: none; display: grid; gap: 8px; font-size: 12px; }
.st-check { color: #8a63ff; width: 18px; display: inline-flex; }
.st-check svg { width: 14px; height: 14px; }
.st-x { color: #ef4444; width: 18px; display: inline-flex; }
.st-x svg { width: 14px; height: 14px; }
.st-widget-warn h4 { color: #fca5a5; }

/* —— INFORMACIÓN —— */
.st-info { grid-template-columns: minmax(0, 1fr) 280px; }
.st-card {
  padding: 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
}
.st-card-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.st-card-head h3 { margin: 0; font-size: 14px; }
.st-card-head p { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
.st-info-gen { display: grid; grid-template-columns: 1fr 140px; gap: 16px; }
.st-dl-icons { display: grid; gap: 8px; }
.st-dl-icons div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; font-size: 12px; }
.st-dl-icons dt { color: var(--text-muted); }
.st-info-bottle { text-align: center; }
.st-info-bottle img { max-height: 200px; object-fit: contain; }
.st-btn-outline {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(138, 99, 255, 0.35); background: transparent;
  color: #a78bfa; font-size: 11px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.st-btn-outline svg { width: 14px; height: 14px; }
.st-btn-full { width: 100%; justify-content: center; margin-top: 10px; }
.st-info-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-card-mini h4 { margin: 0; font-size: 12px; }
.st-card-mini header { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.st-mini-row { margin-bottom: 6px; }
.st-mini-row em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-mini-row strong { font-size: 12px; }
.st-style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.st-style-grid div { padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); font-size: 11px; }
.st-style-grid em { display: block; color: var(--text-muted); font-style: normal; }
.st-analytic { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; }
.st-awards { list-style: none; display: grid; gap: 8px; }
.st-awards li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.st-medal { width: 14px; height: 14px; border-radius: 50%; }
.st-medal--gold { background: #c9a86a; }
.st-medal--silver { background: #c0c0c0; }
.st-medal--bronze { background: #cd7f32; }

/* —— LUGAR —— */
.st-body--lugar {
  padding: 12px 14px 16px;
  overflow: visible;
}

.st-lugar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.st-card-ubic { grid-column: 1 / 3; }
.st-card-photo { grid-column: 3; min-height: 220px; }

.st-ubic-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 52%);
  gap: 14px;
  align-items: stretch;
}

.st-ubic-data { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.st-ubic-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.st-ubic-row:last-child { border-bottom: none; }
.st-ubic-row em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-ubic-row strong { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-top: 2px; }

/* Mapa satelital La Rioja */
.st-rioja-map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a2e24;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.st-rioja-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.72);
}

.st-rioja-map-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 35% 40%, rgba(58, 92, 68, 0.9), transparent 70%),
    radial-gradient(ellipse 70% 50% at 70% 55%, rgba(74, 62, 48, 0.85), transparent 65%),
    linear-gradient(145deg, #1e3328 0%, #2a3d32 45%, #3d3428 100%);
  z-index: 0;
}

.st-rioja-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.st-rioja-zone {
  fill: rgba(138, 99, 255, 0.32);
  stroke: rgba(167, 139, 250, 0.75);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(138, 99, 255, 0.45));
}

.st-rioja-pin-glow { fill: rgba(138, 99, 255, 0.25); }
.st-rioja-pin { fill: #8a63ff; stroke: #fff; stroke-width: 1.5; }
.st-rioja-pin-stem { fill: none; stroke: #8a63ff; stroke-width: 2; stroke-linecap: round; }

.st-map-lbl {
  position: absolute;
  z-index: 3;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  font-weight: 500;
}

.st-map-lbl--pv { top: 12px; left: 14px; }
.st-map-lbl--nav { top: 42%; right: 12px; }
.st-map-lbl--rio { bottom: 28%; left: 38%; color: #e9d5ff; font-weight: 600; }

.st-map-compass {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  pointer-events: none;
}

.st-map-compass em { font-style: normal; font-weight: 700; }

.st-card-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.st-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.st-photo-cap {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.62);
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  z-index: 1;
}

.st-card-text {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.st-clima-table { display: flex; flex-direction: column; gap: 0; }
.st-clima-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.st-clima-row span { color: var(--text-muted); flex-shrink: 0; }
.st-clima-row strong { color: var(--text-secondary); font-weight: 500; text-align: right; }

.st-alt-chart { margin-top: 4px; }
.st-alt-svg { width: 100%; height: 100px; display: block; }

.st-soil-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: space-between;
}

.st-soil-item { text-align: center; flex: 1; min-width: 0; }
.st-soil-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 6px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.st-soil-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-soil-item em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-soil-item strong { display: block; font-size: 11px; margin-top: 2px; color: var(--text-secondary); }

.st-infl-list { display: flex; flex-direction: column; gap: 2px; }
.st-infl-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.st-infl-row:last-child { border-bottom: none; }
.st-infl-row em { color: var(--text-muted); font-style: normal; font-size: 10px; white-space: nowrap; }

.st-high-list { display: flex; flex-direction: column; gap: 4px; }
.st-highlight {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: start;
}

.st-highlight:last-child { border-bottom: none; }
.st-high-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(138, 99, 255, 0.15);
  border: 1px solid rgba(138, 99, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}

.st-high-ico svg { width: 15px; height: 15px; }
.st-highlight strong { display: block; font-size: 12px; margin-bottom: 3px; }
.st-highlight p { margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.45; }

.st-kv-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.st-kv-row span { color: var(--text-muted); }

/* —— ETIQUETA —— */
.st-etiq-view-toggle { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.st-etiq-view-toggle button {
  padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3); color: var(--text-muted); font-size: 12px; cursor: pointer;
}
.st-etiq-view-toggle button.on { background: rgba(138, 99, 255, 0.25); color: #fff; border-color: rgba(138, 99, 255, 0.4); }
.st-etiq-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 14px; }
.st-etiq-left h3, .st-etiq-center h3, .st-etiq-right h3 { font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 10px; }
.st-etiq-fields { list-style: none; display: grid; gap: 4px; }
.st-etiq-fields button {
  width: 100%; display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center;
  padding: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2); color: inherit; text-align: left; cursor: pointer;
}
.st-etiq-fields em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-etiq-fields strong { font-size: 12px; }
.st-chev { color: var(--text-muted); }
.st-label-mock {
  padding: 24px; border-radius: 12px; background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: center;
}
.st-label-inner {
  width: 200px; padding: 20px 16px; background: #e8dcc8; color: #2a1810;
  border-radius: 4px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.st-label-crest { font-size: 24px; margin-bottom: 8px; }
.st-label-inner h4 { margin: 0; font-family: Georgia, serif; font-size: 14px; }
.st-label-inner p { margin: 4px 0; font-family: Georgia, serif; font-size: 12px; color: #5c4030; }
.st-label-inner small { display: block; font-size: 9px; margin-top: 4px; }
.st-zoom-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; font-size: 12px; }
.st-zoom-bar button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: #fff; cursor: pointer; }
.st-sub-title { font-size: 10px; letter-spacing: 0.06em; color: var(--text-muted); margin: 12px 0 8px; }
.st-thumb-row { display: flex; gap: 8px; }
.st-thumb { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: transparent; color: inherit; cursor: pointer; text-align: center; }
.st-thumb.on { border-color: #8a63ff; box-shadow: 0 0 10px rgba(138, 99, 255, 0.3); }
.st-thumb img { width: 100%; height: 48px; object-fit: contain; }
.st-thumb span { display: block; font-size: 9px; margin-top: 4px; color: var(--text-muted); }
.st-style-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.st-style-pick { padding: 8px 4px; font-size: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.2); color: var(--text-muted); cursor: pointer; }
.st-style-pick.on { border-color: #8a63ff; color: #fff; background: rgba(138, 99, 255, 0.15); }
.st-color-row { margin-bottom: 12px; }
.st-color-row span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.st-swatches { display: flex; gap: 8px; }
.st-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.st-swatch.on { border-color: #8a63ff; box-shadow: 0 0 8px rgba(138, 99, 255, 0.4); }
.st-select-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 11px; }
.st-select-row select { padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: inherit; }
.st-vis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.st-vis-item { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.st-vis-item svg { width: 12px; height: 12px; color: #8a63ff; }

/* —— HISTORIAL —— */
.st-box--hist { overflow: visible; }
.st-body--hist {
  padding: 12px 14px 16px;
  min-height: 480px;
  overflow: visible;
}

.st-hist {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 232px;
  gap: 14px;
  align-items: start;
}

.st-hist-card {
  margin-bottom: 0;
  padding: 12px;
}

.st-section-title {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.st-search-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.st-hist-left,
.st-hist-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.st-hist-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.st-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 8px;
}

.st-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 11px;
  outline: none;
  min-width: 0;
}

.st-search input::placeholder { color: rgba(255, 255, 255, 0.28); }
.st-search-ico { color: var(--text-muted); display: inline-flex; flex-shrink: 0; }
.st-search-ico svg { width: 14px; height: 14px; }

.st-filter-list { display: flex; flex-direction: column; }
.st-filter-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.st-filter-row:hover { background: rgba(138, 99, 255, 0.06); }
.st-filter-row em { display: block; font-size: 10px; color: var(--text-muted); font-style: normal; }
.st-filter-row strong { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.st-chev { color: var(--text-muted); display: inline-flex; }
.st-chev svg { width: 12px; height: 12px; }

.st-action-list { display: flex; flex-direction: column; }
.st-action-row {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.st-action-row:hover { background: rgba(138, 99, 255, 0.06); }
.st-action-row strong { display: block; font-size: 11px; font-weight: 500; }
.st-action-row small { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.st-hist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.st-sort {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.st-sort strong { color: var(--text-secondary); font-weight: 500; }

.st-hist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.st-hist-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto 20px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.st-hist-item:hover {
  border-color: rgba(138, 99, 255, 0.22);
  background: rgba(138, 99, 255, 0.05);
}

.st-hist-thumb {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.st-hist-thumb img { width: 100%; height: 100%; object-fit: contain; }
.st-hist-info strong { display: block; font-size: 12px; line-height: 1.3; margin-bottom: 2px; }
.st-hist-info em { display: block; font-size: 11px; margin-bottom: 3px; }
.st-hist-info small {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.st-inline-ico { display: inline-flex; color: #8a63ff; flex-shrink: 0; }
.st-inline-ico svg { width: 11px; height: 11px; }

.st-hist-date {
  font-size: 10px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
  white-space: nowrap;
}

.st-hist-date span { display: flex; align-items: center; gap: 4px; }
.st-hist-score { text-align: right; min-width: 72px; }
.st-star-ico { color: #c9a86a; display: inline-flex; margin-bottom: 2px; }
.st-star-ico svg { width: 12px; height: 12px; }
.st-hist-score strong { display: block; font-size: 13px; color: #e9d5ff; line-height: 1.2; }

.st-status {
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 2px;
  color: var(--text-muted);
}

.st-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.st-status--green::before { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
.st-status--purple::before { background: #a78bfa; box-shadow: 0 0 6px rgba(167, 139, 250, 0.45); }
.st-status--blue::before { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, 0.45); }

.st-kebab {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.st-hist-empty {
  list-style: none;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.st-page-single {
  font-size: 11px;
  color: var(--text-muted);
}

.st-hist-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.st-pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.st-page-ellipsis { padding: 0 2px; font-size: 11px; color: var(--text-muted); }

.st-pagination button {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-pagination button:hover { border-color: rgba(138, 99, 255, 0.35); color: #fff; }
.st-pagination button.on {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 0 10px rgba(138, 99, 255, 0.35);
}

.st-period-range {
  margin: 0 0 10px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-period-row { display: flex; gap: 10px; align-items: center; }

.st-donut {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 5px;
  background: conic-gradient(#8a63ff calc(var(--st-donut-pct, 70) * 1%), rgba(138, 99, 255, 0.15) 0);
  box-shadow: 0 0 18px rgba(138, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-donut-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #121217;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.st-donut-inner span { font-size: 22px; font-weight: 700; color: #c9a86a; line-height: 1; }
.st-donut-inner small { font-size: 9px; color: var(--text-muted); margin-top: 2px; }

.st-period-stats { list-style: none; flex: 1; display: grid; gap: 8px; font-size: 10px; min-width: 0; }
.st-period-stats li { display: flex; gap: 8px; align-items: flex-start; }
.st-period-stats em { display: block; color: var(--text-muted); font-style: normal; font-size: 9px; }
.st-period-stats strong { display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary); }

.st-dist-list { margin-bottom: 4px; }
.st-bar-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 10px; }
.st-bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.st-bar-fill { height: 100%; border-radius: 999px; }
.st-bar--green { background: #4ade80; }
.st-bar--purple { background: #8a63ff; }
.st-bar--violet { background: #a78bfa; }
.st-bar--orange { background: #fb923c; }
.st-bar--red { background: #ef4444; }
.st-bar-row em { font-style: normal; color: var(--text-muted); font-size: 9px; white-space: nowrap; }

.st-recent-list { display: flex; flex-direction: column; }
.st-recent-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.st-recent-row:last-child { border-bottom: none; }
.st-recent-row strong { display: block; font-size: 11px; line-height: 1.3; }
.st-recent-row small { display: block; color: var(--text-muted); margin-top: 2px; font-size: 9px; }
.st-score-pill {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(138, 99, 255, 0.22);
  color: #e9d5ff;
  font-weight: 600;
  font-size: 10px;
  white-space: nowrap;
}

.st-hist .st-meta-ico { width: 24px; height: 24px; }
.st-hist .st-meta-ico svg { width: 14px; height: 14px; }

/* Ocultar layout antiguo de cata */
.sum-tasting .sum-tasting-layout,
.sum-tasting .sum-tabs { display: none !important; }

/* Footer adaptable */
@media (max-width: 900px) {
  .st-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .st-footer-left { order: 1; }
  .st-btn-save { order: 2; width: 100%; min-width: 0; }
  .st-footer-nav { order: 3; justify-content: center; width: 100%; }
}

@media (max-width: 1280px) {
  .st-hist { grid-template-columns: 200px minmax(0, 1fr); }
  .st-hist-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .st-etiq-body { grid-template-columns: 200px minmax(0, 1fr); }
  .st-etiq-right { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .st-nc, .st-mar, .st-info, .st-hist, .st-etiq-body { grid-template-columns: 1fr; }
  .st-lugar-grid { grid-template-columns: 1fr 1fr; }
  .st-card-ubic { grid-column: 1 / -1; }
  .st-card-photo { grid-column: 1 / -1; min-height: 180px; }
  .st-ubic-body { grid-template-columns: 1fr; }
  .st-rioja-map { min-height: 180px; }
  .st-nc-main { border-right: none; padding-right: 0; }
  .st-mar-tips, .st-info-mini-grid, .st-lugar-grid { grid-template-columns: repeat(2, 1fr); }
  .st-hist-right { grid-template-columns: 1fr; }
  .st-etiq-right { grid-column: auto; }
}
