/*
 * calculator.css — UI compacta tipo woolo.es
 *
 * Layout: fila por opción (label | pills), dos columnas (config | precio).
 * Sin precios en pills. Diseño muy compacto.
 */

/* ── Reset de ámbito ───────────────────────────────────────────────────────── */
.telecom-calc-wrapper *,
.telecom-calc-wrapper *::before,
.telecom-calc-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.telecom-calc-wrapper {
  font-family: var(--tc-font, inherit);
  color: var(--tc-text, #1a1a1a);
}

/* ── Layout: configurador | precio ────────────────────────────────────────── */
.tc-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 780px) {
  .tc-layout {
    flex-direction: column;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   CONFIGURADOR (columna izquierda)
════════════════════════════════════════════════════════════════════════════ */
.tc-configurator {
  flex: 1;
  background: var(--tc-card-bg, #fdf8e1);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Divider entre grupos de opciones ─────────────────────────────────────── */
.tc-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 6px 0;
}

/* ── Fila: label + pills ──────────────────────────────────────────────────── */
.tc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.tc-row-label {
  /* Tipografía grande, igual que woolo.es */
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 120px;
  color: var(--tc-text, #1a1a1a);
  line-height: 1;
}

.tc-row-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Pill button ──────────────────────────────────────────────────────────── */
.tc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--tc-accent, #f5c518);
  color: var(--tc-text, #1a1a1a);
  font-family: var(--tc-font, inherit);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
  min-width: 44px;
}

.tc-pill:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

/* Estado activo/seleccionado: oscuro */
.tc-pill--active {
  background: var(--tc-primary, #1a1a1a);
  color: #fff;
}

.tc-pill--active:hover {
  filter: brightness(1.2);
}

/* Accesibilidad */
.tc-pill:focus-visible {
  outline: 2px solid var(--tc-primary, #1a1a1a);
  outline-offset: 2px;
}

/* ── Responsive: label más pequeño en móvil ────────────────────────────────── */
@media (max-width: 520px) {
  .tc-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tc-row-label {
    font-size: 1.2rem;
    min-width: 90px;
  }

  .tc-configurator {
    padding: 20px 18px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   PANEL DE PRECIO (columna derecha)
════════════════════════════════════════════════════════════════════════════ */
.tc-price-panel {
  width: 240px;
  flex-shrink: 0;
  background: var(--tc-accent, #f5c518);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 24px;
}

@media (max-width: 780px) {
  .tc-price-panel {
    width: 100%;
    position: static;
  }
}

/* ── Precio estilo woolo: entero grande + decimales elevados ───────────────── */
.tc-price-display {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.tc-price-int {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--tc-text, #1a1a1a);
  letter-spacing: -0.04em;
  line-height: 1;
}

.tc-price-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}

.tc-price-dec {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--tc-text, #1a1a1a);
  line-height: 1;
}

.tc-price-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tc-text, #1a1a1a);
  opacity: 0.75;
  white-space: nowrap;
  margin-top: 4px;
}

/* ── Textos descriptivos ─────────────────────────────────────────────────── */
.tc-price-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tc-price-summary p {
  font-size: 0.78rem;
  color: var(--tc-text, #1a1a1a);
  opacity: 0.85;
  text-align: center;
  line-height: 1.4;
}

/* ── Botones CTA ─────────────────────────────────────────────────────────── */
.tc-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: var(--tc-font, inherit);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  border: none;
}

.tc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.9);
}

.tc-btn--primary {
  background: var(--tc-primary, #1a1a1a);
  color: #fff !important;
}

.tc-btn--secondary {
  background: rgba(0, 0, 0, 0.12);
  color: var(--tc-text, #1a1a1a) !important;
}
