/* Popup Promocional Styles */

/* Animación para la etiqueta LIMITADO */
@keyframes pulse {
  0% {
    transform: rotate(15deg) scale(1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
  }
  100% {
    transform: rotate(15deg) scale(1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  }
}
.promo-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.promo-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.promo-popup {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(-30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: white;
  display: flex;
  flex-direction: row;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 350px;
  text-align: center;
}

.promo-popup-overlay.show .promo-popup {
  transform: scale(1) translateY(0);
}

/* Contenido principal del popup */
.promo-popup-content {
  flex: 2;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.promo-popup-brand {
  margin-bottom: 15px;
}

.brand-logo {
  height: 35px;
  width: auto;
  filter: brightness(1.1);
}

.promo-popup-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 400;
}

.promo-popup-title-section {
  background: #ffd700;
  color: #333;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.promo-popup-visual {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.promo-popup-badge-svg {
  position: absolute;
  top: -10px;
  right: -20px;
  z-index: 10;
  transform: rotate(15deg);
  animation: pulse 2s infinite;
}

.promo-popup-badge-svg svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.promo-popup-graphic {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphic-squares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 80px;
  height: 80px;
}

.square {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  width: 100%;
  height: 100%;
}

.promo-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1001;
  transition: background 0.3s ease;
}

.promo-popup-close:hover {
  background: rgba(0, 0, 0, 1);
}

/* El botón de cierre ahora usa posicionamiento relativo al popup */

/* Mobile Responsive */
@media (max-width: 768px) {
  .promo-popup {
    max-width: 95%;
    flex-direction: column;
    margin: 10px;
  }
  
  .promo-popup-visual {
    flex: 0 0 120px;
    order: -1;
  }
  
  .promo-popup-content {
    padding: 20px;
  }
  
  .promo-popup-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .promo-popup {
    max-width: 100%;
    margin: 5px;
  }
  
  .promo-popup-content {
    padding: 15px;
  }
  
  .promo-popup-visual {
    flex: 0 0 100px;
  }
}

.promo-popup-header {
  margin-bottom: 15px;
}

.promo-popup-main-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.promo-popup-subtitle {
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

.promo-popup-description {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

/* Estilos del timer */
/* Timer styles moved below */

.promo-popup-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.promo-popup-features li {
  font-size: 14px;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

.promo-popup-features li:before {
  content: '✓';
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Contador de tiempo */
.promo-popup-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 60px;
}

.countdown-number {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-bottom: 2px;
}

.countdown-label {
  font-size: 0.7em;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.countdown-separator {
  font-size: 1.5em;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Estilos para el precio destacado */
.promo-popup-price-highlight {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0;
  margin: 10px 0 0 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #333;
}

.promo-popup-price-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes priceGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.promo-popup-price {
  font-size: 2.8em;
  font-weight: 900;
  color: #333;
  text-shadow: none;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 2;
  display: inline-block;
}

.promo-popup-period {
  font-size: 0.7em;
  font-weight: 600;
  color: #333;
  opacity: 0.8;
  margin-left: 5px;
}

.promo-popup-note {
  font-size: 0.85em;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: inline-block;
}

.promo-popup-cta {
  margin-top: auto;
}

.promo-popup-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 140px;
  text-transform: none;
  letter-spacing: normal;
  display: inline-block;
  text-decoration: none;
}

.promo-popup-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.promo-popup-btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 14px;
  padding: 8px 15px;
}

.promo-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.promo-popup-note {
  margin: 15px 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ffd700;
}

.promo-popup-note small {
  color: #e0e0e0;
  font-size: 11px;
  line-height: 1.4;
  font-style: italic;
}

/* Mobile adjustments for body */
@media (max-width: 768px) {
  .promo-popup-price {
    font-size: 32px;
  }
  
  .promo-popup-price .currency {
    font-size: 18px;
  }
  
  .promo-popup-price .period {
    font-size: 14px;
  }
  
  .promo-popup-features li {
    font-size: 13px;
  }
  
  .promo-popup-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .promo-popup-price {
    font-size: 28px;
  }
  
  .promo-popup-price .currency {
    font-size: 16px;
  }
  
  .promo-popup-price .period {
    font-size: 12px;
  }
  
  .promo-popup-features li {
    font-size: 12px;
  }
  
  .promo-popup-note small {
    font-size: 10px;
  }
}

.promo-popup-timer {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.promo-popup-timer .timer-label {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.promo-popup-timer .timer-display {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.promo-popup-countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 8px;
  min-width: 50px;
}

.countdown-label {
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.9;
}

.promo-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.promo-popup-btn {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.promo-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.promo-popup-btn i {
  margin-right: 6px;
}

.promo-popup-btn-secondary {
  background: linear-gradient(45deg, #6c757d, #495057);
  font-size: 14px;
  padding: 10px 15px;
  text-transform: none;
  letter-spacing: normal;
}

.promo-popup-btn-secondary:hover {
  background: linear-gradient(45deg, #5a6268, #3d4142);
}

.promo-popup-button {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.promo-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

/* Mobile adjustments for timer and buttons */
@media (max-width: 768px) {
  .promo-popup-timer {
    padding: 12px;
    margin: 12px 0;
  }
  
  .promo-popup-timer .timer-label {
    font-size: 13px;
  }
  
  .promo-popup-timer .timer-display {
    font-size: 18px;
  }
  
  .promo-popup-btn {
    font-size: 15px;
    padding: 11px 18px;
  }
  
  .promo-popup-btn-secondary {
    font-size: 13px;
    padding: 9px 12px;
  }
}

@media (max-width: 480px) {
  .promo-popup-timer {
    padding: 10px;
    margin: 10px 0;
  }
  
  .promo-popup-timer .timer-label {
    font-size: 12px;
  }
  
  .promo-popup-timer .timer-display {
    font-size: 16px;
  }
  
  .promo-popup-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .promo-popup-btn-secondary {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.promo-popup-footer {
  padding: 15px;
  text-align: center;
  background: #f8f9fa;
  color: #666;
  font-size: 12px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Hover effect para el precio */
.promo-popup-price-highlight:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Mobile adjustments for header */
@media (max-width: 768px) {
  .promo-popup {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .promo-popup-header {
    margin: -20px -20px 15px -20px;
    padding: 15px;
  }
  
  .promo-popup-title {
    font-size: 20px;
  }
  
  .promo-popup-subtitle {
    font-size: 13px;
  }
  
  .promo-popup-price {
    font-size: 36px;
  }
  
  .promo-popup-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .promo-popup-header {
    margin: -15px -15px 15px -15px;
    padding: 12px;
  }
  
  .promo-popup-title {
    font-size: 18px;
  }
  
  .promo-popup-subtitle {
    font-size: 12px;
  }
}