 /* 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 VERTICALES */
.cortinilla-curtain {
  position: fixed;
  left: 0;
  width: 100vw;       /* ← 100% del ancho */
  height: 50vh;       /* ← 50% de altura */
  background-image: var(--curtain-image);
  background-repeat: no-repeat;
  z-index: 1000;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cortinilla-curtain-left {
  top: 0;              /* ← Cortina SUPERIOR */
  background-size: 100% 200%;     /* ← Altura doble */
  background-position: center 0%; /* ← Parte SUPERIOR de la imagen */
}

.cortinilla-curtain-right {
  bottom: 0;           /* ← Cortina INFERIOR */
  background-size: 100% 200%;     /* ← Altura doble */
  background-position: center 100%; /* ← Parte INFERIOR de la imagen */
}

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

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

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

  /* 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: 10px;
    width: 45px;
    height: 45px;
    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;
  }