/* ==========================================================================
   Crea tu página web — Estilos específicos
   CSP-safe: sin style="" inline, sin <style> en HTML.
   ========================================================================== */

/* Tarjetas de componente */
.componente-card {
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.componente-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 0 40px -10px rgba(0, 210, 255, 0.25);
}

.componente-card.seleccionado {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
}

.componente-preview {
  width: 100%;
  height: 160px;
  border-radius: 0.375rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.componente-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.componente-preview::after {
  content: attr(data-animacion);
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(3, 6, 12, 0.8);
  color: #22d3ee;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.componente-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.componente-titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.componente-descripcion {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.componente-precio {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #22d3ee;
  margin-bottom: 1rem;
}

.componente-complejidad {
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.componente-complejidad.baja {
  background: rgba(16, 185, 129, 0.15);
  color: #4ade80;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.componente-complejidad.media {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.componente-complejidad.alta {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-agregar-componente {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-agregar-componente:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-agregar-componente.agregado {
  background: #22d3ee;
  border-color: #22d3ee;
  color: #030712;
}

/* Resultado de negocio */
#resultado-negocio {
  animation: fadeIn 0.5s ease-out;
}

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

/* Carrito modal */
#modal-carrito {
  display: none;
}

.carrito-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carrito-item:last-child {
  border-bottom: none;
}

.carrito-item-preview {
  width: 60px;
  height: 60px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #030712;
  flex-shrink: 0;
}

.carrito-item-info {
  flex: 1;
}

.carrito-item-titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.carrito-item-precio {
  font-size: 0.85rem;
  color: #22d3ee;
  font-weight: 700;
}

.carrito-item-remover {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  line-height: 1;
}

.carrito-item-remover:hover {
  color: #ffffff;
}

.carrito-vacio {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}

.carrito-vacio span {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Animación preview placeholder */
.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}
