   :root {
      --transition-speed: 0.6s;
      --image-duration: 12s;
      --video-duration: 30s;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: linear-gradient(-45deg, #ffece7, #ffd3e4, #d0f2ff, #c9fff2);
      background-size: 400% 400%;
      animation: gradient 15s ease infinite;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    @keyframes gradient {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }

    .carousel-container {
      width: 100%;
      max-width: 90vw;
      aspect-ratio: 16 / 9;
      perspective: 1200px;
    }

    .carousel-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                  0 0 40px rgba(255, 107, 107, 0.15);
      background: #000;
    }

    .carousel-item-wrapper {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity var(--transition-speed) ease-in-out;
    }

    .carousel-item-wrapper.active {
      opacity: 1;
    }

    .carousel-item-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .carousel-item-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Indicadores de estado */
    .carousel-indicators-custom {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 12px;
      z-index: 10;
    }

    .indicator-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .indicator-dot.active {
      background-color: #fff;
      width: 32px;
      border-radius: 6px;
      border-color: rgba(255, 255, 255, 0.8);
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    }

    /* Etiqueta de contenido */
    .content-label {
      position: absolute;
      top: 20px;
      left: 20px;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      backdrop-filter: blur(8px);
      z-index: 5;
      opacity: 0;
      animation: fadeInLabel 0.4s ease forwards 0.3s;
    }

    @keyframes fadeInLabel {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .carousel-item-wrapper.active .content-label {
      opacity: 1;
    }

    /* Loading spinner para video */
    .video-loading {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      border: 4px solid rgba(255, 255, 255, 0.2);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      opacity: 1;
      pointer-events: none;
      z-index: 20;
      display: none;
    }

    .video-loading.show {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @keyframes spin {
      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    /* Debug info (opcional, remover en producción) */
    .debug-info {
      position: absolute;
      bottom: 80px;
      right: 20px;
      background: rgba(0, 0, 0, 0.7);
      color: #0f0;
      padding: 10px 15px;
      border-radius: 6px;
      font-size: 12px;
      font-family: 'Monaco', monospace;
      z-index: 15;
      max-width: 250px;
      display: none; /* Cambiar a flex para debuggear */
    }

    .debug-info.show {
      display: block;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .carousel-container {
        max-width: 95vw;
      }

      .indicator-dot {
        width: 10px;
        height: 10px;
      }

      .indicator-dot.active {
        width: 24px;
      }

      .content-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 12px;
        left: 12px;
      }
    }