/* ==========================================================================
   Soluciones VC - Vanina Cabrera Soluciones Digitales
   Estilos Principales y Personalización Visual
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --secondary-dark: #be185d;
  --secondary-light: #f472b6;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  --accent-gradient-soft: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --dark: #0f172a;
  --gray-bg: #f8fafc;
  --card-border: rgba(226, 232, 240, 0.8);
}

/* Tipografía base */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Efecto de degradado de texto */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botones personalizados */
.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
  filter: brightness(1.05);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #ffffff;
  color: #3730a3;
  border: 1.5px solid #c7d2fe;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: #f5f3ff;
  border-color: #818cf8;
  transform: translateY(-2px);
}

/* Cards de productos */
.product-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  position: relative;
  border-radius: 1.25rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.18), 0 10px 15px -5px rgba(236, 72, 153, 0.1);
  border-color: #c7d2fe;
}

.product-card.featured {
  border: 2px solid #818cf8;
}

.badge-featured {
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tabs de navegación de productos */
.filter-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #64748b;
  transition: all 0.25s ease;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: #cbd5e1;
  color: #334155;
  background: #f8fafc;
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

/* Botón flotante WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.floating-whatsapp-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-tooltip {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInRight 0.5s ease-out;
}

/* Pulsación de badge */
.ping-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  border: 2px solid white;
  border-radius: 50%;
}

.ping-badge::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  border-radius: 50%;
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Cotizador Interactivo */
.quote-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.quote-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.quote-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.calculator-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.calculator-item:hover {
  background-color: #f8fafc;
  border-color: #c7d2fe;
}

.calculator-item.selected {
  border-color: #818cf8;
  background-color: #f5f3ff;
}

/* Modal */
.modal-overlay {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
}

/* Volantes Preview Card */
.flyer-thumb-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.flyer-thumb-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.18);
  border-color: #818cf8;
}

.flyer-thumb-card .overlay-zoom {
  position: absolute;
  inset: 0;
  background: rgba(46, 16, 101, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: 600;
}

.flyer-thumb-card:hover .overlay-zoom {
  opacity: 1;
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Sección de Demos en Vivo & Proyectos Reales
   ========================================================================== */
.demo-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.22), 0 10px 15px -5px rgba(236, 72, 153, 0.12);
  border-color: #a5b4fc;
}

.browser-header {
  background: #0f172a;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 1.4rem;
  border-top-right-radius: 1.4rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-address {
  background: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.72rem;
  font-family: monospace;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Toast de confirmación de copiado */
#toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

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