/* Cuenta Regresiva Base */
.cuenta-regresiva {
  z-index: 9999;
  background: #05080F;
  border: 2px solid #00BFFF;
  border-radius: 15px;
  padding: 20px 16px;
  width: 220px;
  box-shadow: 0px 10px 30px rgba(0, 191, 255, 0.3);
  animation: slideInFromBottom 0.8s ease-out;
  backdrop-filter: blur(10px);
}

/* Posicionamiento por defecto (sin clases específicas) */
.cuenta-regresiva:not(.cuenta-regresiva--relative) {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Animación de aparición desde abajo */
@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%);
    opacity: 1;
  }
}

/* Para posiciones que no usan translateY(-50%) */
@keyframes slideInFromBottomSimple {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header con "TIEMPO RESTANTE" */
.cuenta-regresiva__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.cuenta-regresiva__icon {
  width: 8px;
  height: 8px;
  background: #00BFFF;
  border-radius: 50%;
  flex-shrink: 0;
}

h3.cuenta-regresiva__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.6px;
  vertical-align: middle;
  text-transform: uppercase;
  color: #00BFFF;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Contenedor de números del contador */
.cuenta-regresiva__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cuenta-regresiva__number-box {
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.cuenta-regresiva__number {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #00BFFF;
  margin: 0 0 4px 0;
  display: block;
}

.cuenta-regresiva__label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  color: #FFFFFF80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
/* Máxima especificidad para superar todos los estilos de Elementor */
body .elementor .cuenta-regresiva .cuenta-regresiva__button,
body .elementor-widget .cuenta-regresiva .cuenta-regresiva__button,
body .e-con .cuenta-regresiva .cuenta-regresiva__button,
.e-con.e-parent:nth-of-type(n+3) .cuenta-regresiva .cuenta-regresiva__button,
.e-con.e-parent:nth-of-type(n+4) .cuenta-regresiva .cuenta-regresiva__button,
.cuenta-regresiva a.cuenta-regresiva__button,
.cuenta-regresiva .cuenta-regresiva__button,
a.cuenta-regresiva__button {
  background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-color: #00BFFF !important;
  border: 1px solid #00BFFF4D !important;
  color: #05080F !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Estados hover y active con máxima especificidad */
body .elementor .cuenta-regresiva .cuenta-regresiva__button:hover,
body .elementor-widget .cuenta-regresiva .cuenta-regresiva__button:hover,
body .e-con .cuenta-regresiva .cuenta-regresiva__button:hover,
.e-con.e-parent:nth-of-type(n+3) .cuenta-regresiva .cuenta-regresiva__button:hover,
.e-con.e-parent:nth-of-type(n+4) .cuenta-regresiva .cuenta-regresiva__button:hover,
.cuenta-regresiva a.cuenta-regresiva__button:hover,
.cuenta-regresiva .cuenta-regresiva__button:hover {
  background: linear-gradient(100.53deg, #00D4FF 0%, #00FFFF 100%) !important;
  background-image: linear-gradient(100.53deg, #00D4FF 0%, #00FFFF 100%) !important;
  background-color: #00D4FF !important;
  border: 1px solid #00D4FF !important;
  color: #05080F !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}


/* Botón CTA - con especificidad máxima */
body .cuenta-regresiva .cuenta-regresiva__button {
  display: block !important;

  background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-color: #00BFFF !important;
  border: 0px solid #00BFFF4D !important;
  border-radius: 10px !important;
  padding: 9px 13px !important;
  text-decoration: none !important;
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: inherit !important;
  text-align: center !important;
  text-transform: uppercase !important;
  color: #05080F !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
margin-bottom: 10px;
}
.cuenta-regresiva {
  z-index: 9999;
  background: #05080F;
  border: 2px solid #00BFFF;
}

.cuenta-regresiva .cuenta-regresiva__button:hover {
  background: linear-gradient(100.53deg, #00D4FF 0%, #00FFFF 100%) !important;
  background-image: linear-gradient(100.53deg, #00D4FF 0%, #00FFFF 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0px 5px 15px rgba(0, 191, 255, 0.4) !important;
  text-decoration: none !important;
  color: #05080F !important;
}

.cuenta-regresiva .cuenta-regresiva__button:active {
  transform: translateY(0) !important;
}

/* Texto de cupos limitados */
.cuenta-regresiva__footer {
  text-align: center;
}

.cuenta-regresiva__footer-text {
  font-family: 'Open Sans', sans-serif;

  line-height: 14px;
  color: #FFB800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Open Sans;
font-weight: 700;
font-style: Bold;
font-size: 11.06px;
line-height: 16px;
letter-spacing: 0%;
text-align: center;
vertical-align: middle;

}

/* Anular específicamente las reglas de Elementor para el botón */
@media screen and (max-height: 1024px) {
  body .e-con.e-parent:nth-of-type(n+3) .cuenta-regresiva .cuenta-regresiva__button,
  body .e-con.e-parent:nth-of-type(n+4) .cuenta-regresiva .cuenta-regresiva__button,
  body .elementor .cuenta-regresiva .cuenta-regresiva__button {
    background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
    background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
    background-color: #00BFFF !important;
    border: 1px solid #00BFFF4D !important;
  }
}

body .e-con.e-parent:nth-of-type(n+4) .cuenta-regresiva .cuenta-regresiva__button,
body .e-con.e-parent:nth-of-type(n+3) .cuenta-regresiva .cuenta-regresiva__button {
  background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-color: #00BFFF !important;
  border: 1px solid #00BFFF4D !important;
}

/* Regla de emergencia con atributo style para casos extremos */
.cuenta-regresiva__button[style] {
  background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-color: #00BFFF !important;
  border: 1px solid #00BFFF4D !important;
}

/* Mobile - Siempre abajo y ancho completo */
@media (max-width: 768px) {
  .cuenta-regresiva {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    padding: 6px 12px;
  }
  


/* Botón CTA - con especificidad máxima */
body .cuenta-regresiva .cuenta-regresiva__button {
  display: block !important;

  background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-image: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%) !important;
  background-color: #00BFFF !important;
  border: 0px solid #00BFFF4D !important;
  border-radius: 10px !important;
  padding: 9px 13px !important;
  text-decoration: none !important;
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: inherit !important;
  text-align: center !important;
  text-transform: uppercase !important;
  color: #05080F !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 30px;
  height: fit-content;
  width: min-content;
  margin: 0px 8px;
}
.cuenta-regresiva {
  z-index: 9999;
  background: #05080F;
  border: 0px solid #00BFFF;
}

  /* Forzar posición en móvil independientemente de la configuración */
  .cuenta-regresiva--fixed.cuenta-regresiva--left,
  .cuenta-regresiva--fixed.cuenta-regresiva--right,
  .cuenta-regresiva--fixed.cuenta-regresiva--center,
  .cuenta-regresiva--fixed.cuenta-regresiva--top,
  .cuenta-regresiva--fixed.cuenta-regresiva--middle,
  .cuenta-regresiva--fixed.cuenta-regresiva--bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
  }
  
  .cuenta-regresiva__button {
    width: auto;
    min-width: 120px;
    max-width: 140px;
    height: 24px;
    line-height: 22px;
    background: linear-gradient(100.53deg, #00BFFF 0%, #00E6E6 100%);
    border: 1px solid #00BFFF4D;
    margin: 0;
    flex-shrink: 0;
  }
  
  .cuenta-regresiva__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  
  .cuenta-regresiva__countdown {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    gap: 4px;
    margin-bottom: 0;
  }
  
  .cuenta-regresiva__number {
    line-height: 12px;
  }
  
  .cuenta-regresiva__label {
    line-height: 8px;
    margin-top: 1px;
  }
  
  .cuenta-regresiva__title {
    display: none;
  }
  
  .cuenta-regresiva__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 6px;
  }
  
  .cuenta-regresiva__item:last-child {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .cuenta-regresiva {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 4px 8px;
    animation: slideInFromBottomMobile 0.8s ease-out;
  }
  
  .cuenta-regresiva__button {
    width: auto;
    min-width: 100px;
    max-width: 120px;
    height: 20px;
    font-size: 8px;
    line-height: 18px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .cuenta-regresiva__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }
  
  .cuenta-regresiva__countdown {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    gap: 3px;
    margin-bottom: 0;
  }
  
  .cuenta-regresiva__number {
    line-height: 10px;
  }
  
  .cuenta-regresiva__label {
    line-height: 6px;
    margin-top: 1px;
  }
  
  .cuenta-regresiva__title {
    display: none;
  }
  
  .cuenta-regresiva__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 4px;
  }
  
  .cuenta-regresiva__item:last-child {
    margin-right: 0;
  }
  
  @keyframes slideInFromBottomMobile {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* Variantes de posición para el widget de Elementor */
.cuenta-regresiva--relative {
  position: relative;
  transform: none;
  margin: 20px auto;
  animation: fadeInUp 0.8s ease-out;
}

.cuenta-regresiva--fixed {
  position: fixed !important;
  z-index: 9999;
}

.cuenta-regresiva--left {
  left: 20px !important;
  right: auto !important;
}

.cuenta-regresiva--right {
  right: 20px !important;
  left: auto !important;
}

.cuenta-regresiva--center {
  left: 50% !important;
  right: auto !important;
}

.cuenta-regresiva--top {
  top: 20px !important;
  bottom: auto !important;
  animation: slideInFromBottomSimple 0.8s ease-out;
}

.cuenta-regresiva--middle {
  top: 50% !important;
  bottom: auto !important;
  animation: slideInFromBottom 0.8s ease-out;
}

.cuenta-regresiva--bottom {
  top: auto !important;
  bottom: 20px !important;
  animation: slideInFromBottomSimple 0.8s ease-out;
}

/* Combinaciones específicas de transform */
.cuenta-regresiva--center.cuenta-regresiva--top {
  transform: translateX(-50%) !important;
}

.cuenta-regresiva--center.cuenta-regresiva--middle {
  transform: translateX(-50%) translateY(-50%) !important;
}

.cuenta-regresiva--center.cuenta-regresiva--bottom {
  transform: translateX(-50%) !important;
}

.cuenta-regresiva--left.cuenta-regresiva--middle,
.cuenta-regresiva--right.cuenta-regresiva--middle {
  transform: translateY(-50%) !important;
}

.cuenta-regresiva--left.cuenta-regresiva--top,
.cuenta-regresiva--left.cuenta-regresiva--bottom,
.cuenta-regresiva--right.cuenta-regresiva--top,
.cuenta-regresiva--right.cuenta-regresiva--bottom {
  transform: none !important;
}

/* Layout horizontal específico para todas las configuraciones en móvil */
@media (max-width: 768px) {
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--right.cuenta-regresiva--bottom {
    display: flex;
    align-items: stretch;
}
.cuenta-regresiva__footer{
  display: none;
}
}

@media (max-width: 480px) {
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--right.cuenta-regresiva--bottom .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--left.cuenta-regresiva--bottom .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--center.cuenta-regresiva--bottom .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--right.cuenta-regresiva--middle .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--left.cuenta-regresiva--middle .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--center.cuenta-regresiva--middle .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--right.cuenta-regresiva--top .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--left.cuenta-regresiva--top .cuenta-regresiva__content,
  .cuenta-regresiva.cuenta-regresiva--fixed.cuenta-regresiva--center.cuenta-regresiva--top .cuenta-regresiva__content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }
}

/* Animación fade up para versión relativa */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

