/* =============================================
   VARIABLES
   ============================================= */
:root {
    --rojo: #e63a3a;
    --azul: #1a3a8f;
    --azul-claro: #2255cc;
    --negro: #0d0d0d;
    --blanco: #ffffff;
    --gris-fondo: #f4f4f4;
    --gris-card: #e8e8e8;
    --texto-oscuro: #111;
    --shadow-card: 0 4px 18px rgba(0,0,0,0.13);
}

/* =============================================
   SECCIÓN NOVEDADES
   ============================================= */
.novedades-categoria {
    padding: 32px 0 20px;
    background: var(--gris-fondo);
}

.novedades-categoria .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- HEADER "NOVEDADES" ---- */
.novedades-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 6px;
    gap: 0;
}

.linea-roja-top {
    flex: 1;
    height: 3px;
    background: var(--rojo);
    border-radius: 2px;
}

.titulo-novedades {
    font-family: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--texto-oscuro);
    letter-spacing: 2px;
    padding-left: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* ---- HEADER CATEGORÍA ---- */
.categoria-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.linea-azul {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 100%);
    border-radius: 2px;
}

.categoria-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.categoria-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.categoria-nombre-text {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--texto-oscuro);
}

/* =============================================
   WRAPPER CON BOTONES DE SLIDER
   ============================================= */
.novedades-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.slider-btn-novedades {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: var(--blanco);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.slider-btn-novedades:hover {
    background: var(--azul);
    border-color: var(--azul);
    color: white;
    box-shadow: 0 4px 14px rgba(26,58,143,0.35);
}

.slider-btn-novedades svg {
    width: 20px;
    height: 20px;
}

.slider-btn-novedades.prev { left: -18px; }
.slider-btn-novedades.next { right: -18px; }

/* =============================================
   SLIDER TRACK
   ============================================= */
.novedades-slider {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* =============================================
   PRODUCTO GRANDE (izquierda)
   ============================================= */
.producto-grande-card {
    flex-shrink: 0;
    width: 200px;
    min-height: 200px;
    background: var(--blanco);
    border-radius: 10px;
    border: 2px solid #ddd;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: stretch;
}

.producto-grande-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
    border-color: var(--azul-claro);
}

.producto-grande-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    background: linear-gradient(160deg, #e8eef8 0%, #f5f5f5 100%);
}

.producto-grande-wrapper img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 12px 10px 0;
    display: block;
}

.precio-badge-grande {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--negro);
    color: var(--blanco);
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

/* =============================================
   CARD DE INFORMACIÓN (centro)
   ============================================= */
.producto-info-card {
    flex-shrink: 0;
    width: 340px;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, #0a1628 0%, #0f2355 40%, #1a0a3a 100%);
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26,58,143,0.4);
}

/* Efecto de fondo con líneas tipo "gaming" */
.producto-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,0.02) 30px,
            rgba(255,255,255,0.02) 31px
        );
    pointer-events: none;
    z-index: 0;
}

.producto-info-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Badge lateral derecho "MEJORES PRECIOS" */
.info-badge {
    width: 56px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #e63a3a 0%, #c0182a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    order: 2;
}

.badge-text {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--blanco);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* Contenido principal */
.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 14px 16px;
    gap: 10px;
    order: 1;
}

/* Banner superior "LLÉVATE EL SEGUNDO..." */
.info-banner {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--blanco);
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Descripción */
.info-descripcion h4 {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.info-descripcion p {
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.45;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Stock urgencia */
.info-stock {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Botón WhatsApp */
.btn-comprar-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #25d366, #128c3a);
    color: var(--blanco);
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(37,211,102,0.35);
}

.btn-comprar-info:hover {
    background: linear-gradient(135deg, #2be870, #16a842);
    transform: scale(1.04);
    box-shadow: 0 5px 18px rgba(37,211,102,0.5);
}

.btn-comprar-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =============================================
   PRODUCTOS PEQUEÑOS CIRCULARES
   ============================================= */
.producto-pequeno-card {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.producto-pequeno-card:hover {
    transform: translateY(-4px);
}

.producto-pequeno-img {
    position: relative;
    width: 108px;
    height: 108px;
}

/* Círculo de fondo gris */
.imagen-circular-pequeno {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gris-card);
    border: 3px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.producto-pequeno-card:hover .imagen-circular-pequeno {
    border-color: var(--azul-claro);
    box-shadow: 0 4px 16px rgba(34,85,204,0.25);
}

.imagen-circular-pequeno img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge de precio arriba-izquierda */
.precio-badge-pequeno {
    position: absolute;
    top: -2px;
    left: -4px;
    background: var(--negro);
    color: var(--blanco);
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Nombre del producto */
.producto-pequeno-nombre {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--texto-oscuro);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.25;
    background: var(--gris-card);
    border-radius: 6px;
    padding: 5px 8px;
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .producto-info-card { width: 280px; }
    .producto-grande-card { width: 160px; }
    .producto-pequeno-card { width: 100px; }
    .imagen-circular-pequeno { width: 88px; height: 88px; }
    .producto-pequeno-img { width: 88px; height: 88px; }
}

@media (max-width: 640px) {
    .novedades-slider {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .novedades-slider::-webkit-scrollbar { display: none; }
    .slider-btn-novedades { display: none; }
    .producto-info-card { width: 260px; }
    .info-banner { font-size: 14px; }
}