/* Selector universal - funciona en todas las entradas */
  .cortinilla-wrapper {
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  }

  body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
  }

  .cortinilla-wrapper {
    --color-primario: #FFFFFF;
    --color-boton: #C9A961;  
    --curtain-image: url('https://clickyevento.com/wp-content/uploads/2025/02/Fondos-pagina_1.5.png');
  }

/* Ocultar cortinilla hasta que esté lista */
.cortinilla-wrapper:not(.cortinilla-ready) .cortinilla-intro-overlay,
.cortinilla-wrapper:not(.cortinilla-ready) .cortinilla-logo-container {
    opacity: 0 !important;
    visibility: hidden !important;
}

  /* Cortinas HORIZONTAL */
  .cortinilla-curtain {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-image: var(--curtain-image);
   /* background-size: cover;*/
    background-repeat: no-repeat;
    z-index: 1000;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

.cortinilla-curtain-left {
  left: 0;
  background-position: 0% center;     /* ← Empieza desde el inicio (0%) */
  background-size: 200% 100%;         /* ← Duplica el ancho */
}

.cortinilla-curtain-right {
  right: 0;
  background-position: 100% center;   /* ← Termina al final (100%) */
  background-size: 200% 100%;         /* ← Duplica el ancho */
}

/* Responsive: para móvil */
@media (max-width: 767px) {
  .cortinilla-curtain-left {
    background-size: 200% 100%;
    background-position: 0% center;
  }
  
  .cortinilla-curtain-right {
    background-size: 200% 100%;
    background-position: 100% center;
  }
}

.cortinilla-curtain.slide-out-left {
  transform: translateX(-100%) scale(1.05);  /* ← Desliza hacia IZQUIERDA */
}

.cortinilla-curtain.slide-out-right {
  transform: translateX(100%) scale(1.05);   /* ← Desliza hacia DERECHA */
}

  /* Fondo de color */
  .cortinilla-color-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-primario);
    z-index: 999;
    opacity: 1;
    transition: opacity 1s ease-in-out;
  }

  .cortinilla-color-background.fade-out {
    opacity: 0;
  }

  /* Logo central */
  .cortinilla-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
  }

  .cortinilla-logo-container {
    pointer-events: all;
    cursor: pointer;
    transition: all 0.5s ease;
  }

  .cortinilla-logo-container.fade-out {
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.9);
  }

  .cortinilla-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: cortinilla-pulse 2s infinite;
    overflow: hidden;
  }

  .cortinilla-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  @keyframes cortinilla-pulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
  }

  .cortinilla-intro-text {
    text-align: center;
    margin-top: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  }

  .cortinilla-click-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .cortinilla-guest-name {
    font-size: 14px;
    opacity: 0.8;
  }

  /* Botón de audio */
  .cortinilla-audio-control {
    position: fixed;
    top: -60px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-boton);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1002;
    transition: all 0.6s ease;
    opacity: 0;
  }

  .cortinilla-audio-control.visible {
    top: 20px;
    opacity: 1;
  }

  .cortinilla-audio-control.dimmed {
    opacity: 0.5;
  }

  .cortinilla-audio-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }

  .cortinilla-audio-control svg {
    width: 24px;
    height: 24px;
    fill: white;
  }

  body.cortinilla-intro-active {
    overflow: hidden;
  }