/**
 * Estilos canónicos para Selector de bombillas LED y conversor
 * fijate.com/tools/selector-bombillas-led
 */

:root {
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta en tema claro */
  --led-bg: #f8fafc;
  --led-bg-surface: #ffffff;
  --led-bg-muted: #f1f5f9;
  --led-border: #e2e8f0;
  --led-border-focus: #3b82f6;
  --led-text: #0f172a;
  --led-text-muted: #64748b;
  --led-text-soft: #94a3b8;

  --led-primary: #d97706; /* Ambar cálido iluminación */
  --led-primary-hover: #b45309;
  --led-primary-light: #fef3c7;
  --led-primary-border: #fde68a;

  --led-accent: #0284c7;
  --led-accent-light: #e0f2fe;

  --led-success: #16a34a;
  --led-success-light: #dcfce7;
  --led-warning: #ea580c;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Tema oscuro unificado */
[data-theme="dark"] {
  --led-bg: #0b0f17;
  --led-bg-surface: #151d2c;
  --led-bg-muted: #1e293b;
  --led-border: #334155;
  --led-border-focus: #60a5fa;
  --led-text: #f1f5f9;
  --led-text-muted: #94a3b8;
  --led-text-soft: #64748b;

  --led-primary: #f59e0b;
  --led-primary-hover: #fbbf24;
  --led-primary-light: rgba(245, 158, 11, 0.15);
  --led-primary-border: rgba(245, 158, 11, 0.35);

  --led-accent: #38bdf8;
  --led-accent-light: rgba(56, 189, 248, 0.15);

  --led-success: #22c55e;
  --led-success-light: rgba(34, 197, 94, 0.15);
  --led-warning: #f97316;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--led-bg);
  color: var(--led-text);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.hero-title,
.tab-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.mono,
code,
.kpi-value,
.spec-value,
.stat-num {
  font-family: var(--font-mono);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Layout canónico */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Tarjeta principal contenedora */
.card-main {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .card-main {
    padding: 2rem;
  }
}

/* Barra de bienvenida / Hero rápido */
.tool-hero-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--led-border);
}

.tool-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--led-text);
}

.tool-hero-desc {
  font-size: 0.95rem;
  color: var(--led-text-muted);
  margin: 0;
  max-width: 820px;
  line-height: 1.45;
}

/* Navegación por pestañas segmentadas */
.segmented-nav-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.segmented-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--led-bg-muted);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  min-width: max-content;
}

.segment-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--led-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 40px;
  white-space: nowrap;
}

.segment-tab-btn:hover {
  color: var(--led-text);
}

.segment-tab-btn.active {
  background: var(--led-bg-surface);
  color: var(--led-primary);
  box-shadow: var(--shadow-sm);
}

.segment-tab-btn svg {
  flex-shrink: 0;
}

/* Paneles de pestaña */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.22s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid de formulario y resultados en 2 columnas */
.tool-grid-2cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .tool-grid-2cols {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Paneles de sección */
.panel-box {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .panel-box {
    padding: 1.5rem;
  }
}

.panel-header {
  margin-bottom: 1.25rem;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--led-text);
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--led-text-muted);
  margin: 0;
}

/* Formularios y campos */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--led-text);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--led-text-soft);
  margin-top: 0.35rem;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 2.5rem 0 0.85rem;
  background-color: var(--led-bg-surface);
  color: var(--led-text);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.custom-select:focus {
  outline: none;
  border-color: var(--led-border-focus);
}

.custom-select option,
.custom-select optgroup {
  background-color: var(--led-bg-surface);
  color: var(--led-text);
}

.select-arrow-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--led-text-muted);
}

/* Controles sincronizados input + slider */
.range-sync-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-range {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  height: 6px;
  -webkit-appearance: none;
  background: var(--led-border);
  border-radius: 4px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--led-primary);
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sync-number-input {
  width: 80px;
  min-width: 80px;
  height: 40px;
  min-height: 40px;
  padding: 0 0.5rem;
  text-align: center;
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-sm);
  color: var(--led-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.sync-number-input:focus {
  outline: none;
  border-color: var(--led-border-focus);
}

/* Tarjetas de KPI */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--led-bg-muted);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.kpi-card.highlight {
  background: var(--led-primary-light);
  border-color: var(--led-primary-border);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--led-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.kpi-card.highlight .kpi-label {
  color: var(--led-primary);
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--led-text);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.kpi-card.highlight .kpi-value {
  color: var(--led-primary);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--led-text-soft);
}

/* Tarjeta de recomendación destacada */
.recommendation-card {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-primary-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.recommendation-icon {
  color: var(--led-primary);
  flex-shrink: 0;
}

.recommendation-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--led-text);
  margin: 0;
}

.recommendation-desc {
  font-size: 0.88rem;
  color: var(--led-text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.45;
}

.recommendation-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: var(--led-bg-muted);
  border: 1px solid var(--led-border);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--led-text);
}

/* Botón de acción principal */
.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--led-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.08s ease;
}

.btn-action-primary:hover {
  background: var(--led-primary-hover);
}

.btn-action-primary:active {
  transform: translateY(1px);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  min-height: 42px;
  padding: 0 1.15rem;
  background: transparent;
  color: var(--led-text);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-secondary:hover {
  background: var(--led-bg-muted);
  border-color: var(--led-border-focus);
}

/* Presets de potencia en botones */
.preset-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.btn-preset-power {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  background: var(--led-bg-muted);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--led-text);
  cursor: pointer;
  min-height: 38px;
  transition: all 0.15s ease;
}

.btn-preset-power:hover {
  border-color: var(--led-primary);
}

.btn-preset-power.active {
  background: var(--led-primary);
  border-color: var(--led-primary);
  color: #ffffff;
}

/* Tabla comparativa de tecnologías */
.tech-compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.tech-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tech-compare-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: var(--led-bg-muted);
  border-bottom: 2px solid var(--led-border);
  color: var(--led-text-muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.tech-compare-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--led-border);
  color: var(--led-text);
}

.tech-compare-table tr.highlight td {
  background: var(--led-primary-light);
  font-weight: 700;
}

/* Simulador visual de Kelvin */
.kelvin-sim-wrapper {
  background: #0b0f17;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.room-visual-stage {
  height: 240px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at 50% 30%, #151d2c 0%, #07090e 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.room-light-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.15s ease-out;
}

.lamp-graphic-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.room-ambient-furniture {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 1rem;
  z-index: 1;
}

.kelvin-readout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kelvin-figure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kelvin-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  transition: background-color 0.15s ease;
}

.kelvin-text-val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.kelvin-type-title {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
}

.kelvin-slider-track-wrap {
  margin-bottom: 1.25rem;
}

.slider-kelvin {
  width: 100%;
  height: 10px;
  border-radius: 6px;
  outline: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    #ff8a12 0%,    /* 2000K */
    #ffa947 18%,   /* 2700K */
    #ffd199 35%,   /* 3500K */
    #ffffff 55%,   /* 4500K */
    #d4ebff 75%,   /* 5500K */
    #a8d7ff 100%   /* 6500K */
  );
  cursor: pointer;
}

.slider-kelvin::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0f172a;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.kelvin-ticks-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.4rem;
  font-weight: 600;
}

.kelvin-presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-preset-kelvin {
  padding: 0.35rem 0.7rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: all 0.15s ease;
}

.btn-preset-kelvin:hover {
  background: #334155;
  color: #ffffff;
}

.btn-preset-kelvin.active {
  background: var(--led-primary);
  border-color: var(--led-primary);
  color: #ffffff;
}

/* Tarjetas de consejo Kelvin */
.kelvin-guidance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .kelvin-guidance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guidance-card {
  background: var(--led-bg-muted);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.guidance-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.guidance-title.safe {
  color: var(--led-success);
}

.guidance-title.warn {
  color: var(--led-warning);
}

.guidance-text {
  font-size: 0.85rem;
  color: var(--led-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Galería de casquillos */
.sockets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, min-width(120px, 1fr));
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .sockets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .sockets-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.socket-item-card {
  background: var(--led-bg-surface);
  border: 2px solid var(--led-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.socket-item-card:hover {
  border-color: var(--led-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.socket-item-card.active {
  border-color: var(--led-primary);
  background: var(--led-primary-light);
  box-shadow: var(--shadow-sm);
}

.socket-svg-icon {
  margin-bottom: 0.5rem;
  color: var(--led-text);
  transition: color 0.15s ease;
}

.socket-item-card.active .socket-svg-icon {
  color: var(--led-primary);
}

.socket-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: var(--led-text);
}

.socket-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--led-text-soft);
  margin-top: 0.2rem;
}

/* Ficha de detalle del casquillo */
.socket-detail-box {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.socket-detail-header {
  margin-bottom: 1.25rem;
}

.socket-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--led-primary-light);
  color: var(--led-primary);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.socket-detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--led-text);
}

.socket-detail-subtitle {
  font-size: 0.88rem;
  color: var(--led-text-muted);
  margin: 0;
}

.socket-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .socket-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-card {
  background: var(--led-bg-muted);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--led-text-soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--led-text);
  font-weight: 700;
}

.socket-advice-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--led-primary-light);
  border: 1px solid var(--led-primary-border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--led-text);
  line-height: 1.45;
}

.advice-icon {
  color: var(--led-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Ficha de compra ("Tu bombilla ideal") */
.summary-card {
  background: var(--led-bg-surface);
  border: 2px dashed var(--led-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--led-border);
  margin-bottom: 1.25rem;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--led-text);
}

.summary-badge {
  background: var(--led-primary);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .summary-list {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  background: var(--led-bg-muted);
  border-radius: var(--radius-sm);
}

.summary-item-label {
  font-size: 0.75rem;
  color: var(--led-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.summary-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--led-text);
}

.summary-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Modal accesible */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  position: relative;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--led-text);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--led-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  color: var(--led-text);
  background: var(--led-bg-muted);
}

/* Toast de notificación */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease-out;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

[data-theme="dark"] .toast-notification {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

.toast-notification.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Guía técnica y FAQ */
.seo-guide-section {
  background: var(--led-bg-surface);
  border: 1px solid var(--led-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .seo-guide-section {
    padding: 2.25rem;
  }
}

.seo-guide-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--led-text);
}

.seo-guide-text {
  font-size: 0.95rem;
  color: var(--led-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item-card {
  border: 1px solid var(--led-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--led-bg-muted);
}

.faq-question-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--led-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.faq-answer-body {
  padding: 0 1.25rem 1.15rem 1.25rem;
  font-size: 0.88rem;
  color: var(--led-text-muted);
  line-height: 1.55;
}

/* Impresión limpia de ficha de compra */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header,
  .fijate-footer,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .segmented-nav-wrapper,
  .btn-action-primary,
  .btn-action-secondary,
  .seo-guide-section,
  .tools-related-section,
  .toast-notification {
    display: none !important;
  }
  .card-main {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .summary-card {
    border: 2px solid #000000 !important;
  }
}
