/* ====================
    FLOATING PROMOS - PREMIUM
======================= */

/* Anuncio lateral flotante */
.float-promo-side {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 320px;
  background: linear-gradient(135deg, rgba(16, 37, 66, 0.98), rgba(26, 58, 107, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(77, 168, 218, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 9998;
  opacity: 0;
  transform: translateY(-50%) translateX(100px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(77, 168, 218, 0.3);
  overflow: hidden;
}

.float-promo-side.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.float-promo-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,0 50,50 T100,50" fill="none" stroke="%234da8da" stroke-width="0.5" opacity="0.1"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.float-promo-side::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(77, 168, 218, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.float-promo-side:hover::after {
  opacity: 1;
}

.close-promo-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: #e3f2fd;
}

.close-promo-btn:hover {
  background: rgba(220, 53, 69, 0.9);
  transform: rotate(90deg) scale(1.1);
  border-color: transparent;
  color: white;
}

.close-promo-btn svg {
  width: 14px;
  height: 14px;
}

.promo-side-content {
  position: relative;
  z-index: 1;
}

.promo-side-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 20px;
}

.promo-side-content h3::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8em;
  animation: sparkle 2s infinite;
}

.promo-side-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95em;
  color: #b3d4fc;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.promo-side-content strong {
  color: #4da8da;
  font-weight: 600;
}

.countdown-highlight {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-family: monospace;
  font-size: 1.1em;
  margin: 0 3px;
  animation: pulseGlow 1.5s infinite;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 107, 0.7);
    transform: scale(1.05);
  }
}

.promoBtn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4da8da, #2a7bb6);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(77, 168, 218, 0.4);
  margin-top: 10px;
}

.promoBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.promoBtn:hover::before {
  left: 100%;
}

.promoBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(77, 168, 218, 0.6);
  background: linear-gradient(135deg, #2a7bb6, #4da8da);
}

/* Anuncio inferior flotante */
.float-promo-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 800px;
  background: linear-gradient(135deg, rgba(16, 37, 66, 0.98), rgba(26, 58, 107, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(77, 168, 218, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 9997;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(77, 168, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.float-promo-bottom.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.float-promo-bottom::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(77, 168, 218, 0.4), 
    transparent,
    rgba(16, 37, 66, 0.8),
    transparent);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.float-promo-bottom:hover::before {
  opacity: 1;
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.promo-bottom-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.promo-bottom-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  color: #e3f2fd;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.promo-bottom-content strong {
  color: #4da8da;
  font-weight: 700;
}

.promo-bottom-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.reserveBtn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.reserveBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.6);
  background: linear-gradient(135deg, #20c997, #28a745);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 1.2em;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  animation: timerPulse 2s infinite;
}

@keyframes timerPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.4); }
}

.countdown-timer span {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}

.bottom-close-btn {
  flex-shrink: 0;
}

/* Animaciones de entrada */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .float-promo-side {
    width: 280px;
    right: 15px;
    padding: 20px;
  }
  
  .float-promo-bottom {
    width: 95%;
    padding: 18px 22px;
  }
}

@media (max-width: 768px) {
  .float-promo-side {
    display: none; /* Ocultar en móviles para no saturar */
  }
  
  .float-promo-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    bottom: 15px;
    padding: 20px;
  }
  
  .promo-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .promo-bottom-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .reserveBtn {
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .float-promo-bottom {
    width: 90%;
    padding: 18px;
    border-radius: 14px;
  }
  
  .promo-bottom-content p {
    font-size: 1em;
  }
  
  .countdown-timer {
    font-size: 1em;
    min-width: 100px;
  }
  
  .reserveBtn {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

/* Estado oculto */
.float-promo-side.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(100px);
  pointer-events: none;
}

.float-promo-bottom.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  pointer-events: none;
}

/* Efecto de notificación */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  color: white;
  font-weight: 700;
  animation: badgePulse 1.5s infinite;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  z-index: 10;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Ajustes para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .float-promo-side,
  .float-promo-bottom {
    backdrop-filter: none;
    background: rgba(16, 37, 66, 0.98);
  }
  
  .close-promo-btn {
    width: 36px;
    height: 36px;
  }
}