/* assets/style.css - v1.2 TikTok UI */

.scrolly-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.scrolly-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Ocultar scrollbar */
    -ms-overflow-style: none;
}
.scrolly-container::-webkit-scrollbar { display: none; }

.scrolly-scene {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    box-sizing: border-box;
    overflow: hidden;
}

/* Overlay para que destaque el texto y los iconos */
.scrolly-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Texto Central */
.scrolly-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 70%; /* Deja espacio para la barra lateral */
    padding-right: 50px;
}

.scrolly-title {
    font-family: 'Bebas Neue', cursive !important;
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    margin: 0 0 10px 0;
    line-height: 1;
}

.scrolly-desc {
    font-family: sans-serif;
    color: #eaeaea;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Sidebar TikTok (Derecha) */
.scrolly-sidebar {
    position: absolute;
    right: 15px;
    bottom: 80px; /* Separado del fondo */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.scrolly-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

.scrolly-icon-circle {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

/* Animación y estado del Like */
.scrolly-like-btn:hover .scrolly-icon-circle,
.scrolly-share-btn:hover .scrolly-icon-circle {
    transform: scale(1.1);
}

.scrolly-like-btn.liked svg {
    fill: #fe2c55; /* Color rojo TikTok */
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Barra de Progreso Inferior */
.scrolly-progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 20;
}

.scrolly-progress-bar {
    height: 100%;
    width: 0%;
    background: #fe2c55; /* Color de TikTok */
    transition: width 0.1s linear;
}

/* Escena del Formulario Final */
.scrolly-form-scene { background-color: #111; display: flex; flex-direction: column; }
.scrolly-form-content { position: relative; z-index: 2; width: 90%; max-width: 500px; text-align: center; }
.scrolly-form-wrapper { margin-top: 20px; background: rgba(255,255,255,0.05); padding: 20px; border-radius: 10px; }