/* ================================================
   PRODUCTO GRATIS DEL DÍA - DISEÑO SUTIL
   ================================================ */

.producto-gratis-dia {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 2px solid #818cf8;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.15);
}

/* Badge decorativo más discreto */
.producto-gratis-dia .gratis-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    z-index: 10;
}

/* Container del contenido */
.gratis-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* Imagen del producto */
.gratis-imagen {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background: white;
    aspect-ratio: 1;
    position: relative;
}

.gratis-imagen img,
.gratis-imagen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gratis-imagen:hover img,
.gratis-imagen:hover video {
    transform: scale(1.03);
}

/* Info del producto */
.gratis-info {
    color: #1e293b;
}

.gratis-titulo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #1e293b;
}

.gratis-precio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 15px;
}

.precio-original {
    text-decoration: line-through;
    color: #64748b;
}

.precio-actual {
    font-size: 20px;
    color: #059669;
    font-weight: 700;
}

.precio-actual strong {
    font-size: 24px;
}

.gratis-descripcion {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #475569;
}

.gratis-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
}

.gratis-meta span {
    background: rgba(129, 140, 248, 0.1);
    color: #4f46e5;
    padding: 5px 12px;
    border-radius: 12px;
}

/* Botón especial más discreto */
.btn-gratis {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-gratis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: white;
}

.gratis-countdown {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .gratis-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gratis-imagen {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .gratis-titulo {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .producto-gratis-dia {
        padding: 16px;
    }
    
    .producto-gratis-dia .gratis-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .gratis-imagen {
        max-width: 100%;
    }
    
    .gratis-titulo {
        font-size: 18px;
    }
    
    .precio-actual {
        font-size: 18px;
    }
    
    .precio-actual strong {
        font-size: 22px;
    }
    
    .btn-gratis {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 10px 24px;
    }
    
    .gratis-meta {
        flex-wrap: wrap;
        font-size: 12px;
    }
}

/* ================================================
   BADGE GRATIS EN TARJETAS DEL CATÁLOGO
   ================================================ */

.producto-card {
    position: relative;
}

.badge-gratis-card {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.producto-gratis-highlight {
    border: 2px solid #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.producto-gratis-highlight:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}
