/* 1. RESET Y CONFIGURACIÓN BASE */
* {
    box-sizing: border-box; /* Evita que el padding empuje los elementos fuera de la pantalla */
    margin: 0;
    padding: 0;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Bloquea el rebote elástico del navegador */
    background: #000;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overscroll-behavior-y: contain; /* Bloquea el "deslizar para actualizar" de Chrome */
}

/* 2. CONTENEDOR TIKTOK (SNAP SCROLL) */
#remates-container {
    /* Usamos dvh para ajustarnos dinámicamente a las barras de Chrome/Safari */
    height: calc(100dvh - 65px); /* Restamos la altura exacta de tu navbar de main.css */
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

#remates-container::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

/* 3. CADA SLIDE (PANTALLA COMPLETA) */
.remate-slide {
    height: calc(100dvh - 65px); /* Ajuste dinámico por slide */
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* 4. MANEJO DE IMÁGENES */
.remate-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.3); /* Fondo oscuro para resaltar texto */
    z-index: 1;
    transform: scale(1.1);
}

.remate-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra la imagen completa sin estirarla */
    z-index: 2;
}

/* 5. CAPA DE GRADIENTE PARA LECTURA */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.7) 50%, 
        transparent 100%);
    z-index: 3;
}

/* 6. BLOQUE DE CONTENIDO (ANCLADO AL FINAL) */
.remate-content {
    position: absolute; /* Fijado al fondo del slide */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px;
    padding-bottom: 35px; /* "Colchón" de seguridad sobre la navbar */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* 7. ESTILOS DE TEXTO */
.timer-badge {
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 40px;
    font-weight: bold;
    font-family: monospace;
    font-size: 13px;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.remate-titulo {
    color: white;
    font-size: 25px;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vendedor-tag {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.price-tag {
    font-size: 25px;
    color: white;
    font-weight: 900;
}

.price-tag span {
    color: #4ade80;
    margin-right: 4px;
}

/* 8. BOTÓN DE WHATSAPP (SIEMPRE VISIBLE) */
.btn-whatsapp-snap {
    background: #4ade80;
    color: white;
    width: 100%; /* Ocupa todo el ancho para facilitar el clic */
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.btn-whatsapp-snap:active {
    transform: scale(0.96); /* Feedback táctil al presionar */
}

/* Estilo del Logo Superior para Remates */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000; /* Asegura que esté por encima de las fotos y el overlay */
    pointer-events: none; /* Permite que el usuario pueda seguir haciendo scroll debajo del logo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}