/* ==========================================================================
   ADUANAS LACOSTE S.A. - MÓDULO TEMPORADA DICIEMBRE: CINTA NAVIDEÑA 3D
   Directriz Maestra: §2.9 (Cinta flotante 3D naranja-vino, 4s + 2s fade)
   ========================================================================== */

.dic-cinta-navidad {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.88);
  z-index: 95;
  width: min(720px, calc(100vw - 110px));
  opacity: 0;
  pointer-events: auto;
  filter: drop-shadow(0 24px 36px rgba(74, 14, 23, 0.36));
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.dic-cinta-navidad.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.dic-cinta-navidad.is-saliendo {
  opacity: 0;
  filter: drop-shadow(0 24px 36px rgba(74, 14, 23, 0.2)) blur(6px);
  transform: translate3d(-50%, -54%, 0) scale(0.96);
  transition: opacity 2s ease, transform 2s ease, filter 2s ease;
}

.dic-cinta-navidad.is-saliendo.is-cierre-rapido {
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

/* Colas 3D laterales en forma de listón */
.dic-cinta-cola {
  position: absolute;
  top: 18px;
  width: 58px;
  height: calc(100% - 14px);
  z-index: 0;
  pointer-events: none;
}

.dic-cinta-cola::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 2px solid #f2c663;
  border-bottom: 2px solid #f2c663;
}

.dic-cinta-cola::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 16px;
  height: 12px;
  background: #2f070e;
}

.dic-cinta-cola--izq {
  left: -44px;
}

.dic-cinta-cola--izq::before {
  background: linear-gradient(180deg, #eb5734 0%, #c63b1b 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
}

.dic-cinta-cola--izq::after {
  right: 0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.dic-cinta-cola--der {
  right: -44px;
}

.dic-cinta-cola--der::before {
  background: linear-gradient(180deg, #6b1422 0%, #4a0e17 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);
}

.dic-cinta-cola--der::after {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Cuerpo central con protagonismo naranja corporativo y vino */
.dic-cinta-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f06844 0%, #eb5734 38%, #d94422 60%, #6b1422 82%, #4a0e17 100%);
  border: 2px solid #f2c663;
  border-radius: 16px;
  padding: 26px 36px 24px;
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 214, 0.35),
    inset 0 -3px 8px rgba(42, 6, 12, 0.35);
  overflow: hidden;
  text-align: center;
}

.dic-cinta-panel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(242, 198, 99, 0.55);
  border-radius: 11px;
  pointer-events: none;
}

.dic-cinta-panel::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -45%;
  width: 36%;
  height: 160%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 246, 222, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  pointer-events: none;
  animation: dicCintaBrillo 2.8s ease-in-out infinite;
}

@keyframes dicCintaBrillo {
  0% { left: -45%; }
  55%, 100% { left: 125%; }
}

.dic-cinta-cuerpo {
  position: relative;
  z-index: 1;
}

.dic-cinta-titulo {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff9ea;
  text-shadow: 0 2px 10px rgba(42, 6, 12, 0.45);
  line-height: 1.2;
}

.dic-cinta-texto {
  margin: 0 auto;
  max-width: 600px;
  font-size: clamp(0.92rem, 1.65vw, 1.04rem);
  font-weight: 500;
  color: #fff3d6;
  text-shadow: 0 1px 4px rgba(42, 6, 12, 0.32);
  line-height: 1.48;
}

.dic-cinta-texto + .dic-cinta-texto {
  margin-top: 8px;
}

.dic-cinta-firma {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 22px 8px 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #f2c663;
  box-shadow: 0 6px 18px rgba(42, 6, 12, 0.25);
}

.dic-cinta-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.dic-cinta-marca {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eb5734;
}

@media (max-width: 640px) {
  .dic-cinta-navidad {
    width: calc(100vw - 24px);
  }
  .dic-cinta-cola {
    display: none;
  }
  .dic-cinta-panel {
    padding: 22px 20px 20px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dic-cinta-navidad {
    transition: opacity 0.15s ease;
    transform: translate3d(-50%, -50%, 0);
  }
  .dic-cinta-panel::after {
    animation: none;
    display: none;
  }
}
