/* =========================================
   COMPRESOR — estilos scopeados a .compresor-app
   ========================================= */

.compresor-app {
  color: var(--texto, #fff);
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Header interno */
.compresor-app .compresor-header {
  text-align: center;
  margin-bottom: 30px;
}

.compresor-app .compresor-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #2D7DFF 0%, #5BA0F5 20%, #A8CBF5 45%, #E8F0FB 70%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.compresor-app .compresor-sub {
  color: var(--muted, #A8B4C7);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Layout */
.compresor-app .compresor-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.compresor-app .compresor-sidebar {
  background: rgba(10, 21, 38, .7);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 100px;
}

.compresor-app .compresor-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compresor-app .compresor-group label {
  font-size: .95rem;
  color: #DCE4F0;
  font-weight: 500;
}

.compresor-app .compresor-group input[type="file"],
.compresor-app .compresor-group input[type="number"],
.compresor-app .compresor-group select {
  padding: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: .2s;
}

.compresor-app .compresor-group input:focus,
.compresor-app .compresor-group select:focus {
  border-color: #2D7DFF;
  background: rgba(45, 125, 255, .06);
}

.compresor-app .compresor-group input[type="range"] {
  width: 100%;
  accent-color: #2D7DFF;
  cursor: pointer;
}

.compresor-app .comp-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin: 4px 0;
}

/* Botones */
.compresor-app button {
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(45, 125, 255, .1);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.compresor-app button:hover:not(:disabled) {
  background: rgba(45, 125, 255, .25);
  border-color: #2D7DFF;
}

.compresor-app button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.compresor-app .comp-btn-primary {
  background: #2D7DFF;
  border-color: #2D7DFF;
  box-shadow: 0 8px 24px rgba(45, 125, 255, .35);
}

.compresor-app .comp-btn-primary:hover:not(:disabled) {
  background: #1F6FEB;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 125, 255, .45);
}

/* Info */
.compresor-app .comp-info {
  color: #A8B4C7;
  font-size: .9rem;
  text-align: center;
  line-height: 1.5;
  min-height: 20px;
}

/* Workspace */
.compresor-app .compresor-workspace {
  min-height: 300px;
}

.compresor-app .comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* Card resultado */
.compresor-app .comp-card {
  background: rgba(10, 21, 38, .7);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: .25s;
}

.compresor-app .comp-card:hover {
  border-color: rgba(45, 125, 255, .5);
  transform: translateY(-3px);
}

.compresor-app .comp-thumb {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(45deg, #1a2130 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(-45deg, #1a2130 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, #1a2130 75%) 0 0/16px 16px,
    linear-gradient(-45deg, transparent 75%, #1a2130 75%) 0 0/16px 16px,
    #0d1220;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compresor-app .comp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compresor-app .comp-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.compresor-app .comp-name {
  font-size: .9rem;
  color: #DCE4F0;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.3;
}

.compresor-app .comp-stats {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: #A8B4C7;
  gap: 10px;
}

.compresor-app .comp-stats b {
  color: #fff;
  font-weight: 600;
}

.compresor-app .comp-saving {
  font-size: .9rem;
  font-weight: 700;
  color: #25D366;
  text-align: center;
  padding: 6px;
  background: rgba(37, 211, 102, .1);
  border-radius: 8px;
}

.compresor-app .comp-saving.big {
  color: #A8CBF5;
  background: rgba(45, 125, 255, .12);
}

.compresor-app .comp-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.compresor-app .comp-actions button {
  flex: 1;
  padding: 10px;
  font-size: .9rem;
}

.compresor-app .comp-status {
  font-size: .85rem;
  color: #A8B4C7;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .compresor-app .compresor-layout {
    grid-template-columns: 1fr;
  }

  .compresor-app .compresor-sidebar {
    position: static;
    order: 2;
  }

  .compresor-app .compresor-workspace {
    order: 1;
  }
}

@media (max-width: 520px) {
  .compresor-app .comp-grid {
    grid-template-columns: 1fr;
  }
}